/* ========================================
   EMS国际邮件商业报关 - 营销网站
   配色: EMS蓝 #1565C0 / #0D47A1 / #1976D2
   强调: 橙 #FF6F00 / 绿 #2E7D32
   ======================================== */

:root {
  --primary: #1565C0;
  --primary-dark: #0D47A1;
  --primary-light: #1976D2;
  --primary-gradient: linear-gradient(135deg, #0D47A1, #1565C0, #1976D2);
  --accent: #FF6F00;
  --accent-gradient: linear-gradient(135deg, #FF6F00, #FF8F00);
  --success: #2E7D32;
  --danger: #C62828;
  --bg: #F5F7FA;
  --bg-white: #FFFFFF;
  --text-primary: #212121;
  --text-secondary: #555555;
  --text-hint: #888888;
  --border: #E0E4E8;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 960px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

/* ===== 导航栏 ===== */
.top-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 20px; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.top-nav.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.nav-logo {
  font-size: 18px; font-weight: 700; color: var(--primary);
  white-space: nowrap;
}
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a { font-size: 14px; color: var(--text-secondary); font-weight: 500; }
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  background: var(--accent-gradient); color: #fff !important;
  padding: 8px 18px; border-radius: 20px; font-weight: 600 !important;
}

/* 移动端菜单按钮 */
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--primary); }

