@charset "UTF-8";

/* ==========================================================================
   【京剧脸谱风】通义千问官方AI角色扮演平台样式
   色彩体系：
     主色脸谱红：#C62828 (丹心忠烈、关公朱砂)
     辅色脸谱黑：#212121 (铁面无私、包公玄墨)
     点缀脸谱金：#FFB300 (神祇华彩、金猴灿然)
     背景幕布紫：#311B92 (大剧初启、紫绒重幕)
     暗沉幕影：#1F0D66 / #140742 (华彩舞台、灯影聚焦)
     点缀水袖白：#FFFFFF (白绫翻飞、水袖拂云)
   核心意象：
     脸谱撞色、对称纹样、生旦净丑角色印记、舞台大幕、锣鼓点动律
   ========================================================================== */

:root {
  --color-mask-red: #C62828;
  --color-mask-red-light: #E53935;
  --color-mask-red-dark: #8E0000;
  --color-mask-black: #212121;
  --color-mask-black-card: rgba(26, 17, 54, 0.94);
  --color-mask-gold: #FFB300;
  --color-mask-gold-light: #FFD54F;
  --color-curtain-purple: #311B92;
  --color-curtain-dark: #1F0D66;
  --color-curtain-deep: #140742;
  --color-water-white: #FFFFFF;
  --color-gold-border: rgba(255, 179, 0, 0.55);
  --color-red-border: rgba(198, 40, 40, 0.6);
  --color-text-main: #FFFFFF;
  --color-text-sub: #E0D4FC;
  --color-text-muted: #A896D4;
  --font-display: "ZCOOL QingKe HuangYou", "ZCOOL KuaiLe", "Songti SC", "Source Han Serif SC", -apple-system, sans-serif;
  --font-serif: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", SimSun, STSong, serif;
  --font-sans: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow-stage: 0 14px 40px rgba(10, 3, 30, 0.75);
  --shadow-gold: 0 0 24px rgba(255, 179, 0, 0.45);
  --shadow-red: 0 0 24px rgba(198, 40, 40, 0.5);
  --transition: all 0.36s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-curtain-purple);
  color: var(--color-text-main);
  line-height: 1.85;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  /* 舞台幕布厚重垂褶与追光渐变 */
  background-image: 
    radial-gradient(circle at 50% 12%, rgba(255, 179, 0, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 15% 25%, rgba(198, 40, 40, 0.22) 0%, transparent 50%),
    radial-gradient(circle at 85% 35%, rgba(198, 40, 40, 0.22) 0%, transparent 50%),
    linear-gradient(180deg, #140742 0%, #1F0D66 35%, #311B92 65%, #140742 100%);
  background-attachment: fixed;
}

/* 舞台幕布垂直丝绒褶皱纹理 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.22) 0px,
      rgba(0, 0, 0, 0.22) 16px,
      rgba(255, 255, 255, 0.02) 16px,
      rgba(255, 255, 255, 0.02) 32px
    ),
    radial-gradient(circle at 50% 50%, transparent 20%, rgba(10, 3, 30, 0.7) 100%);
  pointer-events: none;
  z-index: 0;
}

/* 锣鼓点节奏舞台追光与水袖浮动层 */
.stage-curtain-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.sleeve-float {
  position: absolute;
  border-radius: 50% 50% 30% 70% / 60% 40% 60% 40%;
  filter: blur(45px);
  opacity: 0.16;
  animation: sleeveWave 20s ease-in-out infinite alternate;
}

.sleeve-float:nth-child(1) {
  top: -60px;
  left: 5%;
  width: 460px;
  height: 420px;
  background: radial-gradient(circle, var(--color-mask-red) 0%, var(--color-mask-gold) 60%, transparent 80%);
  animation-duration: 16s;
}

.sleeve-float:nth-child(2) {
  top: 40%;
  right: 2%;
  width: 520px;
  height: 460px;
  background: radial-gradient(circle, var(--color-mask-gold) 0%, var(--color-mask-red-dark) 65%, transparent 85%);
  animation-duration: 22s;
  animation-delay: -5s;
}

.sleeve-float:nth-child(3) {
  bottom: -80px;
  left: 30%;
  width: 500px;
  height: 400px;
  background: radial-gradient(circle, var(--color-mask-red-light) 0%, var(--color-curtain-purple) 70%, transparent 85%);
  animation-duration: 18s;
  animation-delay: -3s;
}

@keyframes sleeveWave {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 0.14;
  }
  50% {
    transform: translate(50px, -30px) rotate(6deg) scale(1.15);
    opacity: 0.25;
  }
  100% {
    transform: translate(-30px, 40px) rotate(-6deg) scale(0.95);
    opacity: 0.18;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   顶部导航 — 舞台金凤额枋横梁，锚点与下方功能模块一一对应
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 7, 66, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--color-mask-gold);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.7);
  transition: var(--transition);
}

