/* 主题配色：参考紫色配色板及色号 */
:root {
  --purple-1: #F9F0FF;
  --purple-2: #EFD8FF;
  --purple-3: #D3ADF7;
  --purple-4: #B37FEB;
  --purple-5: #9254DE;
  --purple-6: #722ED1; /* 暗夜紫 */
  --purple-7: #551DB0;
  --purple-8: #3C108F;
  --purple-9: #27066E;
  --purple-10: #16034D;

  --bg: #f7f7fb;
  --text: #1f2233;
  --muted: #666b85;
  --card: #ffffff;
  --card2: #f3f1fa;
  --border: rgba(0,0,0,0.08);
  
  /* 新增渐变和阴影变量 */
  --gradient-primary: linear-gradient(135deg, var(--purple-6), var(--purple-8));
  --gradient-secondary: linear-gradient(135deg, var(--purple-5), var(--purple-7));
  --shadow-soft: 0 10px 30px rgba(114, 46, 209, 0.1);
  --shadow-medium: 0 15px 35px rgba(114, 46, 209, 0.15);
  --shadow-strong: 0 20px 40px rgba(114, 46, 209, 0.2);
  --animation-speed: 0.5s;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container { width: 92%; max-width: 1160px; margin: 0 auto; }

/* 顶部导航 */
.site-header { position: sticky; top: 0; backdrop-filter: saturate(180%) blur(10px); background: rgba(255, 255, 255, 0.85); border-bottom: 1px solid var(--border); z-index: 1000; transition: all var(--animation-speed) cubic-bezier(0.165, 0.84, 0.44, 1); }
.site-header.scrolled { box-shadow: var(--shadow-medium); background: rgba(255, 255, 255, 0.95); }
.header-inner { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); position: relative; overflow: hidden; }
.brand-logo { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 8px 24px rgba(114, 46, 209, 0.35); transition: transform 0.3s ease; }
.brand:hover .brand-logo { transform: scale(1.05); }
.brand-text { display: flex; flex-direction: column; font-size: 13px; line-height: 1.15; opacity: 0.95; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.brand-text strong { font-size: 14px; }
.site-nav { margin-left: auto; display: flex; gap: 18px; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 500; padding: 8px 10px; border-radius: 8px; transition: all 0.3s ease; position: relative; }
.site-nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--gradient-primary); transform: scaleX(0); transform-origin: right; transition: transform 0.3s ease; }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.site-nav a:hover { background: rgba(114, 46, 209, 0.12); }
.nav-toggle { display:none; margin-left:auto; font-size:20px; background:transparent; color:var(--text); border:1px solid var(--border); border-radius:8px; padding:6px 10px; cursor: pointer; }

/* 首屏区 */
.gradient-bg {
  background: radial-gradient(1200px 400px at 20% -10%, rgba(114,46,209,0.25), transparent 60%),
              radial-gradient(900px 300px at 90% 0%, rgba(60,16,143,0.22), transparent 60%),
              linear-gradient(180deg, #f7f5ff, #ffffff 60%);
  animation: gradientAnimation 15s ease infinite;
}
@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero { padding: 84px 0 40px; position: relative; }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 28px; }
.hero-content { animation: fadeInUp 1s ease-out; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-content h1 { font-size: 32px; margin: 0 0 10px; letter-spacing: 0.4px; position: relative; }
.hero-content h1::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 60px; height: 3px; background: var(--gradient-primary); border-radius: 2px; }
.hero-content p { color: var(--muted); margin: 0 0 18px; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; animation: fadeIn 1.5s ease-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: 10px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; }
.btn-primary { background: var(--gradient-primary); color: #fff; box-shadow: 0 10px 30px rgba(114,46,209,0.4); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(114,46,209,0.5); }
.btn-ghost { color: var(--text); border: 1px solid var(--border); background: rgba(255,255,255,0.2); backdrop-filter: blur(5px); }
.btn-ghost:hover { background: rgba(114,46,209,0.1); transform: translateY(-2px); }
.hero-visual .image-placeholder { position: relative; border: 1px dashed rgba(0,0,0,0.18); background: linear-gradient(135deg, rgba(114,46,209,0.08), rgba(60,16,143,0.08)); border-radius: 16px; height: 240px; overflow: hidden; animation: fadeIn 1.5s ease-out 0.3s backwards; }
.scroll-indicator { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 12px; animation: float 2s ease-in-out infinite; opacity: 0.8; transition: all 0.3s ease; }
.scroll-indicator:hover { opacity: 1; transform: translate(-50%, -5px); }
@keyframes float { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -6px); } }

