/* ============================================================
   玩学创客实验室 · wanxueai-studio.cn
   纯静态官网样式 · 零依赖
   ============================================================ */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --violet: #7c3aed;
  --cyan: #06b6d4;
  --ink: #0f172a;
  --text: #334155;
  --text-light: #64748b;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --line: #e2e8f0;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .14);
  --gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 55%, #06b6d4 130%);
  --maxw: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 18px; }
.brand-logo { width: 38px; height: 38px; flex: 0 0 auto; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; color: var(--text); font-size: 15px;
  transition: background .2s, color .2s;
}
.nav-links a:hover, .nav-links a.active { background: #eef2ff; color: var(--primary); }
.nav-cta {
  margin-left: 10px; padding: 9px 18px; border-radius: 999px;
  background: var(--gradient); color: #fff !important; font-weight: 600;
  box-shadow: 0 6px 16px rgba(79, 70, 229, .35);
}
.nav-cta:hover { filter: brightness(1.08); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  margin: 5px 0; border-radius: 2px; transition: .3s;
}
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 通用区块 ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--primary);
  background: #eef2ff; border: 1px solid #e0e7ff; padding: 4px 14px; border-radius: 999px;
  margin-bottom: 14px; letter-spacing: .5px;
}
.section-title { font-size: 32px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.section-title em { font-style: normal; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-desc { margin-top: 14px; color: var(--text-light); font-size: 16px; }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(124, 58, 237, .18), transparent 60%),
    radial-gradient(800px 420px at -10% 30%, rgba(6, 182, 212, .16), transparent 60%),
    linear-gradient(180deg, #f5f7ff 0%, #ffffff 100%);
  padding: 96px 0 88px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--primary); background: #fff; border: 1px solid #e0e7ff; border-radius: 999px;
  padding: 6px 16px; margin-bottom: 22px; box-shadow: var(--shadow);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.hero h1 { font-size: 46px; font-weight: 900; color: var(--ink); line-height: 1.25; letter-spacing: .5px; }
.hero h1 em { font-style: normal; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin: 22px 0 32px; font-size: 17px; color: var(--text-light); max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px; font-size: 15px; font-weight: 600;
  transition: transform .2s, box-shadow .2s, filter .2s; cursor: pointer; border: 0;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 10px 24px rgba(79, 70, 229, .4); }
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 14px 30px rgba(79, 70, 229, .5); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.hero-stats { display: flex; gap: 40px; margin-top: 44px; }
.hero-stats .num { font-size: 28px; font-weight: 800; color: var(--ink); }
.hero-stats .num span { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats .label { font-size: 13px; color: var(--text-light); margin-top: 2px; }
.hero-visual { position: relative; }
.hero-card {
  background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg);
  border: 1px solid #eef2ff; padding: 28px; transform: rotate(1.5deg);
}
.hero-card .hc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.hero-card .hc-head .avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--gradient);
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 17px;
}
.hero-card .hc-head b { color: var(--ink); display: block; font-size: 15px; }
.hero-card .hc-head span { font-size: 12px; color: var(--text-light); }
.hero-card .hc-line { height: 9px; border-radius: 5px; background: #f1f5f9; margin: 10px 0; }
.hero-card .hc-line:nth-of-type(1) { width: 88%; }
.hero-card .hc-line:nth-of-type(2) { width: 70%; }
.hero-card .hc-chip {
  display: inline-block; margin: 14px 6px 0 0; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: #eef2ff; color: var(--primary);
}
.hero-float {
  position: absolute; right: -16px; top: -20px; background: #fff; border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 12px 18px; display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; color: var(--ink); border: 1px solid #eef2ff;
}
.hero-float .ic { width: 34px; height: 34px; border-radius: 10px; background: #ecfdf5; color: #059669; display: grid; place-items: center; }
.hero-float.b { right: 8px; bottom: -18px; top: auto; }
.hero-float.b .ic { background: #eff6ff; color: var(--primary); }

/* ---------- 业务卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #c7d2fe; }
.card .ic {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 18px; color: #fff; font-size: 24px;
}
.card h3 { font-size: 18px; color: var(--ink); margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--text-light); }
.card .more { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--primary); }

/* ---------- 特色 / 优势 ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: #fff; border-radius: var(--radius); padding: 30px 26px;
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.feature::before {
  content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 100%;
  background: var(--gradient); opacity: 0; transition: opacity .25s;
}
.feature:hover::before { opacity: 1; }
.feature .no { font-size: 13px; font-weight: 700; color: var(--primary); letter-spacing: 1px; }
.feature h3 { font-size: 18px; color: var(--ink); margin: 8px 0 10px; }
.feature p { font-size: 14.5px; color: var(--text-light); }

/* ---------- 数据条幅 ---------- */
.banner-stats {
  background: var(--gradient); border-radius: 24px; color: #fff;
  padding: 48px 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
  box-shadow: 0 24px 60px rgba(79, 70, 229, .35);
}
.banner-stats .num { font-size: 38px; font-weight: 900; }
.banner-stats .label { font-size: 14px; opacity: .85; margin-top: 4px; }

/* ---------- CTA ---------- */
.cta { text-align: center; padding: 70px 24px; }
.cta h2 { font-size: 30px; font-weight: 800; color: var(--ink); margin-bottom: 14px; }
.cta p { color: var(--text-light); margin-bottom: 30px; }

/* ---------- 关于页 ---------- */
.page-hero {
  background:
    radial-gradient(700px 320px at 90% -10%, rgba(124, 58, 237, .16), transparent 60%),
    linear-gradient(180deg, #f5f7ff, #fff);
  padding: 72px 0 60px; text-align: center;
}
.page-hero h1 { font-size: 38px; font-weight: 900; color: var(--ink); }
.page-hero .crumb { font-size: 13px; color: var(--text-light); margin-top: 12px; }
.page-hero .crumb a { color: var(--primary); }

.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-intro h2 { font-size: 26px; font-weight: 800; color: var(--ink); margin-bottom: 16px; }
.about-intro p { color: var(--text-light); margin-bottom: 14px; font-size: 15.5px; }
.about-intro .hl { background: #eef2ff; border-left: 4px solid var(--primary); padding: 14px 18px; border-radius: 0 10px 10px 0; color: var(--ink); font-weight: 600; }
.about-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.about-panel h3 { font-size: 16px; color: var(--ink); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.about-panel li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text); padding: 7px 0; }
.about-panel li::before { content: "✓"; color: #059669; font-weight: 700; }

.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--primary), var(--cyan)); }
.timeline-item { position: relative; padding: 0 0 34px 22px; }
.timeline-item::before {
  content: ""; position: absolute; left: -30px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: #fff; border: 3px solid var(--primary); box-shadow: 0 0 0 4px #eef2ff;
}
.timeline-item .year { font-size: 13px; font-weight: 700; color: var(--primary); }
.timeline-item h4 { font-size: 17px; color: var(--ink); margin: 4px 0 6px; }
.timeline-item p { font-size: 14px; color: var(--text-light); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---------- 服务页 ---------- */
.service-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card .tag {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 12px;
  border-radius: 999px; margin-bottom: 16px; letter-spacing: .5px;
}
.service-card h3 { font-size: 19px; color: var(--ink); margin-bottom: 12px; }
.service-card p { font-size: 14.5px; color: var(--text-light); margin-bottom: 16px; }
.service-card ul li { font-size: 13.5px; color: var(--text); padding: 5px 0; display: flex; gap: 8px; }
.service-card ul li::before { content: "·"; color: var(--primary); font-weight: 900; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: 34px; font-weight: 900; background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h4 { font-size: 16px; color: var(--ink); margin: 10px 0 8px; }
.step p { font-size: 13.5px; color: var(--text-light); }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-info { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.contact-info h3 { font-size: 20px; color: var(--ink); margin-bottom: 22px; }
.contact-item { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .ic {
  flex: 0 0 44px; height: 44px; border-radius: 12px; background: #eef2ff; color: var(--primary);
  display: grid; place-items: center; font-size: 19px;
}
.contact-item .t { font-size: 13px; color: var(--text-light); }
.contact-item .d { font-size: 15px; color: var(--ink); font-weight: 600; margin-top: 2px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-card h3 { font-size: 20px; color: var(--ink); margin-bottom: 8px; }
.form-card .sub { font-size: 13.5px; color: var(--text-light); margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 14.5px; font-family: inherit; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}
.form-note { font-size: 12px; color: var(--text-light); margin-top: 12px; }

/* ---------- 页脚 ---------- */
.footer { background: #0f172a; color: #94a3b8; padding: 56px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer .brand { color: #fff; }
.footer p.desc { font-size: 14px; margin-top: 14px; max-width: 300px; }
.footer h4 { color: #e2e8f0; font-size: 15px; margin-bottom: 16px; }
.footer ul li { padding: 5px 0; }
.footer ul a { font-size: 14px; transition: color .2s; }
.footer ul a:hover { color: #93c5fd; }
.footer .beian { border-top: 1px solid #1e293b; padding: 20px 0; font-size: 13px; text-align: center; }
.footer .beian a { color: #94a3b8; transition: color .2s; }
.footer .beian a:hover { color: #fff; }
.footer .beian .sep { margin: 0 10px; opacity: .4; }

/* ---------- 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { font-size: 36px; }
  .cards, .features, .values, .service-list { grid-template-columns: repeat(2, 1fr); }
  .about-intro, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .banner-stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 20px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 8px; border-radius: 8px; }
  .nav-cta { margin: 10px 0 0; text-align: center; }
  .hero { padding: 64px 0; }
  .hero h1 { font-size: 30px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .cards, .features, .values, .service-list, .steps { grid-template-columns: 1fr; }
  .banner-stats { grid-template-columns: 1fr 1fr; padding: 36px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-float { display: none; }
  .page-hero h1 { font-size: 30px; }
}
