/* ===================================================
   1. 全局设置 (Variables, Globals, Typography)
   =================================================== */

/* --- 变量 --- */
:root {
  /* 色彩系统 */
  --primary: #6A39C6;
  --primary-light: #9C4C88;
  --accent: #FFC8DD;
  --bg-light: #faf8fd;
  --text-dark: #000000;
  --title-dark-purple: #000000;
  --text-muted-light: #555555;

  /* Color Palette */
  --thistle: #cdb4dbff;
  --fairy-tale: rgb(247, 198, 217);
  --carnation-pink: rgb(250, 184, 208);
  --uranian-blue: rgb(192, 224, 252);
  --light-sky-blue: rgba(172, 211, 247, 0.829);
  --energy-yellow: #fffec7;

  /* Gradient Accents */
  --accent-a: var(--thistle);
  --accent-b: var(--fairy-tale);
  --accent-c: var(--carnation-pink);
  --accent-d: var(--uranian-blue);
  --accent-e: var(--light-sky-blue);
  --accent-spark: var(--energy-yellow);
  
  /* 间距与基础 */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 6rem;
  
  --radius: 16px;
  --shadow-sm: 0 4px 20px rgba(0,0,0,.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,.10);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.14);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-height: 80px;
}

/* --- 背景动画 --- */
@keyframes auroraFloat {
  0%   { transform: rotate(0deg) scale(1.1) translate(0,0); }
  50%  { transform: rotate(180deg) scale(1.25) translate(3%, -3%); }
  100% { transform: rotate(360deg) scale(1.1) translate(0,0); }
}

body::before {
  content: '';
  position: fixed; inset: -25%;
  z-index: -2;
  background-image:
    radial-gradient(1200px 900px at 12% 20%, var(--accent-b) 0%, transparent 55%),
    radial-gradient(1200px 900px at 84% 18%, var(--accent-a) 0%, transparent 55%),
    radial-gradient(1400px 1000px at 25% 85%, var(--accent-c) 0%, transparent 55%),
    radial-gradient(1200px 900px at 75% 88%, var(--accent-d) 0%, transparent 55%),
    radial-gradient(1200px 900px at 50% 50%, var(--accent-e) 0%, transparent 55%),
    radial-gradient(900px 700px  at 40% 30%, var(--accent-spark) 0%, transparent 60%);
  filter: blur(140px) saturate(1.04);
  opacity: .55;
  animation: auroraFloat 26s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed; inset: -30%;
  z-index: -3;
  background-image:
    radial-gradient(1400px 1000px at 20% 75%, var(--accent-a) 0%, transparent 58%),
    radial-gradient(1200px 900px  at 80% 70%, var(--accent-c) 0%, transparent 58%),
    radial-gradient(1200px 900px  at 50% 30%, var(--accent-b) 0%, transparent 58%);
  filter: blur(170px) saturate(1.08);
  opacity: .40;
  animation: auroraFloat 38s linear infinite alternate-reverse;
}

html::after {
  content: '';
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/><feComponentTransfer><feFuncA type='table' tableValues='0 0 0 0 0 0.02 0'/></feComponentTransfer></filter><rect width='120' height='120' filter='url(%23n)' opacity='0.3'/></svg>");
  opacity: .06;
}

/* --- 全局重置与基础 --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: transparent;
  color: var(--text-dark);
  font-family: var(--font-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
section { 
  padding: var(--spacing-xxl) 0; 
  overflow: hidden;
  scroll-margin-top: var(--header-height);
}

/* --- 排版 --- */
h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1.3; font-weight: 700; color: var(--title-dark-purple); margin: .5rem 0 1rem; }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); line-height: 1.3; text-align: center; margin: 0 auto var(--spacing-xl); font-weight: 700; color: var(--title-dark-purple); }
h3 { font-size: clamp(1.3rem, 3vw, 1.6rem); line-height: 1.3; margin-bottom: var(--spacing-md); font-weight: 700; color: var(--title-dark-purple); }
h4 { font-size: 1.1rem; font-weight: 600; }
p { font-size: 1.06rem; color: var(--text-muted-light); max-width: 70ch; line-height: 1.7; margin-bottom: var(--spacing-md); }
a { color: var(--primary); text-decoration: none; transition: color .25s; }
a:hover { color: var(--primary-light); text-decoration: underline; }