/* 版块通用 */
.section { padding: 56px 0; }
.section.alt { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.0)); }
.section-title { font-size: 24px; margin: 0 0 10px; }
.section-desc { color: var(--muted); margin: 0 0 18px; }

/* 卡片与网格 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 30px; box-shadow: 0 10px 30px rgba(60,16,143,0.08); transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: var(--gradient-primary); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(114, 46, 209, 0.15); }
.card:hover::before { transform: scaleX(1); }
.card h3 { margin: 0 0 8px; font-size: 18px; position: relative; display: inline-block; }
.card h3::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 40px; height: 3px; background: var(--gradient-primary); border-radius: 2px; transition: width 0.3s ease; }
.card:hover h3::after { width: 100%; }
.card p { color: var(--muted); margin: 0 0 14px; line-height: 1.7; }

/* 图片占位 */
.image-placeholder { 
  position: relative; 
  border: 1px dashed rgba(114,46,209,0.3); 
  background: linear-gradient(135deg, rgba(114,46,209,0.08), rgba(60,16,143,0.08)); 
  border-radius: 16px; 
  height: 240px; 
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(114,46,209,0.1);
  transition: all 0.4s ease;
}

.image-placeholder:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(114,46,209,0.2);
  border-color: rgba(114,46,209,0.5);
}

.shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(0); }
  100% { transform: translateX(200%); }
}
.image-placeholder.small { height: 120px; }
.image-placeholder::after { content: attr(data-label); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; letter-spacing: 0.3px; }
.image-placeholder::before { content: ""; position:absolute; inset:0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent); transform: translateX(-100%); animation: shimmer 2.8s ease-in-out infinite; }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* 当占位内放入图片时，移除占位的装饰层，并让图片自适应 */
.image-placeholder img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-placeholder.with-image::before,
.image-placeholder.with-image::after { display: none; }
/* 政策网格 */
.policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.policy-item { background: var(--card2); border: 1px solid var(--border); border-radius: 16px; padding: 16px; }
.policy-item h3 { margin: 0 0 8px; font-size: 16px; }
.policy-item ul { margin: 0; padding-left: 18px; color: var(--muted); }

/* 方案步骤 */
.solution-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.step { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 14px; }
.step-index { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--purple-6), var(--purple-7)); color: #fff; font-weight: 700; }
.step-content h3 { margin: 0 0 6px; font-size: 16px; }
.step-content p { margin: 0; color: var(--muted); }

/* 特色网格 */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px; transition: transform .25s ease, box-shadow .25s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(114,46,209,.25); }

/* 关于我们 */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.about-text p { color: var(--muted); }

/* 页脚 */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0; background: rgba(114,46,209,0.04); }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 28px; height: 28px; border-radius: 6px; box-shadow: 0 6px 18px rgba(114,46,209,0.35); }
.footer-links { display: flex; gap: 10px; justify-content: center; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-copy { color: var(--muted); font-size: 12px; text-align: right; }

/* 返回顶部 */
.back-to-top { position: fixed; right: 14px; bottom: 14px; width: 36px; height: 36px; border-radius: 10px; background: rgba(114,46,209,0.25); color: #fff; display:flex; align-items:center; justify-content:center; text-decoration:none; box-shadow: 0 10px 24px rgba(114,46,209,0.35); transition: .25s ease; }
.back-to-top:hover { background: rgba(114,46,209,0.4); transform: translateY(-2px); }

/* 进场动效 */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* 响应式处理 */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .cards, .policy-grid, .solution-steps, .features-grid, .about-grid, .footer-inner { grid-template-columns: 1fr; }
  .site-nav { display:none; }
  .nav-toggle { display:block; }
}

@media (max-width: 640px) {
  .hero { padding: 64px 0 28px; }
  .hero-content h1 { font-size: 24px; }
  .section { padding: 40px 0; }
}
/* 系统演示图容器与图片样式 */
.media-frame { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--card); box-shadow: 0 12px 32px rgba(60,16,143,0.12); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }