/* =========================================================
   艾游天地官网 - 全站样式表 style.css
   南京艾游天地信息科技有限公司 © 2014-2026
   设计规范详见 docs/ui-design.html
   ========================================================= */

:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #dbeafe;
  --accent: #06b6d4;
  --dark: #0f172a;
  --text: #1e293b;
  --text-light: #64748b;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --success: #16a34a;
  --warn: #f59e0b;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}
a { text-decoration: none; color: inherit; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ===== 导航 ===== */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; height: 68px; gap: 32px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; color: var(--dark); cursor: pointer; }
.logo-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 19px; font-weight: 900;
}
.logo small { font-size: 11px; font-weight: 400; color: var(--text-light); display: block; line-height: 1.2; }
.nav-links { display: flex; gap: 6px; flex: 1; }
.nav-links a {
  padding: 8px 16px; border-radius: 8px; font-size: 15px;
  color: var(--text); font-weight: 500; transition: all .2s; cursor: pointer;
}
.nav-links a:hover { background: var(--primary-light); color: var(--primary); }
.nav-links a.active { background: var(--primary); color: #fff; }
.nav-auth { display: flex; align-items: center; gap: 12px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px; border-radius: 10px; font-size: 15px; font-weight: 600;
  border: none; cursor: pointer; transition: all .2s; font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-ghost { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 14px 34px; font-size: 16px; border-radius: 12px; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.user-chip { display: none; align-items: center; gap: 8px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}

/* ===== 页面切换（SPA路由） ===== */
.page { display: none; animation: fadeIn .35s ease; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #2563eb 100%);
  color: #fff; padding: 80px 0 100px; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,.35), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; left: -80px; bottom: -160px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.4), transparent 70%);
}
.hero .container { position: relative; z-index: 2; }
.hero-tag {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  font-size: 13px; margin-bottom: 22px; letter-spacing: 1px;
}
.hero h1 { font-size: 44px; line-height: 1.25; font-weight: 800; margin-bottom: 18px; }
.hero h1 span { background: linear-gradient(90deg, #67e8f9, #93c5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 16.5px; color: #cbd5e1; max-width: 620px; margin-bottom: 32px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-btns .btn-outline { color: #fff; border-color: rgba(255,255,255,.6); }
.hero-btns .btn-outline:hover { background: rgba(255,255,255,.12); }
.hero-stats { display: flex; gap: 44px; margin-top: 50px; flex-wrap: wrap; }
.hero-stats .num { font-size: 31px; font-weight: 800; }
.hero-stats .num i { font-style: normal; color: #67e8f9; }
.hero-stats .lbl { font-size: 13px; color: #94a3b8; }

/* ===== 区块通用 ===== */
section.block { padding: 76px 0; }
.sec-head { text-align: center; margin-bottom: 48px; }
.sec-head .kicker { color: var(--primary); font-weight: 700; font-size: 14px; letter-spacing: 2px; }
.sec-head h2 { font-size: 32px; font-weight: 800; margin: 8px 0 12px; color: var(--dark); }
.sec-head p { color: var(--text-light); max-width: 620px; margin: 0 auto; }
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(37,99,235,.14); }
.card .icon {
  width: 52px; height: 52px; border-radius: 13px; font-size: 25px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; color: var(--dark); }
.card p { font-size: 14px; color: var(--text-light); }

/* ===== 服务卡片 ===== */
.svc .icon { background: var(--primary-light); }
.svc:nth-child(2) .icon { background: #ede9fe; }
.svc:nth-child(3) .icon { background: #cffafe; }
.svc:nth-child(4) .icon { background: #fef3c7; }
.svc:nth-child(5) .icon { background: #fce7f3; }
.svc:nth-child(6) .icon { background: #dcfce7; }

/* ===== 价格表 ===== */
.price-card { position: relative; text-align: center; }
.price-card.hot { border: 2px solid var(--primary); }
.hot-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 16px; border-radius: 999px;
}
.price-card .plan { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.price-card .for { font-size: 13px; color: var(--text-light); margin-bottom: 16px; }
.price-card .price { font-size: 38px; font-weight: 800; color: var(--primary); }
.price-card .price small { font-size: 14px; color: var(--text-light); font-weight: 400; }
.price-card ul { list-style: none; margin: 20px 0 24px; text-align: left; }
.price-card li { padding: 7px 0; font-size: 14px; border-bottom: 1px dashed var(--border); }
.price-card li::before { content: "✓ "; color: var(--success); font-weight: 700; }

/* ===== 广告位演示 ===== */
.banner-demo {
  background: linear-gradient(120deg, #1e293b, #334155);
  border-radius: var(--radius); color: #cbd5e1; padding: 22px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border: 1px dashed #475569; margin-bottom: 26px;
}
.banner-demo .pos-tag {
  background: var(--warn); color: #fff; font-size: 12px; padding: 3px 12px;
  border-radius: 6px; font-weight: 600; flex-shrink: 0;
}

/* ===== 资料商城 ===== */
.res-img { height: 130px; border-radius: 10px; margin-bottom: 16px; display: flex; align-items: center; justify-content: center; font-size: 42px; }
.res-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.res-price { font-size: 22px; font-weight: 800; color: #e11d48; }
.res-price.free { color: var(--success); }
.tag { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 6px; background: var(--primary-light); color: var(--primary); margin-right: 6px; }

/* ===== 弹窗 ===== */
.modal-mask {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(15,23,42,.55); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff; border-radius: 18px; width: 100%; max-width: 440px;
  padding: 34px; position: relative; animation: pop .25s ease;
  max-height: 90vh; overflow-y: auto;
}
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal h3 { font-size: 21px; margin-bottom: 20px; color: var(--dark); }
.modal .close-x {
  position: absolute; top: 14px; right: 18px; font-size: 22px;
  color: var(--text-light); cursor: pointer; background: none; border: none;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: 10px; font-size: 15px; font-family: inherit; outline: none; transition: border .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.field .err { color: #e11d48; font-size: 12.5px; margin-top: 4px; display: none; }
.field.invalid input { border-color: #e11d48; }
.field.invalid .err { display: block; }
.switch-auth { text-align: center; font-size: 13.5px; color: var(--text-light); margin-top: 14px; }
.switch-auth a { color: var(--primary); font-weight: 600; cursor: pointer; }
.demo-hint {
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
  font-size: 12.5px; padding: 9px 13px; border-radius: 9px; margin-bottom: 16px;
}

/* ===== Toast ===== */
#toast {
  position: fixed; top: 84px; left: 50%; transform: translateX(-50%) translateY(-20px);
  background: var(--dark); color: #fff; padding: 12px 26px; border-radius: 12px;
  font-size: 14.5px; z-index: 300; opacity: 0; pointer-events: none;
  transition: all .3s ease; box-shadow: var(--shadow);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== 关于我们 ===== */
.about-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.timeline { border-left: 2px solid var(--primary-light); padding-left: 24px; }
.timeline .item { position: relative; padding-bottom: 22px; }
.timeline .item::before {
  content: ""; position: absolute; left: -31px; top: 7px;
  width: 11px; height: 11px; border-radius: 50%; background: var(--primary);
  border: 2.5px solid #fff; box-shadow: 0 0 0 2px var(--primary-light);
}
.timeline .year { font-weight: 800; color: var(--primary); }
.cert-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cert-badge {
  background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857;
  font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px;
}

/* ===== 联系/页脚 ===== */
.contact-card { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.contact-card .ci { font-size: 21px; }
footer { background: var(--dark); color: #94a3b8; padding: 52px 0 28px; margin-top: 40px; }
footer .fgrid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; margin-bottom: 36px; }
footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
footer a, footer li { font-size: 13.5px; list-style: none; line-height: 2.1; cursor: pointer; }
footer a:hover { color: #67e8f9; }
.copyright { border-top: 1px solid #1e293b; padding-top: 22px; font-size: 12.5px; text-align: center; color: #64748b; }
.copyright a { color: #94a3b8; }
.copyright a:hover { color: #67e8f9; }

.res-card { position: relative; }

/* ===== 图文增强 ===== */
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 30px; align-items: center; }
.hero-visual svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 44px rgba(2,8,23,.45)); }
.svc-banner { margin: -28px -28px 18px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.svc-banner svg { width: 100%; height: auto; display: block; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.mockup-card {
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15,23,42,.13); overflow: hidden;
}
.mockup-card svg { width: 100%; height: auto; display: block; }
.check-list { list-style: none; margin-top: 18px; }
.check-list li { padding: 8px 0 8px 34px; position: relative; font-size: 15px; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 7px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--primary-light); color: var(--primary);
  font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.visual-title { font-size: 24px; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.visual-desc { color: var(--text-light); font-size: 15px; }

/* ===== 客户案例 / 合作伙伴 / 新闻 / CTA ===== */
.case-card { position: relative; overflow: hidden; }
.case-card .case-cover { height: 120px; border-radius: 10px; margin-bottom: 18px; display: flex; align-items: center; justify-content: center; }
.case-num { font-size: 30px; font-weight: 800; color: var(--primary); line-height: 1.2; }
.case-lbl { font-size: 13px; color: var(--text-light); margin-bottom: 10px; }
.case-row { display: flex; gap: 28px; margin: 14px 0 4px; flex-wrap: wrap; }

.partners { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.partner-chip {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 26px; font-weight: 700; color: var(--text-light);
  font-size: 15px; letter-spacing: 1px; transition: all .2s;
}
.partner-chip:hover { color: var(--primary); border-color: var(--primary-light); transform: translateY(-2px); }

.news-cover {
  height: 150px; border-radius: 10px; margin-bottom: 16px;
  display: flex; align-items: flex-end; padding: 16px;
  color: #fff; font-weight: 700; font-size: 16px; line-height: 1.4;
}
.news-meta { display: flex; gap: 14px; font-size: 12.5px; color: var(--text-light); margin-bottom: 8px; }
.news-more { color: var(--primary); font-weight: 600; font-size: 13.5px; cursor: pointer; }

.cta-band {
  background: linear-gradient(120deg, #1e3a8a, #2563eb 55%, #0891b2);
  border-radius: 20px; padding: 46px 50px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; color: #fff; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; right: -60px; top: -80px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(103,232,249,.3), transparent 70%);
}
.cta-band h3 { font-size: 26px; font-weight: 800; margin-bottom: 8px; position: relative; }
.cta-band p { color: #c7d2fe; font-size: 15px; position: relative; }
.cta-band .cta-btns { display: flex; gap: 14px; flex-shrink: 0; position: relative; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-wrap, .grid-2, .split, .hero-grid { grid-template-columns: 1fr; }
  footer .fgrid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .hero h1 { font-size: 32px; }
  .cta-band { flex-direction: column; text-align: center; padding: 36px 24px; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  footer .fgrid { grid-template-columns: 1fr; }
}
