/* ECNU Date - 全局样式 */

/* ===== CSS 变量 ===== */
:root {
  /* 主色调 */
  --primary: #a61d24;
  --primary-hover: #89161d;
  --primary-light: #fdf0f1;
  --secondary: #153a72;
  --secondary-soft: #eaf1ff;
  --accent: #f8e0a6;

  /* 背景色 */
  --background: #f6f3ee;
  --foreground: #1c2330;
  --muted: #f7f3ee;
  --muted-foreground: #667085;

  /* 卡片 */
  --card: #ffffff;
  --card-foreground: #1a1a1a;

  /* 边框和输入框 */
  --border: #e6ddd2;
  --input: #e6ddd2;
  --ring: #a61d24;

  /* 功能色 */
  --success: #22c55e;
  --error: #ef4444;
  --info: #3b82f6;

  /* 圆角 */
  --radius: 12px;
  --radius-sm: 6px;
  --radius-lg: 16px;

  /* 阴影 */
  --shadow-sm: 0 10px 30px rgba(17, 24, 39, 0.05);
  --shadow: 0 18px 40px rgba(17, 24, 39, 0.09);
  --shadow-lg: 0 28px 60px rgba(17, 24, 39, 0.14);
}

/* ===== 基础重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Georgia', 'Times New Roman', 'Songti SC', 'SimSun', serif;
  background:
    radial-gradient(circle at top left, rgba(166, 29, 36, 0.08), transparent 28%),
    linear-gradient(180deg, #fbf7f2 0%, var(--background) 52%, #f3efe8 100%);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > main,
body > .container,
body > .auth-page {
  flex: 1;
}

/* ===== 容器 ===== */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}

body > .landing .container {
  padding-top: 24px;
}

/* 导航栏容器：全宽显示，不受全局 max-width 限制 */
.navbar .container {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 16px 24px;
}

/* ===== 导航栏 ===== */
.navbar {
  background: transparent;
  border-bottom: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: none;
  box-shadow: none;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* 非首页：navbar 回归文档流，sticky 吸顶，不再浮在内容上方 */
.navbar.navbar--static {
  position: sticky;
}

.navbar.scrolled .logo {
  color: var(--foreground);
  text-shadow: none;
}

.navbar.scrolled .logo-name em {
  color: var(--primary);
}

.navbar.scrolled .logo-tagline {
  color: var(--muted-foreground);
}

.navbar.scrolled .nav-links a {
  color: var(--muted-foreground);
  text-shadow: none;
}

.navbar.scrolled .nav-links a:hover {
  color: var(--foreground);
  background: rgba(0, 0, 0, 0.05);
}

.navbar.scrolled .nav-links a.is-active,
.navbar.scrolled .nav-links a[aria-current="page"] {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 700;
}

.navbar.scrolled .nav-links .btn {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  backdrop-filter: none;
}

.navbar.scrolled .nav-links .btn:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.navbar.scrolled .dropdown-toggle {
  color: var(--muted-foreground) !important;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.logo-mark {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(166, 29, 36, 0.18);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  line-height: 1;
}

.logo-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
}

.logo-name em {
  font-style: normal;
  color: #ffccd5;
}

.logo-tagline {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.nav-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.nav-links a.is-active,
.nav-links a[aria-current="page"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 700;
}

.nav-links .btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.nav-links .btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ===== 卡片 ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.card h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--card-foreground);
  letter-spacing: -0.02em;
}

/* ===== 表单 ===== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--foreground);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--card);
  color: var(--foreground);
  transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(232, 90, 90, 0.15);
}

.form-group input::placeholder {
  color: var(--muted-foreground);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group .hint {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  margin-top: 6px;
}

/* 复选框组 */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.checkbox-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--muted);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 400;
  font-size: 0.9rem;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.checkbox-group label:hover {
  background: var(--primary-light);
}

.checkbox-group input:checked + label,
.checkbox-group label:has(input:checked) {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.checkbox-group input {
  width: auto;
  accent-color: var(--primary);
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--muted);
  color: var(--foreground);
}

.btn-secondary:hover {
  background: var(--border);
}

.contact-toggle-btn {
  width: min(225px, 100%);
  min-height: 42px;
  border-radius: 999px;
  padding: 10px 26px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
  background: #9f3a3d;
  border: 1px solid #9f3a3d;
  box-shadow: 0 12px 24px rgba(159, 58, 61, 0.22);
}

.match-result__section--contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.contact-toggle-btn__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.contact-toggle-btn:hover {
  color: #ffffff;
  background: #8d3034;
  border-color: #8d3034;
  box-shadow: 0 14px 28px rgba(141, 48, 52, 0.28);
  transform: translateY(-1px);
}

.contact-toggle-btn:active {
  transform: translateY(0);
  box-shadow: 0 7px 16px rgba(141, 48, 52, 0.22);
}

.contact-panel {
  position: relative;
  width: min(360px, 100%);
  margin: 0 auto;
  padding: 40px 18px 30px;
  border: 1px solid rgba(230, 221, 210, 0.62);
  border-radius: 28px;
  background: #fbfaf7;
  box-shadow: 0 24px 60px rgba(28, 35, 48, 0.14);
}

.contact-panel__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #f1eee9;
  color: #a8a29a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.contact-panel__close:hover {
  background: #e9e3da;
  color: #7c7470;
}

.contact-panel__hero {
  text-align: center;
  padding: 0 8px 18px;
}

