/* ==========================================================================
   红果看剧 - hongguokanjuk.cn
   追更党根据地 | 新剧上线第一时间刷
   完整样式表 (style.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 设计变量与主题
   -------------------------------------------------------------------------- */
:root {
  /* 品牌色 */
  --brand: #c0392b;
  --brand-dark: #a93226;
  --brand-light: #f9e7e6;
  --brand-glow: rgba(192, 57, 43, 0.28);
  --brand-gradient: linear-gradient(135deg, #c0392b 0%, #e74c3c 55%, #f39c12 100%);
  --brand-gradient-soft: linear-gradient(135deg, #f9e7e6 0%, #fdf1e8 100%);

  /* 文本 */
  --text: #1f1f1f;
  --text-light: #5a5a5a;
  --text-muted: #8a8a8a;

  /* 背景 */
  --bg: #ffffff;
  --bg-soft: #faf7f6;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-strong: rgba(255, 255, 255, 0.88);

  /* 边框与阴影 */
  --border: #e8e3e2;
  --border-strong: #d8d0ce;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
  --shadow-brand: 0 8px 28px rgba(192, 57, 43, 0.22);

  /* 尺寸 */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --max: 1200px;
  --header-h: 64px;

  /* 动效 */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.3s;
}

/* 暗色模式 */
body.dark {
  --brand: #e74c3c;
  --brand-dark: #c0392b;
  --brand-light: #2a1a18;
  --brand-glow: rgba(231, 76, 60, 0.32);
  --brand-gradient: linear-gradient(135deg, #c0392b 0%, #e74c3c 55%, #e67e22 100%);
  --brand-gradient-soft: linear-gradient(135deg, #2a1a18 0%, #241a16 100%);

  --text: #ececec;
  --text-light: #b0b0b0;
  --text-muted: #808080;

  --bg: #141414;
  --bg-soft: #1d1d1d;
  --bg-glass: rgba(20, 20, 20, 0.72);
  --bg-glass-strong: rgba(20, 20, 20, 0.9);

  --border: #2c2c2c;
  --border-strong: #3a3a3a;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
  --shadow-brand: 0 8px 28px rgba(231, 76, 60, 0.3);
}

/* --------------------------------------------------------------------------
   2. 基础重置
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
  overflow-x: hidden;
}

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

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  text-decoration: underline;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  font-family: inherit;
}

::selection {
  background: var(--brand);
  color: #fff;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-soft);
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 10px;
  border: 2px solid var(--bg-soft);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand);
}

/* --------------------------------------------------------------------------
   3. 布局工具
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   4. 顶部导航（毛玻璃）
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.site-header.scrolled {
  box-shadow: var(--shadow);
  background: var(--bg-glass-strong);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--brand);
  white-space: nowrap;
  letter-spacing: -0.3px;
  transition: transform var(--dur) var(--ease);
}

.logo:hover {
  text-decoration: none;
  transform: scale(1.03);
}

.logo svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  transition: transform 0.5s var(--ease-out);
}

.logo:hover svg {
  transform: rotate(-8deg) scale(1.08);
}

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

.nav-links a {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}

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

.nav-links a:hover {
  color: var(--brand);
  text-decoration: none;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 搜索框 */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  width: 150px;
  padding: 7px 34px 7px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: width var(--dur) var(--ease),
    border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box input:focus {
  width: 220px;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.search-box button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  display: flex;
  color: var(--text-light);
  transition: color 0.2s var(--ease);
}

.search-box button:hover {
  color: var(--brand);
}

/* 图标按钮 */
.icon-btn {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: background-color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease),
    color 0.2s var(--ease);
}

.icon-btn:hover {
  background: var(--brand-light);
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
}

.icon-btn:active {
  transform: translateY(0) scale(0.96);
}

.mobile-toggle {
  display: none;
}

/* 移动菜单 */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-glass-strong);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 20px;
  overflow-y: auto;
  animation: menuIn 0.28s var(--ease-out);
}

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

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 14px 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.mobile-menu a:hover {
  color: var(--brand);
  padding-left: 16px;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   5. 面包屑
   -------------------------------------------------------------------------- */
.breadcrumb {
  padding: 14px 0;
  font-size: 13px;
  color: var(--text-light);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb li::after {
  content: "›";
  margin-left: 6px;
  color: var(--text-muted);
}

.breadcrumb li:last-child::after {
  content: "";
}

.breadcrumb a {
  color: var(--text-light);
  transition: color 0.2s var(--ease);
}

.breadcrumb a:hover {
  color: var(--brand);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   6. 首屏 Hero（渐变 Banner）
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 56px 0 64px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--brand-light) 0%,
    var(--bg) 55%,
    var(--bg-soft) 100%
  );
}

body.dark .hero {
  background: linear-gradient(
    135deg,
    #2a1a18 0%,
    var(--bg) 55%,
    var(--bg-soft) 100%
  );
}

/* 装饰光斑 */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--brand) 0%, transparent 70%);
  top: -160px;
  right: -80px;
  opacity: 0.18;
  animation: floatBlob 14s ease-in-out infinite;
}

