/* ========== 基础重置 & 变量 ========== */
:root {
  --primary: #1a56db;
  --primary-dark: #1344b0;
  --primary-light: #e8effd;
  --accent: #f59e0b;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 14px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif; color: var(--gray-900); background: var(--white); line-height: 1.7; }

/* ========== 工具类 ========== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.section-title { font-size: 28px; font-weight: 700; text-align: center; margin-bottom: 8px; color: var(--gray-900); }
.section-subtitle { font-size: 15px; color: var(--gray-500); text-align: center; margin-bottom: 40px; }

/* ========== 顶部栏 ========== */
.topbar { background: var(--primary); color: var(--white); padding: 8px 0; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: var(--white); text-decoration: none; }
.topbar-phone { font-weight: 600; font-size: 15px; }

/* ========== 导航 ========== */
.header { background: var(--white); border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; z-index: 100; }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 20px; font-weight: 700; color: var(--primary); text-decoration: none; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 14px; font-size: 14px; color: var(--gray-700); text-decoration: none; border-radius: 6px; transition: all 0.2s; }
.nav a:hover, .nav a.active { background: var(--primary-light); color: var(--primary); }
.nav-phone { display: none; align-items: center; gap: 6px; color: var(--primary); font-weight: 600; font-size: 15px; text-decoration: none; }
.hamburger { display: none; flex-direction: column; gap: 4px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 22px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: 0.3s; }

@media (max-width: 768px) {
  .nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 12px; box-shadow: var(--shadow-lg); }
  .nav.active { display: flex; }
  .hamburger { display: flex; }
  .topbar-phone { display: none; }
  .nav-phone { display: flex; }
}

/* ========== Hero ========== */
.hero { background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%); color: var(--white); padding: 80px 0 60px; text-align: center; }
.hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 16px; line-height: 1.3; }
.hero p { font-size: 16px; opacity: 0.9; max-width: 600px; margin: 0 auto 32px; line-height: 1.8; }
.hero-phone { display: inline-flex; align-items: center; gap: 8px; background: var(--white); color: var(--primary); padding: 14px 36px; border-radius: 50px; font-size: 18px; font-weight: 700; text-decoration: none; box-shadow: var(--shadow-lg); transition: transform 0.2s; }
.hero-phone:hover { transform: scale(1.03); }

/* ========== 服务板块 ========== */
.services { padding: 60px 0; background: var(--gray-50); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { background: var(--white); border-radius: var(--radius-lg); padding: 28px 24px; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; border: 1px solid var(--gray-100); }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.service-card .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px; }
.service-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.service-card p { font-size: 13px; color: var(--gray-500); line-height: 1.7; }
.service-card .more { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--primary); text-decoration: none; font-weight: 500; }

@media (max-width: 768px) { .service-grid { grid-template-columns: 1fr; } }
@media (min-width: 769px) and (max-width: 1024px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }

/* ========== 优势板块 ========== */
.advantages { padding: 60px 0; }
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.adv-item { text-align: center; padding: 24px 16px; border-radius: var(--radius); }
.adv-item .num { width: 56px; height: 56px; border-radius: 50%; background: var(--primary-light); color: var(--primary); font-size: 22px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.adv-item h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.adv-item p { font-size: 13px; color: var(--gray-500); }

@media (max-width: 768px) { .adv-grid { grid-template-columns: repeat(2, 1fr); } }

/* ========== 流程板块 ========== */
.process { padding: 60px 0; background: var(--gray-50); }
.process-steps { display: flex; justify-content: space-between; gap: 12px; }
.step { flex: 1; background: var(--white); border-radius: var(--radius); padding: 20px 16px; text-align: center; box-shadow: var(--shadow); position: relative; }
.step .step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; margin: 0 auto 10px; }
.step h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.step p { font-size: 12px; color: var(--gray-500); }
.step:not(:last-child)::after { content: '→'; position: absolute; right: -10px; top: 50%; transform: translateY(-50%); color: var(--gray-300); font-size: 20px; }

@media (max-width: 768px) { .process-steps { flex-wrap: wrap; } .step { min-width: 45%; } .step::after { display: none; } }

/* ========== 案例板块 ========== */
.cases { padding: 60px 0; }
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.case-card { background: var(--gray-50); border-radius: var(--radius-lg); padding: 24px; border: 1px solid var(--gray-100); }
.case-card .tag { display: inline-block; padding: 2px 10px; border-radius: 4px; font-size: 12px; background: var(--primary-light); color: var(--primary); margin-bottom: 8px; }
.case-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.case-card p { font-size: 13px; color: var(--gray-500); line-height: 1.6; }
.case-card .result { margin-top: 10px; font-size: 13px; color: var(--primary); font-weight: 500; }
@media (max-width: 768px) { .case-grid { grid-template-columns: 1fr; } }

