/* ============================================================
   style.css — 广告标识3D展示站 · 多主题系统
   5套配色: 暖米色 / 深空黑 / 海洋蓝 / 森林绿 / 玫瑰金
   切换方式: data-theme 属性 on <html>
   ============================================================ */

/* 防盗：图片不可拖拽 / 不可选中（正文文字保持可选中，保证可访问性） */
img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

/* ============================================================
   Design Tokens — 默认: 暖米色 (warm)
   ============================================================ */
:root {
  --color-bg:           #f5f1ea;
  --color-bg-soft:      #ebe4d8;
  --color-surface:      #ffffff;
  --color-surface-alt:  #faf6ef;
  --color-surface-2:    #f8f4ec;
  --color-nav-bg:       rgba(245,241,234,0.85);
  --color-nav-mobile:   rgba(245,241,234,0.97);

  --color-primary:      #1a1a1a;
  --color-brand:        #c2410c;
  --color-brand-light:  #ea580c;
  --color-brand-dim:    rgba(194,65,12,0.08);
  --color-brand-glow:   rgba(194,65,12,0.14);

  --color-accent:       #d97706;
  --color-accent-dim:   rgba(217,119,6,0.10);

  --color-text-pri:     #1a1a1a;
  --color-text-sec:     #4b5563;
  --color-text-muted:   #9ca3af;

  --color-border:       #e7e0d2;
  --color-border-soft:  #ede7d9;
  --color-border-act:   #d4c9b3;

  --color-tag-bg:       rgba(194,65,12,0.08);
  --color-tag-text:     #c2410c;
  --color-tag-border:   rgba(194,65,12,0.18);
  --color-tag-hover-bg: rgba(194,65,12,0.14);

  --color-overlay:      rgba(26,26,26,0.55);

  --color-success:      #10b981;
  --color-danger:       #ef4444;

  --hero-grad-1: #8b9a8e;
  --hero-grad-2: #6b7d72;
  --hero-grad-3: #4a5d52;

  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --radius-xl:   24px;
  --radius-2xl:  32px;
  --radius-pill: 999px;

  --shadow-xs:  0 1px 2px rgba(40,30,10,0.04);
  --shadow-sm:  0 2px 6px rgba(40,30,10,0.06);
  --shadow-md:  0 6px 18px rgba(40,30,10,0.08);
  --shadow-lg:  0 14px 36px rgba(40,30,10,0.10);
  --shadow-xl:  0 24px 60px rgba(40,30,10,0.14);
  --shadow-brand: 0 8px 24px rgba(194,65,12,0.22);

  --transition-fast: 0.15s ease;
  --transition:      0.25s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.4s cubic-bezier(0.4,0,0.2,1);

  --nav-h:   72px;
  --max-w:   1320px;

  --font-sans: 'Inter', 'Noto Sans SC', 'Source Han Sans SC', system-ui, -apple-system, sans-serif;
}

/* ——— Theme: 深空黑 (dark) ——— */
[data-theme="dark"] {
  --color-bg:           #0f1117;
  --color-bg-soft:      #1a1d28;
  --color-surface:      #1e2230;
  --color-surface-alt:  #252a3a;
  --color-surface-2:    #232838;
  --color-nav-bg:       rgba(15,17,23,0.85);
  --color-nav-mobile:   rgba(15,17,23,0.97);

  --color-primary:      #e2e8f0;
  --color-brand:        #6366f1;
  --color-brand-light:  #818cf8;
  --color-brand-dim:    rgba(99,102,241,0.12);
  --color-brand-glow:   rgba(99,102,241,0.20);

  --color-accent:       #a78bfa;
  --color-accent-dim:   rgba(167,139,250,0.12);

  --color-text-pri:     #e2e8f0;
  --color-text-sec:     #94a3b8;
  --color-text-muted:   #64748b;

  --color-border:       #2d3344;
  --color-border-soft:  #252a3a;
  --color-border-act:   #3d4458;

  --color-tag-bg:       rgba(99,102,241,0.12);
  --color-tag-text:     #818cf8;
  --color-tag-border:   rgba(99,102,241,0.22);
  --color-tag-hover-bg: rgba(99,102,241,0.20);

  --color-overlay:      rgba(0,0,0,0.70);

  --hero-grad-1: #2d3148;
  --hero-grad-2: #1e2238;
  --hero-grad-3: #0f1117;

  --shadow-xs:  0 1px 2px rgba(0,0,0,0.20);
  --shadow-sm:  0 2px 6px rgba(0,0,0,0.25);
  --shadow-md:  0 6px 18px rgba(0,0,0,0.30);
  --shadow-lg:  0 14px 36px rgba(0,0,0,0.35);
  --shadow-xl:  0 24px 60px rgba(0,0,0,0.45);
  --shadow-brand: 0 8px 24px rgba(99,102,241,0.30);
}