.hero::after {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #f39c12 0%, transparent 70%);
  bottom: -120px;
  left: -60px;
  opacity: 0.14;
  animation: floatBlob 18s ease-in-out infinite reverse;
}

@keyframes floatBlob {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-30px, 30px) scale(1.12);
  }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
  color: var(--text);
}

.hero h1 .accent {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-lead {
  font-size: 17px;
  color: var(--text-light);
  margin-bottom: 26px;
  max-width: 560px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease), color 0.2s var(--ease);
}

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

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

.btn-primary {
  background: var(--brand-gradient);
  background-size: 200% 200%;
  color: #fff;
  box-shadow: var(--shadow-brand);
  animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 10px 32px var(--brand-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--brand);
}

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

/* Hero 统计 */
.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.stat .num {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.stat .label {
  font-size: 13px;
  color: var(--text-light);
}

/* Hero 标签 */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px var(--brand-glow);
  letter-spacing: 0.3px;
}

/* Hero 视觉 */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual svg {
  width: 100%;
  max-width: 420px;
  filter: drop-shadow(0 20px 40px var(--brand-glow));
  animation: heroFloat 6s ease-in-out infinite;
}

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

/* --------------------------------------------------------------------------
   7. 通用区块
   -------------------------------------------------------------------------- */
.section {
  padding: 64px 0;
  position: relative;
}

.section-alt {
  background: var(--bg-soft);
}

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

.section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
  color: var(--text);
}

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

.eyebrow {
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

/* --------------------------------------------------------------------------
   8. 卡片网格
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 24px;
}

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

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 40%,
    var(--brand-glow) 100%
  );
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.card:hover::before {
  opacity: 0.08;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand-gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease);
}

.card:hover .card-icon {
  transform: scale(1.08) rotate(-4deg);
}

.card-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--brand);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.card p {
  color: var(--text-light);
  font-size: 14.5px;
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   9. 品牌介绍
   -------------------------------------------------------------------------- */
.brand-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.brand-intro h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.3px;
  color: var(--text);
}

.brand-intro p {
  color: var(--text-light);
  margin-bottom: 14px;
  font-size: 15.5px;
}

.brand-points {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.brand-point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.brand-point .dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
  box-shadow: 0 3px 10px var(--brand-glow);
  transition: transform var(--dur) var(--ease-out);
}

.brand-point:hover .dot {
  transform: scale(1.15);
}

.brand-point strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
}

.brand-point span {
  color: var(--text-light);
  font-size: 14.5px;
}

.brand-visual svg {
  width: 100%;
  border-radius: var(--radius-lg);
  transition: transform 0.5s var(--ease-out);
}

.brand-visual:hover svg {
  transform: scale(1.02);
}

/* --------------------------------------------------------------------------
   10. 功能列表 / 解决方案
   -------------------------------------------------------------------------- */
.feature-list {
  display: grid;
  gap: 20px;
}

.feature-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.feature-item:hover {
  box-shadow: var(--shadow);
  border-color: var(--brand);
  transform: translateX(4px);
}

.feature-num {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--brand-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 6px 18px var(--brand-glow);
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease-out);
}

.feature-item:hover .feature-num {
  transform: rotate(-6deg) scale(1.06);
}

.feature-item h3 {
  font-size: 17px;
  margin-bottom: 6px;
  color: var(--text);
}

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

