/**
 * ArtInvest Gallery — 艺术品投资/线上收藏平台
 * 中性优雅数字画廊风格
 * 亮色主题：米白 + 浅灰 + 深灰 + 暖金点缀
 * 纯原生 CSS，无框架依赖
 * 基于 PBootCMS V3.2.12 第三方模板模式
 */

/* ============================================================
   CSS 变量体系
   ============================================================ */
:root {
  /* === 基底色 === */
  --bg-page: #FAFAFA;
  --bg-section: #F5F5F5;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8F8F8;
  --bg-dark: #1A1A1A;

  /* === 文字色阶 === */
  --text-primary: #1A1A1A;
  --text-secondary: #525252;
  --text-muted: #999999;
  --text-inverse: #FFFFFF;
  --text-light: #B0B0B0;

  /* === 点缀色（暖金艺术感）=== */
  --accent: #B8977E;
  --accent-hover: #A07860;
  --accent-light: rgba(184, 151, 126, 0.1);
  --accent-dim: rgba(184, 151, 126, 0.06);

  /* === 边框 === */
  --border-light: #E8E8E8;
  --border-card: #EDEDED;
  --border-input: #D9D9D9;
  --border-focus: #B8977E;

  /* === 阴影 === */
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.03);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.08);
  --shadow-nav: 0 1px 0 rgba(0,0,0,0.06);

  /* === 圆角 === */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* === 间距 === */
  --section-py: 100px;
  --section-py-sm: 60px;
  --container-max: 1240px;
  --header-h: 76px;

  /* === 过渡 === */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 800ms;

  /* === 字体 === */
  --font-heading: 'Noto Serif SC','STSong','Songti SC','SimSun','KaiTi',serif;
  --font-body: 'Noto Sans SC','PingFang SC','Hiragino Sans GB','Microsoft YaHei',-apple-system,sans-serif;
  --font-en: 'Cormorant Garamond','Georgia','Times New Roman',serif;
}

/* ============================================================
   全局重置 & 基础
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg-page);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: rgba(184, 151, 126, 0.2);
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol { list-style: none; }

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
}
input::placeholder, textarea::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

/* ============================================================
   排版
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.03em;
}

.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.8;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header--left {
  text-align: left;
}

/* ============================================================
   布局
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 900px;
}

.container--wide {
  max-width: 1400px;
}

.section {
  padding: var(--section-py) 0;
}

.section--sm {
  padding: var(--section-py-sm) 0;
}

.section--light {
  background: var(--bg-section);
}

.section--dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

.section--dark .section-title,
.section--dark .section-subtitle { color: var(--text-inverse); }

/* ============================================================
   Header — 白色实底 + 深色文字
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: background var(--duration-normal), box-shadow var(--duration-normal), border-color var(--duration-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-nav);
  border-bottom-color: var(--border-light);
}

.header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  gap: 36px;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header__logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--text-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.header__logo-text {
  display: flex;
  flex-direction: column;
}

.header__logo-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.header__logo-sub {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* 主导航 */
.header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.header__nav-link {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  position: relative;
}

.header__nav-link:hover,
.header__nav-link.active {
  color: var(--text-primary);
  background: var(--bg-section);
}

.header__nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* 下拉 */
.header__nav-item {
  position: relative;
}

.header__nav-item:hover .header__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--duration-normal) var(--ease-out);
}

.header__dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-out);
}

.header__dropdown a:hover {
  background: var(--bg-section);
  color: var(--text-primary);
}

/* 右侧操作 */
.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  border: 1.5px solid var(--text-primary);
  border-radius: 50px;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.header__cta:hover {
  background: var(--text-primary);
  color: #fff;
}

/* 汉堡菜单 */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
  position: relative;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-out);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 移动端菜单 */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 88vw;
  height: 100vh;
  height: 100dvh;
  background: #fff;
  z-index: 120;
  padding: 80px 24px 40px;
  overflow-y: auto;
  transform: translateX(105%);
  transition: transform 0.35s var(--ease-out);
  box-shadow: -4px 0 40px rgba(0,0,0,0.08);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav__link {
  display: block;
  padding: 14px 0;
  font-size: 1.05rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
  font-weight: 500;
}

.mobile-nav__sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-normal) var(--ease-out);
  padding-left: 16px;
}

