/*
Theme Name: 皖聪财务 v2 (taikesi-v2)
Theme URI: https://www.0551gs.com
Description: 皖聪财务 2026 改版主题 - 66law 灰白风 + 在线客服 + SEO/GEO 优化
Version: 2.0.0
Author: 皖聪财务 + Mavis
License: Proprietary
Text Domain: taikesi-v2
*/

/* ============ CSS 变量(全局)============ */
:root {
  --c-text:        #1a202c;
  --c-text-2:      #4a5568;
  --c-text-3:      #718096;
  --c-border:      #e2e8f0;
  --c-border-2:    #cbd5e0;
  --c-bg:          #ffffff;
  --c-bg-2:        #f5f5f5;
  --c-primary:     #1e40af;
  --c-primary-d:   #1e3a8a;
  --c-red:         #dc2626;
  --c-red-d:       #b91c1c;
  --c-green:       #15803d;
  --c-yellow:      #fbbf24;
  --radius:        4px;
  --max-w:         1200px;
  --shadow-sm:     0 1px 2px rgba(0,0,0,0.05);
  --shadow:        0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg:     0 8px 24px rgba(0,0,0,0.12);
  --font-sans:     -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: 0; background: 0; font-family: inherit; }
input, textarea, select { font-family: inherit; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }

/* ============ 通用按钮 ============ */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: all .2s;
}
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-d); text-decoration: none; }
.btn-red { background: var(--c-red); color: #fff; }
.btn-red:hover { background: var(--c-red-d); text-decoration: none; }
.btn-green { background: var(--c-green); color: #fff; }
.btn-green:hover { background: #166534; text-decoration: none; }
.btn-outline { background: #fff; color: var(--c-primary); border-color: var(--c-primary); }
.btn-outline:hover { background: var(--c-bg-2); text-decoration: none; }

/* ============ 顶部条 ============ */
.topbar {
  background: var(--c-bg-2);
  border-bottom: 1px solid var(--c-border);
  font-size: 13px;
  color: var(--c-text-2);
  padding: 8px 0;
}
.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: var(--c-text-2); }
.topbar .sep { color: var(--c-border-2); margin: 0 8px; }
.topbar .phone { color: var(--c-red); font-weight: 700; }

/* ============ 头部 ============ */
.header {
  background: #fff;
  padding: 20px 0;
  border-bottom: 1px solid var(--c-border);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--c-text); }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 48px; height: 48px;
  background: var(--c-primary);
  color: #fff;
  font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
}
.logo-text { font-size: 20px; font-weight: 700; color: var(--c-text); line-height: 1.2; }
.logo-text small {
  display: block; font-size: 12px; color: var(--c-text-3);
  font-weight: 400; margin-top: 2px;
}
.search-box {
  flex: 1; max-width: 460px;
  display: flex;
  border: 2px solid var(--c-primary);
  border-radius: var(--radius);
  overflow: hidden;
}
.search-box input {
  flex: 1; border: 0; padding: 10px 14px;
  font-size: 14px; outline: none; color: var(--c-text);
}
.search-box button {
  background: var(--c-primary); color: #fff;
  border: 0; padding: 0 24px; cursor: pointer;
  font-size: 14px; font-weight: 600;
}
.header-cta { display: flex; gap: 10px; }

/* ============ 导航 ============ */
.nav { background: var(--c-primary); color: #fff; }
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
}
.nav a {
  display: inline-block;
  padding: 14px 18px;
  color: #fff;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover, .nav a.active {
  background: var(--c-primary-d);
  text-decoration: none;
}

/* ============ Hero (首页)============ */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: #fff;
  padding: 60px 0 50px;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 40px;
  align-items: center;
}
.hero-text { flex: 1; }
.hero h1 {
  font-size: 38px; line-height: 1.3;
  color: #fff; font-weight: 700;
  margin-bottom: 16px;
}
.hero h1 em { color: var(--c-yellow); font-style: normal; }
.hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  line-height: 1.8;
  margin-bottom: 24px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-cta .btn { padding: 14px 24px; font-size: 15px; }