/* ——— Theme: 海洋蓝 (ocean) ——— */
[data-theme="ocean"] {
  --color-bg:           #f0f5fa;
  --color-bg-soft:      #e0ebf5;
  --color-surface:      #ffffff;
  --color-surface-alt:  #f5f9fc;
  --color-surface-2:    #eef5fb;
  --color-nav-bg:       rgba(240,245,250,0.85);
  --color-nav-mobile:   rgba(240,245,250,0.97);

  --color-primary:      #1a1a1a;
  --color-brand:        #0369a1;
  --color-brand-light:  #0ea5e9;
  --color-brand-dim:    rgba(3,105,161,0.08);
  --color-brand-glow:   rgba(3,105,161,0.14);

  --color-accent:       #0ea5e9;
  --color-accent-dim:   rgba(14,165,233,0.10);

  --color-text-pri:     #0c1e2e;
  --color-text-sec:     #475569;
  --color-text-muted:   #94a3b8;

  --color-border:       #d6e4f0;
  --color-border-soft:  #e6f0f8;
  --color-border-act:   #b8d4e8;

  --color-tag-bg:       rgba(3,105,161,0.08);
  --color-tag-text:     #0369a1;
  --color-tag-border:   rgba(3,105,161,0.18);
  --color-tag-hover-bg: rgba(3,105,161,0.14);

  --color-overlay:      rgba(12,30,46,0.55);

  --hero-grad-1: #6ba3c8;
  --hero-grad-2: #3a7ca5;
  --hero-grad-3: #1e5a82;

  --shadow-xs:  0 1px 2px rgba(10,40,80,0.04);
  --shadow-sm:  0 2px 6px rgba(10,40,80,0.06);
  --shadow-md:  0 6px 18px rgba(10,40,80,0.08);
  --shadow-lg:  0 14px 36px rgba(10,40,80,0.10);
  --shadow-xl:  0 24px 60px rgba(10,40,80,0.14);
  --shadow-brand: 0 8px 24px rgba(3,105,161,0.22);
}

/* ——— Theme: 森林绿 (forest) ——— */
[data-theme="forest"] {
  --color-bg:           #f4f7f2;
  --color-bg-soft:      #e8efe5;
  --color-surface:      #ffffff;
  --color-surface-alt:  #f7faf5;
  --color-surface-2:    #f0f5ec;
  --color-nav-bg:       rgba(244,247,242,0.85);
  --color-nav-mobile:   rgba(244,247,242,0.97);

  --color-primary:      #1a2a1a;
  --color-brand:        #2d6a4f;
  --color-brand-light:  #40916c;
  --color-brand-dim:    rgba(45,106,79,0.08);
  --color-brand-glow:   rgba(45,106,79,0.14);

  --color-accent:       #52b788;
  --color-accent-dim:   rgba(82,183,136,0.10);

  --color-text-pri:     #1a2a1a;
  --color-text-sec:     #495057;
  --color-text-muted:   #8a998a;

  --color-border:       #d8e4d4;
  --color-border-soft:  #e4ece0;
  --color-border-act:   #c0d0b8;

  --color-tag-bg:       rgba(45,106,79,0.08);
  --color-tag-text:     #2d6a4f;
  --color-tag-border:   rgba(45,106,79,0.18);
  --color-tag-hover-bg: rgba(45,106,79,0.14);

  --color-overlay:      rgba(26,42,26,0.55);

  --hero-grad-1: #6b9b7a;
  --hero-grad-2: #4a7a5a;
  --hero-grad-3: #2d5a3e;

  --shadow-xs:  0 1px 2px rgba(20,50,30,0.04);
  --shadow-sm:  0 2px 6px rgba(20,50,30,0.06);
  --shadow-md:  0 6px 18px rgba(20,50,30,0.08);
  --shadow-lg:  0 14px 36px rgba(20,50,30,0.10);
  --shadow-xl:  0 24px 60px rgba(20,50,30,0.14);
  --shadow-brand: 0 8px 24px rgba(45,106,79,0.22);
}