.site-header::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-mask-red), var(--color-mask-gold), var(--color-mask-red), transparent);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-mask-gold);
  box-shadow: 0 0 14px var(--shadow-gold);
  background: #ffffff;
  padding: 2px;
  object-fit: contain;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-text-main);
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-tag {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--color-mask-red), var(--color-mask-gold));
  color: #FFFFFF;
  font-weight: 700;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 8px rgba(198, 40, 40, 0.5);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--color-text-sub);
  border-radius: 4px;
  transition: var(--transition);
  position: relative;
  letter-spacing: 1px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-mask-gold);
  background: rgba(198, 40, 40, 0.25);
  transform: translateY(-1px);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 15%;
  width: 70%;
  height: 2px;
  background: var(--color-mask-gold);
  box-shadow: 0 0 8px var(--color-mask-gold);
}

/* ==========================================================================
   Hero 首屏 + 下载区 (零滚动即可转化，舞台大戏开场，生旦净丑脸谱徽章)
   ========================================================================== */
.hero-section {
  padding: 38px 0 24px;
  text-align: center;
  position: relative;
}

.mask-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 24px;
  background: rgba(33, 33, 33, 0.85);
  border: 1px solid var(--color-mask-gold);
  border-radius: 30px;
  color: var(--color-mask-gold-light);
  font-size: 0.94rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 2.5px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), inset 0 0 12px rgba(255, 179, 0, 0.25);
}

.mask-role-tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 3px;
  background: var(--color-mask-red);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.35;
  margin-bottom: 14px;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 24px rgba(255, 179, 0, 0.35);
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--color-mask-gold-light);
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-subtitle::before,
.hero-subtitle::after {
  content: "— ✦ 锣鼓铿锵 · 华彩千面 ✦ —";
  font-size: 0.86rem;
  color: var(--color-mask-red-light);
  font-weight: 600;
  letter-spacing: 1px;
}

.hero-desc {
  max-width: 880px;
  margin: 0 auto 30px;
  font-size: 1.05rem;
  color: var(--color-text-sub);
  line-height: 1.85;
}

/* 并列 4 个下载入口卡片（生旦净丑角色卡牌，零滚动即可转化） */
.download-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 10px;
}

.download-card {
  background: var(--color-mask-black-card);
  border: 1px solid var(--color-gold-border);
  border-radius: 12px;
  padding: 24px 18px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-stage);
}

/* 顶部脸谱红金对称镶边 */
.download-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-mask-red), var(--color-mask-gold), var(--color-mask-red));
}

.download-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-mask-gold);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 24px rgba(198, 40, 40, 0.4);
  background: rgba(38, 22, 74, 0.98);
}

.download-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  display: inline-block;
  filter: drop-shadow(0 2px 8px rgba(255, 179, 0, 0.4));
}

.download-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 6px;
  letter-spacing: 1.2px;
}

