/* ==========================================================================
   通义千问官方网站 - 水墨丹青风主题样式表 (Ink Landscape Style)
   色彩定义:
     - 宣纸底白: #F5F2E9
     - 主色墨色: #2C3E50 (焦墨/浓墨)
     - 辅色淡墨: #95A5A6 (水墨氤氲/次浓墨)
     - 点缀朱砂: #C0392B (古印朱砂)
     - 墨韵深黑: #1A252F
     - 墨池水光: #EAE6DC
   字体体系: 霞鹜文楷 / 思源宋体 / Noto Serif SC
   ========================================================================== */

@charset "UTF-8";

:root {
  --bg-rice-paper: #F5F2E9;
  --bg-paper-subtle: #ECE8DD;
  --ink-primary: #2C3E50;
  --ink-deep: #1A252F;
  --ink-light: #95A5A6;
  --ink-faint: rgba(44, 62, 80, 0.08);
  --ink-border: rgba(44, 62, 80, 0.16);
  --seal-cinnabar: #C0392B;
  --seal-cinnabar-light: rgba(192, 57, 43, 0.08);
  --shadow-ink: 0 16px 36px rgba(44, 62, 80, 0.08);
  --shadow-ink-hover: 0 22px 48px rgba(44, 62, 80, 0.16);
  --radius-ink: 10px;
  --font-serif: "LXGW WenKai", "霞鹜文楷", "Noto Serif SC", "Source Han Serif SC", "思源宋体", "Songti SC", STSong, serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-rice-paper);
}

body {
  font-family: var(--font-serif);
  color: var(--ink-primary);
  background-color: var(--bg-rice-paper);
  background-image: 
    radial-gradient(circle at 10% 12%, rgba(44, 62, 80, 0.035) 0%, transparent 45%),
    radial-gradient(circle at 88% 30%, rgba(44, 62, 80, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 20% 75%, rgba(192, 57, 43, 0.02) 0%, transparent 40%),
    radial-gradient(circle at 75% 85%, rgba(44, 62, 80, 0.03) 0%, transparent 60%);
  background-attachment: fixed;
  line-height: 1.8;
  overflow-x: hidden;
  position: relative;
}

/* 宣纸纤维质感与墨色水晕层 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(245, 242, 233, 0.1) 0%, rgba(236, 232, 221, 0.4) 100%);
  z-index: -1;
}

/* 远山水墨剪影背景装饰条 */
.ink-mountain-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 380px;
  background: linear-gradient(180deg, rgba(44, 62, 80, 0.05) 0%, rgba(149, 165, 166, 0.02) 60%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* 题跋印章样式 */
.seal-mark {
  display: inline-block;
  border: 1.5px solid var(--seal-cinnabar);
  color: var(--seal-cinnabar);
  padding: 2px 6px;
  font-size: 0.75rem;
  letter-spacing: 2px;
  font-weight: 700;
  border-radius: 4px;
  background: var(--seal-cinnabar-light);
  transform: rotate(-1deg);
  vertical-align: middle;
  line-height: 1.3;
}

.seal-vertical {
  writing-mode: vertical-rl;
  border: 1.5px solid var(--seal-cinnabar);
  color: var(--seal-cinnabar);
  padding: 6px 3px;
  font-size: 0.75rem;
  letter-spacing: 3px;
  font-weight: 700;
  border-radius: 3px;
  background: var(--seal-cinnabar-light);
  display: inline-block;
  line-height: 1;
}

/* 导航栏 */
.header-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 242, 233, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-border);
  box-shadow: 0 2px 14px rgba(44, 62, 80, 0.04);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink-primary);
}

.brand-wrap img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--ink-primary);
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.12);
  background: #fff;
  transition: transform 0.4s ease;
}

.brand-wrap:hover img {
  transform: rotate(360deg) scale(1.05);
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--ink-deep);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  align-items: center;
}

.nav-menu li a {
  text-decoration: none;
  color: var(--ink-primary);
  font-size: 0.95rem;
  padding: 6px 10px;
  border-radius: 4px;
  transition: all 0.25s ease;
  position: relative;
}

.nav-menu li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--ink-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
  width: 80%;
}

.nav-menu li a:hover {
  color: var(--seal-cinnabar);
}

.nav-menu li a.nav-highlight {
  background: var(--ink-primary);
  color: #fff !important;
  border-radius: 20px;
  padding: 6px 14px;
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.2);
}

.nav-menu li a.nav-highlight:hover {
  background: var(--seal-cinnabar);
  transform: translateY(-1px);
}