/* ——— Theme: 玫瑰金 (rose) ——— */
[data-theme="rose"] {
  --color-bg:           #faf5f3;
  --color-bg-soft:      #f0e6e1;
  --color-surface:      #ffffff;
  --color-surface-alt:  #fdf8f6;
  --color-surface-2:    #f8f0ed;
  --color-nav-bg:       rgba(250,245,243,0.85);
  --color-nav-mobile:   rgba(250,245,243,0.97);

  --color-primary:      #1a1a1a;
  --color-brand:        #be185d;
  --color-brand-light:  #e11d63;
  --color-brand-dim:    rgba(190,24,93,0.08);
  --color-brand-glow:   rgba(190,24,93,0.14);

  --color-accent:       #f43f5e;
  --color-accent-dim:   rgba(244,63,94,0.10);

  --color-text-pri:     #1a1a1a;
  --color-text-sec:     #6b4a4a;
  --color-text-muted:   #b0979a;

  --color-border:       #ecd6d0;
  --color-border-soft:  #f2e4df;
  --color-border-act:   #d4b8b0;

  --color-tag-bg:       rgba(190,24,93,0.08);
  --color-tag-text:     #be185d;
  --color-tag-border:   rgba(190,24,93,0.18);
  --color-tag-hover-bg: rgba(190,24,93,0.14);

  --color-overlay:      rgba(50,20,30,0.55);

  --hero-grad-1: #c89a9a;
  --hero-grad-2: #a86a6a;
  --hero-grad-3: #7a3a4a;

  --shadow-xs:  0 1px 2px rgba(80,30,40,0.04);
  --shadow-sm:  0 2px 6px rgba(80,30,40,0.06);
  --shadow-md:  0 6px 18px rgba(80,30,40,0.08);
  --shadow-lg:  0 14px 36px rgba(80,30,40,0.10);
  --shadow-xl:  0 24px 60px rgba(80,30,40,0.14);
  --shadow-brand: 0 8px 24px rgba(190,24,93,0.22);
}

/* ============================================================
   基础重置
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text-pri);
  min-height: 100vh;
  line-height: 1.6;
  padding-top: var(--nav-h);
  transition: background-color 0.3s ease, color 0.3s ease;
  display: flex;
  flex-direction: column;
}
/* 内容区撑开，footer 在内容不足时落到底部（sticky footer）
   注意：body 是 flex 纵向容器，所有用 max-width + margin:0 auto 居中的
   顶层块（main / .hero / .page-hero）作为 flex 子项都需显式 width:100%，
   否则横向 auto 边距会关闭 stretch，使其塌成内容宽度（首页网格变单列、Hero 变窄） */
main { flex: 1 0 auto; width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--color-brand-dim); color: var(--color-brand); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border-act); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-muted); }

/* ============================================================
   导航区 — .nav (毛玻璃)
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--color-nav-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--color-border-soft);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 36px;
  gap: 20px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}
.nav__logo:hover { opacity: 0.85; }
.nav__logo-img { width: 36px; height: 36px; object-fit: contain; }
.nav__logo-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav__cats {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  flex-wrap: wrap;
  list-style: none;
}
.nav__cat-btn {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-sec);
  transition: var(--transition-fast);
  white-space: nowrap;
}
.nav__cat-btn:hover {
  color: var(--color-primary);
  background: rgba(128,128,128,0.06);
}
.nav__cat-btn.is-active {
  background: var(--color-brand);
  color: #fff;
}

/* 导航内联链接（如「合作共赢」）— 固定位于搜索框左侧 */
.nav__link {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-sec);
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition-fast);
}
.nav__link:hover {
  color: var(--color-primary);
  background: rgba(128,128,128,0.06);
}
.nav__link.is-active {
  color: #fff;
  background: var(--color-brand);
}

.nav__search {
  display: flex;
  align-items: center;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  transition: var(--transition-fast);
  flex-shrink: 0;
}
.nav__search:focus-within {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px var(--color-brand-dim);
}
.nav__search-input {
  background: none;
  border: none;
  outline: none;
  padding: 9px 16px;
  font-size: 13px;
  color: var(--color-text-pri);
  width: 200px;
}
.nav__search-input::placeholder { color: var(--color-text-muted); }
.nav__search-btn {
  padding: 9px 14px;
  color: var(--color-text-muted);
  font-size: 15px;
  transition: color var(--transition-fast);
}
.nav__search-btn:hover { color: var(--color-brand); }

/* ——— 主题切换器 — .theme-switcher ——— */
.theme-switcher {
  position: relative;
  flex-shrink: 0;
}
.theme-switcher__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--color-text-sec);
  transition: var(--transition-fast);
}
.theme-switcher__btn:hover {
  background: rgba(128,128,128,0.08);
  color: var(--color-brand);
}
.theme-switcher__btn svg { display: block; }
.theme-switcher__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  min-width: 156px;
  display: none;
  z-index: 110;
}
.theme-switcher__dropdown.is-open { display: block; }
.theme-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--color-text-sec);
  transition: var(--transition-fast);
  text-align: left;
}
.theme-option:hover {
  background: var(--color-bg-soft);
  color: var(--color-text-pri);
}
.theme-option.is-active {
  background: var(--color-brand-dim);
  color: var(--color-brand);
  font-weight: 600;
}
.theme-option__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--color-surface);
  box-shadow: 0 0 0 1px var(--color-border);
  flex-shrink: 0;
}