.download-text {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

/* 脸谱朱红金铭按钮 */
.btn-mask {
  display: inline-block;
  width: 100%;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--color-mask-red) 0%, #B71C1C 100%);
  border: 1px solid var(--color-mask-gold);
  box-shadow: var(--shadow-red);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-mask::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 179, 0, 0.45), transparent);
  transition: 0.5s;
}

.btn-mask:hover {
  background: linear-gradient(135deg, var(--color-mask-gold) 0%, var(--color-mask-red) 100%);
  transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(255, 179, 0, 0.6);
  color: #121212;
}

.btn-mask:hover::after {
  left: 100%;
}

.btn-mask-secondary {
  background: rgba(33, 33, 33, 0.85);
  color: var(--color-text-main);
  border: 1px solid var(--color-gold-border);
  box-shadow: none;
}

.btn-mask-secondary:hover {
  background: rgba(198, 40, 40, 0.35);
  color: var(--color-mask-gold-light);
  border-color: var(--color-mask-gold);
}

/* ==========================================================================
   脸谱对称纹样分割线
   ========================================================================== */
.mask-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 44px auto;
  position: relative;
}

.mask-divider-line {
  height: 2px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--color-mask-red), var(--color-mask-gold), transparent);
}

.mask-divider-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 22px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-mask-gold-light);
  background: #190B38;
  border: 1px solid var(--color-mask-gold);
  border-radius: 20px;
  letter-spacing: 2px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   四个功能模块统一版式：模块名 + 情绪化短标题 + 场景化功能点
   脸谱舞台戏台展箱 (.mask-stage-box)
   ========================================================================== */
.feature-section {
  padding: 22px 0;
}

.mask-stage-box {
  display: flex;
  align-items: center;
  gap: 48px;
  background: var(--color-mask-black-card);
  border: 1px solid var(--color-gold-border);
  border-radius: 16px;
  padding: 44px;
  box-shadow: var(--shadow-stage);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

/* 角落对称脸谱耳翅光晕 */
.mask-stage-box::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle at top right, rgba(198, 40, 40, 0.28) 0%, transparent 70%);
  pointer-events: none;
}

.mask-stage-box::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-mask-gold), transparent);
}

.mask-stage-box:hover {
  border-color: var(--color-mask-gold);
  transform: translateY(-4px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.85), 0 0 26px rgba(198, 40, 40, 0.3);
}

.mask-stage-box.reverse {
  flex-direction: row-reverse;
}

.feature-content {
  flex: 1;
}

.module-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(198, 40, 40, 0.3);
  color: var(--color-mask-gold-light);
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 4px;
  border-left: 3px solid var(--color-mask-gold);
  margin-bottom: 12px;
  letter-spacing: 1.5px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.95rem;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.35;
  margin-bottom: 8px;
  letter-spacing: 1.5px;
}

.feature-subtitle {
  font-size: 1.05rem;
  color: var(--color-mask-gold-light);
  font-weight: 700;
  margin-bottom: 22px;
  letter-spacing: 1.8px;
}

.scenario-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.scenario-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.98rem;
  color: var(--color-text-sub);
  line-height: 1.75;
}

.scenario-bullet {
  color: var(--color-mask-gold);
  font-size: 1.15rem;
  line-height: 1.6;
}

.scenario-item strong {
  color: var(--color-text-main);
  font-weight: 700;
}

.feature-media {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.feature-media img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--color-gold-border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.75);
  transition: var(--transition);
  background-color: #160838;
  object-fit: cover;
}

.mask-stage-box:hover .feature-media img {
  transform: scale(1.02);
  border-color: var(--color-mask-gold);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.9), 0 0 24px rgba(255, 179, 0, 0.35);
}

/* ==========================================================================
   网页版入口 — 零安装兜底，承接不愿下载的用户
   ========================================================================== */
.web-entry-section {
  padding: 30px 0 44px;
}

