/* ===================================================================
   千问官网 · 唐代华丽风 核心样式规范
   主色绯红 #B03A2E · 辅色鎏金 #D4AC0D · 点缀青绿 #148F77 · 背景绛紫 #4A235A
   唐草纹与宝相花交织 · 金箔勾边 · 宝相花旋转绽放 · 盛唐气象
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700;900&family=ZCOOL+XiaoWei&display=swap');

:root {
  --color-crimson: #B03A2E;            /* 主色：大唐绯红 */
  --color-crimson-deep: #8B251B;       /* 深绯红/朱砂暗红 */
  --color-crimson-light: #C0392B;      /* 明艳朱红 */
  --color-gold: #D4AC0D;               /* 辅色：大唐鎏金 */
  --color-gold-bright: #F4D03F;        /* 赤金高光/金箔 */
  --color-gold-dark: #B7950B;          /* 暗金 */
  --color-jade-green: #148F77;         /* 点缀：唐三彩青绿/松石绿 */
  --color-jade-dark: #117864;          /* 墨绿 */
  --color-purple-bg: #4A235A;          /* 背景：深邃绛紫 */
  --color-purple-card: #5B2C6F;        /* 卡片背景：紫曜云锦 */
  --color-purple-dark: #371842;        /* 底座玄紫 */
  --color-silk-ivory: #FDFEFE;         /* 亮白 */
  --color-text-cream: #FADBD8;         /* 绢帛浅粉白文字 */
  --color-text-dim: #D7BDE2;           /* 次级绛紫柔和文字 */

  --font-serif: "ZCOOL XiaoWei", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  
  --shadow-gold: 0 10px 30px rgba(212, 172, 13, 0.22);
  --shadow-gold-hover: 0 16px 40px rgba(244, 208, 63, 0.35);
  --shadow-crimson: 0 12px 32px rgba(176, 58, 46, 0.3);
  
  --radius-tang: 16px 4px 16px 4px;   /* 唐风曲檐折角 */
  --transition-tang: all 0.38s cubic-bezier(0.2, 0.9, 0.3, 1);
}

/* 全局重置与大唐绛紫金箔背景 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-serif);
  background-color: var(--color-purple-bg);
  color: var(--color-text-cream);
  line-height: 1.85;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  /* 绛紫织锦与唐草暗纹背景 */
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(212, 172, 13, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(176, 58, 46, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(20, 143, 119, 0.08) 0%, transparent 60%),
    linear-gradient(rgba(74, 35, 90, 0.96), rgba(55, 24, 66, 0.98));
}

/* 金箔流光溢彩动态层 */
.gold-foil-sheen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(244, 208, 63, 0.04) 25%,
    rgba(212, 172, 13, 0.12) 48%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(212, 172, 13, 0.1) 52%,
    transparent 75%
  );
  background-size: 300% 300%;
  animation: goldSheenFlow 14s ease-in-out infinite alternate;
}

@keyframes goldSheenFlow {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

/* 宝相花旋转绽放装饰背景元 */
.baoxiang-rotator {
  position: absolute;
  width: 240px;
  height: 240px;
  pointer-events: none;
  opacity: 0.15;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='%23F4D03F'%3E%3Cpath d='M50 0 C45 25 25 45 0 50 C25 55 45 75 50 100 C55 75 75 55 100 50 C75 45 55 25 50 0 Z'/%3E%3Ccircle cx='50' cy='50' r='14' fill='%23B03A2E'/%3E%3Ccircle cx='50' cy='50' r='6' fill='%23148F77'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  animation: baoxiangSpin 32s linear infinite;
}

@keyframes baoxiangSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 版心容器 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* 顶部导航 — 盛唐廊阙，金箔勾边与绯红点缀 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(55, 24, 66, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--color-gold);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.site-header::after {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold-bright), var(--color-crimson), var(--color-jade-green), transparent);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--color-gold-bright);
}

.logo-wrapper {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-crimson) 0%, var(--color-purple-dark) 100%);
  border: 2px solid var(--color-gold);
  box-shadow: 0 0 14px rgba(244, 208, 63, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-wrapper img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #FFF;
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.brand-tag {
  font-size: 0.75rem;
  padding: 3px 10px;
  background: linear-gradient(135deg, var(--color-crimson) 0%, var(--color-crimson-deep) 100%);
  color: var(--color-gold-bright);
  border-radius: 4px;
  border: 1px solid var(--color-gold);
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.nav-links li a {
  text-decoration: none;
  color: var(--color-text-cream);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 4px;
  position: relative;
  letter-spacing: 1px;
  transition: var(--transition-tang);
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--color-gold-bright);
  background: rgba(176, 58, 46, 0.35);
  border: 1px solid rgba(212, 172, 13, 0.4);
}

.nav-links li a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 14px;
  right: 14px;
  height: 3px;
  background: var(--color-gold-bright);
  box-shadow: 0 0 8px var(--color-gold-bright);
}