.nav__hamburger {
  display: none;
  color: var(--color-primary);
  font-size: 22px;
  padding: 4px;
}

/* ============================================================
   Hero 横幅
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 320px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 36px 0;
  overflow: hidden;
}
.hero__inner {
  position: relative;
  height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--hero-grad-1) 0%, var(--hero-grad-2) 50%, var(--hero-grad-3) 100%);
  display: flex;
  align-items: center;
  padding: 0 48px;
  box-shadow: var(--shadow-md);
  transition: background 0.3s ease;
}
.hero__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 30%, rgba(255,200,150,0.30), transparent 60%),
    radial-gradient(ellipse 80% 50% at 20% 90%, rgba(40,60,80,0.40), transparent 70%),
    linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.35) 100%);
  z-index: 1;
}
.hero__inner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background:
    radial-gradient(ellipse 25% 100% at 15% 100%, rgba(0,0,0,0.25), transparent 60%),
    radial-gradient(ellipse 30% 100% at 50% 100%, rgba(0,0,0,0.30), transparent 60%),
    radial-gradient(ellipse 25% 100% at 85% 100%, rgba(0,0,0,0.25), transparent 60%);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  color: #fff;
}
/* 背景图层：配置 backgroundImage 时由 JS 注入 url()，留空则透明显示主题渐变 */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 12px;
}
.hero__title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.hero__subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  text-shadow: 0 1px 4px rgba(0,0,0,0.20);
}

/* ============================================================
   主体容器
   ============================================================ */
.main-wrap {
  padding: 32px 36px 56px;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ============================================================
   筛选/状态区 — .filter-bar
   ============================================================ */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 10px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  gap: 12px;
  flex-wrap: wrap;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.filter-bar__count {
  font-size: 13px;
  color: var(--color-text-sec);
  display: flex;
  align-items: center;
  gap: 6px;
}
.filter-bar__count strong {
  color: var(--color-brand);
  font-weight: 700;
  font-size: 15px;
}
.filter-bar__clear {
  color: var(--color-brand);
  font-size: 13px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-brand-dim);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 4px;
}
.filter-bar__clear:hover { background: var(--color-brand-glow); }

/* ============================================================
   图片网格区 — .grid
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* ——— 图片卡片 ——— */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    background-color 0.3s ease;
  position: relative;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-act);
  box-shadow: var(--shadow-md);
}
.card:focus-visible {
  outline: 2.5px solid var(--color-brand);
  outline-offset: 2px;
}

.card__img-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 75%;
  overflow: hidden;
  background: var(--color-bg-soft);
}
.card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.card:hover .card__img { transform: scale(1.05); }

.card__img-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--color-surface-2) 25%, var(--color-bg-soft) 50%, var(--color-surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.card__img-placeholder.is-loaded { display: none; }

.card__watermark {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  pointer-events: none;
  z-index: 2;
  white-space: nowrap;
}

.card__body {
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-pri);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-text-muted);
}
.card__category {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  background: var(--color-bg-soft);
  color: var(--color-text-sec);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 500;
}
.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* 悬停遮罩 — 仅查看按钮 */
.card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, var(--color-overlay) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 3;
}
.card:hover .card__overlay { opacity: 1; }
.card__overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.95);
  color: #1a1a1a;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  transform: translateY(8px);
  transition: transform var(--transition);
  box-shadow: var(--shadow-md);
}
.card:hover .card__overlay-btn { transform: translateY(0); }

/* ——— 标签药丸 — .tag ——— */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 500;
  background: var(--color-tag-bg);
  color: var(--color-tag-text);
  border: 1px solid var(--color-tag-border);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  position: relative;
  z-index: 4;
}
.tag:hover {
  background: var(--color-tag-hover-bg);
  border-color: var(--color-brand);
}

/* ============================================================
   空状态
   ============================================================ */
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 80px 24px;
  background: var(--color-surface);
  border: 1px dashed var(--color-border-act);
  border-radius: var(--radius-lg);
}
.empty-state__icon {
  font-size: 48px;
  margin-bottom: 14px;
  opacity: 0.3;
  display: block;
}
.empty-state__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-sec);
  margin-bottom: 6px;
}
.empty-state__sub { font-size: 13px; color: var(--color-text-muted); }

/* ============================================================
   分页
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.pagination__btn {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-sec);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition-fast);
  min-width: 38px;
  text-align: center;
}
.pagination__btn:hover:not(:disabled) {
  border-color: var(--color-brand);
  color: var(--color-brand);
  background: var(--color-brand-dim);
}
.pagination__btn.is-active {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
  font-weight: 700;
}
.pagination__btn:disabled { opacity: 0.35; cursor: not-allowed; }
.pagination__ellipsis {
  color: var(--color-text-muted);
  font-size: 13px;
  padding: 0 4px;
}

/* ============================================================
   详情页 — .detail-page
   ============================================================ */
.detail-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 36px 40px;
}

/* 面包屑 + 返回 */
.detail-page__topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.detail-page__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-sec);
  transition: var(--transition-fast);
  flex-shrink: 0;
}
.detail-page__back:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
  background: var(--color-brand-dim);
}
.detail-page__breadcrumb {
  font-size: 13px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.detail-page__breadcrumb a {
  color: var(--color-text-sec);
  transition: color var(--transition-fast);
}
.detail-page__breadcrumb a:hover { color: var(--color-brand); }
.detail-page__sep { color: var(--color-text-muted); opacity: 0.5; }

/* 3D 预览视口 — 透明背景，整体与页面底色融合 */
.detail-page__viewport {
  position: relative;
  background: transparent;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.detail-page__viewport-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-sec);
  padding: 7px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 11;
}
.detail-page__live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 6px var(--color-success);
  animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* 3D 画框：完全透明，无边框无阴影，模型直接融入页面底色 */
.detail-page__frame {
  position: relative;
  flex: 1;
  min-height: 520px;
  min-height: max(520px, calc(100vh - 400px));
  overflow: hidden;
  background: transparent;
  border-radius: var(--radius-xl);   /* 四角统一圆角（顶部两角此前为直角） */
}
.detail-page__iframe {
  position: absolute;
  inset: 0;
  border: none;
  width: 100%;
  height: 100%;
  background: transparent;
}

/* 背景图临时预览控制 — 默认无背景；上传本地图临时垫到模型后，刷新即还原 */
/* 放在左上角，避开 iframe 内右上角的自动旋转按钮 */
.detail-page__bgctrl {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 20;
  display: flex;
  gap: 8px;
  pointer-events: none;            /* 容器不挡模型拖拽，仅按钮可点 */
}
.detail-page__bgctrl > * { pointer-events: auto; }

.detail-page__bgbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 8px 13px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--color-text-pri);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
  user-select: none;
}
.detail-page__bgbtn:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}
.detail-page__bgbtn--clear {
  color: var(--color-danger, #ef4444);
  border-color: var(--color-danger, #ef4444);
}
.detail-page__bgbtn--clear:hover {
  background: var(--color-danger, #ef4444);
  border-color: var(--color-danger, #ef4444);
  color: #fff;
}

/* 作品介绍 — 位于 3D 预览下方 */
.detail-page__intro {
  margin-top: 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

/* 文字介绍区 — 全宽，位于卡片顶部 */
.detail-page__intro-main {
  width: 100%;
}
.detail-page__intro-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.detail-page__intro-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-pri);
  line-height: 1.3;
}
.detail-page__intro-cat {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-tag-text);
  background: var(--color-tag-bg);
  border: 1px solid var(--color-tag-border);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}
.detail-page__intro-desc {
  font-size: 14px;
  color: var(--color-text-sec);
  line-height: 1.8;
  margin-bottom: 14px;
}
.detail-page__intro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* —— 底部行：左效果图 + 右二维码 —— */
.detail-page__intro-bottom {
  margin-top: 18px;
  display: flex;
  align-items: stretch;
  gap: 24px;
}

/* —— 右侧二维码：直接显示，不需要点击 —— */
.detail-page__intro-qr {
  flex: 0 0 auto;
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 14px;
  background: var(--color-surface-2);
  border: 1px dashed var(--color-border-act);
  border-radius: var(--radius-md);
  align-self: flex-start;
}
.detail-page__intro-qr-box {
  width: 160px;
  height: 160px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.detail-page__intro-qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.detail-page__intro-qr-box--empty {
  font-size: 12px;
  color: var(--color-text-muted);
  white-space: pre-line;
  line-height: 1.7;
  padding: 0 6px;
}
.detail-page__intro-qr-wechat {
  font-size: 13px;
  color: var(--color-text-sec);
  margin-bottom: 4px;
}
.detail-page__intro-qr-wechat strong {
  color: var(--color-text-pri);
  font-size: 15px;
  letter-spacing: 0.02em;
  margin-left: 4px;
}
.detail-page__intro-qr-note {
  font-size: 11px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* 效果图 — 位于介绍区块内底部左侧 */
.detail-page__effect {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}
/* 多图并排：每张固定 400 宽，超出容器自动折行 */
.detail-page__effect-item {
  width: 400px;
  max-width: 100%;
  flex: 0 0 auto;
}
.detail-page__effect-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  line-height: 0;
}
.detail-page__effect-wrap img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.detail-page__effect[hidden] { display: none; }

/* 全局水印（位于画框内，跟随主题色） */
.detail-page__watermark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  gap: 50px;
  padding: 0 20px;
  transform: rotate(-22deg) scale(1.5);
}
.detail-page__watermark span {
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--color-text-muted);
  opacity: 0.10;
  letter-spacing: 0.3em;
  text-align: center;
}

/* ============================================================
   底部页脚 — .footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--color-border-soft);
  background: var(--color-surface);
  transition: background-color 0.3s ease, border-color 0.3s ease;
  margin-top: 40px;
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 22px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer__links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-sec);
  transition: color var(--transition-fast);
  position: relative;
  padding: 4px 0;
}
.footer__links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--color-brand);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform var(--transition-fast);
  transform-origin: left;
}
.footer__links a:hover { color: var(--color-brand); }
.footer__links a:hover::after { transform: scaleX(1); }
.footer__copyright {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.7;
  text-align: right;
  max-width: 100%;
  word-break: break-word;
  letter-spacing: 0.02em;
}
.footer__copyright-sep {
  color: var(--color-border-act);
  margin: 0 8px;
}

/* 返回首页按钮（404页） */
.btn-back {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 24px;
  background: var(--color-brand);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition-fast);
}
.btn-back:hover { background: var(--color-brand-light); }