.contact-panel__icon {
  position: relative;
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-panel__envelope {
  position: relative;
  width: 32px;
  height: 22px;
  margin-top: 10px;
  border: 1px solid #cfd3d8;
  border-radius: 2px;
  background: linear-gradient(180deg, #f8fafc 0%, #e6e9ee 100%);
  box-shadow: 0 4px 8px rgba(28, 35, 48, 0.12);
}

.contact-panel__envelope::before,
.contact-panel__envelope::after {
  content: "";
  position: absolute;
  inset: 0;
}

.contact-panel__envelope::before {
  background:
    linear-gradient(32deg, transparent 49%, #c5cbd2 50%, transparent 52%),
    linear-gradient(148deg, transparent 49%, #c5cbd2 50%, transparent 52%);
}

.contact-panel__envelope::after {
  background:
    linear-gradient(145deg, transparent 48%, rgba(255,255,255,0.78) 49%, transparent 51%),
    linear-gradient(35deg, transparent 48%, rgba(186, 193, 202, 0.62) 49%, transparent 51%);
}

.contact-panel__arrow {
  position: absolute;
  top: 0;
  left: 50%;
  width: 11px;
  height: 13px;
  transform: translateX(-50%);
  background: #f25f55;
  clip-path: polygon(28% 0, 72% 0, 72% 48%, 100% 48%, 50% 100%, 0 48%, 28% 48%);
  box-shadow: 0 2px 4px rgba(166, 29, 36, 0.22);
}

.contact-panel__title {
  font-size: 1.22rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.25;
}

.contact-panel__hint {
  margin-top: 6px;
  font-size: 0.84rem;
  color: #a19a94;
  line-height: 1.7;
}

.contact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 13px 12px 13px 16px;
  border: 1px solid #ebe3d9;
  border-radius: 18px;
  background: #f2eee8;
}

.contact-row__meta {
  flex: 1;
  min-width: 0;
}

.contact-row__label {
  font-size: 0.76rem;
  color: #a19a94;
  margin-bottom: 3px;
  line-height: 1.2;
}

.contact-row__value {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #171717;
  line-height: 1.35;
  letter-spacing: 0;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  overflow-wrap: normal;
  word-break: normal;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.contact-row__value::-webkit-scrollbar {
  display: none;
}

.contact-copy-btn {
  border-radius: 999px;
  width: 64px;
  min-width: 64px;
  min-height: 38px;
  padding: 8px 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
  background: #9f3a3d;
  border: 1px solid #9f3a3d;
  box-shadow: none;
  flex-shrink: 0;
}

.contact-copy-btn:hover {
  background: #8d3034;
  border-color: #8d3034;
  color: #ffffff;
  box-shadow: 0 6px 12px rgba(141, 48, 52, 0.24);
}

.contact-copy-btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-danger {
  background: #dc2626;
  color: white;
}

.btn-danger:hover {
  background: #b91c1c;
  box-shadow: var(--shadow);
}

/* ===== 设置页 ===== */
.settings-participation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.settings-nickname-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-nickname-form input {
  min-width: 0;
}

/* ===== 提示消息 ===== */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.alert-success {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

.alert-info {
  background: #dbeafe;
  color: #1e40af;
  border-color: #93c5fd;
}

.alert-warning {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}

/* ===== 首页 Landing ===== */
.landing {
  width: 100%;
  margin: 0;
  display: grid;
  gap: 0;
}

.landing-hero {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  height: 100vh;
  min-height: 100vh;
  padding: clamp(40px, 8vw, 100px);
  display: flex;
  align-items: center;
  background-image: url('/images/ecnu.jpg');
  background-image: image-set(
    url('/images/ecnu.webp') type('image/webp'),
    url('/images/ecnu.jpg') type('image/jpeg')
  );
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: none;
  margin: 0;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.landing-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(48, 28, 37, 0.76) 12%, rgba(48, 28, 37, 0.5) 42%, rgba(31, 20, 25, 0.28) 100%);
}

.landing-hero__content {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  color: #fff;
}

.landing-hero__tag {
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 18px;
  font-weight: 500;
}

.landing-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  margin-bottom: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.landing-hero__heart {
  font-size: 1.6rem;
  color: #ff4d6d;
  display: inline-block;
  animation: heartbeat 1.2s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(255, 77, 109, 0.6));
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.3); }
  30% { transform: scale(1); }
  45% { transform: scale(1.2); }
  60% { transform: scale(1); }
}

.landing-hero__count {
  display: inline-block;
  min-width: 2ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.landing-hero h1 {
  font-size: clamp(3rem, 7.5vw, 5.5rem);
  line-height: 1.1;
  margin-bottom: 18px;
  letter-spacing: -0.05em;
  font-weight: 700;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.landing-hero__subtitle {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.landing-hero__description {
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}

.landing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.landing-hero__cta {
  background: linear-gradient(135deg, #ffffff 0%, #fef6f6 100%);
  color: #a61d24;
  padding: 16px 32px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.landing-hero__cta:hover {
  background: linear-gradient(135deg, #ffffff 0%, #fff0f0 100%);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.landing-hero__ghost {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
  padding: 16px 32px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.landing-hero__ghost:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.countdown {
  margin-top: 32px;
  display: grid;
  gap: 6px;
  width: fit-content;
  padding: 20px 28px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.countdown__label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.countdown__time {
  font-size: clamp(1.2rem, 2.8vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.countdown__meta {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* ===== 首页倒计时（原木色） ===== */
.landing-section--countdown {
  background: linear-gradient(135deg, #fdf8f3 0%, #f0e6d6 100%);
  border-top: 1px solid #dfc9ae;
  border-bottom: 1px solid #dfc9ae;
  padding: 40px 0;
}

/* 三栏横排：左(期数) 中(数字) 右(日期) */
.home-countdown {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
}

/* ── 左：期数 + 说明 ── */
.home-countdown__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.home-countdown__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 18px;
  background: linear-gradient(135deg, #6b4226, #9b6840);
  color: #fdf3e7;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 3px 10px rgba(92, 61, 32, 0.28);
}

.home-countdown__badge svg {
  width: 16px;
  height: 16px;
  opacity: 0.9;
  flex-shrink: 0;
}

.home-countdown__label {
  font-size: 0.9rem;
  color: #9a7355;
  font-weight: 500;
  margin: 0;
}

/* ── 中：数字时钟 ── */
.home-countdown__timer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.home-countdown__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.home-countdown__digit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 88px;
  background: linear-gradient(180deg, #5c3d20 0%, #7c5230 55%, #9b6840 100%);
  color: #fdf0df;
  font-size: 2.6rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(92, 61, 32, 0.38), inset 0 1px 0 rgba(255,255,255,0.13);
  position: relative;
  letter-spacing: -1px;
}

.home-countdown__digit::after {
  content: '';
  position: absolute;
  left: 5px;
  right: 5px;
  top: 50%;
  height: 1px;
  background: rgba(0,0,0,0.15);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}

.home-countdown__unit {
  font-size: 0.82rem;
  color: #9a7355;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.home-countdown__colon {
  font-size: 2.4rem;
  font-weight: 800;
  color: #9b6840;
  line-height: 88px;
  opacity: 0.65;
  user-select: none;
  margin-bottom: 26px; /* 对齐数字块（留出 unit 高度） */
}

/* ── 右：揭晓日期 ── */
.home-countdown__date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.home-countdown__date-main {
  font-size: 1.6rem;
  font-weight: 800;
  color: #4a2e10;
  line-height: 1.1;
}

.home-countdown__date-sub {
  font-size: 0.88rem;
  color: #9a7355;
  font-weight: 500;
}

/* ── 手机端：垂直居中 ── */
@media (max-width: 700px) {
  .landing-section--countdown {
    padding: 32px 0;
  }

  .home-countdown {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 20px;
    padding: 0 24px;
    text-align: center;
  }

  .home-countdown__meta {
    align-items: center;
    flex-direction: row;
    justify-content: center;
    gap: 12px;
  }

  .home-countdown__timer {
    justify-content: center;
    gap: 7px;
  }

  .home-countdown__digit {
    width: 62px;
    height: 68px;
    font-size: 2rem;
  }

  .home-countdown__colon {
    font-size: 1.8rem;
    line-height: 68px;
    margin-bottom: 22px;
  }

  .home-countdown__date {
    align-items: center;
  }

  .home-countdown__date-main {
    font-size: 1.25rem;
  }
}

/* ===== LoveType 社区分布 ===== */
.landing-section--lovetype {
  padding: 56px 20px 48px;
  text-align: center;
  background: #fdf9f7;
  border-top: 1px solid #edddd2;
  border-bottom: 1px solid #edddd2;
}

.lt-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  color: #e74c3c;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.lt-heading {
  font-size: 1.45rem;
  font-weight: 700;
  color: #2d1a0e;
  margin-bottom: 8px;
}

.lt-sub {
  font-size: 0.88rem;
  color: #9a7355;
  margin-bottom: 36px;
}

.lt-sub strong {
  color: #e74c3c;
  font-weight: 700;
}

.lt-grid {
  display: grid;
  grid-template-columns: repeat(4, 80px);
  gap: 10px 4px;
  margin: 0 auto 20px;
  width: fit-content;
}

.lt-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  width: 80px;
  height: 90px;
  padding-bottom: 2px;
  position: relative;
  cursor: default;
}

.lt-bubble {
  width: calc(18px + 54px * var(--bs, 0.1));
  height: calc(18px + 54px * var(--bs, 0.1));
  min-width: 18px;
  min-height: 18px;
  border-radius: 50%;
  background: rgba(231, 76, 60, calc(0.10 + 0.76 * var(--bs, 0.1)));
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  flex-shrink: 0;
}

.lt-cell:hover .lt-bubble {
  transform: scale(1.18);
  box-shadow: 0 4px 20px rgba(231, 76, 60, 0.3);
}

.lt-code {
  font-size: 0.60rem;
  font-weight: 700;
  color: #8a5c40;
  letter-spacing: 0.4px;
  line-height: 1;
  flex-shrink: 0;
}

.lt-nick {
  font-size: 0.55rem;
  color: #b07a5a;
  white-space: nowrap;
  line-height: 1;
  flex-shrink: 0;
}

/* 悬停 Tooltip */
.lt-cell::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(45, 26, 14, 0.92);
  color: #fff;
  font-size: 0.72rem;
  line-height: 1.3;
  padding: 5px 10px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 20;
}

.lt-cell:hover::after {
  opacity: 1;
}

.lt-legend {
  font-size: 0.75rem;
  color: #c5a88a;
  margin-top: 4px;
}

@media (max-width: 420px) {
  .landing-section--lovetype {
    padding: 40px 16px 36px;
  }

  .lt-grid {
    grid-template-columns: repeat(4, 68px);
    gap: 8px 2px;
  }

  .lt-cell {
    width: 68px;
    height: 78px;
  }

  .lt-bubble {
    width: calc(14px + 42px * var(--bs, 0.1));
    height: calc(14px + 42px * var(--bs, 0.1));
    min-width: 14px;
    min-height: 14px;
  }

  .lt-legend {
    display: none;
  }
}

/* ===== 匹配页倒计时 ===== */
.match-countdown {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.match-countdown__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.match-countdown__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.match-countdown__badge-icon {
  width: 15px;
  height: 15px;
  opacity: 0.9;
}

.match-countdown__label {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

/* 翻页时钟风格 */
.match-countdown__timer {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.match-countdown__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.match-countdown__digit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 72px;
  background: linear-gradient(180deg, #8b161c 0%, #a61d24 55%, #c4242c 100%);
  color: #fff;
  font-size: 2.2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(166, 29, 36, 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
  position: relative;
}

/* 中线模拟翻页效果 */
.match-countdown__digit::after {
  content: '';
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  height: 1px;
  background: rgba(0,0,0,0.18);
  box-shadow: 0 1px 0 rgba(255,255,255,0.1);
}

.match-countdown__block-label {
  font-size: 0.78rem;
  color: var(--muted-foreground);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.match-countdown__colon {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 72px;
  user-select: none;
  opacity: 0.6;
}

/* 底部揭晓日期 - 日历卡片风格 */
.match-countdown__footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #fff5f5;
  border-radius: var(--radius);
  border: 1px solid #fecdd3;
}

.match-countdown__date-card {
  flex-shrink: 0;
  width: 52px;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  background: #fff;
}

.match-countdown__date-card-month {
  padding: 4px 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.match-countdown__date-card-day {
  padding: 6px 0 4px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--foreground);
  line-height: 1;
}

.match-countdown__date-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.match-countdown__date-main {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--foreground);
}

.match-countdown__date-hint {
  font-size: 0.78rem;
  color: var(--muted-foreground);
}

@media (max-width: 540px) {
  .match-countdown {
    padding: 20px 16px 16px;
  }

  .match-countdown__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .match-countdown__timer {
    gap: 6px;
  }

  .match-countdown__digit {
    width: 56px;
    height: 60px;
    font-size: 1.7rem;
    border-radius: 8px;
  }

  .match-countdown__colon {
    font-size: 1.5rem;
    line-height: 60px;
  }

  .match-countdown__footer {
    padding: 12px 14px;
  }
}

/* ── Notifications ────────────────────────────────────────── */
.notif-page {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 24px 0;
}

.notif-page__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}

.notif-page__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.notif-page__count {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  background: var(--muted);
  padding: 3px 10px;
  border-radius: 999px;
}

.notif-list {
  display: flex;
  flex-direction: column;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  position: relative;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item--unread {
  background: #fefcfc;
}

.notif-item--unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
  border-radius: 0 2px 2px 0;
}

.notif-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.notif-icon svg {
  width: 18px;
  height: 18px;
}

.notif-icon--match   { background: #fef2f2; color: var(--primary); }
.notif-icon--request { background: #eff6ff; color: #2563eb; }
.notif-icon--accepted { background: #f0fdf4; color: #16a34a; }
.notif-icon--rejected { background: #f9fafb; color: #6b7280; }
.notif-icon--default  { background: var(--muted); color: var(--muted-foreground); }

.notif-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notif-content {
  font-size: 0.92rem;
  color: var(--foreground);
  line-height: 1.55;
  margin: 0;
}

.notif-time {
  font-size: 0.78rem;
  color: var(--muted-foreground);
}

.notif-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  align-items: flex-end;
}

.btn-sm {
  padding: 5px 14px;
  font-size: 0.82rem;
  border-radius: 8px;
  white-space: nowrap;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted-foreground);
}

.btn-ghost:hover {
  background: var(--muted);
  color: var(--foreground);
}

.notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 32px;
  text-align: center;
  gap: 12px;
}

.notif-empty__icon {
  width: 52px;
  height: 52px;
  color: var(--border);
  margin-bottom: 4px;
}

.notif-empty__text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0;
}

.notif-empty__hint {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin: 0;
  max-width: 260px;
  line-height: 1.6;
}

@media (max-width: 500px) {
  .notif-item {
    padding: 14px 16px;
    gap: 10px;
  }

  .notif-icon {
    width: 34px;
    height: 34px;
  }

  .notif-icon svg {
    width: 15px;
    height: 15px;
  }

  .notif-actions {
    flex-direction: row;
    align-items: center;
  }
}

/* ── Match Status Bar ─────────────────────────────────────── */
.match-status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 16px;
  width: fit-content;
}

.match-status-bar.is-active {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.match-status-bar.is-paused {
  background: #fafafa;
  border: 1px solid #e4e4e7;
  color: #71717a;
}

.match-status-bar__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.match-status-bar.is-active .match-status-bar__dot {
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
  animation: pulse-green 2s infinite;
}

.match-status-bar.is-paused .match-status-bar__dot {
  background: #a1a1aa;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2); }
  50% { box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.05); }
}

.match-status-bar__text {
  flex: 1;
}

.match-status-bar__action {
  font-size: 0.8rem;
  padding: 2px 10px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s;
}

.match-status-bar.is-active .match-status-bar__action {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
}

.match-status-bar.is-active .match-status-bar__action:hover {
  background: rgba(22, 163, 74, 0.2);
}

.match-status-bar.is-paused .match-status-bar__action {
  background: rgba(0,0,0,0.06);
  color: #52525b;
}

.match-status-bar.is-paused .match-status-bar__action:hover {
  background: rgba(0,0,0,0.1);
}

/* ── Match Result Card ─────────────────────────────────────── */
.match-result {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.match-result__header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 28px 24px;
  background: linear-gradient(135deg, #fff5f5 0%, #fef2f2 100%);
  border-bottom: 1px solid var(--border);
}

.match-result__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: -1px;
}

.match-result__identity {
  flex: 1;
  min-width: 0;
}

.match-result__name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 4px;
}

.match-result__meta {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.match-result__score-ring {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  position: relative;
}

.match-result__score-ring svg {
  width: 80px;
  height: 80px;
}

.match-result__score-value {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.match-result__score-num {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
}

.match-result__score-label {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  margin-top: 1px;
}

.match-result__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
}

.match-result__info-card {
  background: #fff;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.match-result__info-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.match-result__info-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--foreground);
}

.match-result__section {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
}

.match-result__section:last-of-type {
  border-bottom: none;
}

.match-result__section-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.match-result__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.match-result__tag {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  background: #f4f4f5;
  color: #3f3f46;
  border: 1px solid #e4e4e7;
}

.match-result__tag--interest {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

.match-result__contact {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #f0f9ff;
  border-bottom: 1px solid #bae6fd;
  font-size: 0.9rem;
}

.match-result__contact-icon {
  width: 16px;
  height: 16px;
  color: #0284c7;
  flex-shrink: 0;
}

.match-result__contact-label {
  color: #0369a1;
  font-weight: 600;
  white-space: nowrap;
}

.match-result__contact-value {
  color: #0284c7;
  text-decoration: none;
  word-break: break-all;
}

.match-result__contact-value:hover {
  text-decoration: underline;
}

.match-result__section--ai {
  background: linear-gradient(135deg, #fdf4ff 0%, #faf5ff 100%);
}

.match-result__section--feedback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: #fff;
}

.match-feedback-toggle-btn {
  width: min(260px, 100%);
}

.match-feedback-panel {
  width: min(390px, 100%);
  padding-bottom: 24px;
}

.match-feedback-panel__icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #fff3f0;
  color: #9f3a3d;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(159, 58, 61, 0.12);
}

.match-feedback-panel__icon svg {
  width: 24px;
  height: 24px;
}

.match-feedback {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.match-feedback__group {
  padding: 14px;
  border: 1px solid #ebe3d9;
  border-radius: 18px;
  background: #f2eee8;
}

.match-feedback__label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #6f6762;
}

.match-feedback__ratings {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.match-feedback__ratings label {
  cursor: pointer;
}

.match-feedback__ratings input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.match-feedback__ratings span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid #e0d5cb;
  background: #fff;
  font-weight: 800;
  color: #8a817a;
  box-shadow: 0 3px 8px rgba(28, 35, 48, 0.04);
  transition: all 0.18s ease;
}

.match-feedback__ratings input:focus-visible + span {
  outline: 2px solid rgba(159, 58, 61, 0.32);
  outline-offset: 2px;
}

.match-feedback__ratings input:checked + span {
  border-color: #9f3a3d;
  background: #9f3a3d;
  color: #fff;
  box-shadow: 0 8px 18px rgba(159, 58, 61, 0.22);
}

.match-feedback__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.72rem;
  color: #a19a94;
}

.match-feedback__reason {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #e0d5cb;
  border-radius: 14px;
  background: #fff;
  color: #171717;
  font-family: inherit;
  font-weight: 600;
}

.match-feedback__reason:focus {
  outline: none;
  border-color: #9f3a3d;
  box-shadow: 0 0 0 3px rgba(159, 58, 61, 0.12);
}

.match-feedback__submit {
  width: 100%;
  min-height: 44px;
  margin-top: 2px;
}

.match-feedback__submitted {
  width: min(390px, 100%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #ebe3d9;
  border-radius: 20px;
  background: #fbfaf7;
  box-shadow: 0 10px 24px rgba(28, 35, 48, 0.08);
}

.match-feedback__submitted-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #9f3a3d;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.match-feedback__submitted-icon svg {
  width: 18px;
  height: 18px;
}

.match-feedback__submitted-copy {
  min-width: 0;
}

.match-feedback__submitted-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #171717;
}

.match-feedback__submitted-text {
  margin-top: 2px;
  font-size: 0.84rem;
  color: #8a817a;
}

.match-result__ai-body {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--foreground);
}

.match-result__ai-body p {
  margin: 0 0 8px;
}

.match-result__ai-body p:last-child {
  margin-bottom: 0;
}

.match-result__ai-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-foreground);
  font-size: 0.88rem;
}

.match-result__ai-dots {
  display: inline-flex;
  gap: 4px;
}

.match-result__ai-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.4;
  animation: ai-dot-pulse 1.4s infinite ease-in-out;
}

.match-result__ai-dots span:nth-child(2) { animation-delay: 0.2s; }
.match-result__ai-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes ai-dot-pulse {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.1); }
}

.match-result__footer-note {
  padding: 16px 28px 8px;
  font-size: 0.82rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  background: #fafafa;
  border-top: 1px solid var(--border);
  text-align: center;
}

.match-result__safety {
  padding: 0 28px 20px;
  font-size: 0.75rem;
  color: #a8b8a8;
  text-align: center;
  line-height: 1.6;
  background: #fafafa;
}

@media (max-width: 600px) {
  .match-result__header {
    padding: 20px 16px;
    gap: 12px;
  }

  .match-result__avatar {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
  }

  .match-result__name {
    font-size: 1.1rem;
  }

  .match-result__score-ring,
  .match-result__score-ring svg {
    width: 64px;
    height: 64px;
  }

  .match-result__score-num {
    font-size: 1.15rem;
  }

  .match-result__grid {
    grid-template-columns: 1fr 1fr;
  }

  .match-result__grid > .match-result__info-card:only-child,
  .match-result__grid > .match-result__info-card:nth-child(odd):last-child {
    grid-column: 1 / -1;
  }

  .match-result__info-card {
    padding: 12px 14px;
  }

  .match-result__section {
    padding: 16px;
  }

  .match-feedback__ratings span {
    min-height: 42px;
  }

  .match-result__footer-note {
    padding: 12px 16px 6px;
  }

  .match-result__safety {
    padding: 10px 16px 16px;
  }
}

/* ─────────────────────────────────────────────────────────── */

.landing-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
}

.landing-strip div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px 24px;
  border-right: 1px solid rgba(166, 29, 36, 0.1);
  transition: all 0.3s ease;
  text-align: center;
  background: transparent;
}

.landing-strip div:last-child {
  border-right: none;
}

.landing-strip div:hover {
  background: rgba(166, 29, 36, 0.05);
}

.landing-strip strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  color: #a61d24;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.landing-strip span {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

.landing-section {
  background: #ffffff;
  border: none;
  border-radius: 0;
  padding: clamp(48px, 6vw, 80px) 24px;
  box-shadow: none;
  margin: 0;
  width: 100%;
  border-bottom: 1px solid rgba(166, 29, 36, 0.08);
}

.landing-section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--foreground);
  text-align: center;
}