/* 宝相花点缀小图标 */
.baoxiang-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F4D03F'%3E%3Cpath d='M12 2l2.4 5.6L20 10l-4.4 4 1.2 5.8-4.8-3-4.8 3 1.2-5.8-4.4-4 5.6-2.4z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* 金箔勾边与唐草纹卡片装饰 */
.tang-gold-card {
  position: relative;
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-tang);
  background: linear-gradient(145deg, rgba(91, 44, 111, 0.92) 0%, rgba(55, 24, 66, 0.96) 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 0 16px rgba(212, 172, 13, 0.1);
}

.tang-gold-card::before,
.tang-gold-card::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--color-gold-bright);
  border-style: solid;
  pointer-events: none;
  transition: var(--transition-tang);
}

.tang-gold-card::before {
  top: 4px;
  left: 4px;
  border-width: 2px 0 0 2px;
}

.tang-gold-card::after {
  bottom: 4px;
  right: 4px;
  border-width: 0 2px 2px 0;
}

.tang-gold-card:hover::before,
.tang-gold-card:hover::after {
  border-color: var(--color-crimson-light);
  width: 20px;
  height: 20px;
}

/* Hero 首屏与零滚动转化下载区 */
.hero-section {
  padding: 48px 0 36px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 24px;
  background: rgba(176, 58, 46, 0.3);
  border: 1px solid var(--color-gold);
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-gold-bright);
  margin-bottom: 22px;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 16px rgba(212, 172, 13, 0.2);
}

.hero-title {
  font-size: 2.35rem;
  font-weight: 900;
  color: #FFF;
  line-height: 1.35;
  margin-bottom: 14px;
  letter-spacing: 2px;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--color-gold-bright);
  margin-bottom: 18px;
  letter-spacing: 3px;
  text-shadow: 0 2px 8px rgba(212, 172, 13, 0.4);
}

.hero-desc {
  max-width: 860px;
  margin: 0 auto 36px;
  font-size: 1.08rem;
  color: var(--color-text-cream);
  line-height: 1.85;
}

/* 并列 4 个下载入口（零滚动转化） */
.download-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 10px;
}

.download-card {
  padding: 26px 20px;
  text-align: center;
  transition: var(--transition-tang);
  overflow: hidden;
}

.download-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-gold-bright);
  box-shadow: var(--shadow-gold-hover);
}

.download-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-crimson) 0%, var(--color-purple-dark) 100%);
  border: 2px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: var(--color-gold-bright);
  box-shadow: 0 0 12px rgba(212, 172, 13, 0.3);
}

.download-name {
  font-size: 1.18rem;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.download-desc {
  font-size: 0.88rem;
  color: var(--color-text-dim);
  line-height: 1.6;
  margin-bottom: 20px;
  min-height: 42px;
}

.btn-tang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 18px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-tang);
  border: 1px solid transparent;
}

.btn-tang-primary {
  background: linear-gradient(135deg, var(--color-crimson) 0%, #801C12 100%);
  color: var(--color-gold-bright);
  border: 1px solid var(--color-gold);
  box-shadow: 0 4px 14px rgba(176, 58, 46, 0.4);
}

.btn-tang-primary:hover {
  background: linear-gradient(135deg, var(--color-crimson-light) 0%, var(--color-crimson) 100%);
  color: #FFF;
  border-color: var(--color-gold-bright);
  box-shadow: 0 6px 20px rgba(244, 208, 63, 0.4);
  transform: translateY(-2px);
}

.btn-tang-secondary {
  background: rgba(20, 143, 119, 0.35);
  color: #FFF;
  border: 1px solid var(--color-jade-green);
}

.btn-tang-secondary:hover {
  background: rgba(20, 143, 119, 0.6);
  border-color: var(--color-gold-bright);
}

/* 分割线与宝相花纹样 */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 52px;
}

.divider-line {
  flex: 1;
  max-width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.divider-emblem {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--color-gold-bright);
  letter-spacing: 3px;
  padding: 6px 18px;
  border: 1px solid var(--color-gold);
  border-radius: 20px;
  background: rgba(176, 58, 46, 0.4);
  box-shadow: 0 0 14px rgba(212, 172, 13, 0.25);
}

/* 四个功能模块：版式统一
   模块名 + 情绪化短标题 + 场景化功能点
   配唐代宝相花金箔框与插图展示
*/
.section {
  padding: 76px 0;
  position: relative;
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 64px;
  padding: 48px;
  transition: var(--transition-tang);
}

.feature-block:hover {
  border-color: var(--color-gold-bright);
  box-shadow: var(--shadow-gold-hover);
}

.feature-block.reversed {
  direction: rtl;
}

.feature-block.reversed > * {
  direction: ltr;
}

.feature-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--color-gold-bright);
  margin-bottom: 14px;
}

.feature-name {
  font-size: 1.95rem;
  font-weight: 900;
  color: #FFF;
  margin-bottom: 10px;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-gold-bright);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 14px;
}

.feature-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-crimson), var(--color-gold-bright));
}

.feature-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-points li {
  position: relative;
  padding-left: 30px;
  font-size: 1.02rem;
  color: var(--color-text-cream);
  line-height: 1.75;
}

.feature-points li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--color-gold-bright);
  font-size: 1.1rem;
}