.web-entry-banner {
  background: linear-gradient(135deg, rgba(38, 20, 80, 0.96) 0%, rgba(20, 8, 48, 0.96) 100%);
  border: 1px solid var(--color-mask-gold);
  border-radius: 16px;
  padding: 44px 34px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-stage);
}

.web-entry-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-mask-red), var(--color-mask-gold), var(--color-mask-red));
}

.web-entry-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 14px;
  letter-spacing: 1.8px;
}

.web-entry-desc {
  max-width: 820px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
  color: var(--color-text-sub);
  line-height: 1.8;
}

.web-entry-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  max-width: 440px;
  margin: 0 auto;
}

/* ==========================================================================
   网页版专属内容区 (web.html)
   ========================================================================== */
.chat-preview-box {
  max-width: 840px;
  margin: 32px auto 0;
  background: var(--color-mask-black-card);
  border: 1px solid var(--color-gold-border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-stage);
}

.chat-input-row {
  display: flex;
  gap: 12px;
}

.chat-input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 6px;
  border: 1px solid var(--color-gold-border);
  background: rgba(20, 7, 50, 0.9);
  color: var(--color-text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.chat-input:focus {
  outline: none;
  border-color: var(--color-mask-gold);
  box-shadow: 0 0 14px var(--shadow-gold);
}

.chat-input-row .btn-mask {
  width: auto;
  white-space: nowrap;
  padding: 14px 28px;
}

.web-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.web-step-card {
  background: var(--color-mask-black-card);
  border: 1px solid var(--color-gold-border);
  border-radius: 12px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-stage);
  position: relative;
}

.web-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(198, 40, 40, 0.3);
  color: var(--color-mask-gold);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 14px;
  border: 1px solid var(--color-mask-gold);
}

.web-step-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 10px;
}

.web-step-desc {
  font-size: 0.92rem;
  color: var(--color-text-sub);
  line-height: 1.7;
}

/* ==========================================================================
   帮助中心专属内容区 (help.html)
   ========================================================================== */
.help-hero {
  text-align: center;
  padding: 40px 0 20px;
}

.faq-list {
  max-width: 900px;
  margin: 30px auto 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--color-mask-black-card);
  border: 1px solid var(--color-gold-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-stage);
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 24px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--color-text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: 0.8px;
}

.faq-question::after {
  content: "▼";
  font-size: 0.82rem;
  color: var(--color-mask-gold);
  transition: var(--transition);
}

.faq-item.active .faq-question::after {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 0.98rem;
  color: var(--color-text-sub);
  line-height: 1.8;
  border-top: 1px solid rgba(255, 179, 0, 0.25);
  padding-top: 14px;
}

/* ==========================================================================
   页脚规范
   ========================================================================== */
.site-footer {
  border-top: 2px solid var(--color-mask-gold);
  background: #11052E;
  padding: 36px 0;
  text-align: center;
  margin-top: 40px;
  position: relative;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin-bottom: 16px;
}

.footer-nav a {
  font-size: 0.94rem;
  color: var(--color-text-sub);
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--color-mask-gold);
}

.footer-copy {
  font-size: 0.86rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   响应式断点适配
   ========================================================================== */
@media (max-width: 992px) {
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mask-stage-box,
  .mask-stage-box.reverse {
    flex-direction: column;
    padding: 32px 22px;
    gap: 30px;
  }
  .feature-media img {
    max-width: 100%;
  }
  .web-steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-inner {
    flex-direction: column;
    height: auto;
    padding: 16px 0;
    gap: 12px;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
  }
  .hero-title {
    font-size: 1.55rem;
  }
  .hero-subtitle {
    font-size: 1.08rem;
    flex-direction: column;
    gap: 6px;
  }
  .hero-subtitle::before,
  .hero-subtitle::after {
    display: none;
  }
  .download-grid {
    grid-template-columns: 1fr;
  }
  .web-entry-actions {
    flex-direction: column;
  }
  .chat-input-row {
    flex-direction: column;
  }
  .chat-input-row .btn-mask {
    width: 100%;
  }
}