/* 主容器 */
.main-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
  position: relative;
  z-index: 1;
}

/* 首屏 HERO + 下载区 (零滚动即可转化) */
.hero-download-section {
  padding: 2.2rem 1rem 3rem;
  text-align: center;
  position: relative;
}

.hero-subtag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  border-radius: 30px;
  background: rgba(44, 62, 80, 0.05);
  border: 1px solid var(--ink-border);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  color: var(--ink-primary);
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--ink-deep);
  letter-spacing: 2px;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 4px rgba(44, 62, 80, 0.05);
}

.hero-motto {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--seal-cinnabar);
  letter-spacing: 3px;
  margin-bottom: 1.25rem;
  display: inline-block;
  padding: 4px 20px;
  border-top: 1px dashed rgba(192, 57, 43, 0.3);
  border-bottom: 1px dashed rgba(192, 57, 43, 0.3);
}

.hero-desc {
  max-width: 780px;
  margin: 0 auto 2.2rem;
  color: #4a5568;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* 并列 4 个下载入口卡片 (首屏零滚动转化) */
.download-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1120px;
  margin: 0 auto 2rem;
}

.download-card {
  background: #fff;
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-ink);
  padding: 1.6rem 1.2rem;
  box-shadow: var(--shadow-ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.download-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ink-primary), var(--ink-light));
  opacity: 0.8;
}

.download-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-ink-hover);
  border-color: var(--ink-primary);
}

.download-card .icon-ink {
  width: 54px;
  height: 54px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(44, 62, 80, 0.05);
  border: 1px solid rgba(44, 62, 80, 0.12);
  color: var(--ink-primary);
  font-size: 1.6rem;
}

.download-card h3 {
  font-size: 1.15rem;
  color: var(--ink-deep);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.download-card p {
  font-size: 0.85rem;
  color: #5d6d7e;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* 毛笔笔触式按钮 */
.btn-brush {
  display: inline-block;
  padding: 8px 18px;
  background: var(--ink-primary);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 4px;
  border: 1px solid var(--ink-deep);
  box-shadow: 0 4px 10px rgba(44, 62, 80, 0.2);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn-brush::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s ease-out;
}

.btn-brush:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

.btn-brush:hover {
  background: var(--seal-cinnabar);
  border-color: #922b21;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(192, 57, 43, 0.28);
}

.btn-brush-secondary {
  background: transparent;
  color: var(--ink-primary);
  border: 1px solid var(--ink-primary);
  box-shadow: none;
}

.btn-brush-secondary:hover {
  background: var(--ink-faint);
  color: var(--seal-cinnabar);
  border-color: var(--seal-cinnabar);
}

/* 网页版兜底横幅 (零安装直达) */
.web-entry-banner {
  background: linear-gradient(135deg, #fff 0%, #FAF8F2 100%);
  border: 1px dashed var(--ink-border);
  border-left: 4px solid var(--seal-cinnabar);
  border-radius: var(--radius-ink);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.5rem auto 3.5rem;
  box-shadow: var(--shadow-ink);
  gap: 1.5rem;
}

.web-entry-left {
  text-align: left;
}

.web-entry-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-deep);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.web-entry-desc {
  font-size: 0.92rem;
  color: #5d6d7e;
}

/* 四大核心功能模块 (统一规范) */
.feature-section {
  margin-bottom: 4rem;
  padding-top: 1.5rem;
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-badge {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--seal-cinnabar);
  border: 1px solid rgba(192, 57, 43, 0.3);
  padding: 3px 12px;
  border-radius: 20px;
  background: var(--seal-cinnabar-light);
  margin-bottom: 0.75rem;
  letter-spacing: 2px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink-deep);
  letter-spacing: 1.5px;
  margin-bottom: 0.6rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: #5d6d7e;
  max-width: 720px;
  margin: 0 auto;
}

/* 模块图文卡片 (墨韵画卷) */
.feature-card {
  background: #fff;
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-ink);
  box-shadow: var(--shadow-ink);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  overflow: hidden;
  margin-bottom: 2.5rem;
  transition: all 0.3s ease;
}

.feature-card.reverse {
  grid-template-columns: 0.85fr 1.15fr;
}

.feature-card:hover {
  box-shadow: var(--shadow-ink-hover);
  border-color: rgba(44, 62, 80, 0.3);
}

.feature-content {
  padding: 2.5rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-header {
  margin-bottom: 1.5rem;
}

.feature-tagline {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink-deep);
  margin-top: 0.4rem;
  line-height: 1.4;
}