/* 强制居中辅助类 */
.section-subtitle { text-align: center !important; margin: calc(-1 * var(--spacing-md)) auto var(--spacing-xl); color: var(--text-muted-light); max-width: 600px; }

/* --- 辅助类 --- */
.container { 
  max-width: 1350px; 
  margin: 0 auto; 
  padding: 0 1.5rem; 
}
.gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--primary-light)) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  display: inline-block;
}
.grid-2, .grid-3 { display: grid; gap: var(--spacing-lg); margin-top: var(--spacing-xl); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.mobile-only { display: none; }
.desktop-only { display: block; }

/* ===================================================
   2. 可重用组件 (Components)
   =================================================== */

/* --- 按钮 --- */
.cta-button { display: inline-block; padding: .9rem 1.6rem; border-radius: 999px; border: none; font-weight: 700; color: #fff !important; background: linear-gradient(90deg, var(--primary), var(--primary-light)); box-shadow: 0 8px 30px rgba(75, 36, 144, .25); transition: transform .2s ease, box-shadow .2s ease; cursor: pointer; text-align: center; }
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(75, 36, 144, .35); color: white; text-decoration: none; }
.cta-button.cta-secondary { background: transparent; border: 2px solid #4b2490; color: #000 !important; }
.cta-button.cta-secondary:hover { background: #4b2490; color: #fff !important; }

/* --- 卡片基础 --- */
.base-card { background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius); padding: var(--spacing-lg); transition: all 0.3s ease; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* --- 翻转卡片 --- */
.case-card, .team-card { perspective: 1000px; cursor: pointer; }
.case-card-inner, .team-card-inner { position: relative; width: 100%; height: 100%; transition: transform 0.6s ease; transform-style: preserve-3d; }
.case-card-inner.is-flipped, .team-card-inner.is-flipped { transform: rotateY(180deg); }
.case-card-front, .case-card-back, .team-card-front, .team-card-back { 
  position: absolute; width: 100%; height: 100%; 
  -webkit-backface-visibility: hidden; backface-visibility: hidden; 
  border-radius: var(--radius); 
  border: 1px solid rgba(255, 255, 255, 0.2); 
  box-shadow: var(--shadow-sm); 
  background: rgba(255, 255, 255, 0.4); 
  backdrop-filter: blur(10px); 
  display: flex; flex-direction: column; justify-content: center; padding: 1.5rem; 
}
.case-card-back, .team-card-back { transform: rotateY(180deg); }

/* --- FAQ --- */
.faq-list { max-width: 900px; margin: 2rem auto 0; display: grid; gap: 1rem; }
.faq-item { border-radius: 12px; border: 1px solid rgba(0,0,0,.08); padding: 1rem 1.2rem; background: rgba(255, 255, 255, 0.65); backdrop-filter: blur(15px); }
.faq-item > summary { cursor: pointer; font-weight: 700; color: var(--title-dark-purple); display: flex; align-items: center; list-style: none; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-icon { margin-right: 1rem; transition: transform 0.3s ease-in-out; flex-shrink: 0; display: flex; align-items: center; }
details[open] > summary .faq-icon { transform: rotate(45deg); }
.faq-item p { margin: 0.6rem 0 0 0; padding-left: 2.7rem; padding-right: 1.2rem; }

/* ===================================================
   3. 页面布局 (Layout Sections - Desktop First)
   =================================================== */

/* --- 头部 (Header) --- */
.header { 
  position: sticky; top: 0; z-index: 1000; padding: 1rem 0; 
  background: transparent !important; 
  transition: background-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease; 
}
.header.scrolled { 
  background: rgba(255,255,255,.9); 
  backdrop-filter: blur(12px); 
  box-shadow: 0 2px 10px rgba(0,0,0,.05); 
}
.header-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-size: 1.7rem; font-weight: 800; color: var(--title-dark-purple); height: 40px; display: flex; align-items: center; }
/* Fix 9: Logo不应该有shadow */
.logo span { display: none; text-shadow: none !important; } 
.nav { display: block; }
.nav ul { display: flex; list-style: none; gap: 1.5rem; align-items: center; }
.nav a { font-size: 1rem; font-weight: 500; color: var(--text-muted-light); }
.nav a:hover { color: var(--title-dark-purple); text-decoration: none; }

/* --- Fix 1: 桌面端 Dropdown (仅 Hover 显示, 默认隐藏) --- */
.nav-item-dropdown { position: relative; height: 100%; display: flex; align-items: center; cursor: pointer; }
.dropdown-menu { 
  display: none !important; /* 强制默认隐藏 */
  flex-direction: column; 
  position: absolute; 
  top: 100%; left: 50%; transform: translateX(-50%); 
  background: #fff; min-width: 160px; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
  border-radius: 12px; padding: 8px 0; z-index: 1100; 
}
/* 仅 Hover 时显示 */
.nav-item-dropdown:hover .dropdown-menu { display: flex !important; animation: fadeInUp 0.2s ease-out; }
/* Dropdown 链接左对齐 */
.dropdown-menu a { 
  display: block; 
  padding: 10px 20px; 
  color: var(--text-dark); 
  text-align: left !important; /* 强制左对齐 */
  justify-content: flex-start;
}
@keyframes fadeInUp { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* 默认隐藏汉堡菜单和移动菜单 */
.hamburger { display: none; }
.mobile-menu { display: none; }

/* --- 价值主张 (Hero Section) --- */
#value.value-prop-section { padding: 0; display: flex; align-items: center; min-height: calc(100vh - var(--header-height)); text-align: center;}
.value-prop { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(16px, 3.6vw, 32px); width: 100%; max-width: 1400px; margin: 0 auto;}
.vp-text { z-index: 10; text-align: center; padding-left: calc(var(--spacing-xl) * 2); padding-right: var(--spacing-xl); }
.vp-text h2 { margin: 0 auto var(--spacing-md); }
.vp-text p { margin: 0 auto var(--spacing-lg); max-width: 60ch; }
.vp-actions { display: flex; justify-content: center; gap: var(--spacing-md); }
.vp-video { width: 100%; max-width: 550px; margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; }
.vp-video .vp-player-container { width: auto; height: auto; position: relative; }
.vp-video .vp-player { display: block; height: 70vh; width: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: 0 0 30px rgba(255,255,255,0.6); }
.video-loader { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(255,255,255,0.8); backdrop-filter: blur(10px); border-radius: var(--radius); z-index: 20; transition: opacity 0.5s ease; }
.video-loader.hidden { opacity: 0; visibility: hidden; }
.loading-spinner { width: 60px; height: 60px; border: 4px solid rgba(106, 57, 198, 0.2); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 1rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- 不可能三角 (Trilemma) --- */
.trilemma-wrapper { position: relative; height: 650px; max-width: 1000px; margin: 0 auto; }
.trilemma-node { width: 260px; height: 260px; border-radius: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; background: rgba(255, 255, 255, 0.4); border: 2px solid rgba(106, 57, 198, 0.3); box-shadow: var(--shadow-md); padding: 1.5rem; position: absolute; text-align: center; opacity: 0; transform: scale(0.8); top: 50%; left: 50%; transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.node-realism { transform: translate(-50%, -80%) scale(0.8); }
.node-cost { transform: translate(-95%, 10%) scale(0.8); }
.node-latency { transform: translate(-5%, 10%) scale(0.8); }
.trilemma-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.7); text-align: center; z-index: 3; opacity: 0; transition: opacity 0.7s ease-out, transform 0.7s ease-out; width: 320px; }
.trilemma-center h3 { font-size: 2.8rem; background: linear-gradient(90deg, var(--primary), var(--primary-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.trilemma-wrapper.reveal.in .node-realism { opacity: 1; transform: translate(-50%, -110%) scale(1); }
.trilemma-wrapper.reveal.in .node-cost { opacity: 1; transform: translate(-115%, 10%) scale(1); }
.trilemma-wrapper.reveal.in .node-latency { opacity: 1; transform: translate(15%, 10%) scale(1); }
.trilemma-wrapper.reveal.in .trilemma-center { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@keyframes moveLogoUp { to { transform: translate(-50%, -150%); } }
@keyframes moveNodeToBottomCenter { to { transform: translate(-50%, 5px) scale(0.9); } }
@keyframes moveNodeToBottomLeft { to { transform: translate(-155%, 5px) scale(0.9); } }
@keyframes moveNodeToBottomRight { to { transform: translate(55%, 5px) scale(0.9); } }
@keyframes fadeInGlow { to { opacity: 1; } }
.trilemma-wrapper.animate-complete .trilemma-center { animation: moveLogoUp 0.8s ease-in-out forwards; }
.trilemma-wrapper.animate-complete .node-realism { animation: moveNodeToBottomCenter 0.8s ease-in-out forwards; }
.trilemma-wrapper.animate-complete .node-cost { animation: moveNodeToBottomLeft 0.8s ease-in-out forwards; }
.trilemma-wrapper.animate-complete .node-latency { animation: moveNodeToBottomRight 0.8s ease-in-out forwards; }
.trilemma-wrapper.animate-complete .trilemma-center .glow-text { animation: fadeInGlow 0.8s ease-out 0.8s forwards; opacity: 0; margin-top: 0.8rem; background: linear-gradient(90deg, var(--primary), var(--primary-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* --- Tech Features (超越工具) --- */
.tech-features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; max-width: 800px; margin: 3rem auto 0; }
.feature-card { 
  background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(10px); padding: var(--spacing-lg); border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: var(--shadow-sm); transition: transform .25s ease;
  /* Fix 2: 强制居中 */
  text-align: center;
}
.feature-card:hover { transform: translateY(-5px); }

/* --- Tech Demo (超越对口型) --- */
.tech-tilt-row { display: flex; justify-content: center; gap: clamp(140px, 18vw, 220px); width: 100%; }
.tilt-card { width: clamp(220px, 20vw, 280px); }
.tilt-media { width: 100%; aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; margin-bottom: 1rem; }
.tilt-media video { width: 100%; height: 100%; object-fit: cover; }
/* Fix 3: 视频下方文字居中 */
.tilt-text { text-align: center; } 

/* --- Product --- */
.product-card { text-align: center; background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(10px); padding: var(--spacing-lg); border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: var(--shadow-sm); }
.card-icon-wrapper { height: 48px; margin: 0 auto var(--spacing-md); display: flex; justify-content: center; align-items: center; }
#lottie-rocket-icon { transform: scale(1.3); }

/* --- Comparison Table --- */
.comparison-table { width: 100%; margin-top: 2.2rem; border-collapse: collapse; text-align: left; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid rgba(0,0,0,.08); table-layout: fixed; }
.comparison-table th, .comparison-table td { padding: 1.2rem; border-bottom: 1px solid rgba(0,0,0,.08); }
.comparison-table th { background: rgba(255, 255, 255, .6); font-weight: 600; }
.comparison-table tr { background: rgba(255, 255, 255, .35); }
.comparison-table td:first-child { font-weight: 600; color: var(--title-dark-purple); width: 34%; border-left: 3px solid transparent; transition: border-left-color 0.8s ease-out; }
.comparison-table.reveal.in td:first-child { border-left-color: var(--primary); }

/* --- Use Cases (客户赋能) - Fix: Center Content --- */
.case-card { height: 320px; }
.case-card-front, .case-card-back { 
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  align-items: center; /* 关键：垂直居中对齐 */
  text-align: center; /* 关键：文字居中 */
  padding: 2rem; 
}
.case-card-front h3 { margin-bottom: 1.2rem; width: 100%; }
.case-card-front .case-content { 
  display: flex; 
  justify-content: center; 
  width: 100%; 
  margin-bottom: 0.8rem; 
}
.case-card-front h4 { font-size: 1.1rem; margin: 0; }
.case-card-front p { margin: 0; color: var(--text-muted-light); }
.case-card-back h3 { color: var(--primary); margin-bottom: 1.5rem; width: 100%; }

.team-container-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; max-width: 1100px; margin: 3rem auto 0; }
.team-members-list { display: grid; gap: 1.5rem; }
.team-card { min-height: 90px; }
.team-card-front h3 { margin-bottom: 0.25rem; font-size: 1.25rem; }
.team-achievements h3 { font-size: 1.75rem; margin-bottom: 1rem; }
.achievements-grid { display: grid; gap: 2rem; }
.logo-group { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.logo-svg { height: 28px; opacity: 0.7; }

/* --- Final CTA (探索下一个场景) --- */
/* Fix 4: 文字和Button居中 */
.final-cta { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; border-radius: var(--radius); margin: 0 2rem; }
.final-cta .container { 
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-top: 2rem; padding-bottom: 2rem; 
}
.final-cta h2, .final-cta p { color: #fff; text-align: center; }
.final-cta p { margin: 1rem auto 2rem; }
.final-cta .cta-button { margin-top: 0; display: inline-block; }

/* --- Contact & Footer --- */
/* Fix 8: 联系我们 Button居中 */
.contact-strip { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; margin-top: 2rem; align-items: center; }
/* Fix 8b: 联系我们不应该是bullet point */
.contact-points { list-style: none; padding: 0; margin: 1rem 0; }

.footer { background: #fff; padding: 4rem 0 2rem; border-top: 1px solid rgba(0,0,0,.08); }
.footer .container { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.footer .logo { margin: 0 auto var(--spacing-sm); }
.footer .logo span { display: inline-block; color: var(--title-dark-purple); }
.footer .links { display: flex; gap: 1.2rem; list-style: none; flex-wrap: wrap; justify-content: center; margin: 1rem 0; }
.footer .copyright { text-align: center; display: block; margin: 0 auto; }


/* ===================================================
   4. Legal 页面样式 (Document Center)
   =================================================== */
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 4rem; padding-top: 2rem; padding-bottom: 4rem; min-height: 80vh; position: relative; }
.legal-sidebar { position: relative; }
.legal-nav { position: sticky; top: calc(var(--header-height) + 2rem); padding: 1.5rem; background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px); border-radius: var(--radius); border: 1px solid rgba(0,0,0,.06); }
.legal-nav ul { list-style: none; }
.legal-nav a { display: block; padding: 0.7rem 1rem; color: var(--text-dark); border-radius: 8px; font-size: 0.95rem; }
.legal-nav a.active { background: linear-gradient(90deg, var(--primary), var(--primary-light)); color: #fff; }

.legal-content { background: #fff; border-radius: var(--radius); padding: 4rem 5rem; box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
.legal-section h1 { font-size: 2.2rem; margin-bottom: 1.5rem; color: var(--title-dark-purple); text-align: left; line-height: 1.2; border-bottom: 2px solid rgba(0,0,0,0.05); padding-bottom: 1rem; }
.legal-section h2 { font-size: 1.8rem; margin-top: 2.5rem; margin-bottom: 1.2rem; text-align: left; color: var(--title-dark-purple); }
.legal-section h3 { font-size: 1.4rem; margin-top: 2rem; margin-bottom: 1rem; color: var(--title-dark-purple); text-align: left; }
.legal-section h4 { font-size: 1.1rem; margin-top: 1.5rem; margin-bottom: 0.8rem; font-weight: 600; color: #333; text-align: left; }
.legal-section p { font-size: 1rem; line-height: 1.8; margin-bottom: 1.2rem; color: #444; text-align: justify; max-width: none; }
.legal-section ul { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.legal-section li { margin-bottom: 0.5rem; line-height: 1.7; color: #444; }
.doc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.download-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 600; color: var(--primary); background: rgba(106, 57, 198, 0.08); padding: 8px 16px; border-radius: 20px; }
.table-wrapper { overflow-x: auto; margin: 1.5rem 0; border: 1px solid rgba(0,0,0,0.1); border-radius: 8px; }
/* Fix 5: Legal 表格列宽调整 */
.legal-section table { width: 100%; border-collapse: collapse; min-width: 600px; }
.legal-section th, .legal-section td { padding: 1rem 1.2rem; border-bottom: 1px solid rgba(0,0,0,0.08); text-align: left; }
.legal-section th { background: rgba(106, 57, 198, 0.05); color: var(--primary); font-weight: 600; }
/* 强制第一列不要太窄，以便显示标题 */
.legal-section th:first-child, .legal-section td:first-child { min-width: 140px; width: 20%; }

/* Legal 页面专用状态 (白底Header) */
body.legal-page .header { background: rgba(255, 255, 255, 0.95) !important; backdrop-filter: blur(10px); }
body.legal-page .logo span { color: #333 !important; text-shadow: none; }
body.legal-page .hamburger { background: transparent !important; box-shadow: none !important; }
body.legal-page .hamburger span { background: #333 !important; }


/* ===================================================
   5. 响应式媒体查询 (Responsive Media Queries)
   =================================================== */

/* --- 992px: 平板 / 手机通用设置 --- */
@media (max-width: 992px) {
  /* 隐藏桌面导航 */
  .nav { display: none; }
  
  /* Header 样式 */
  .header {
    position: fixed !important;
    top: 0; left: 0; width: 100%;
    z-index: 10001;
    background: transparent; 
    transition: background-color 0.35s ease;
  }
  .header.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  }

  /* Fix 6: Mobile 菜单按钮 (和Logo一样的Motion Logic) */
  .hamburger {
    display: block !important;
    position: relative;
    z-index: 10002;
    width: 44px; height: 44px;
    border: none;
    background: transparent; /* 移除背景 */
    cursor: pointer;
    margin-right: 1rem;
  }

  /* 汉堡线条：默认白色，scrolled变黑 */
  .hamburger span {
    position: absolute;
    left: 11px; right: 11px; height: 2px;
    background: #fff; /* 默认白色 */
    border-radius: 2px;
    transition: all 0.25s ease;
  }
  .hamburger span:nth-child(1) { top: 14px; }
  .hamburger span:nth-child(2) { top: 21px; }
  .hamburger span:nth-child(3) { top: 28px; }

  /* Scrolled 状态：变黑 */
  .header.scrolled .hamburger span { background: #333; }

  /* 菜单打开状态：强制变黑 (因为菜单是白底) */
  .hamburger.open span { background: #333 !important; }
  .hamburger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

  /* Logo: 强制显示 */
  .logo span {
    display: inline-block !important;
    color: #fff; /* 默认白色 */
    text-shadow: none;
    transition: color 0.35s ease;
  }
  .header.scrolled .logo span { color: #333 !important; }

  /* 移动菜单容器 (恢复毛玻璃效果) */
  .mobile-menu {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    
    /* Fix: Mobile Menu Background with Blur */
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    
    padding-top: 90px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-15px);
    transition: all 0.3s ease;
  }
  .mobile-menu.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .mobile-menu a {
    display: block; padding: 1rem 1.5rem;
    font-size: 1.1rem; color: #333; font-weight: 500;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  /* 修复 Dropdown 在移动端的显示 */
  .mobile-menu .dropdown-menu {
    position: static; display: block; transform: none;
    box-shadow: none; border: none; padding: 0 0 0 1rem;
    min-width: auto;
    background: transparent; /* 移动端背景透明 */
  }
  .mobile-menu .nav-item-dropdown:hover .dropdown-menu { animation: none; }
}

/* --- 960px: 布局调整 --- */
@media (max-width: 960px) {
  /* Landing Hero 调整 */
  #value.value-prop-section {
    padding: 0 !important;
    display: block;
  }
  .value-prop { display: block; width: 100%; height: 100%; margin: 0; padding: 0; }
  
  .vp-video {
    position: absolute !important; top: 0; left: 0; width: 100% !important; height: 100% !important;
    z-index: 1; margin: 0 !important; max-width: none !important;
  }
  .vp-video .vp-player { width: 100% !important; height: 100% !important; border-radius: 0 !important; }
  
  .vp-text {
    position: absolute !important; bottom: 0 !important; left: 0; right: 0;
    width: 100% !important;
    padding: 4rem 1.5rem 3rem !important;
    z-index: 10;
    background: linear-gradient(to top, rgba(255,255,255,1) 25%, rgba(255,255,255,0.85) 60%, transparent 100%);
  }
  .vp-text h2 { color: #000 !important; }
  .vp-text p { color: #444 !important; }
}

/* --- 820px: 手机端深度适配 --- */
@media (max-width: 820px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: block !important; }
  
  /* Fix 5 (Section Spacing): 缩小间距 */
  section { padding: 3rem 0; }

  /* Fix 5 (Mobile): 首页视频置顶居中 100vh */
  #value.value-prop-section, .value-prop { height: 100vh; }
  .vp-video .vp-player { height: 100vh !important; object-fit: cover; }
  
  /* Fix 1 (Mobile Trilemma Background): 白色渐变过渡 */
  #trilemma {
    background: linear-gradient(to bottom, #ffffff 0%, #ffffff 20%, rgba(255,255,255,0.8) 50%, transparent 100%);
    padding-top: 3rem;
  }

  /* Fix 2 (Mobile Arrows): 强制显示黑色箭头 */
  .carousel-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .carousel-arrow::before {
    content: '';
    display: block !important;
    width: 10px !important;
    height: 10px !important;
    border-style: solid !important;
    border-color: #000 !important; /* 强制黑色 */
    border-width: 2px 2px 0 0 !important; /* Top-Right Border */
    transform: rotate(45deg); /* Default pointing right */
  }
  /* Left Arrow: Rotate to point left */
  .carousel-arrow-left::before { transform: rotate(-135deg) !important; margin-left: 4px; }
  /* Right Arrow: Point right */
  .carousel-arrow-right::before { transform: rotate(45deg) !important; margin-right: 4px; }
  
  /* Fix 8: 联系我们 Button居中 & 布局修复 */
  .contact-strip { 
    grid-template-columns: 1fr; 
    text-align: center; 
    justify-items: center; 
  }
  .contact-col { text-align: center; }
  
  /* Fix 6: 手机端超越工具 (Tech Features) 单列 */
  .tech-features-grid { grid-template-columns: 1fr !important; }
  
  /* Fix 7: 我们的团队 (Our Team) 单列 + 文字居中 */
  .team-container-grid { grid-template-columns: 1fr !important; }
  .team-card-front, .team-card-back { 
    text-align: center !important; 
    align-items: center; 
    display: flex; flex-direction: column; justify-content: center;
  }
  .team-card-front p, .team-card-back p { text-align: center !important; }

  /* 修复：卡片文字居中 (Feature, Product) */
  .feature-card, .product-card, .case-card-front, .case-card-back {
    text-align: center !important;
    align-items: center !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  /* Fix 5: Legal 表格横向滚动 */
  .comparison-table { display: block; width: 100%; overflow-x: auto; white-space: nowrap; margin-top: 1.5rem; }

  /* 修复：Legal 页面移除侧边栏 */
  .legal-sidebar { display: none !important; }
  .legal-layout { display: block !important; padding: 2rem 1rem !important; }
  .legal-content { padding: 1.5rem 1rem !important; width: 100%; }

  /* 修复：超越对口型 (Tech Demo) */
  .tech-demo-carousel-wrapper { width: 100%; position: relative; padding-bottom: 20px; }
  .tech-demo-container-outer { width: 85%; margin: 0 auto; overflow: hidden; border-radius: var(--radius); position: relative; aspect-ratio: 9/16; box-shadow: var(--shadow-md); }
  .tech-demo-container { display: flex; height: 100%; }
  .tech-demo-slide { width: 100%; height: 100%; flex-shrink: 0; position: relative; }
  .tech-demo-slide video { width: 100%; height: 100%; object-fit: cover; }
  .tech-demo-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 1.5rem 1rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    z-index: 10; text-align: center;
    display: block !important; 
  }
  .tech-demo-caption h3 { color: #fff !important; font-size: 1.2rem; }
  .tech-demo-caption p { color: rgba(255,255,255,0.9) !important; font-size: 0.9rem; }
  .tech-demo-carousel-wrapper .carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 20;
    background: rgba(255,255,255,0.8);
  }
  .tech-demo-carousel-wrapper .carousel-arrow-left { left: 0; }
  .tech-demo-carousel-wrapper .carousel-arrow-right { right: 0; }

  /* 修复：不可能三角 */
  #trilemma > .container { display: flex; flex-direction: column; align-items: center; }
  .trilemma-wrapper { height: auto; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
  .trilemma-center { position: relative; inset: auto; transform: none !important; width: 100%; order: -1; margin-bottom: 0 !important; height: auto; opacity: 1 !important; }
  .trilemma-center h3, .trilemma-center p { display: none; }
  .trilemma-center .glow-text { display: block !important; font-size: 1.2rem !important; opacity: 1 !important; animation: none !important; background: none; color: var(--primary); }
  .trilemma-carousel { position: relative; width: 100%; height: 320px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
  .trilemma-nodes-container { display: flex; align-items: center; height: 100%; position: absolute; left: 0; transition: transform 0.5s ease-in-out; }
  .trilemma-node { width: 240px !important; height: 240px !important; flex-shrink: 0; position: relative !important; transform: scale(0.85) !important; opacity: 0.5 !important; transition: transform 0.5s !important; margin: 0 1rem !important; top: auto !important; left: auto !important; }
  .trilemma-node.active { transform: scale(1) !important; opacity: 1 !important; }
  .carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; z-index: 30; background: rgba(255,255,255,0.5); border-radius: 50%; display: flex; justify-content: center; align-items: center; }
  .carousel-arrow-left { left: 1rem; } .carousel-arrow-right { right: 1rem; }
}