.landing-section--soft {
  background: linear-gradient(180deg, #fff8f8 0%, #ffffff 100%);
  border-color: rgba(166, 29, 36, 0.08);
}

.landing-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.landing-step {
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
  transition: none;
  box-shadow: none;
  text-align: center;
}

.landing-step picture {
  display: block;
}

.landing-step__image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}

.landing-step span {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(166, 29, 36, 0.9);
  letter-spacing: 0;
}

.landing-step h3 {
  margin-bottom: 16px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: -0.02em;
}

.landing-step p {
  color: var(--muted-foreground);
  line-height: 1.75;
  font-size: 1rem;
}

.landing-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.landing-benefits article {
  border-radius: 0;
  border: none;
  background: transparent;
  padding: 0;
  transition: none;
  box-shadow: none;
}

.landing-benefits h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: -0.02em;
}

.landing-benefits p {
  color: var(--muted-foreground);
  line-height: 1.75;
  font-size: 1rem;
}

.landing-faq {
  display: grid;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.landing-faq details {
  border: none;
  border-radius: 0;
  padding: 24px 0;
  background: transparent;
  transition: none;
  box-shadow: none;
  border-bottom: 1px solid rgba(166, 29, 36, 0.08);
}

.landing-faq details:hover {
  border-color: rgba(166, 29, 36, 0.15);
}

.landing-faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--foreground);
  letter-spacing: -0.01em;
}