.mobile-nav__sub.open {
  max-height: 600px;
}

.mobile-nav__sub a {
  display: block;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.mobile-nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 115;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal);
}

.mobile-nav__overlay.show {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.btn--primary {
  background: var(--text-primary);
  color: #fff;
}

.btn--primary:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--text-primary);
}

.btn--outline:hover {
  background: var(--text-primary);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 20px;
}

.btn--ghost:hover {
  color: var(--text-primary);
}

.btn--accent {
  background: var(--accent);
  color: #fff;
}

.btn--accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(184,151,126,0.3);
}

.btn--lg {
  padding: 15px 36px;
  font-size: 0.95rem;
}

/* ============================================================
   卡片系统
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  display: block;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.card__image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-section);
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slower) var(--ease-out);
}

.card:hover .card__image img {
  transform: scale(1.04);
}

.card__body {
  padding: 20px 24px 24px;
}

.card__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.card__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card__meta i {
  margin-right: 4px;
}

.card__price {
  margin-top: 12px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
}

/* 艺术卡片（大图主导） */
.card--art {
  border-radius: var(--radius-xl);
  border: none;
  box-shadow: var(--shadow-sm);
}

.card--art .card__image {
  aspect-ratio: 3/2;
}

.card--art .card__body {
  padding: 16px 20px 20px;
  text-align: left;
}

/* 艺术家卡片 */
.card--artist {
  text-align: center;
  border: none;
  box-shadow: var(--shadow-sm);
}

.card--artist .card__image {
  aspect-ratio: 1/1;
  border-radius: 50%;
  width: 160px;
  height: 160px;
  margin: 32px auto 0;
}

.card--artist .card__image img {
  border-radius: 50%;
}

/* 分类卡片 */
.card--category {
  text-align: center;
  padding: 32px 20px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}

.card--category:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* ============================================================
   Hero Banner
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 820px;
  overflow: hidden;
  background: var(--bg-section);
}

.hero .swiper {
  width: 100%;
  height: 100%;
}

.hero__slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(250,250,250,0.7) 0%, rgba(250,250,250,0.1) 50%, rgba(250,250,250,0.05) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  width: 90%;
  max-width: 700px;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  line-height: 1.25;
  font-family: var(--font-heading);
}

.hero__subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 36px;
  font-weight: 300;
  letter-spacing: 0.1em;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-pagination {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-pagination .swiper-pagination-bullet {
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--text-muted);
  opacity: 0.4;
  transition: all var(--duration-normal);
}

.hero-pagination .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--text-primary);
  width: 40px;
}

/* 滚动指示 */
.hero__scroll {
  position: absolute;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: var(--text-muted);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50% { transform: scaleY(1.8); opacity: 1; }
}

/* ============================================================
   网格系统
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-grid--4col {
  grid-template-columns: repeat(4, 1fr);
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.list-grid--4col {
  grid-template-columns: repeat(4, 1fr);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* 首页精选作品 2×2 网格 */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* ============================================================
   区块：精选作品
   ============================================================ */
.featured-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   区块：艺术家
   ============================================================ */
.artist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ============================================================
   区块：收藏指南（左图右文交错）
   ============================================================ */
.guide-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.guide-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.guide-item:nth-child(even) {
  direction: rtl;
}

.guide-item:nth-child(even) .guide-item__text {
  direction: ltr;
}

.guide-item__image {
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-section);
}

.guide-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-item__text h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.guide-item__text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ============================================================
   区块：关于我们
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-section);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   区块：数据统计
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item__number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.stat-item__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* ============================================================
   CTA 区块
   ============================================================ */
.cta-section {
  padding: var(--section-py) 0;
  text-align: center;
  background: var(--bg-section);
}

.cta-section__title {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

/* ============================================================
   订阅区块
   ============================================================ */
.subscribe-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 56px 48px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  text-align: center;
}

.subscribe-form {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.subscribe-form input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid var(--border-input);
  border-radius: 50px;
  outline: none;
  font-size: 0.9rem;
  transition: border-color var(--duration-fast);
}

.subscribe-form input:focus {
  border-color: var(--border-focus);
}

/* ============================================================
   内页Banner
   ============================================================ */
.inner-banner {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: var(--bg-section);
}

.inner-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.inner-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 1;
}

