/* ===========================================================
   爱思AI · 企业官网
   简约大气 · 主视觉：深空蓝 + 电光蓝渐变
   =========================================================== */

:root {
  --navy: #0b1733;
  --navy-2: #122148;
  --ink: #1b2435;
  --muted: #5b6678;
  --line: #e6e9f0;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-navy: #0b1733;
  --brand: #2563eb;
  --brand-2: #6d4bff;
  --accent: #14b8a6;
  --grad: linear-gradient(120deg, #2563eb 0%, #6d4bff 100%);
  --grad-soft: linear-gradient(120deg, rgba(37,99,235,.10), rgba(109,75,255,.10));
  --shadow-sm: 0 2px 8px rgba(15,23,42,.06);
  --shadow: 0 16px 40px rgba(15,23,42,.10);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1160px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) 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: 800; font-size: 18px; letter-spacing: .3px; }
.brand .logo { width: 34px; height: 34px; }
.brand .sub { font-weight: 500; font-size: 12px; color: var(--muted); letter-spacing: 1px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 14px; border-radius: 999px; font-size: 15px; color: var(--ink);
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--bg-soft); }
.nav-links a.active { color: var(--brand); background: var(--grad-soft); font-weight: 600; }
.nav-links a .ext { font-size: 11px; opacity: .55; vertical-align: super; line-height: 1; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(37,99,235,.28); }
.btn-primary:hover { box-shadow: 0 12px 26px rgba(37,99,235,.36); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-light:hover { background: rgba(255,255,255,.20); }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--ink); }

.account-chip { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 14px; }
.account-chip .avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(109,75,255,.20), transparent 60%),
    radial-gradient(900px 500px at 0% 10%, rgba(37,99,235,.18), transparent 55%),
    var(--navy);
  color: #fff; padding: 96px 0 110px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.18; font-weight: 800; letter-spacing: .5px; }
.hero h1 .hl { background: linear-gradient(90deg, #7cc4ff, #c4b5ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin: 22px 0 32px; font-size: clamp(16px, 2vw, 19px); color: #c8d2e6; max-width: 640px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 56px; flex-wrap: wrap; }
.hero-stats .num { font-size: 30px; font-weight: 800; }
.hero-stats .lbl { color: #9fb0cf; font-size: 14px; }

/* ---------------- Sections ---------------- */
section { padding: 86px 0; }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--brand); text-transform: uppercase; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: .5px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 16px; }
.bg-soft { background: var(--bg-soft); }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d9e0f0; }
.card .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--grad-soft); display: grid; place-items: center; font-size: 24px; margin-bottom: 18px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card-link { display: block; text-decoration: none; color: inherit; cursor: pointer; height: 100%; }
.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d9e0f0; }

/* ---------- AI资讯：集合页卡片 ---------- */
.news-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; color: inherit; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d9e0f0; }
.news-cover { height: 160px; background-size: cover; background-position: center; background-color: var(--grad-soft); }
.news-cover--ph { display: grid; place-items: center; font-size: 40px; }
.news-card h3 { padding: 18px 20px 0; font-size: 18px; margin-bottom: 8px; }
.news-card p { padding: 0 20px; font-size: 14px; }
.news-meta { padding: 12px 20px 18px; margin-top: auto; color: var(--muted); font-size: 13px; }

/* ---------- 发布入口 ---------- */
.publish-box { margin-bottom: 18px; }
.publish-gate { text-align: center; color: var(--muted); }
.publish-gate .btn { margin-top: 4px; }