.landing-faq p {
  margin-top: 12px;
  color: var(--muted-foreground);
  line-height: 1.75;
  font-size: 1rem;
}

.landing-cta {
  text-align: center;
  border-radius: 0;
  border: none;
  padding: 80px 32px;
  margin: 0;
  width: 100%;
  background:
    radial-gradient(circle at top, rgba(166, 29, 36, 0.08), transparent 56%),
    linear-gradient(180deg, #fff7f5 0%, #ffffff 100%);
  box-shadow: none;
}

.landing-cta h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin-bottom: 10px;
}

.landing-cta p {
  color: var(--muted-foreground);
  margin-bottom: 18px;
}

/* ===== 首页 Hero ===== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.72fr);
  gap: 32px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 56px clamp(24px, 6vw, 72px);
  color: white;
  border-radius: 0;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 76px);
  align-items: stretch;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(105deg, rgba(12, 19, 34, 0.88) 8%, rgba(12, 19, 34, 0.52) 42%, rgba(24, 37, 61, 0.22) 65%, rgba(21, 58, 114, 0.16) 100%),
    url('/images/ecnu.jpg') center center / cover no-repeat;
  pointer-events: none;
  z-index: 0;
}

.hero__content,
.hero__panel {
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 44rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: start;
  padding-top: clamp(8px, 3vh, 28px);
  position: relative;
}

.hero__brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.hero__logo {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.16);
}

.hero__eyebrow {
  margin: 0 0 6px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
}

.hero__eyebrow--pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  margin-bottom: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  opacity: 1;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
  letter-spacing: -0.04em;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.hero__description {
  max-width: 38rem;
  font-size: 1.05rem;
  line-height: 1.85;
}

.hero__metrics {
  position: absolute;
  top: 0;
  right: clamp(-8px, 1.2vw, 12px);
  z-index: 2;
}

.hero__metric {
  position: relative;
  min-width: 168px;
  padding: 14px 18px 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 248, 233, 0.18), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 14px 32px rgba(8, 13, 24, 0.24);
  overflow: hidden;
  animation: heroMetricFloat 4.8s ease-in-out infinite;
}

.hero__metric::before {
  content: '';
  position: absolute;
  inset: -30% auto auto -15%;
  width: 80px;
  height: 180%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0));
  transform: rotate(18deg);
  opacity: 0.45;
  animation: heroMetricShine 5.6s ease-in-out infinite;
}

.hero__metric-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.92;
}

.hero__metric-kicker::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffd88b;
  box-shadow: 0 0 10px rgba(255, 216, 139, 0.88);
}

.hero__metric strong {
  display: block;
  position: relative;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  margin-bottom: 6px;
}

.hero__metric span {
  position: relative;
  font-size: 0.92rem;
  opacity: 0.88;
}

@keyframes heroMetricFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes heroMetricShine {
  0%, 100% {
    transform: translateX(0) rotate(18deg);
    opacity: 0.2;
  }
  50% {
    transform: translateX(140px) rotate(18deg);
    opacity: 0.52;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hero__cta {
  background: white;
  color: var(--primary);
}

.hero__ghost {
  background: rgba(255, 255, 255, 0.16);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero .btn:hover {
  background: #fafafa;
  transform: translateY(-2px);
}

.hero__ghost:hover {
  background: rgba(255, 255, 255, 0.24);
}

.hero__panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  padding: 28px 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(8, 13, 24, 0.16), rgba(8, 13, 24, 0.36));
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 50px rgba(11, 16, 31, 0.18);
}

.hero__panel-title {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero__highlights {
  margin: 0;
  padding-left: 18px;
}

.hero__highlights li + li {
  margin-top: 10px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.hero__stats div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15);
}

.hero__stats strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.hero__stats span {
  font-size: 0.86rem;
  opacity: 0.9;
}

.hero__feature-list {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.hero__feature {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 1.25rem;
}

.hero__feature h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.hero__feature p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
}

.hero__status {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(220px, 0.95fr);
  gap: 16px;
  margin-top: 6px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(8, 13, 24, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__status-eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.74;
}

.hero__status-title {
  font-size: 1.7rem;
  margin-bottom: 6px;
}

.hero__status-identity {
  font-size: 0.95rem;
  opacity: 0.82;
  word-break: break-word;
}

.hero__status-summary {
  margin-top: 14px;
  font-size: 0.96rem;
  line-height: 1.75;
}

.hero__status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hero__status-aside-title {
  margin-bottom: 12px;
  font-size: 0.95rem;
  font-weight: 700;
}

.hero__status-steps {
  list-style: none;
  display: grid;
  gap: 12px;
}

.hero__status-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.hero__status-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 700;
}

.hero__status-step strong {
  display: block;
  margin-bottom: 4px;
}

.hero__status-step p {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.82;
  line-height: 1.55;
}

.hero__status-step.is-done .hero__status-step-badge {
  background: rgba(255, 255, 255, 0.2);
}

.hero__status-step.is-current .hero__status-step-badge {
  background: rgba(248, 224, 166, 0.22);
  color: #fff5dc;
}

.hero__status-step.is-pending .hero__status-step-badge {
  opacity: 0.72;
}

/* ===== 功能卡片 ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 28px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  text-align: left;
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature-card .icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(166, 29, 36, 0.1), rgba(21, 58, 114, 0.12));
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--foreground);
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

.home-status {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.95fr);
  gap: 24px;
  align-items: stretch;
}

.home-status__main {
  min-width: 0;
}

.home-status__eyebrow {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.home-status__title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--card-foreground);
}

.home-status__identity {
  margin: 10px 0 20px;
  font-size: 0.95rem;
  color: var(--muted-foreground);
}

.home-status__alert {
  margin-bottom: 18px;
}

.home-status__summary {
  margin: 0;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--foreground);
}

.home-status__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.home-status__aside {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fffdf9 0%, #f8f1e7 100%);
}

.home-status__aside-title {
  margin: 0 0 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--foreground);
}

.home-status__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.home-status__step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
}

.home-status__step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}

.home-status__step strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.98rem;
  color: var(--foreground);
}

.home-status__step p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.home-status__step.is-current .home-status__step-badge {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.home-status__step.is-done .home-status__step-badge {
  background: rgba(232, 90, 90, 0.12);
  border-color: rgba(232, 90, 90, 0.24);
  color: var(--primary);
}

.home-status__step.is-current strong,
.home-status__step.is-done strong {
  color: var(--card-foreground);
}

/* Hero 内的图标 */
.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  letter-spacing: -0.03em;
}