/* ============================================================
   内容页通用样式 — .content-page / .page-hero
   ============================================================ */
.page-hero {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 36px 0;
}
.page-hero__inner {
  position: relative;
  height: 220px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--hero-grad-1) 0%, var(--hero-grad-2) 50%, var(--hero-grad-3) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 48px;
  box-shadow: var(--shadow-md);
}
.page-hero__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 30%, rgba(255,200,150,0.25), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.30) 100%);
}
.page-hero__eyebrow {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 10px;
}
.page-hero__title {
  position: relative;
  z-index: 1;
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.page-hero__subtitle {
  position: relative;
  z-index: 1;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  max-width: 560px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.20);
}

/* 内容主体 */
.content-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 36px 56px;
}

/* 内容区块 */
.content-section {
  margin-bottom: 56px;
}
.content-section__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border-soft);
}
.content-section__lead {
  font-size: 14px;
  color: var(--color-text-sec);
  line-height: 1.85;
  margin-bottom: 24px;
  max-width: 760px;
}
.content-section__num {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-brand);
  font-family: 'Inter', monospace;
  letter-spacing: 0.05em;
}
.content-section__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-pri);
}
.content-section__body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-sec);
}
.content-section__body p {
  margin-bottom: 14px;
}

/* 功能卡片网格 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}
.feature-card:hover {
  border-color: var(--color-border-act);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-card__icon {
  font-size: 28px;
  color: var(--color-brand);
  margin-bottom: 14px;
  line-height: 1;
}
.feature-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-pri);
  margin-bottom: 8px;
}
.feature-card__desc {
  font-size: 13px;
  color: var(--color-text-sec);
  line-height: 1.7;
}

/* ===== 合作方式 / 方案卡片 ===== */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.plan-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  position: relative;
  transition: var(--transition);
}
.plan-card:hover {
  border-color: var(--color-border-act);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.plan-card--highlight {
  border-color: var(--color-brand);
  box-shadow: 0 10px 34px var(--color-brand-dim);
}
.plan-card__tag {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--color-brand);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.plan-card__num {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--color-brand-dim);
  color: var(--color-brand);
  font-size: 14px; font-weight: 700;
  margin-bottom: 16px;
}
.plan-card__title {
  font-size: 17px; font-weight: 700;
  color: var(--color-text-pri);
  margin-bottom: 10px;
}
.plan-card__desc {
  font-size: 13px;
  color: var(--color-text-sec);
  line-height: 1.75;
  margin-bottom: 18px;
  flex: 1;
}
.plan-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 18px;
}
.plan-card__price-num {
  font-size: 28px; font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}