/* ===== 通用容器 ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-title {
  font-size: 32px; font-weight: 700; color: var(--text-primary);
  text-align: center; margin-bottom: 16px;
}
.section-subtitle { font-size: 16px; color: var(--text-hint); text-align: center; margin-bottom: 48px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ===== Hero区 ===== */
.hero {
  padding: 120px 0 80px;
  background: var(--primary-gradient);
  color: #fff; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute;
  top: -80px; right: -120px;
  width: 400px; height: 400px;
  border-radius: 50%; background: rgba(255,255,255,0.04);
}
.hero::after {
  content: ''; position: absolute;
  bottom: -60px; left: -80px;
  width: 300px; height: 300px;
  border-radius: 50%; background: rgba(255,255,255,0.03);
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px; padding: 6px 20px;
  font-size: 14px; letter-spacing: 2px; margin-bottom: 20px;
}
.hero h1 {
  font-size: 44px; font-weight: 800; line-height: 1.3;
  margin-bottom: 16px; text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.hero .hero-subtitle {
  font-size: 18px; color: rgba(255,255,255,0.85);
  margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 36px; border-radius: 28px;
  font-size: 17px; font-weight: 600; transition: all 0.3s; border: none; cursor: pointer;
  text-align: center; text-decoration: none;
}
.btn-phone {
  background: #fff; color: var(--primary); box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.btn-phone:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); color: var(--primary); }
.btn-wechat {
  background: var(--accent-gradient); color: #fff;
  box-shadow: 0 4px 16px rgba(255,111,0,0.35);
}
.btn-wechat:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,111,0,0.45); color: #fff; }
.btn-primary {
  background: var(--primary-gradient); color: #fff;
  box-shadow: 0 4px 16px rgba(21,101,192,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(21,101,192,0.4); color: #fff; }

/* ===== 痛点卡片 ===== */
.pain-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.pain-card {
  background: #fff; border-radius: var(--radius-lg); padding: 32px 24px;
  text-align: center; box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: transform 0.3s;
}
.pain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pain-emoji { font-size: 48px; margin-bottom: 12px; display: block; }
.pain-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.pain-desc { font-size: 14px; color: var(--text-hint); line-height: 1.5; }

/* ===== 服务卡片 ===== */
.service-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px;
}
.service-card {
  background: #fff; border-radius: var(--radius-lg); padding: 28px 24px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: transform 0.3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-icon { font-size: 40px; margin-bottom: 12px; display: block; }
.service-name { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.service-brief { font-size: 14px; color: var(--text-hint); line-height: 1.5; }
.service-tag {
  display: inline-block; font-size: 12px; padding: 3px 10px;
  border-radius: 12px; margin-top: 10px; font-weight: 500;
}

/* ===== SEO内容区 ===== */
.seo-section { background: #fff; padding: 80px 0; }
.seo-section:nth-child(even) { background: var(--bg); }
.seo-block { margin-bottom: 56px; }
.seo-block:last-child { margin-bottom: 0; }
.seo-block h2 {
  font-size: 28px; font-weight: 700; margin-bottom: 24px;
  padding-left: 16px; border-left: 4px solid var(--primary);
}
.seo-block h3 { font-size: 20px; font-weight: 600; margin: 24px 0 12px; }
.seo-block p { margin-bottom: 16px; color: var(--text-secondary); }
.seo-block ul, .seo-block ol { margin: 12px 0 24px 24px; }
.seo-block li { margin-bottom: 8px; color: var(--text-secondary); }
.seo-block strong { color: var(--text-primary); }

/* 税率表格 */
.rate-table {
  width: 100%; border-collapse: collapse; margin: 20px 0;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.rate-table thead { background: var(--primary); color: #fff; }
.rate-table th, .rate-table td { padding: 12px 16px; text-align: left; font-size: 14px; }
.rate-table th { font-weight: 600; }
.rate-table tbody tr { border-bottom: 1px solid var(--border); }
.rate-table tbody tr:nth-child(even) { background: #F8FAFC; }
.rate-table tbody tr:hover { background: #EEF2F7; }

/* 提示框 */
.tip-box {
  background: #FFF8E1; border: 1px solid #FFE082; border-radius: var(--radius);
  padding: 16px 20px; margin: 20px 0; font-size: 14px;
}
.tip-box strong { color: #E65100; }

/* ===== 查询工具箱 ===== */
.tools-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px;
}
.tool-card {
  background: #fff; border-radius: var(--radius-lg); padding: 28px 24px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  text-align: center; transition: transform 0.3s; cursor: pointer;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tool-icon { font-size: 48px; margin-bottom: 12px; display: block; }
.tool-name { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.tool-desc { font-size: 14px; color: var(--text-hint); margin-bottom: 16px; }
.tool-url {
  font-size: 12px; color: var(--primary); word-break: break-all;
  display: block; margin-bottom: 16px;
}

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: #fff; border-radius: var(--radius); margin-bottom: 12px;
  box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden;
}
.faq-question {
  padding: 18px 24px; display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; font-weight: 600; font-size: 16px;
  transition: background 0.2s;
}
.faq-question:hover { background: #F8FAFC; }
.faq-arrow { font-size: 18px; transition: transform 0.3s; color: var(--primary); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  padding: 0 24px;
}
.faq-item.open .faq-answer { max-height: 500px; padding-bottom: 20px; }
.faq-answer p { font-size: 15px; color: var(--text-secondary); line-height: 1.8; }

/* ===== 案例 ===== */
.case-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 24px;
}
.case-card {
  background: #fff; border-radius: var(--radius-lg); padding: 28px 24px;
  box-shadow: var(--shadow); border: 1px solid var(--border); position: relative;
}
.case-badge {
  position: absolute; top: 16px; right: 16px;
  padding: 4px 14px; border-radius: 14px; font-size: 12px; font-weight: 600;
}
.badge-personal { background: #E3F2FD; color: var(--primary); }
.badge-business { background: #FFF3E0; color: #E65100; }
.badge-urgent { background: #FCE4EC; color: var(--danger); }
.case-title { font-size: 20px; font-weight: 700; margin-bottom: 16px; padding-right: 80px; }
.case-timeline { margin-bottom: 16px; }
.case-step { display: flex; padding: 8px 0; }
.case-dot {
  width: 10px; height: 10px; border-radius: 50%; margin: 8px 12px 0 0; flex-shrink: 0;
}
.dot-red { background: #EF5350; }
.dot-orange { background: #FFA726; }
.dot-green { background: #66BB6A; }
.case-step-text { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.case-step-label { font-size: 12px; color: var(--text-hint); margin-right: 8px; }
.case-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.case-time { font-size: 13px; color: var(--primary); font-weight: 600; }
.case-tag { font-size: 12px; color: var(--text-hint); background: #F5F7FA; padding: 4px 12px; border-radius: 12px; }

/* ===== 信任背书 ===== */
.trust-section { background: var(--primary-gradient); color: #fff; padding: 80px 0; text-align: center; }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  max-width: 800px; margin: 40px auto 0;
}
.trust-item { text-align: center; }
.trust-num { font-size: 36px; font-weight: 800; display: block; }
.trust-label { font-size: 14px; color: rgba(255,255,255,0.8); margin-top: 4px; }

/* 地址卡片 */
.address-card {
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg); padding: 24px 32px; margin-top: 32px;
  display: inline-flex; align-items: center; gap: 16px;
}
.address-icon { font-size: 32px; }
.address-text { font-size: 18px; font-weight: 600; }

/* ===== 底部CTA ===== */
.cta-section { padding: 80px 0; text-align: center; }
.cta-card {
  background: #fff; border-radius: var(--radius-lg); padding: 48px 32px;
  box-shadow: var(--shadow-lg); border: 2px solid #E3F2FD; max-width: 600px; margin: 0 auto;
}
.cta-title { font-size: 28px; font-weight: 700; color: var(--danger); margin-bottom: 8px; }
.cta-desc { font-size: 16px; color: var(--text-secondary); margin-bottom: 32px; }
.cta-buttons { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.cta-buttons .btn { min-width: 280px; }

/* 小程序二维码 */
.qrcode-section { text-align: center; margin-top: 40px; }
.qrcode-img {
  width: 160px; height: 160px; border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 12px;
  background: #f0f0f0; display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; color: #999;
}
.qrcode-text { font-size: 14px; color: var(--text-hint); }

/* 留言表单 */
.contact-form {
  max-width: 500px; margin: 40px auto 0; text-align: left;
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 15px; font-family: inherit;
  transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary);
}
.form-group textarea { height: 100px; resize: vertical; }

/* ===== Footer ===== */
.footer {
  background: #0D47A1; color: rgba(255,255,255,0.7); padding: 40px 0; text-align: center; font-size: 13px;
}
.footer a { color: rgba(255,255,255,0.9); }
.footer p { margin-bottom: 8px; }

/* ===== 移动端响应式 ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 28px; }
  .hero .hero-subtitle { font-size: 15px; }
  .section-title { font-size: 24px; }
  .section { padding: 56px 0; }
  .pain-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: #fff; padding: 16px 20px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .nav-toggle { display: block; }
  .rate-table { font-size: 12px; }
  .rate-table th, .rate-table td { padding: 8px 10px; }
  .tools-grid { grid-template-columns: 1fr; }
  .seo-block h2 { font-size: 22px; }
}

@media (max-width: 480px) {
  .hero { padding: 100px 0 60px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 300px; }
}

/* ===== SEO/GEO 优化新增样式 ===== */

/* 面包屑导航 */
.breadcrumb-nav { font-size: 14px; opacity: 0.85; margin-top: 8px; }
.breadcrumb-nav a { color: rgba(255,255,255,0.9); text-decoration: none; }
.breadcrumb-nav a:hover { text-decoration: underline; }
.breadcrumb-nav span { color: rgba(255,255,255,0.7); }

/* 文章目录 */
.toc-list { background: #F8FAFC; border-radius: 12px; padding: 20px 24px; margin-bottom: 32px; list-style: none; }
.toc-list li { margin-bottom: 8px; }
.toc-list a { color: #1565C0; text-decoration: none; font-size: 14px; }
.toc-list a:hover { text-decoration: underline; }

/* 相关FAQ */
.related-faq { margin: 32px 0 0; }
.related-faq h3 { font-size: 18px; margin-bottom: 12px; }

/* 更新时间 */
.update-time { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 8px; }
