﻿:root {
  --hdl-red-700: #a60b13;
  --hdl-red-600: #c3121d;
  --hdl-red-500: #e0202f;
  --hdl-red-100: #ffe8e9;
  --hdl-gold-500: #f3b41c;
  --hdl-gold-400: #ffd45f;
  --hdl-ink-900: #231f20;
  --hdl-ink-700: #4a4345;
  --hdl-ink-500: #796f72;
  --hdl-bg-1: #f7f1ec;
  --hdl-bg-2: #efe5de;
  --hdl-white: #ffffff;
}

* {
  box-sizing: border-box;
}

body.hdl-body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--hdl-ink-900);
  background-color: #efe5de;
  background-image: url("/static/%E6%B5%B7%E5%BA%95%E6%8D%9E%E5%85%83%E7%B4%A0%E8%83%8C%E6%99%AF.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  min-height: 100vh;
  padding-bottom: calc(46px + env(safe-area-inset-bottom));
}

.hdl-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px;
}

.hdl-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 0 0 env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid #ecd6cd;
  backdrop-filter: blur(8px);
}

.hdl-bottom-nav-inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.hdl-bottom-link {
  height: 46px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: #5c5154;
  background: #f7efea;
  border: none;
  border-right: 1px solid #ead8d0;
}

.hdl-bottom-link.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--hdl-red-600), var(--hdl-red-500));
}

.hdl-bottom-link:last-child {
  border-right: none;
}

.hdl-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(195, 18, 29, 0.07);
  box-shadow: 0 10px 30px rgba(100, 38, 41, 0.08);
  border-radius: 18px;
}

.hdl-header {
  background: linear-gradient(100deg, var(--hdl-red-700), var(--hdl-red-500));
  color: var(--hdl-white);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(166, 11, 19, 0.3);
}

.hdl-title {
  letter-spacing: 0.02em;
  font-weight: 800;
}

.hdl-ellipsis-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hdl-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}

.hdl-input {
  width: 100%;
  border: 1px solid #e7d7cf;
  border-radius: 12px;
  background: #fffdfa;
  padding: 10px 14px;
  transition: all 0.2s ease;
}

.hdl-input:focus {
  outline: none;
  border-color: #ea7a82;
  box-shadow: 0 0 0 3px rgba(224, 32, 47, 0.12);
}

.hdl-btn {
  border: none;
  cursor: pointer;
  border-radius: 12px;
  height: 42px;
  min-width: 110px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.hdl-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.hdl-btn-primary {
  background: linear-gradient(135deg, var(--hdl-red-600), var(--hdl-red-500));
  color: var(--hdl-white);
}

.hdl-btn-primary:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
}

.hdl-btn-gold {
  background: linear-gradient(135deg, var(--hdl-gold-500), var(--hdl-gold-400));
  color: #553b00;
}

.hdl-btn-soft {
  background: var(--hdl-red-100);
  color: var(--hdl-red-700);
}

.hdl-chip {
  border-radius: 9999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--hdl-ink-700);
  background: #f7efea;
  border: 1px solid #ebd8d0;
}

.hdl-chip.active {
  color: var(--hdl-white);
  border-color: transparent;
  background: linear-gradient(135deg, var(--hdl-red-600), var(--hdl-red-500));
}

.hdl-coupon-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #f0dfd8;
  box-shadow: 0 8px 18px rgba(97, 42, 46, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: riseIn 0.35s ease both;
}

.hdl-coupon-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(97, 42, 46, 0.12);
}

.hdl-tag {
  display: inline-block;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1.2;
  padding: 2px 7px;
  color: #b65100;
  background: #fff1d7;
}

.hdl-price {
  color: var(--hdl-red-600);
  font-weight: 800;
}

.hdl-mask {
  background: rgba(0, 0, 0, 0.58);
}

.hdl-modal {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #f0dfd8;
  box-shadow: 0 20px 50px rgba(30, 12, 12, 0.3);
}

.hdl-section-title {
  font-size: 18px;
  font-weight: 800;
  color: #2f2729;
}

.hdl-muted {
  color: var(--hdl-ink-500);
}

.hdl-notice {
  background: rgba(255, 249, 241, 0.92);
  border: 1px solid #f1dfcf;
  border-radius: 14px;
  padding: 10px 12px;
  color: #7a5e54;
}

.hdl-notice-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.45;
}

.hdl-notice-item + .hdl-notice-item {
  margin-top: 6px;
}

.hdl-notice-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  margin-top: 6px;
  flex: 0 0 auto;
  background: linear-gradient(135deg, #e0202f, #f3b41c);
}

.hdl-grid-form {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 768px) {
  body.hdl-body {
    padding-bottom: 0;
  }

  .hdl-shell {
    padding: 24px;
  }

  .hdl-grid-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hdl-notice {
    border-radius: 16px;
    padding: 12px 14px;
  }

  .hdl-notice-item {
    font-size: 13px;
  }

  .hdl-bottom-nav {
    display: none;
  }

}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