.plan-card__price-note {
  font-size: 15px; font-weight: 700;
  color: var(--color-primary);
}
.plan-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.plan-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: var(--transition-fast);
  flex: 1;
  min-width: 120px;
}
.plan-card__btn--primary {
  background: var(--color-brand);
  color: #fff;
}
.plan-card__btn--primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 18px var(--color-brand-dim);
}
.plan-card__btn--ghost {
  background: transparent;
  color: var(--color-brand);
  border-color: var(--color-brand);
}
.plan-card__btn--ghost:hover {
  background: var(--color-brand-dim);
}

/* ===== 合作页：交付内容列表 ===== */
.plan-card__list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan-card__list li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  color: var(--color-text-sec);
  line-height: 1.6;
}
.plan-card__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-brand);
  opacity: 0.75;
}

/* ===== 合作页：联系我们（微信二维码为主） ===== */
.coop-contact {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}
.coop-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 18px;
  background: var(--color-surface-2);
  border: 1px dashed var(--color-border-act);
  border-radius: var(--radius-lg);
}
.coop-qr__box {
  width: 180px;
  height: 180px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.coop-qr__box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.coop-qr__box--empty {
  font-size: 12px;
  color: var(--color-text-muted);
  white-space: pre-line;
  line-height: 1.7;
  padding: 0 8px;
}
.coop-qr__wechat {
  font-size: 13px;
  color: var(--color-text-sec);
  margin-bottom: 6px;
}
.coop-qr__wechat strong {
  color: var(--color-text-pri);
  font-size: 15px;
  letter-spacing: 0.02em;
  margin-left: 4px;
}
.coop-qr__note {
  font-size: 11px;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.coop-contact__side {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

/* 价值观网格 */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.value-item {
  padding: 0 0 0 20px;
  border-left: 3px solid var(--color-brand);
}
.value-item__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-pri);
  margin-bottom: 8px;
}
.value-item__desc {
  font-size: 14px;
  color: var(--color-text-sec);
  line-height: 1.7;
}

/* 数据统计行 */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.stats-item {
  text-align: center;
  padding: 28px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
}
.stats-item__num {
  font-size: 38px;
  font-weight: 700;
  color: var(--color-brand);
  line-height: 1;
  margin-bottom: 8px;
}
.stats-item__num span {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-left: 2px;
}
.stats-item__label {
  font-size: 13px;
  color: var(--color-text-sec);
  letter-spacing: 0.05em;
}

/* 优势列表 */
.advantage-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.advantage-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  transition: var(--transition-fast);
}
.advantage-item:hover {
  border-color: var(--color-border-act);
  box-shadow: var(--shadow-sm);
}
.advantage-item__num {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-brand);
  opacity: 0.3;
  font-family: 'Inter', monospace;
  flex-shrink: 0;
  min-width: 40px;
}
.advantage-item__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-pri);
  margin-bottom: 6px;
}
.advantage-item__desc {
  font-size: 14px;
  color: var(--color-text-sec);
  line-height: 1.7;
}

/* 合作流程 */
.process-flow {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
}
.process-step {
  flex: 1;
  min-width: 160px;
  text-align: center;
  padding: 24px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  position: relative;
}
.process-step__dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-brand);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.process-step__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-pri);
  margin-bottom: 6px;
}
.process-step__desc {
  font-size: 12px;
  color: var(--color-text-sec);
  line-height: 1.6;
}
.process-step__arrow {
  display: flex;
  align-items: center;
  color: var(--color-text-muted);
  font-size: 20px;
  padding: 0 4px;
}

/* 联系方式网格 */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.contact-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.contact-card:hover {
  border-color: var(--color-brand);
  box-shadow: var(--shadow-md);
}
.contact-card__icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.contact-card__label {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}
.contact-card__value {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-pri);
  margin-bottom: 4px;
}
.contact-card__note {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* CTA 区域 */
.content-cta {
  text-align: center;
  padding: 48px 24px;
  background: linear-gradient(135deg, var(--color-brand-dim), var(--color-accent-dim));
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-soft);
}
.content-cta__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-pri);
  margin-bottom: 8px;
}
.content-cta__desc {
  font-size: 14px;
  color: var(--color-text-sec);
  margin-bottom: 20px;
}
.content-cta__btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--color-brand);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-brand);
}
.content-cta__btn:hover {
  background: var(--color-brand-light);
  transform: translateY(-2px);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .hero { padding: 0 20px; }
  .hero__inner { padding: 0 32px; }
  .hero__title { font-size: 30px; }
  .main-wrap { padding-left: 20px; padding-right: 20px; }
  .detail-page { padding: 16px 20px 32px; }
  .detail-page__frame { min-height: 440px; }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero { padding: 0 20px; }
  .page-hero__inner { padding: 0 32px; }
  .content-page { padding: 32px 20px 48px; }
}