.feature-points strong {
  color: #FFF;
  font-weight: 800;
}

/* 唐代金箔宝相花画框效果 */
.tang-frame-box {
  position: relative;
  padding: 16px;
  background: radial-gradient(circle, #6C3483 0%, var(--color-purple-dark) 100%);
  border-radius: var(--radius-tang);
  border: 3px solid var(--color-gold-bright);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(244, 208, 63, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
}

.tang-frame-box::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px dashed rgba(244, 208, 63, 0.6);
  pointer-events: none;
  border-radius: 12px 2px 12px 2px;
}

.tang-frame-image {
  width: 100%;
  max-width: 440px;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px 2px 10px 2px;
  display: block;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  transition: var(--transition-tang);
}

.feature-block:hover .tang-frame-image {
  transform: scale(1.02);
}

/* 网页版入口 — 零安装兜底承接横幅 */
.web-entry-section {
  padding: 24px 0 76px;
}

.web-entry-banner {
  background: linear-gradient(135deg, var(--color-crimson-deep) 0%, var(--color-purple-dark) 100%);
  border: 2px solid var(--color-gold-bright);
  border-radius: var(--radius-tang);
  padding: 50px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: var(--shadow-gold-hover);
  position: relative;
  overflow: hidden;
}

.web-entry-banner::before {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(244, 208, 63, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.web-entry-info {
  flex: 1;
}

.web-entry-tag {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--color-gold-bright);
  border: 1px solid var(--color-gold);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
  background: rgba(176, 58, 46, 0.4);
}

.web-entry-title {
  font-size: 1.85rem;
  font-weight: 900;
  color: #FFF;
  margin-bottom: 12px;
  letter-spacing: 1.5px;
}

.web-entry-desc {
  font-size: 1.05rem;
  color: var(--color-text-cream);
  line-height: 1.75;
}

.btn-gold-glow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 36px;
  background: linear-gradient(135deg, #F4D03F 0%, var(--color-gold) 100%);
  color: var(--color-purple-dark);
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid #FFF;
  box-shadow: 0 6px 24px rgba(244, 208, 63, 0.4);
  transition: var(--transition-tang);
}

.btn-gold-glow:hover {
  background: linear-gradient(135deg, #FFF 0%, #F4D03F 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(244, 208, 63, 0.6);
}

/* web.html 网页版在线对话体验专用样式 */
.chat-tang-box {
  background: linear-gradient(145deg, rgba(91, 44, 111, 0.95) 0%, rgba(55, 24, 66, 0.98) 100%);
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-tang);
  padding: 38px;
  max-width: 880px;
  margin: 0 auto 52px;
  box-shadow: var(--shadow-gold);
}

.chat-input-row {
  display: flex;
  gap: 12px;
}

.chat-tang-input {
  flex: 1;
  padding: 14px 18px;
  font-family: var(--font-serif);
  font-size: 1rem;
  border: 1px solid var(--color-gold);
  border-radius: 6px;
  background: rgba(55, 24, 66, 0.85);
  color: #FFF;
  outline: none;
  transition: var(--transition-tang);
}

.chat-tang-input:focus {
  border-color: var(--color-gold-bright);
  box-shadow: 0 0 0 3px rgba(244, 208, 63, 0.3);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.step-card {
  padding: 30px 24px;
  transition: var(--transition-tang);
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-gold-bright);
}

.step-badge {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--color-gold-bright);
  margin-bottom: 12px;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--color-text-dim);
  line-height: 1.7;
}

/* help.html 常见问答专用样式 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 940px;
  margin: 0 auto;
}

.faq-card {
  padding: 30px 34px;
  transition: var(--transition-tang);
}

.faq-card:hover {
  border-color: var(--color-gold-bright);
  box-shadow: var(--shadow-gold-hover);
}

.faq-question {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-gold-bright);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-answer {
  font-size: 1rem;
  color: var(--color-text-cream);
  line-height: 1.8;
}

/* 底部页脚 */
.site-footer {
  background: var(--color-purple-dark);
  color: var(--color-text-dim);
  padding: 50px 0 32px;
  border-top: 3px solid var(--color-gold);
  margin-top: 40px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin-bottom: 24px;
}

.footer-nav a {
  color: var(--color-text-cream);
  text-decoration: none;
  font-size: 0.98rem;
  transition: var(--transition-tang);
}

.footer-nav a:hover {
  color: var(--color-gold-bright);
}

.footer-copy {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-dim);
  line-height: 1.8;
}

/* 响应式断点 */
@media (max-width: 992px) {
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .feature-block {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 36px 24px;
  }
  
  .feature-block.reversed {
    direction: ltr;
  }
  
  .web-entry-banner {
    flex-direction: column;
    text-align: center;
    padding: 36px 24px;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-inner {
    flex-direction: column;
    height: auto;
    padding: 14px 0;
    gap: 12px;
  }
  
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
  
  .hero-title {
    font-size: 1.7rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .download-grid {
    grid-template-columns: 1fr;
  }
  
  .chat-input-row {
    flex-direction: column;
  }
}