/* --------------------------------------------------------------------------
   11. 文章列表
   -------------------------------------------------------------------------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.article-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--brand-gradient);
  border-radius: 0 4px 4px 0;
  transition: height var(--dur) var(--ease);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.article-card:hover::after {
  height: 100%;
}

.article-meta {
  display: flex;
  gap: 14px;
  font-size: 12.5px;
  color: var(--text-light);
  margin-bottom: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.article-meta .cat {
  color: var(--brand);
  font-weight: 600;
  background: var(--brand-light);
  padding: 2px 10px;
  border-radius: 12px;
}

.article-meta time {
  color: var(--text-muted);
}

.article-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
  line-height: 1.45;
  color: var(--text);
  transition: color 0.2s var(--ease);
}

.article-card:hover h3 {
  color: var(--brand);
}

.article-card p {
  color: var(--text-light);
  font-size: 14.5px;
  flex: 1;
  margin-bottom: 16px;
}

.article-more {
  color: var(--brand);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s var(--ease);
}

.article-more:hover {
  text-decoration: none;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   12. 案例
   -------------------------------------------------------------------------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.case-visual {
  height: 160px;
  position: relative;
  overflow: hidden;
}

.case-visual svg {
  width: 100%;
  height: 100%;
  transition: transform 0.5s var(--ease-out);
}

.case-card:hover .case-visual svg {
  transform: scale(1.08);
}

.case-body {
  padding: 22px;
}

.case-body h3 {
  font-size: 16.5px;
  margin-bottom: 8px;
  color: var(--text);
}

.case-body p {
  color: var(--text-light);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   13. 评价
   -------------------------------------------------------------------------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
  transition: transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.review-card .quote {
  font-size: 40px;
  color: var(--brand);
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  opacity: 0.35;
  margin-bottom: 8px;
  transition: opacity var(--dur) var(--ease);
}

.review-card:hover .quote {
  opacity: 0.7;
}

.review-card p {
  color: var(--text-light);
  font-size: 14.5px;
  margin-bottom: 18px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--brand-glow);
}

.review-author strong {
  display: block;
  font-size: 14px;
  color: var(--text);
}

.review-author span {
  font-size: 12.5px;
  color: var(--text-light);
}

/* --------------------------------------------------------------------------
   14. FAQ 手风琴
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.faq-item:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
}

.faq-item.open {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
  transition: color 0.2s var(--ease);
}

.faq-q:hover {
  color: var(--brand);
}

.faq-q .arrow {
  transition: transform var(--dur) var(--ease);
  flex-shrink: 0;
  color: var(--brand);
  font-size: 14px;
}

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

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-a-inner {
  padding: 0 24px 22px;
  color: var(--text-light);
  font-size: 14.5px;
  line-height: 1.8;
}

.faq-item.open .faq-a {
  max-height: 600px;
}

/* --------------------------------------------------------------------------
   15. HowTo 步骤
   -------------------------------------------------------------------------- */
.howto-steps {
  display: grid;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.howto-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.howto-step:hover {
  box-shadow: var(--shadow);
  border-color: var(--brand);
  transform: translateX(4px);
}

.howto-step .step-num {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 4px 14px var(--brand-glow);
  flex-shrink: 0;
}

.howto-step h3 {
  font-size: 16.5px;
  margin-bottom: 6px;
  color: var(--text);
}

.howto-step p {
  color: var(--text-light);
  font-size: 14.5px;
}

/* --------------------------------------------------------------------------
   16. 联系我们
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 18px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: transform 0.2s var(--ease);
}

.contact-item:hover {
  transform: translateX(4px);
}

.contact-item .ci-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color var(--dur) var(--ease);
}

.contact-item:hover .ci-icon {
  background: var(--brand-light);
}

.contact-item .ci-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--brand);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
  color: var(--text);
}

.contact-item span {
  color: var(--text-light);
  font-size: 14px;
}

/* 表单 */
.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease);
}

.contact-form:hover {
  box-shadow: var(--shadow);
}

.contact-form h3 {
  margin-bottom: 18px;
  font-size: 18px;
  color: var(--text);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--brand);
  background: var(--bg);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

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

/* --------------------------------------------------------------------------
   17. 网站地图 & 友情链接
   -------------------------------------------------------------------------- */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.sitemap-col h4 {
  font-size: 15px;
  margin-bottom: 14px;
  font-weight: 700;
  color: var(--text);
  position: relative;
  padding-bottom: 8px;
}

.sitemap-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-gradient);
}

.sitemap-col ul {
  display: grid;
  gap: 8px;
}

.sitemap-col a {
  font-size: 14px;
  color: var(--text-light);
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.sitemap-col a:hover {
  color: var(--brand);
  padding-left: 4px;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   18. 页脚
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand p {
  color: var(--text-light);
  font-size: 14px;
  margin: 14px 0 18px;
  max-width: 320px;
}

.footer-brand .logo {
  margin-bottom: 6px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-social a:hover {
  background: var(--brand-light);
  border-color: var(--brand);
  transform: translateY(-2px);
  text-decoration: none;
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: var(--text-light);
  transition: fill 0.2s var(--ease);
}

.footer-social a:hover svg {
  fill: var(--brand);
}

.footer-col h4 {
  font-size: 15px;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-col ul {
  display: grid;
  gap: 9px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-light);
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--brand);
  padding-left: 4px;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-light);
}

.footer-bottom .links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: var(--text-light);
  transition: color 0.2s var(--ease);
}