@media (max-width: 900px) {
  .nav__cats { display: none; }
  .nav__cats.is-mobile-open {
    display: flex;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--color-nav-mobile);
    backdrop-filter: blur(20px);
    padding: 14px 20px;
    border-bottom: 1px solid var(--color-border-soft);
    z-index: 99;
    flex-wrap: wrap;
    gap: 8px;
  }
  .nav__hamburger { display: block; order: 5; }
  .theme-switcher { order: 6; }
  .nav__search-input { width: 140px; }
  .hero { height: 240px; }
  .hero__title { font-size: 24px; }
  .hero__subtitle { font-size: 13px; }
  .detail-page__frame { min-height: 380px; }
  .detail-page__intro { padding: 18px 18px; }
  .page-hero__inner { height: 180px; padding: 0 24px; }
  .page-hero__title { font-size: 26px; }
  .process-flow { flex-direction: column; }
  .process-step__arrow { display: none; }
}

@media (max-width: 600px) {
  .main-wrap { padding-left: 14px; padding-right: 14px; padding-top: 20px; }
  .nav { padding: 0 14px; gap: 8px; }
  .nav__logo-text { font-size: 14px; }
  .nav__link { display: none; }
  /* 搜索框弹性收缩：把多余/不足空间吃掉，保证右侧汉堡与换肤按钮不被挤出视口 */
  .nav__search { flex: 1 1 auto; min-width: 0; }
  .nav__search-input { width: 100%; font-size: 12px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .card__body { padding: 10px 12px 12px; gap: 6px; }
  .card__title { font-size: 13px; }
  .card__category { font-size: 10px; padding: 1px 8px; }
  .tag { font-size: 10px; padding: 2px 7px; }
  .hero { margin-top: 16px; padding: 0 14px; height: 200px; }
  .hero__inner { padding: 0 20px; border-radius: var(--radius-lg); }
  .hero__title { font-size: 18px; margin-bottom: 8px; }
  .hero__eyebrow { font-size: 9px; margin-bottom: 6px; }
  .hero__subtitle { font-size: 11px; }
  .detail-page { padding: 12px 14px 24px; }
  .detail-page__frame { min-height: 320px; }
  .plan-grid { grid-template-columns: 1fr; }
  .detail-page__intro { padding: 16px 14px; }
  .detail-page__intro-title { font-size: 18px; }
  .detail-page__breadcrumb { font-size: 12px; }
  .page-hero { padding: 0 14px; }
  .page-hero__inner { height: 150px; padding: 0 20px; border-radius: var(--radius-lg); }
  .page-hero__title { font-size: 20px; }
  .page-hero__subtitle { font-size: 12px; }
  .content-page { padding: 24px 14px 40px; }
  .content-section { margin-bottom: 40px; }
  .content-section__title { font-size: 18px; }
  .feature-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stats-item__num { font-size: 30px; }
  .advantage-item { flex-direction: column; gap: 8px; padding: 18px; }
  .contact-grid { grid-template-columns: 1fr; }
  .coop-contact { grid-template-columns: 1fr; }
  .coop-qr { padding: 20px 16px; }
  .coop-contact__side { grid-template-columns: 1fr; }
  .content-cta { padding: 32px 16px; }
  .content-cta__title { font-size: 20px; }
  .footer__inner { padding: 20px 16px; flex-direction: column; gap: 14px; text-align: center; align-items: center; }
  .footer__links { justify-content: center; gap: 20px; }
  .footer__copyright { text-align: center; }
}

/* ============================================================
   详情页 · 介绍区右侧二维码（直接显示，不需点击）
   移动端：自动换到下方，全宽
   ============================================================ */
@media (max-width: 760px) {
  .detail-page__intro-bottom {
    flex-direction: column;
    gap: 18px;
  }
  .detail-page__intro-qr {
    width: 100%;
    align-self: stretch;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
  }
  .detail-page__intro-qr-box {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    margin-bottom: 0;
  }
  .detail-page__intro-qr-text {
    flex: 1 1 auto;
    text-align: left;
  }
  .detail-page__intro-qr-wechat {
    margin-bottom: 4px;
    font-size: 13px;
  }
  .detail-page__intro-qr-note {
    font-size: 11px;
  }
}
@media (max-width: 600px) {
  .detail-page__intro { padding: 16px 14px; }
  .detail-page__intro-title { font-size: 18px; }
}
/* 多图在窄屏自适应列数：中屏 2 列，超窄屏 1 列 */
@media (max-width: 760px) {
  .detail-page__effect-item { width: calc(50% - 8px); }
}
@media (max-width: 480px) {
  .detail-page__effect-item { width: 100%; }
}