/* ---------- 文章详情 ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 10px 0 40px; }
.article h1 { font-size: 30px; margin-bottom: 14px; }
.article-lead { font-size: 18px; color: var(--ink); margin-bottom: 10px; font-weight: 500; }
.article-meta { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.article-cover { height: 280px; border-radius: var(--radius); background-size: cover; background-position: center; background-color: var(--grad-soft); margin-bottom: 24px; }
.article-content { font-size: 16px; line-height: 1.9; color: #2b2f3a; }
.card-link .card-more { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--brand); }

/* Feature row */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 70px; }
.feature .visual { border-radius: var(--radius); min-height: 280px; background: var(--grad); position: relative; overflow: hidden; box-shadow: var(--shadow); }
.feature .visual::after { content:""; position:absolute; inset:0; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 36px 36px; }
.feature h3 { font-size: 26px; margin-bottom: 14px; }
.feature p { color: var(--muted); margin-bottom: 16px; }
.checklist { list-style: none; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist li::before { content: "✓"; color: var(--brand); font-weight: 800; }

/* Values */
.value-card .icon { background: var(--grad); color: #fff; }

/* CTA band */
.cta-band {
  background: var(--grad); color: #fff; border-radius: 22px; padding: 54px 48px;
  text-align: center; box-shadow: var(--shadow);
}
.cta-band h2 { font-size: 30px; margin-bottom: 12px; }
.cta-band p { color: #e7ecff; margin-bottom: 26px; }

/* ---------------- Forms ---------------- */
.form-wrap { max-width: 560px; margin: 0 auto; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.field textarea { resize: vertical; min-height: 120px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.file-drop {
  border: 1.5px dashed var(--line); border-radius: var(--radius-sm); padding: 22px; text-align: center;
  color: var(--muted); cursor: pointer; transition: border-color .2s, background .2s;
}
.file-drop:hover { border-color: var(--brand); background: var(--grad-soft); }
.file-drop .fname { color: var(--brand); font-weight: 600; }
.form-msg { font-size: 14px; margin-top: 6px; min-height: 20px; }
.form-msg.ok { color: #0f9d58; }
.form-msg.err { color: #d93025; }

/* Auth page */
.auth-wrap { max-width: 440px; margin: 60px auto; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 34px; box-shadow: var(--shadow); }
.auth-tabs { display: flex; gap: 8px; background: var(--bg-soft); padding: 5px; border-radius: 999px; margin-bottom: 26px; }
.auth-tabs button { flex: 1; border: none; background: transparent; padding: 10px; border-radius: 999px; font-weight: 600; cursor: pointer; color: var(--muted); transition: .2s; }
.auth-tabs button.active { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.auth-form { display: none; }
.auth-form.active { display: block; }

/* Account panel */
.account-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.account-box .row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.account-box .row:last-child { border-bottom: none; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy); color: #c4cfe4; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-grid a { display: block; padding: 5px 0; color: #9fb0cf; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { color: #9fb0cf; font-size: 14px; max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); margin-top: 38px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: #8092b3; }

/* Notice banner (local mode) */
.local-banner {
  background: #fff7ed; border-bottom: 1px solid #fed7aa; color: #9a3412;
  font-size: 13px; padding: 9px 0; text-align: center;
}
.local-banner b { font-weight: 700; }

/* Misc */
.center { text-align: center; }
.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--grad-soft); color: var(--brand); font-size: 13px; font-weight: 600; margin: 3px 4px 3px 0; }
.breadcrumb { color: var(--muted); font-size: 14px; padding: 24px 0 0; }
.page-hero { padding: 40px 0 10px; }
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.page-hero p { color: var(--muted); margin-top: 10px; font-size: 17px; }

/* ---------------- 扫码联系 ---------------- */
.qr-contact { max-width: 480px; margin: 0 auto; text-align: center; }
.qr-box { width: 240px; height: 240px; margin: 0 auto 20px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; }
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.qr-tip { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.qr-contact .muted { font-size: 15px; }
.qr-contact a { color: var(--brand); font-weight: 600; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature .visual { min-height: 200px; order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-actions { position: fixed; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px 24px; border-bottom: 1px solid var(--line); display: none; box-shadow: var(--shadow); }
  .nav-links.open, .nav-actions.open { display: flex; }
  .nav-links a { width: 100%; }
  .nav-actions { top: auto; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 72px; }
  section { padding: 60px 0; }
  .cta-band { padding: 40px 26px; }
}