.inner-banner__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.inner-banner__title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.inner-banner__subtitle {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.06em;
}

/* ============================================================
   面包屑
   ============================================================ */
.breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  padding: 14px 0;
}

.breadcrumb {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb i { font-size: 0.6rem; margin: 0 8px; }

/* ============================================================
   子栏目过滤栏
   ============================================================ */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  flex-wrap: wrap;
}

.filter-bar a {
  padding: 7px 18px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-radius: 50px;
  transition: all var(--duration-fast);
  border: 1px solid transparent;
}

.filter-bar a:hover,
.filter-bar a.active {
  color: var(--text-primary);
  background: #fff;
  border-color: var(--border-light);
}

/* ============================================================
   作品详情页
   ============================================================ */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.detail-gallery {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-section);
}

.detail-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.detail-info h1 {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 24px;
}

.detail-info__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
  padding: 24px;
  background: var(--bg-section);
  border-radius: var(--radius-md);
}

.detail-info__meta-item dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.detail-info__meta-item dd {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Tab */
.tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.tabs-nav button {
  padding: 12px 24px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.tabs-nav button.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

.tab-panel {
  line-height: 1.9;
  color: var(--text-secondary);
}

.tab-panel.hidden { display: none; }

/* ============================================================
   相关推荐
   ============================================================ */
.related-title {
  font-size: 1.3rem;
  margin: 48px 0 24px;
  font-weight: 500;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ============================================================
   新闻列表
   ============================================================ */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: start;
  transition: all var(--duration-fast);
}

.news-item:first-child {
  padding-top: 0;
}

.news-item:hover .news-item__title {
  color: var(--accent);
}

.news-item__thumb {
  aspect-ratio: 16/10;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-section);
}

.news-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-item__title {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 8px;
  transition: color var(--duration-fast);
}

.news-item__date {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

.news-item__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   文章详情
   ============================================================ */
.detail__header {
  margin-bottom: 32px;
}

.detail__title {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 16px;
}

.detail__meta-row {
  display: flex;
  gap: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.detail__meta-row i { margin-right: 4px; }

.detail__body {
  line-height: 2;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.detail__body p { margin-bottom: 16px; }
.detail__body img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 24px 0;
}

.detail__pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  margin-top: 48px;
  border-top: 1px solid var(--border-light);
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.detail__pager a { color: var(--text-secondary); }
.detail__pager a:hover { color: var(--accent); }

/* ============================================================
   联系方式
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info__item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-info__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  font-size: 1rem;
}

.contact-info__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-info__value {
  color: var(--text-primary);
}

.contact-form-card {
  padding: 36px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}

/* ============================================================
   表单
   ============================================================ */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-group .required {
  color: #E55;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9rem;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  outline: none;
  background: #fff;
  transition: border-color var(--duration-fast);
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(184,151,126,0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* ============================================================
   分页
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 48px;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast);
  background: #fff;
}

.pagination a:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.pagination a.active {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
}

.pagination i { font-size: 0.7rem; }

/* ============================================================
   空状态
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 16px;
  opacity: 0.4;
}

/* ============================================================
   搜索
   ============================================================ */
.search-box {
  max-width: 640px;
  margin: 0 auto;
}

.search-form-row {
  display: flex;
  gap: 12px;
}

.search-input-wrap {
  flex: 1;
  position: relative;
}

.search-input-wrap i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.search-input-wrap input {
  width: 100%;
  padding: 14px 20px 14px 44px;
  border: 1px solid var(--border-input);
  border-radius: 50px;
  outline: none;
  font-size: 0.95rem;
  transition: border-color var(--duration-fast);
}

.search-input-wrap input:focus {
  border-color: var(--border-focus);
}

.search-result-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: start;
  transition: all var(--duration-fast);
}

.search-result-item__thumb {
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-section);
}

.search-result-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-item__title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.search-result-item__date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.search-result-item__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   页脚
   ============================================================ */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 64px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.2fr;
  gap: 40px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px 48px;
}

.footer__brand-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.5);
}

.footer__social {
  display: flex;
  gap: 10px;
}

.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: all var(--duration-fast);
}

.footer__social a:hover {
  border-color: #fff;
  color: #fff;
}

.footer__col-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #fff;
  margin-bottom: 20px;
}

