/* ============================================
   漫岛动漫 mddmapp.cn 官网样式
   主题：暗夜蓝 × 灯塔暖金
   ============================================ */

:root {
  --primary: #FFB62E;
  --primary-deep: #E8961C;
  --primary-soft: #FFD27A;
  --primary-light: rgba(255, 182, 46, 0.14);
  --gradient: linear-gradient(135deg, #FFC94D 0%, #F59E0B 100%);
  --bg: #0B1220;
  --bg-soft: #0E1730;
  --card: #141F36;
  --card-warm: #18253F;
  --text: #EDF2FA;
  --text-sub: #8FA3C4;
  --border: rgba(237, 242, 250, 0.1);
  --success: #4ADE80;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
  --header-h: 68px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text);
}

.section-head p {
  color: var(--text-sub);
  font-size: 16px;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-primary {
  background: var(--gradient);
  color: #201507;
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.42);
}

.btn-ghost {
  background: var(--card);
  color: var(--primary);
  border: 1.5px solid rgba(255, 182, 46, 0.5);
}

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

.btn-light {
  background: #201507;
  color: #FFC94D;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.btn-lg {
  padding: 14px 34px;
  font-size: 16px;
}

.btn-sm {
  padding: 9px 20px;
  font-size: 14px;
}

/* ===== 顶部导航 ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(11, 18, 32, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.main-nav a {
  font-size: 15px;
  color: var(--text-sub);
  font-weight: 600;
  position: relative;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
  transition: width 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.nav-download {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 72px;
  background:
    radial-gradient(1100px 480px at 88% -10%, rgba(255, 182, 46, 0.14) 0%, rgba(11, 18, 32, 0) 60%),
    radial-gradient(900px 420px at 0% 20%, rgba(232, 150, 28, 0.1) 0%, rgba(11, 18, 32, 0) 55%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 82%, rgba(232, 150, 28, 0.1) 0, transparent 26%),
    radial-gradient(circle at 85% 35%, rgba(255, 182, 46, 0.1) 0, transparent 22%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: var(--card);
  border: 1px solid rgba(255, 182, 46, 0.4);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.22;
  margin-bottom: 18px;
  color: var(--text);
}

.gradient-text {
  background: linear-gradient(120deg, #FFC94D 0%, #F59E0B 55%, #E8961C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-sub);
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-meta {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 22px;
}

.hot-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hot-tags-label {
  font-size: 13px;
  color: var(--text-sub);
  font-weight: 700;
}

.tag {
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-sub);
  transition: all 0.2s ease;
}

.tag:hover {
  color: #201507;
  background: var(--gradient);
  border-color: transparent;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-art-wrap {
  position: relative;
  width: 300px;
  border-radius: 28px;
  padding: 10px;
  background: var(--card);
  border: 1px solid rgba(255, 182, 46, 0.4);
  box-shadow: var(--shadow-lg);
}

.hero-art-wrap img {
  border-radius: 20px;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.art-glow {
  position: absolute;
  inset: -8px;
  border-radius: 34px;
  background: var(--gradient);
  opacity: 0.18;
  filter: blur(20px);
  z-index: -1;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid rgba(255, 182, 46, 0.35);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
}

.float-card svg {
  color: var(--primary);
  flex-shrink: 0;
}

.float-card b {
  display: block;
  font-size: 13px;
  line-height: 1.3;
  color: var(--text);
}

.float-card span {
  font-size: 12px;
  color: var(--text-sub);
}

.fc-1 {
  top: 12%;
  left: -8%;
  animation-delay: 0s;
}

.fc-2 {
  bottom: 14%;
  right: -10%;
  animation-delay: 2.2s;
}

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

/* ===== 数据统计 ===== */
.stats {
  background: var(--gradient);
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 200px at 20% 0%, rgba(255, 255, 255, 0.25) 0, transparent 60%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  color: #201507;
}

.stat-item b {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.1;
}

.stat-item span {
  font-size: 20px;
  font-weight: 700;
  margin-left: 2px;
}

.stat-item p {
  font-size: 14px;
  opacity: 0.85;
  margin-top: 4px;
}

/* ===== 核心功能 ===== */
.features {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 182, 46, 0.5);
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #201507;
  margin-bottom: 18px;
}