.feature-narrative {
  font-size: 0.95rem;
  color: #4a5568;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* 场景化功能点清单 */
.scenarios-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.scenario-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(245, 242, 233, 0.45);
  border: 1px solid rgba(44, 62, 80, 0.08);
  padding: 0.85rem 1rem;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.scenario-item:hover {
  background: #FAF8F2;
  border-color: var(--ink-primary);
  transform: translateX(4px);
}

.scenario-dot {
  color: var(--seal-cinnabar);
  font-size: 1.1rem;
  line-height: 1.3;
  flex-shrink: 0;
}

.scenario-text h4 {
  font-size: 0.98rem;
  color: var(--ink-deep);
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.scenario-text p {
  font-size: 0.86rem;
  color: #616a6b;
  line-height: 1.6;
}

/* 图片展示区 (带水墨晕边) */
.feature-visual {
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.04) 0%, rgba(149, 165, 166, 0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.feature-visual img {
  max-width: 90%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(44, 62, 80, 0.15);
  border: 1px solid rgba(44, 62, 80, 0.15);
  transition: transform 0.5s ease;
}

.feature-card:hover .feature-visual img {
  transform: scale(1.03);
}

/* 题跋文案浮条 */
.visual-caption {
  position: absolute;
  bottom: 15px;
  left: 20px;
  right: 20px;
  background: rgba(245, 242, 233, 0.9);
  backdrop-filter: blur(4px);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.78rem;
  color: var(--ink-primary);
  text-align: center;
  border: 1px solid rgba(44, 62, 80, 0.1);
}

/* 网页版/帮助中心专用样式 */
.page-container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.page-header-box {
  text-align: center;
  background: #fff;
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-ink);
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-ink);
  position: relative;
}

.page-header-box::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ink-primary), transparent);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-card {
  background: #fff;
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-ink);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-ink);
  transition: all 0.3s ease;
  position: relative;
}

.faq-card:hover {
  border-color: var(--ink-primary);
  box-shadow: var(--shadow-ink-hover);
  transform: translateY(-2px);
}

.faq-q {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-deep);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-a {
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.8;
}

/* 网页端云端对话视窗模拟 */
.chat-sandbox {
  background: #fff;
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-ink);
  box-shadow: var(--shadow-ink);
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.sandbox-bar {
  background: var(--ink-primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
}

.sandbox-dots {
  display: flex;
  gap: 6px;
}

.sandbox-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.sandbox-body {
  padding: 1.8rem;
  background: #FAF8F2;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.bubble {
  max-width: 82%;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.75;
}

.bubble-user {
  align-self: flex-end;
  background: var(--ink-primary);
  color: #fff;
  border-bottom-right-radius: 2px;
}

.bubble-ai {
  align-self: flex-start;
  background: #fff;
  color: var(--ink-deep);
  border: 1px solid var(--ink-border);
  border-bottom-left-radius: 2px;
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.05);
}

.sandbox-input-row {
  background: #fff;
  border-top: 1px solid var(--ink-border);
  padding: 1rem 1.5rem;
  display: flex;
  gap: 12px;
  align-items: center;
}

.sandbox-input {
  flex-grow: 1;
  padding: 10px 14px;
  border: 1px solid var(--ink-border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.92rem;
  background: #FAF8F2;
  color: var(--ink-deep);
}

/* 页脚区域 */
.site-footer {
  background: #232f3e;
  color: #BDC3C7;
  padding: 3rem 1.5rem 2rem;
  border-top: 3px solid var(--seal-cinnabar);
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  letter-spacing: 1.5px;
  position: relative;
  padding-bottom: 6px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--seal-cinnabar);
}

.footer-col p {
  line-height: 1.7;
  font-size: 0.88rem;
  color: #A6ACAF;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col ul li a {
  color: #BDC3C7;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-col ul li a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.82rem;
  color: #7F8C8D;
}

/* 响应式适配 */
@media (max-width: 992px) {
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-card,
  .feature-card.reverse {
    grid-template-columns: 1fr;
  }
  .feature-visual {
    order: -1;
    min-height: 240px;
  }
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nav-menu {
    display: none;
  }
  .hero-title {
    font-size: 1.65rem;
  }
  .hero-motto {
    font-size: 1.15rem;
  }
  .download-grid {
    grid-template-columns: 1fr;
  }
  .web-entry-banner {
    flex-direction: column;
    text-align: center;
  }
  .web-entry-left {
    text-align: center;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
}