.footer__links a {
  display: block;
  padding: 6px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--duration-fast);
}

.footer__links a:hover {
  color: #fff;
}

.footer__contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer__contact-item i {
  width: 18px;
  margin-top: 3px;
  color: rgba(255,255,255,0.3);
}

.footer__qrcode {
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 8px;
}

.footer__bottom-inner a {
  color: rgba(255,255,255,0.4);
}

.footer__bottom-inner a:hover {
  color: #fff;
}

/* ============================================================
   友情链接
   ============================================================ */
.friend-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.friend-links__label {
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

.friend-links a {
  color: rgba(255,255,255,0.35);
  transition: color var(--duration-fast);
}

.friend-links a:hover {
  color: #fff;
}

/* ============================================================
   返回顶部
   ============================================================ */
.back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--duration-normal) var(--ease-out);
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
}

/* ============================================================
   在线客服
   ============================================================ */
.online-service {
  position: fixed;
  bottom: 88px;
  right: 32px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--text-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 80;
  box-shadow: var(--shadow-md);
  font-size: 1.2rem;
  transition: all var(--duration-normal) var(--ease-out);
}

.online-service:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .gallery-grid,
  .list-grid { grid-template-columns: repeat(2, 1fr); }
  .list-grid--4col,
  .gallery-grid--4col { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .guide-item { grid-template-columns: 1fr; gap: 24px; }
  .guide-item:nth-child(even) { direction: ltr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .artist-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --section-py: 60px;
    --header-h: 64px;
  }

  /* ★ 全局溢出保护 — 防止内容撑破视口 */
  html, body { overflow-x: hidden; width: 100%; }

  /* flex/grid 子元素不撑破父容器 */
  .header__inner, .header__nav, .footer__grid, .list-grid,
  .list-grid--4col, .featured-grid, .gallery-grid, .category-grid, .stats,
  .artist-grid, .about-grid, .detail-layout, .contact-grid,
  .related-grid, .news-item, .guide-item {
    min-width: 0;
  }
  .card, .card--art, .card--artist, .card--category { min-width: 0; }
  .card__image img, .guide-item__image img, .news-item__thumb img,
  .about-image img, .inner-banner__bg { max-width: 100%; }

  /* 移动端 container 防止子元素溢出 */
  .container { padding: 0 20px; }

  .header__nav,
  .header__actions { display: none; }
  .header__inner { gap: 12px; padding: 0 20px; }
  .hamburger { display: flex; }

  .hero { height: 70vh; min-height: 420px; }
  .hero__content { width: 88%; }

  /* 网格统一单列 */
  .gallery-grid,
  .list-grid,
  .list-grid--4col,
  .featured-grid,
  .gallery-grid--4col { grid-template-columns: 1fr; gap: 20px; }

  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-item__number { font-size: 1.8rem; }
  .stat-item__label { font-size: 0.78rem; }

  .featured-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .artist-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-image { aspect-ratio: 4/3; }

  .detail-layout { grid-template-columns: 1fr; gap: 28px; }
  .detail-info h1 { font-size: 1.4rem; }
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .news-item { grid-template-columns: 1fr; gap: 14px; }
  .news-item__thumb { aspect-ratio: 16/9; }

  .contact-grid { grid-template-columns: 1fr; gap: 32px; }

  .guide-item { grid-template-columns: 1fr; gap: 20px; }
  .guide-item:nth-child(even) { direction: ltr; }
  .guide-item__image { aspect-ratio: 16/10; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__bottom-inner { flex-direction: column; text-align: center; gap: 8px; }

  .subscribe-form { flex-direction: column; }
  .search-form-row { flex-direction: column; }

  .inner-banner { height: 200px; }
  .inner-banner__title { font-size: 1.4rem; }

  .pagination { gap: 4px; }
  .pagination a { min-width: 34px; height: 34px; font-size: 0.8rem; }

  .section-header { margin-bottom: 36px; }
  .section-title { font-size: 1.4rem; }
  .section-subtitle { font-size: 0.9rem; }

  .card--artist .card__image { width: 130px; height: 130px; }
  .card--artist .card__body { padding: 16px 12px 20px; }

  .stats { padding: 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .hero { height: 60vh; min-height: 380px; }
  .hero__title { font-size: 1.4rem; }
  .hero__subtitle { font-size: 0.82rem; }
  .hero__content { width: 92%; }

  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-item__number { font-size: 1.5rem; }

  .news-item { grid-template-columns: 1fr; gap: 10px; }
  .news-item__thumb { aspect-ratio: 16/9; }

  .card__body { padding: 14px 16px 18px; }
  .card__title { font-size: 0.95rem; }

  .detail-info__meta { grid-template-columns: 1fr; gap: 10px; }
  .detail-info__meta-item dt { font-size: 0.65rem; }
  .detail-info__meta-item dd { font-size: 0.88rem; }

  .footer__grid { grid-template-columns: 1fr; gap: 24px; }

  .back-top { bottom: 20px; right: 16px; }
  .online-service { bottom: 72px; right: 16px; }

  .section { padding: 48px 0; }
  .section-header { margin-bottom: 28px; }

  .category-grid { gap: 10px; }
  .card--category { padding: 24px 14px; }

  .btn { padding: 10px 22px; font-size: 0.82rem; }
  .btn--lg { padding: 13px 28px; font-size: 0.88rem; }

  .contact-form-card { padding: 24px 18px; }
  .subscribe-card { padding: 36px 24px; }
}

/* ============================================================
   动画增强
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184,151,126,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(184,151,126,0); }
}

.pulse {
  animation: pulse 2.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 7-12 ArtInvest mobile refinement: desktop rules stay unchanged. */
@media (max-width:1024px) {
  html, body { overflow-x: visible; }
  .header__nav, .header__actions { display:none; }
  .hamburger { display:flex; flex-shrink:0; width:44px; height:44px; margin-left:auto; }
  [data-aos="fade-left"], [data-aos="fade-right"] { transform:translateY(24px); }
  [data-aos="fade-left"].aos-animate, [data-aos="fade-right"].aos-animate { transform:translateY(0); }
  .mobile-nav { padding:26px 22px; }
  .mobile-nav:not(.open) { visibility:hidden; }
  .mobile-nav__close { display:block !important; position:absolute; right:8px; top:8px; width:44px; height:44px; background:transparent; border:0; font-size:28px; cursor:pointer; color:var(--text-primary); }
  .mobile-nav__link { padding:12px 0; }
  .mobile-nav__sub { display:none; max-height:none; } .mobile-nav__sub.open { display:block; max-height:none; }
  .about-grid > *, .detail-layout > *, .contact-grid > *, .footer__grid > *, .guide-item > *, .news-item > *, .form-group { min-width:0; }
  .detail-gallery { max-width:100%; min-width:0; }
  .detail__body, .footer__contact-item { overflow-wrap:anywhere; }
  .detail__body table { display:block; max-width:100%; overflow-x:auto; }
  .pagination { flex-wrap:wrap; }
}
@media (max-width:768px) {
  :root { --section-py:32px; --section-py-sm:26px; }
  .section { padding:32px 0; }
  .container, .header__inner { padding-left:16px; padding-right:16px; }
  .header__logo { min-width:0; }
  .hero { height:410px; min-height:410px; } .hero__overlay { background:linear-gradient(to bottom,rgba(250,250,250,.2),rgba(250,250,250,.76) 45%,rgba(250,250,250,.6) 70%,rgba(250,250,250,.3)); }
  .hero__content { width:calc(100% - 32px); top:51%; }
  .hero__title { font-size:clamp(1.5rem,6vw,2rem); margin-bottom:14px; }
  .hero__subtitle { font-size:.85rem; margin-bottom:22px; }
  .hero__actions { gap:12px; }
  .hero__scroll { bottom:56px; }
  .hero__scroll-line { height:22px; }
  .hero-pagination { bottom:25px; }
  .section-header, .featured-header { margin-bottom:22px; }
  .featured-header { gap:8px; }
  .section-tag { font-size:.67rem; }
  .section-title { font-size:1.3rem; }
  .section-subtitle { font-size:.86rem; }
  .featured-grid, .gallery-grid, .list-grid, .list-grid--4col, .gallery-grid--4col, .related-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 12px; }
  .card--art .card__body, .card__body { padding:12px; }
  .card__title { font-size:.92rem; }
  .card__tag { font-size:.65rem; letter-spacing:.04em; margin-bottom:5px; }
  .card__desc { font-size:.76rem; }
  .card__price { margin-top:8px; font-size:1rem; }
  .card__meta { flex-wrap:wrap; gap:6px; }
  .artist-grid { grid-template-columns:1fr; gap:12px; }
  .card--artist { display:grid; grid-template-columns:76px minmax(0,1fr); text-align:left; align-items:center; padding:16px; gap:16px; }
  .card--artist .card__image { width:76px; height:76px; margin:0; }
  .card--artist .card__body { padding:0; }
  .category-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
  .card--category { padding:16px 8px; }
  .card--category > div { font-size:1.4rem !important; margin-bottom:8px !important; }
  .card--category h3 { font-size:.88rem !important; }
  .guide-list { gap:24px; }
  .guide-item { grid-template-columns:100px minmax(0,1fr); gap:16px; align-items:start; }
  .guide-item__image { aspect-ratio:1; }
  .guide-item__text h3 { font-size:1rem; margin-bottom:8px; }
  .guide-item__text p { font-size:.82rem; line-height:1.75; margin-bottom:8px; }
  .guide-item__text .btn { min-height:40px; }
  .about-grid { gap:20px; }
  .about-image { aspect-ratio:16/10; }
  .about-grid p { font-size:.88rem; margin:12px 0 18px !important; line-height:1.8 !important; }
  .stats { gap:22px 16px; }
  .stat-item__number { font-size:1.65rem; margin-bottom:4px; }
  .stat-item__label { font-size:.77rem; }
  .news-item { grid-template-columns:90px minmax(0,1fr); gap:14px; align-items:start; }
  .news-item__thumb { aspect-ratio:1; }
  .news-item__title { font-size:.95rem; }
  .news-item__date { font-size:.73rem; }
  .news-item__desc { font-size:.78rem; line-height:1.7; }
  .cta-section { padding:32px 0; }
  .cta-section__title { font-size:1.35rem; }
  .cta-section p { font-size:.88rem !important; margin-bottom:20px !important; }
  .btn { padding:11px 20px; min-height:44px; font-size:.84rem; }
  .footer { padding-top:32px; }
  .footer__grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 16px; padding:0 16px 24px; }
  .footer__grid > :first-child, .footer__grid > :nth-child(2) { grid-column:1/-1; }
  .footer__brand-desc { margin:10px 0 14px; font-size:.82rem; }
  .footer__col-title { margin-bottom:12px; }
  .footer__links { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 8px; }
  .footer__links a { padding:10px 0; font-size:.8rem; }
  .footer__contact-item { font-size:.77rem; gap:6px; margin-bottom:10px; }
  .footer__contact-item i { flex-shrink:0; }
  .footer__qrcode { width:88px; height:88px; }
  .footer__bottom-inner { padding:0 16px; font-size:.72rem; }
  .friend-links { gap:10px; font-size:.75rem; }
  .inner-banner, .inner-banner[style] { height:170px !important; }
  .inner-banner__title { font-size:1.35rem; overflow-wrap:anywhere; }
  .detail-layout { gap:20px; }
  .detail-info__meta { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .detail-info h1 { font-size:1.35rem; }
  .detail-info__meta-item dd { overflow-wrap:anywhere; }
  .tabs-nav { display:flex; max-width:100%; overflow-x:auto; }
  .tabs-nav button { white-space:nowrap; min-height:44px; }
  .detail__pager { display:flex; flex-wrap:wrap; gap:12px; }
  .detail__body { font-size:.92rem; }
  .contact-form-card { padding:22px 16px; }
  .contact-grid { gap:26px; }
  .form-control { min-width:0; max-width:100%; font-size:16px; }
  form > [style*="grid-template-columns"] { grid-template-columns:minmax(0,1fr) !important; gap:0 !important; }
  .form-group > [style*="display:flex"] { flex-wrap:wrap; }
  .online-service { width:42px; height:42px; right:12px; bottom:72px; font-size:1rem; }
  .back-top { width:40px; height:40px; right:13px; bottom:20px; }
}

/* 004 inner pages: reserve the fixed header before the first visible block. */
@media (max-width: 1023px) {
  .inner-banner,
  .search-intro {
    margin-top: calc(var(--header-h) + 16px);
  }
  .search-intro {
    padding-top: 24px !important;
  }
}
