/* ============================================================
   心翊财税官网 - 共享设计系统（深蓝科技风）
   ============================================================ */
:root {
  --bg-deep: #02071c;          /* 深蓝底，呼应宣传栏背景 (2,7,28) */
  --bg-panel: #0a1230;         /* 面板蓝 */
  --bg-card: rgba(18, 32, 68, 0.55);
  --line: rgba(90, 130, 220, 0.18);
  --line-strong: rgba(90, 130, 220, 0.4);
  --brand: #2e7bff;            /* 科技蓝 */
  --brand-2: #38e0ff;          /* 青色点缀 */
  --text: #eaf1ff;             /* 主文字 */
  --text-dim: #9fb3d9;         /* 次要文字 */
  --text-faint: #6b80ab;       /* 弱文字 */
  --gold: #ffd166;
  --radius: 16px;
  --maxw: 1180px;
  --shadow: 0 18px 50px rgba(0, 10, 40, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
    system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 背景光晕 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(46, 123, 255, 0.18), transparent 60%),
    radial-gradient(700px 500px at 100% 10%, rgba(56, 224, 255, 0.12), transparent 55%),
    radial-gradient(800px 600px at 50% 120%, rgba(46, 123, 255, 0.10), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------------- 导航 ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(2, 7, 28, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .5px; }
.brand .logo { height: 38px; width: auto; }
.brand .name { font-size: 18px; }
.brand .name small { display: block; font-size: 10px; letter-spacing: 2px; color: var(--text-faint); font-weight: 400; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text-dim); font-size: 15px; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active { position: relative; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 24px; cursor: pointer; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #1b5cff);
  box-shadow: 0 10px 30px rgba(46, 123, 255, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(46, 123, 255, 0.55); }
.btn-ghost { color: var(--text); border-color: var(--line-strong); background: rgba(255,255,255,0.03); }
.btn-ghost:hover { border-color: var(--brand-2); color: var(--brand-2); }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: 90px 0 70px; overflow: hidden; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 13px; color: var(--brand-2); background: rgba(56,224,255,0.06); margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 60px); line-height: 1.15; font-weight: 800; letter-spacing: 1px;
  background: linear-gradient(180deg, #fff, #bcd4ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { font-size: clamp(16px, 2vw, 22px); color: var(--text-dim); margin: 22px 0 14px; font-weight: 500; }
.hero .sub b { color: var(--brand-2); }
.hero p.lead { color: var(--text-dim); max-width: 620px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-banner {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow); position: relative;
}
.hero-banner img { width: 100%; height: auto; }
.hero-glow { position: absolute; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,123,255,.5), transparent 70%); filter: blur(30px); right: -60px; top: -60px; }

/* ---------------- 区块标题 ---------------- */
.section { padding: 80px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head .eyebrow { color: var(--brand-2); font-size: 14px; letter-spacing: 3px; text-transform: uppercase; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; margin: 12px 0 14px; }
.section-head p { color: var(--text-dim); }

/* ---------------- 卡片网格 ---------------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s, border-color .2s, box-shadow .2s; backdrop-filter: blur(6px);
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 20px 50px rgba(0,10,40,.5); }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(46,123,255,.25), rgba(56,224,255,.15));
  border: 1px solid var(--line-strong); margin-bottom: 18px; font-size: 24px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 14.5px; }
.card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.card .tags span { font-size: 12px; color: var(--brand-2); border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 10px; }

/* ---------------- 优势 / 数据 ---------------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { text-align: center; padding: 26px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); }
.feature .n { font-size: 34px; font-weight: 800; background: linear-gradient(135deg, var(--brand-2), var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.feature .t { color: var(--text-dim); font-size: 14px; margin-top: 6px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat .num { font-size: 40px; font-weight: 800; color: #fff; }
.stat .num span { color: var(--brand-2); }
.stat .label { color: var(--text-dim); margin-top: 6px; }

/* ---------------- 关于页 ---------------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-grid img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.timeline { border-left: 2px solid var(--line-strong); padding-left: 26px; margin-top: 10px; }
.timeline li { list-style: none; position: relative; margin-bottom: 26px; }
.timeline li::before { content: ""; position: absolute; left: -33px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(46,123,255,.2); }
.timeline .yr { color: var(--brand-2); font-weight: 700; }
.timeline p { color: var(--text-dim); }

/* ---------------- 资讯 / 案例 ---------------- */
.news-card { display: grid; grid-template-columns: 200px 1fr; gap: 0; overflow: hidden; }
.news-card .thumb { background: linear-gradient(135deg, #16245a, #0a1230); display: grid; place-items: center; color: var(--brand-2); font-size: 30px; border-right: 1px solid var(--line); }
.news-card .body { padding: 22px 24px; }
.news-card .meta { color: var(--text-faint); font-size: 12.5px; margin-bottom: 8px; }
.news-card h3 { font-size: 18px; margin-bottom: 8px; }
.news-card p { color: var(--text-dim); font-size: 14px; }
.case-quote { font-size: 16px; color: var(--text); border-left: 3px solid var(--brand-2); padding-left: 16px; font-style: italic; }

/* ---------------- 资质荣誉 ---------------- */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cert-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.cert-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 20px 50px rgba(0,10,40,.5); }
.cert-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #0a1230; }
.cert-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .35s; }
.cert-card:hover .cert-img img { transform: scale(1.05); }
.cert-img::after {
  content: "🔍 点击查看大图"; position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(2, 7, 28, 0.55); color: #fff; font-size: 14px; letter-spacing: 1px;
  opacity: 0; transition: opacity .2s;
}
.cert-img:hover::after { opacity: 1; }
.cert-badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  padding: 6px 14px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #02071c; font-weight: 800; font-size: 13px; letter-spacing: 1px;
  box-shadow: 0 6px 18px rgba(46, 123, 255, 0.45);
}
.cert-info { padding: 20px 22px 22px; }
.cert-info h3 { font-size: 18px; margin-bottom: 6px; color: #fff; }
.cert-meta { color: var(--brand-2); font-size: 13px; margin-bottom: 10px; letter-spacing: .3px; }
.cert-info p { color: var(--text-dim); font-size: 14px; line-height: 1.7; }

/* 资质背书条幅（首页 + 可复用） */
.cred-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  padding: 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(46,123,255,.08), rgba(56,224,255,.04));
}
.cred-strip .cred-item {
  display: flex; align-items: center; gap: 14px; padding: 6px 8px;
}
.cred-strip .cred-ico {
  width: 46px; height: 46px; flex: none; border-radius: 12px;
  display: grid; place-items: center; font-size: 22px;
  background: linear-gradient(135deg, rgba(46,123,255,.2), rgba(56,224,255,.12));
  border: 1px solid var(--line-strong);
}
.cred-strip .cred-text b { display: block; font-size: 15px; color: #fff; }
.cred-strip .cred-text span { font-size: 12.5px; color: var(--text-dim); }

/* ---------------- 联系 ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.info-list { list-style: none; }
.info-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-list .k { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(46,123,255,.15); border: 1px solid var(--line-strong); }
.info-list .v b { display: block; }
.info-list .v span { color: var(--text-dim); font-size: 14px; }
.map { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; height: 240px;
  background: linear-gradient(135deg,#0c1740,#16245a); display: grid; place-items: center; color: var(--text-faint); margin-top: 18px; }

form .field { margin-bottom: 16px; }
form label { display: block; font-size: 14px; color: var(--text-dim); margin-bottom: 7px; }
form input, form textarea, form select {
  width: 100%; padding: 12px 14px; border-radius: 10px; color: var(--text);
  background: rgba(10,18,48,.8); border: 1px solid var(--line-strong); font-size: 14.5px; font-family: inherit;
}
form input:focus, form textarea:focus, form select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(46,123,255,.18); }
form textarea { min-height: 110px; resize: vertical; }
.form-msg { font-size: 14px; margin-top: 8px; min-height: 20px; }
.form-msg.ok { color: var(--brand-2); }
.form-msg.err { color: #ff7a8a; }

/* ---------------- CTA 区 ---------------- */
.cta {
  margin: 30px auto; max-width: var(--maxw); border-radius: 22px; padding: 54px 40px; text-align: center;
  background: linear-gradient(135deg, rgba(46,123,255,.18), rgba(56,224,255,.08));
  border: 1px solid var(--line-strong); position: relative; overflow: hidden;
}
.cta h2 { font-size: clamp(24px,3vw,36px); font-weight: 800; }
.cta p { color: var(--text-dim); margin: 12px 0 26px; }

/* ---------------- 页脚 ---------------- */
.footer { border-top: 1px solid var(--line); padding: 50px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { font-size: 15px; margin-bottom: 16px; color: #fff; }
.footer a { color: var(--text-dim); font-size: 14px; display: block; padding: 5px 0; transition: color .2s; }
.footer a:hover { color: var(--brand-2); }
.footer .copy { text-align: center; color: var(--text-faint); font-size: 13px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 920px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .features, .stats { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .news-card { grid-template-columns: 1fr; }
  .news-card .thumb { height: 120px; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(2,7,28,.97); border-bottom: 1px solid var(--line); padding: 10px 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 24px; }
  .nav-links a.active::after { display: none; }
  .nav-toggle { display: block; }
  .grid-3, .features, .stats, .grid-2, .footer-grid, .cert-grid { grid-template-columns: 1fr; }
  .cred-strip { grid-template-columns: 1fr; }
}