.hero-meta {
  display: flex; gap: 24px;
  font-size: 13px; color: rgba(255,255,255,0.75);
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 16px;
  flex-wrap: wrap;
}
.hero-meta strong { color: #fff; margin-right: 4px; }
.hero-form {
  flex: 0 0 360px;
  background: #fff;
  color: var(--c-text);
  border-radius: 6px;
  padding: 24px;
}
.hero-form h3 {
  font-size: 17px;
  margin-bottom: 14px;
  border-left: 3px solid var(--c-primary);
  padding-left: 10px;
  font-weight: 700;
}
.hero-form label {
  display: block;
  font-size: 13px;
  color: var(--c-text-2);
  margin: 10px 0 4px;
}
.hero-form input, .hero-form select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  font-size: 14px;
  background: #fff;
  color: var(--c-text);
}
.hero-form button {
  margin-top: 16px;
  width: 100%;
  padding: 12px;
  background: var(--c-primary);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.hero-form button:hover { background: var(--c-primary-d); }
.hero-form .small {
  font-size: 12px;
  color: var(--c-text-3);
  margin-top: 8px;
  text-align: center;
}

/* ============ 通用 Section ============ */
.section { padding: 50px 0; }
.section-alt { background: var(--c-bg-2); }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head h2 {
  font-size: 26px; color: var(--c-text);
  font-weight: 700; margin-bottom: 8px;
}
.section-head p {
  font-size: 14px; color: var(--c-text-3);
}
.section-head .eyebrow {
  color: var(--c-primary);
  font-size: 14px; font-weight: 600;
  margin-bottom: 8px;
}

/* ============ 三大索引 ============ */
.indices { padding: 50px 0; background: #fff; }
.indices h2 {
  font-size: 22px;
  color: var(--c-text);
  font-weight: 700;
  margin-bottom: 4px;
}
.indices .lead { font-size: 13px; color: var(--c-text-3); margin-bottom: 24px; }
.indices-block { margin-bottom: 24px; }
.indices-block:last-child { margin-bottom: 0; }
.indices-block h3 {
  font-size: 15px; color: var(--c-text);
  font-weight: 600; margin-bottom: 10px;
  padding-left: 10px;
  border-left: 3px solid var(--c-primary);
}
.indices-block h3 small { color: var(--c-text-3); font-weight: 400; margin-left: 6px; }
.indices-list { display: flex; flex-wrap: wrap; gap: 6px; }
.indices-list a {
  display: inline-block;
  padding: 6px 12px;
  background: var(--c-bg-2);
  border: 1px solid var(--c-border);
  border-radius: 3px;
  color: var(--c-text);
  font-size: 13px;
  text-decoration: none;
}
.indices-list a:hover {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
  text-decoration: none;
}

/* ============ 4 大套餐 ============ */
.plans { padding: 50px 0; background: var(--c-bg-2); }
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.plan-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: relative;
}
.plan-card.featured {
  border-top: 3px solid var(--c-primary);
}
.plan-card .badge {
  position: absolute;
  top: -10px; left: 16px;
  background: var(--c-red);
  color: #fff;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 3px;
}
.plan-name {
  font-size: 16px; font-weight: 700;
  color: var(--c-text);
  margin-bottom: 8px;
}
.plan-price {
  font-size: 26px; color: var(--c-red);
  font-weight: 700;
  margin-bottom: 4px;
}
.plan-price small { font-size: 13px; color: var(--c-text-3); font-weight: 400; margin-left: 2px; }
.plan-target {
  font-size: 12px; color: var(--c-text-3);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-border);
}
.plan-list { font-size: 13px; color: var(--c-text-2); margin-bottom: 16px; }
.plan-list li {
  padding: 4px 0 4px 16px;
  position: relative;
  line-height: 1.6;
}
.plan-list li::before {
  content: "·";
  position: absolute;
  left: 6px;
  color: var(--c-primary);
  font-weight: 700;
}
.plan-card .btn { display: block; text-align: center; padding: 8px 0; font-size: 14px; }
.plan-actions { display: flex; flex-direction: column; gap: 8px; }
.plan-link {
  display: block;
  text-align: center;
  padding: 6px 0;
  font-size: 13px;
  color: var(--c-primary);
  text-decoration: none;
  border-radius: var(--radius);
  background: var(--c-bg-2);
  transition: background 0.15s;
  font-weight: 500;
}
.plan-link:hover { background: #e8eaed; text-decoration: none; }

/* ============ 6 大优势 ============ */
.advantages { padding: 50px 0; background: #fff; }
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.adv-item {
  background: #fff;
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-primary);
  padding: 18px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.adv-item h4 { font-size: 16px; color: var(--c-text); margin-bottom: 6px; font-weight: 700; }
.adv-item p { font-size: 13px; color: var(--c-text-2); line-height: 1.7; }

/* ============ 客户故事 ============ */
.stories { padding: 50px 0; background: var(--c-bg-2); }
.story-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.story-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px;
}
.story-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--c-border);
}
.story-avatar {
  width: 40px; height: 40px;
  background: var(--c-primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
  flex-shrink: 0;
}
.story-name { font-size: 14px; color: var(--c-text); font-weight: 700; }
.story-from { font-size: 12px; color: var(--c-text-3); }
.story-msg {
  font-size: 13px; color: var(--c-text-2);
  line-height: 1.7;
  background: var(--c-bg-2);
  border-left: 3px solid var(--c-primary);
  padding: 10px 12px;
  margin-bottom: 12px;
}
.story-result { font-size: 12px; color: var(--c-text-3); }
.story-result strong { color: var(--c-green); }

/* ============ 一站式服务 15 项 ============ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.svc-item {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 18px 12px;
  text-align: center;
  font-size: 14px;
  color: var(--c-text);
  text-decoration: none;
}
.svc-item:hover {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
  text-decoration: none;
}
.svc-item small { display: block; font-size: 11px; color: var(--c-text-3); margin-top: 4px; }
.svc-item:hover small { color: rgba(255,255,255,0.85); }

/* ============ 底部 CTA ============ */
.cta-block {
  background: #1e3a8a;
  color: #fff;
  padding: 32px;
  border-radius: var(--radius);
  margin: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cta-block-text { font-size: 16px; }
.cta-block-text strong { color: var(--c-yellow); }
.cta-block-btn {
  background: var(--c-red);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.cta-block-btn:hover { background: var(--c-red-d); text-decoration: none; }

/* ============ Footer ============ */
.footer {
  background: #1a202c;
  color: #cbd5e0;
  padding: 40px 0 20px;
  font-size: 13px;
  margin-top: 40px;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 24px;
}
.footer h4 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.footer p, .footer a { color: #cbd5e0; line-height: 1.9; }
.footer a:hover { color: #fff; }
.footer ul li { padding: 3px 0; }
.footer-phone { color: var(--c-yellow); font-size: 18px; font-weight: 700; margin: 8px 0; }
.footer-bottom {
  border-top: 1px solid #2d3748;
  padding-top: 16px;
  text-align: center;
  font-size: 12px;
  color: #a0aec0;
}
.footer-bottom a { color: #a0aec0; margin: 0 8px; }
.footer-bottom a:hover { color: #fff; }

/* ============ 移动端 ============ */
@media (max-width: 768px) {
  .topbar-inner { flex-direction: column; gap: 4px; text-align: center; }
  .header-inner { flex-direction: column; gap: 12px; }
  .search-box { width: 100%; }
  .nav-inner { overflow-x: auto; }
  .nav a { padding: 12px 14px; font-size: 14px; }
  .hero { padding: 30px 0; }
  .hero-inner { flex-direction: column; gap: 24px; }
  .hero h1 { font-size: 24px; }
  .hero-form { width: 100%; flex: none; }
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid, .story-list { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .cta-block { flex-direction: column; text-align: center; }
}

/* ============ 在线客服弹窗 ============ */
.chat-fab {
  position: fixed;
  right: 20px;
  bottom: 20%;
  z-index: 999;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all .2s;
}
.chat-fab:hover { transform: scale(1.08); }
.chat-fab svg { width: 28px; height: 28px; }

.chat-modal {
  position: fixed; right: 20px; bottom: calc(20% + 70px);
  z-index: 1000;
  width: 360px; max-width: calc(100vw - 40px);
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  max-height: 500px;
}
.chat-modal.open { display: flex; }
.chat-header {
  background: var(--c-primary);
  color: #fff;
  padding: 14px 16px;
  border-radius: 8px 8px 0 0;
  display: flex; align-items: center; justify-content: space-between;
}
.chat-title { font-size: 15px; font-weight: 600; }
.chat-sub { font-size: 11px; opacity: 0.85; margin-top: 2px; }
.chat-close {
  font-size: 24px; cursor: pointer; opacity: 0.85;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.chat-close:hover { background: rgba(255,255,255,0.15); opacity: 1; }
.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  font-size: 14px;
  min-height: 280px;
  max-height: 320px;
  background: #fafafa;
}
.msg-bot {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 10px;
  line-height: 1.6;
}
.msg-user {
  background: var(--c-primary);
  color: #fff;
  border: 1px solid var(--c-primary);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 10px;
  line-height: 1.6;
  margin-left: 40px;
}
.msg-bot.thinking { color: var(--c-text-3); font-style: italic; }
.chat-quick {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 16px 12px;
}
.chat-quick button {
  font-size: 12px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  color: var(--c-text-2);
  cursor: pointer;
}
.chat-quick button:hover { background: var(--c-bg-2); }
.chat-input {
  border-top: 1px solid var(--c-border);
  padding: 12px;
  display: flex;
  gap: 8px;
  background: #fff;
  border-radius: 0 0 8px 8px;
}
.chat-input input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  font-size: 14px;
  outline: none;
}
.chat-input input:focus { border-color: var(--c-primary); }
.chat-input button {
  background: var(--c-primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
}
.chat-input button:hover { background: var(--c-primary-d); }