.fi-1 { background: linear-gradient(135deg, #FFD27A, #F59E0B); }
.fi-2 { background: linear-gradient(135deg, #FFC94D, #E8961C); }
.fi-3 { background: linear-gradient(135deg, #FFDD8F, #F59E0B); }
.fi-4 { background: linear-gradient(135deg, #FFB62E, #E8961C); }
.fi-5 { background: linear-gradient(135deg, #FFD27A, #E8961C); }
.fi-6 { background: linear-gradient(135deg, #FFC94D, #D97706); }

.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p {
  font-size: 14.5px;
  color: var(--text-sub);
}

/* ===== 精选作品 ===== */
.picks {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

.picks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 920px;
  margin: 0 auto;
}

.pick-card {
  text-align: center;
}

.pick-cover {
  border-radius: 22px;
  padding: 9px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.pick-card:hover .pick-cover {
  transform: translateY(-6px);
  border-color: rgba(255, 182, 46, 0.55);
}

.pick-cover img {
  border-radius: 15px;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.pick-card figcaption {
  margin-top: 14px;
}

.pick-card figcaption b {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

.pick-card figcaption span {
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 3px;
}

/* ===== 漫画搜索实验室 ===== */
.search-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  max-width: 980px;
  margin: 0 auto;
}

.filter-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(237, 242, 250, 0.14);
}

.filter-row:last-of-type {
  border-bottom: none;
}

.filter-label {
  flex-shrink: 0;
  width: 44px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  padding-top: 6px;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  font-size: 13.5px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--card-warm);
  border: 1px solid transparent;
  color: var(--text-sub);
  transition: all 0.2s ease;
}

.chip:hover {
  border-color: rgba(255, 182, 46, 0.55);
  color: var(--primary);
}

.chip.active {
  background: var(--gradient);
  color: #201507;
  font-weight: 700;
}

.search-result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-sub);
  letter-spacing: 1px;
  padding: 18px 0 12px;
}

.search-result-head b {
  color: var(--primary);
  font-size: 15px;
}

.result-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 12px;
  background: var(--card-warm);
  border: 1px solid var(--border);
  font-size: 14.5px;
  color: var(--text);
  transition: all 0.2s ease;
}

.result-item:hover {
  border-color: rgba(255, 182, 46, 0.5);
  background: var(--primary-light);
  transform: translateX(4px);
}

.result-item .r-tags {
  margin-left: auto;
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.result-item .r-tag {
  font-size: 11.5px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
}

.result-item.empty {
  justify-content: center;
  color: var(--text-sub);
  background: var(--card-warm);
}

/* ===== 榜单中心 ===== */
.rank-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.rank-tab {
  font-size: 14px;
  padding: 8px 24px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-sub);
  transition: all 0.2s ease;
}

.rank-tab.active {
  background: var(--gradient);
  color: #201507;
  border-color: transparent;
  font-weight: 700;
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rank-column {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.rank-column h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text);
}

.rank-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-hot { background: #F59E0B; box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2); }
.dot-new { background: #FFC94D; box-shadow: 0 0 0 4px rgba(255, 201, 77, 0.2); }
.dot-fin { background: #FFDD8F; box-shadow: 0 0 0 4px rgba(255, 221, 143, 0.2); }

.rank-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.rank-item:hover {
  background: var(--card-warm);
}

.rank-no {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rank-item:nth-child(1) .rank-no {
  background: linear-gradient(135deg, #FFDD8F, #F59E0B);
  color: #201507;
}

.rank-item:nth-child(2) .rank-no {
  background: linear-gradient(135deg, #FFC94D, #E8961C);
  color: #201507;
}

.rank-item:nth-child(3) .rank-no {
  background: linear-gradient(135deg, #FFB62E, #D97706);
  color: #201507;
}

.rank-info {
  flex: 1;
  min-width: 0;
}

.rank-info b {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-info span {
  font-size: 12px;
  color: var(--text-sub);
}

.rank-delta {
  font-size: 12px;
  font-weight: 700;
  color: var(--success);
  flex-shrink: 0;
}

.rank-delta.down {
  color: var(--text-sub);
}

.rank-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gradient);
  color: #201507;
  flex-shrink: 0;
}

/* ===== 更新日历 ===== */
.calendar {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.calendar-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 28px;
  max-width: 980px;
  margin: 0 auto;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.cal-day {
  text-align: center;
  padding: 14px 6px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card-warm);
  color: var(--text);
  transition: all 0.2s ease;
  cursor: pointer;
}

.cal-day:hover {
  border-color: rgba(255, 182, 46, 0.55);
}

.cal-day .d-week {
  font-size: 12px;
  color: var(--text-sub);
}

.cal-day .d-date {
  font-size: 15px;
  font-weight: 700;
  margin-top: 2px;
}

.cal-day .d-count {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
}

.cal-day.active {
  background: var(--gradient);
  border-color: transparent;
  color: #201507;
}

.cal-day.active .d-week,
.cal-day.active .d-count {
  color: #201507;
  background: rgba(32, 21, 7, 0.14);
}

.calendar-detail {
  border-top: 1px dashed rgba(237, 242, 250, 0.14);
  padding-top: 20px;
}

.calendar-detail .cd-empty {
  text-align: center;
  color: var(--text-sub);
  font-size: 14px;
  padding: 18px 0;
}

.cd-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.cd-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cd-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--card-warm);
  border: 1px solid var(--border);
}

.cd-item b {
  font-size: 14.5px;
  flex: 1;
  min-width: 0;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cd-item span {
  font-size: 12.5px;
  color: var(--text-sub);
  flex-shrink: 0;
}

.remind-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(255, 182, 46, 0.45);
  transition: all 0.2s ease;
}

.remind-btn.on {
  background: var(--gradient);
  color: #201507;
  border-color: transparent;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.faq-item[open] {
  box-shadow: var(--shadow);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 19px 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-arrow {
  flex-shrink: 0;
  color: var(--primary);
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-arrow {
  transform: rotate(180deg);
}

.faq-item p {
  padding: 0 24px 20px;
  font-size: 14.5px;
  color: var(--text-sub);
}

/* ===== 下载 CTA ===== */
.download-cta .cta-card {
  position: relative;
  text-align: center;
  background: var(--gradient);
  border-radius: 28px;
  padding: 60px 40px;
  color: #201507;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 300px at 12% 0%, rgba(255, 255, 255, 0.3) 0, transparent 55%),
              radial-gradient(500px 240px at 90% 100%, rgba(32, 21, 7, 0.12) 0, transparent 50%);
}

.cta-card > * {
  position: relative;
}

.cta-icon {
  width: 92px;
  height: 92px;
  margin: 0 auto 22px;
  border-radius: 24px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.cta-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.cta-card h2 {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 12px;
}

.cta-card p {
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 15.5px;
  opacity: 0.85;
}

.cta-meta {
  margin-top: 18px;
  font-size: 13px;
  opacity: 0.75;
}

/* ===== 页脚 ===== */
.site-footer {
  background: #060B14;
  color: #7E93B8;
  padding-top: 56px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand .brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: inline-block;
  vertical-align: middle;
}

.footer-brand .brand-name {
  font-size: 20px;
  font-weight: 800;
  vertical-align: middle;
  margin-left: 4px;
  color: #FFD27A;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 14px;
  max-width: 320px;
  line-height: 1.7;
  color: #64799E;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-col h4 {
  font-size: 15px;
  color: #E8EEF8;
  margin-bottom: 14px;
}

.footer-col a,
.footer-static {
  display: block;
  font-size: 13.5px;
  color: #8296BA;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(232, 238, 248, 0.1);
  padding: 20px 0;
}

.footer-bottom p {
  font-size: 13px;
  color: #5C7196;
  text-align: center;
}

.footer-bottom .footer-disclaimer {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.85;
}

/* ===== 回到顶部 ===== */
.back-top {
  position: fixed;
  right: 26px;
  bottom: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient);
  color: #201507;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s ease;
  z-index: 90;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  transform: translateY(-3px);
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%) translateY(16px);
  background: #201507;
  color: #FFE7B3;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 200;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 40px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #0B1220;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
    padding: 10px 24px 18px;
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.28s ease;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav a {
    padding: 13px 4px;
    font-size: 16px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .main-nav a::after {
    display: none;
  }

  .nav-download {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .hot-tags {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .fc-1 {
    left: 2%;
  }

  .fc-2 {
    right: 2%;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .picks-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

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

  .result-list {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .calendar-days {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 560px) {
  .section {
    padding: 60px 0;
  }

  .section-head h2 {
    font-size: 26px;
  }

  .hero {
    padding-top: calc(var(--header-h) + 40px);
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-sub {
    font-size: 15px;
  }

  .btn-lg {
    padding: 13px 24px;
    font-size: 15px;
  }

  .hero-art-wrap {
    width: 240px;
  }

  .float-card {
    padding: 8px 12px;
  }

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

  .picks-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
  }

  .filter-row {
    flex-direction: column;
    gap: 8px;
  }

  .filter-label {
    width: auto;
    padding-top: 0;
  }

  .calendar-days {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .cal-day {
    padding: 10px 4px;
  }

  .cd-item {
    flex-wrap: wrap;
    gap: 8px;
  }

  .cta-card {
    padding: 44px 24px;
  }

  .cta-card h2 {
    font-size: 26px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats .stat-item b {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