.footer-bottom a:hover {
  color: var(--brand);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   19. 返回顶部
   -------------------------------------------------------------------------- */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px var(--brand-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease),
    transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease);
  z-index: 900;
}

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

.back-top:hover {
  box-shadow: 0 10px 28px var(--brand-glow);
  transform: translateY(-3px) scale(1.05);
}

.back-top:active {
  transform: translateY(0) scale(0.96);
}

/* --------------------------------------------------------------------------
   20. 滚动动画
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 交错延迟 */
.grid > .reveal:nth-child(2),
.case-grid > .reveal:nth-child(2),
.review-grid > .reveal:nth-child(2),
.article-grid > .reveal:nth-child(2) {
  transition-delay: 0.08s;
}
.grid > .reveal:nth-child(3),
.case-grid > .reveal:nth-child(3),
.review-grid > .reveal:nth-child(3),
.article-grid > .reveal:nth-child(3) {
  transition-delay: 0.16s;
}
.grid > .reveal:nth-child(4),
.article-grid > .reveal:nth-child(4) {
  transition-delay: 0.24s;
}
.grid > .reveal:nth-child(5),
.article-grid > .reveal:nth-child(5) {
  transition-delay: 0.32s;
}
.grid > .reveal:nth-child(6),
.article-grid > .reveal:nth-child(6) {
  transition-delay: 0.4s;
}

/* --------------------------------------------------------------------------
   21. 轮播
   -------------------------------------------------------------------------- */
.carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s var(--ease-out);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  padding: 0;
  position: relative;
}

.carousel-slide svg {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  display: block;
}

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.carousel-dots button.active {
  background: #fff;
  width: 22px;
  border-radius: 5px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 18px;
  z-index: 2;
  transition: background-color 0.2s var(--ease),
    transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.carousel-arrow:hover {
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateY(-50%) scale(1.08);
}

.carousel-arrow.prev {
  left: 14px;
}

.carousel-arrow.next {
  right: 14px;
}

/* --------------------------------------------------------------------------
   22. 主题聚合标签
   -------------------------------------------------------------------------- */
.topic-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}

.topic-tag {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 13.5px;
  color: var(--text-light);
  transition: all 0.2s var(--ease);
}

.topic-tag:hover {
  border-color: var(--brand);
  color: var(--brand);
  text-decoration: none;
  background: var(--brand-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   23. 响应式布局
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .hero-grid {
    gap: 32px;
  }
}

@media (max-width: 860px) {
  .nav-links,
  .search-box {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

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

  .hero-visual {
    order: -1;
    max-width: 360px;
    margin: 0 auto;
  }

  .brand-intro,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .case-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 40px 0 48px;
  }

  .brand-visual {
    order: -1;
  }

  .brand-intro {
    gap: 32px;
  }

  .contact-grid {
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat .num {
    font-size: 22px;
  }

  .section {
    padding: 48px 0;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .container {
    padding: 0 16px;
  }

  .card,
  .article-card,
  .review-card,
  .contact-form {
    padding: 22px;
  }

  .feature-item,
  .howto-step {
    grid-template-columns: 44px 1fr;
    gap: 14px;
    padding: 20px;
  }

  .feature-num {
    width: 44px;
    height: 44px;
    font-size: 18px;
    border-radius: 12px;
  }

  .howto-step .step-num {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .faq-q {
    padding: 16px 18px;
    font-size: 15px;
  }

  .faq-a-inner {
    padding: 0 18px 18px;
  }

  .back-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }

  .carousel-arrow {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .hero-lead {
    font-size: 15.5px;
  }

  .section-head {
    margin-bottom: 32px;
  }
}

@media (max-width: 380px) {
  .logo span {
    font-size: 17px;
  }

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

/* --------------------------------------------------------------------------
   24. 无障碍与动效偏好
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-visual svg,
  .hero::before,
  .hero::after {
    animation: none;
  }
}

/* 键盘焦点可见性 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   25. 打印样式
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .mobile-menu,
  .back-top,
  .carousel-arrow,
  .carousel-dots,
  .hero-cta,
  .contact-form,
  .footer-social {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .section {
    padding: 20px 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}