/* ===== 问卷页 ===== */
.form-section {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  margin: 24px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
  display: inline-block;
}

/* ===== 匹配结果 ===== */
.match-card {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  padding: 32px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.match-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--foreground);
}

.match-info {
  background: white;
  padding: 24px;
  border-radius: var(--radius);
  margin: 20px 0;
  text-align: left;
}

.match-score {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ===== 表格 ===== */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: var(--muted);
}

/* ===== 打赏区块 ===== */
.landing-donate {
  padding: 72px 32px;
  background: linear-gradient(180deg, #fff8f8 0%, #ffffff 100%);
  border-top: 1px solid rgba(166, 29, 36, 0.08);
}

.landing-donate__inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 56px;
}

.landing-donate__text {
  flex: 1;
  text-align: left;
}

.landing-donate__icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 12px;
}

.landing-donate__title {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin-bottom: 12px;
}

.landing-donate__sub {
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.75;
}

.landing-donate__qr-wrap {
  flex-shrink: 0;
  text-align: center;
}

.landing-donate__qr {
  display: block;
  width: clamp(140px, 20vw, 180px);
  height: clamp(140px, 20vw, 180px);
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 10px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

.landing-donate__hint {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

@media (max-width: 600px) {
  .landing-donate {
    padding: 48px 24px;
  }

  .landing-donate__inner {
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }

  .landing-donate__text {
    text-align: center;
  }

  .landing-donate__qr {
    width: clamp(160px, 55vw, 200px);
    height: clamp(160px, 55vw, 200px);
  }
}

/* ===== 页脚 ===== */
.footer {
  text-align: center;
  padding: 32px 20px;
  color: var(--muted-foreground);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  background: var(--background);
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.footer-tagline {
  margin-top: 8px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.footer-links a {
  color: var(--muted-foreground);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
}

.info-page-bg {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.info-page-bg {
  display: none;
}

.info-page {
  max-width: 860px;
  padding-top: 110px;
  padding-bottom: 48px;
  border-radius: 0;
}

.info-page .card {
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
}

.info-meta {
  color: var(--muted-foreground);
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.info-lead {
  color: var(--muted-foreground);
  margin-bottom: 28px;
}

.info-section + .info-section {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding-top: 24px;
}

.info-section h2 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.info-section p + p {
  margin-top: 10px;
}

.info-section ul {
  padding-left: 20px;
}

.info-section li + li {
  margin-top: 8px;
}

/* ===== 动画 ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card, .hero, .feature-card {
  animation: fadeIn 0.4s ease-out;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .container {
    padding: 16px;
  }

  /* landing 页面导航栏是透明覆盖，不需要额外 padding */
  body > .landing .container {
    padding-top: 24px;
  }

  .landing {
    width: 100%;
    margin-top: 0;
  }

  .landing-hero {
    min-height: 100vh;
    height: 100vh;
    border-radius: 0;
    padding: 24px 20px;
  }

  .landing-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin: 0;
  }

  .landing-strip div {
    padding: 20px 16px;
    border-right: none;
    border-bottom: 1px solid rgba(166, 29, 36, 0.1);
  }

  .landing-strip div:nth-child(1),
  .landing-strip div:nth-child(2) {
    border-bottom: 1px solid rgba(166, 29, 36, 0.1);
  }

  .landing-strip div:nth-child(2) {
    border-right: none;
  }

  .landing-section {
    width: calc(100% - 40px);
    margin: 24px auto;
    border-radius: 20px;
    padding: 24px 20px;
  }

  .landing-cta {
    width: calc(100% - 40px);
    margin: 24px auto;
    border-radius: 20px;
    padding: 32px 24px;
  }

  .landing-steps,
  .landing-benefits {
    grid-template-columns: 1fr;
  }

  .landing-section,
  .landing-cta {
    border-radius: 18px;
  }

  .navbar {
    background: rgba(0, 0, 0, 0.3);
  }

  .navbar .container {
    padding: 12px 16px;
  }

  /* 隐藏桌面端链接 */
  .nav-desktop,
  .desktop-dropdown {
    display: none !important;
  }

  /* 显示汉堡菜单按钮 */
  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: calc(100vh - 64px);
    padding: 32px 16px 28px;
  }

  .hero__content {
    align-self: auto;
    padding-top: 0;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero__status {
    grid-template-columns: 1fr;
  }

  .hero__metrics {
    position: static;
    margin-bottom: 18px;
    align-self: flex-start;
  }

  .hero__brand {
    align-items: flex-start;
  }

  .hero__logo {
    width: 60px;
    height: 60px;
  }

  .card {
    padding: 24px;
    border-radius: var(--radius);
  }

  .settings-participation,
  .settings-nickname-form {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-participation .btn,
  .settings-nickname-form .btn {
    width: 100%;
  }

  .nav-links {
    gap: 4px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .logo-name {
    font-size: 1rem;
  }

  .logo-tagline {
    font-size: 0.56rem;
  }

  /* 移动端下拉菜单里的链接要显示 */
  .dropdown-menu a {
    display: block;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .home-status {
    grid-template-columns: 1fr;
  }

  .home-status__aside {
    padding: 20px;
  }

  .home-status__summary {
    max-width: none;
  }

  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="password"],
  .form-group input[type="search"],
  .form-group input[type="tel"],
  .form-group input[type="url"],
  .form-group input[type="number"],
  .form-group textarea,
  .form-group select {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .logo-tagline {
    display: none;
  }

  .landing-strip {
    grid-template-columns: 1fr;
  }

  .landing-hero h1 {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero {
    min-height: calc(100vh - 60px);
  }

  .hero__metrics {
    margin-bottom: 16px;
  }

  .btn {
    width: 100%;
  }

  .footer-links {
    gap: 12px;
  }
}

/* ===== 下拉菜单 ===== */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.dropdown-toggle:hover {
  background: var(--muted);
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  min-width: 160px;
  max-width: calc(100vw - 32px);
  z-index: 1000;
  margin-top: 8px;
  box-sizing: border-box;
  backdrop-filter: blur(20px);
}

/* 伪元素填充间隙，保持 hover 连续性 */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  height: 4px;
  pointer-events: auto;
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--foreground);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.dropdown-menu a:hover {
  background: rgba(166, 29, 36, 0.08);
  color: var(--primary);
}

@media (hover: hover) and (pointer: fine) {
  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

.dropdown-menu.show {
  display: block;
}

/* ===== 导航栏全宽覆盖 ===== */
nav.navbar > div.container {
  padding-left: 32px !important;
  padding-right: 32px !important;
}

/* ===== 移动端用户信息 ===== */
.mobile-user-info {
  display: none;
}

.mobile-user-avatar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
  }

  .mobile-user-info:active {
    background: rgba(255, 255, 255, 0.15);
  }

  .navbar.scrolled .mobile-user-info:active {
    background: rgba(0, 0, 0, 0.05);
  }

  .mobile-user-name {
    font-size: 0.85rem;
    font-weight: 600;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  }

  .navbar.scrolled .mobile-user-name {
    color: var(--muted-foreground);
    text-shadow: none;
  }

  .mobile-user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
    letter-spacing: 0;
  }

  .mobile-user-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.92);
  }
}

/* ===== 汉堡菜单按钮 ===== */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  gap: 5px;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.navbar.scrolled .mobile-menu-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar.scrolled .hamburger-line {
  background: var(--muted-foreground);
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== 通知徽章 ===== */
.notification-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ef4444;
  color: white;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
  margin-left: 4px;
}

.dropdown-arrow {
  font-size: 10px;
  margin-left: 2px;
}

/* ===== 桌面端下拉菜单切换 ===== */
.desktop-dropdown .dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: var(--radius-sm);
  min-height: 40px;
  min-width: 40px;
  transition: all 0.2s;
}

.desktop-dropdown .dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

.navbar.scrolled .desktop-dropdown .dropdown-toggle {
  color: var(--muted-foreground);
}

.navbar.scrolled .desktop-dropdown .dropdown-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* ===== 移动端菜单 ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: calc(64px + env(safe-area-inset-top, 0px));
  right: 12px;
  left: auto;
  width: auto;
  min-width: 180px;
  max-width: calc(100vw - 24px);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-height: calc(100vh - 80px);
  max-height: calc(100dvh - 80px - env(safe-area-inset-top, 0px));
  overflow-y: auto;
  backdrop-filter: blur(20px);
}

.mobile-menu.show {
  display: block;
  animation: mobileMenuFadeIn 0.2s ease-out;
}

@keyframes mobileMenuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu a {
  display: block;
  padding: 14px 20px;
  color: var(--foreground);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  background: rgba(166, 29, 36, 0.08);
  color: var(--primary);
}

.mobile-menu a.is-active,
.dropdown-menu a.is-active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

.mobile-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.mobile-menu-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(166, 29, 36, 0.04);
  font-weight: 500;
  color: var(--foreground);
}

.mobile-menu-logout {
  color: #ef4444 !important;
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