/* ========== FAQ ========== */
.faq { padding: 60px 0; background: var(--gray-50); }
.faq-item { background: var(--white); border-radius: var(--radius); margin-bottom: 10px; padding: 18px 20px; box-shadow: var(--shadow); cursor: pointer; }
.faq-item .question { font-size: 15px; font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
.faq-item .question .arrow { transition: transform 0.3s; font-size: 12px; color: var(--gray-500); }
.faq-item .answer { max-height: 0; overflow: hidden; transition: max-height 0.3s, padding 0.3s; font-size: 14px; color: var(--gray-500); line-height: 1.7; }
.faq-item.open .answer { max-height: 300px; padding-top: 12px; }
.faq-item.open .question .arrow { transform: rotate(180deg); }

/* ========== 联系板块 ========== */
.contact-cta { padding: 60px 0; text-align: center; background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%); color: var(--white); }
.contact-cta h2 { font-size: 26px; font-weight: 700; margin-bottom: 12px; }
.contact-cta p { font-size: 15px; opacity: 0.9; margin-bottom: 24px; }
.contact-cta a { color: var(--white); }

/* ========== 底部 ========== */
.footer { background: var(--gray-900); color: var(--gray-300); padding: 40px 0 20px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer h4 { color: var(--white); font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.footer a { color: var(--gray-300); text-decoration: none; display: block; margin-bottom: 6px; }
.footer a:hover { color: var(--white); }
.footer .footer-phone { font-size: 18px; font-weight: 700; color: var(--white); margin: 8px 0; }
.footer .copyright { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 12px; }

@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ========== 浮动联系栏 ========== */
.float-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--gray-200); padding: 10px 16px; display: none; z-index: 200; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); }
.float-bar .container { display: flex; gap: 10px; }
.float-bar a { flex: 1; text-align: center; padding: 10px; border-radius: var(--radius); font-size: 14px; font-weight: 600; text-decoration: none; }
.float-bar .btn-phone { background: var(--primary); color: var(--white); }
.float-bar .btn-wechat { background: #07c160; color: var(--white); }
@media (max-width: 768px) { .float-bar { display: block; } body { padding-bottom: 60px; } }

/* ========== 文章页 ========== */
.page-hero { background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%); color: var(--white); padding: 40px 0; text-align: center; }
.page-hero h1 { font-size: 28px; font-weight: 700; }
.page-content { padding: 40px 0; }
.page-content .content-wrap { max-width: 800px; margin: 0 auto; }
.page-content h2 { font-size: 20px; font-weight: 600; margin: 28px 0 12px; color: var(--gray-900); }
.page-content h3 { font-size: 17px; font-weight: 600; margin: 20px 0 10px; color: var(--gray-900); }
.page-content p { font-size: 15px; color: var(--gray-700); margin-bottom: 14px; line-height: 1.8; }
.page-content ul, .page-content ol { margin: 10px 0 14px 20px; font-size: 15px; color: var(--gray-700); line-height: 1.8; }
.page-content li { margin-bottom: 6px; }

/* ========== 联系方式页专用 ========== */
.contact-page { padding: 60px 0; }
.contact-info { max-width: 600px; margin: 0 auto; }
.contact-info .item { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--radius); background: var(--gray-50); margin-bottom: 14px; }
.contact-info .item .icon-box { width: 48px; height: 48px; border-radius: 12px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.contact-info .item .label { font-size: 13px; color: var(--gray-500); }
.contact-info .item .value { font-size: 18px; font-weight: 600; color: var(--gray-900); }

/* ========== 案例详情 ========== */
.case-detail-card { background: var(--gray-50); border-radius: var(--radius-lg); padding: 30px; margin-bottom: 20px; }
.case-detail-card .case-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.case-detail-card .case-meta { font-size: 13px; color: var(--gray-500); margin-bottom: 12px; }
.case-detail-card .case-desc { font-size: 14px; color: var(--gray-700); line-height: 1.8; }

/* ========== 文章列表 ========== */
.news-list { display: grid; gap: 16px; }
.news-item { display: flex; gap: 20px; background: var(--gray-50); border-radius: var(--radius); padding: 20px; border: 1px solid var(--gray-100); transition: border-color 0.2s; }
.news-item:hover { border-color: var(--primary); }
.news-item .news-date { width: 56px; text-align: center; flex-shrink: 0; }
.news-item .news-date .day { font-size: 24px; font-weight: 700; color: var(--primary); }
.news-item .news-date .month { font-size: 12px; color: var(--gray-500); }
.news-item .news-info { flex: 1; }
.news-item .news-info h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.news-item .news-info h3 a { color: var(--gray-900); text-decoration: none; }
.news-item .news-info h3 a:hover { color: var(--primary); }
.news-item .news-info p { font-size: 13px; color: var(--gray-500); }
@media (max-width: 768px) { .news-item { flex-direction: column; gap: 8px; } }

/* 404 */
.not-found { text-align: center; padding: 100px 0; }
.not-found h1 { font-size: 64px; color: var(--gray-200); margin-bottom: 10px; }
.not-found p { font-size: 16px; color: var(--gray-500); }
