/* ============================================================
   www.faniulaw.cn — 广东法牛律师事务所 全站基础样式 styles.css
   主题：深海蓝 #0d2137 + 金色 #c8942e
   ============================================================ */
:root {
  /* 品牌色 */
  --primary: #0d2137;
  --primary-light: #1a3555;
  --accent: #c8942e;
  --accent-light: #e0b45a;
  --accent-dark: #a87a1e;
  --gradient-primary: linear-gradient(135deg, #0d2137, #1a3555);
  --gradient-gold: linear-gradient(135deg, #c8942e, #e0b45a);
  --shadow-gold: 0 4px 20px rgba(200, 148, 46, 0.25);
  --shadow-gold-lg: 0 8px 40px rgba(200, 148, 46, 0.35);
  --shadow-md: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 6px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.18);
  --bg: #f5f7fa;
  --bg-accent-subtle: #fdf6e9;
  --border: #e3e6ea;
  --white: #ffffff;
  --text: #1f2937;
  --text-light: #4b5563;
  --text-lighter: #6b7280;
  --text-muted: #9ca3af;
  --font-cn: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-en: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-pill: 999px;
  --radius-full: 50%;
  --space-2: 2px;
  --space-3: 4px;
  --space-4: 8px;
  --space-5: 12px;
  --space-6: 16px;
  --space-8: 24px;
  --space-10: 32px;
  --space-12: 40px;
  --space-16: 56px;
  --transition: all 0.25s ease;
  --transition-slow: all 0.4s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-cn);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--primary-light); text-decoration: none; }
a:hover { color: var(--accent-dark); }
ul, ol { padding-left: 22px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== 顶部信息条 ===== */
.topbar {
  background: var(--primary);
  color: #fff;
  padding: 8px 0;
  font-size: 0.85rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.lang-links a { margin-left: 12px; color: #cfd6e4; }

/* ===== 页头导航 ===== */
.header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
.header .container { display: flex; justify-content: space-between; align-items: center; min-height: 72px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--gradient-primary);
  color: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800;
}
.logo-text { display: flex; flex-direction: column; }
.logo-text strong { color: var(--primary); font-size: 1.02rem; }
.logo-text span { color: var(--text-muted); font-size: 0.78rem; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--text); font-size: 0.95rem; font-weight: 500; position: relative; }
.nav a:hover { color: var(--accent-dark); }
.nav .nav-phone { border: 1px solid rgba(59, 130, 246, 0.35); padding: 7px 14px; border-radius: var(--radius-pill); font-weight: 700; }
.mobile-menu { display: none; background: none; border: none; font-size: 1.5rem; color: var(--primary); cursor: pointer; }

@media (max-width: 900px) {
  .mobile-menu { display: block; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 16px 24px; gap: 14px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .nav.nav-open { display: flex; }
}

/* ===== 通用区块 ===== */
.sec-section { padding: 64px 0; }
.sec-section-alt { background: #fff; }
.sec-section-header { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.sec-section-divider {
  width: 56px; height: 4px; border-radius: 2px;
  background: var(--gradient-gold); margin: 0 auto 16px;
}
.sec-section-header h2 { color: var(--primary); font-size: 1.7rem; margin-bottom: 10px; }
.sec-section-header p { color: var(--text-lighter); }

/* ===== 按钮 ===== */
.sec-btn {
  display: inline-block; padding: 11px 24px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.95rem; transition: var(--transition);
  border: 2px solid transparent; cursor: pointer; text-align: center;
}
.sec-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.sec-btn-primary { background: var(--primary); color: #fff; }
.sec-btn-primary:hover { background: var(--primary-light); color: #fff; }
.sec-btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.sec-btn-outline:hover { background: var(--primary); color: #fff; }
.sec-btn-phone { background: var(--gradient-gold); color: var(--primary); }
.sec-btn-phone:hover { color: var(--primary); }

/* ===== 页脚 ===== */
footer, .footer { background: var(--primary); color: #b9c2d4; padding: 44px 0 24px; font-size: 0.9rem; }
footer a, .footer a { color: #cfd6e4; }
footer a:hover, .footer a:hover { color: var(--accent-light); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { color: #fff; margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 32px; padding-top: 18px; text-align: center; font-size: 0.82rem; }
.f-phone { color: var(--accent-light); font-weight: 700; font-size: 1.1rem; }

/* ===== 滚动显现动画 ===== */
.reveal, .sec-animate-in, .sec-animate-in-d1, .sec-animate-in-d2, .sec-animate-in-d3 {
  opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease;
}
.sec-animate-in-d1 { transition-delay: 0.1s; }
.sec-animate-in-d2 { transition-delay: 0.2s; }
.sec-animate-in-d3 { transition-delay: 0.3s; }
.reveal.visible, .sec-animate-in.visible, .sec-animate-in-d1.visible, .sec-animate-in-d2.visible, .sec-animate-in-d3.visible,
.reveal.in-view, .sec-animate-in.in-view, .sec-animate-in-d1.in-view, .sec-animate-in-d2.in-view, .sec-animate-in-d3.in-view {
  opacity: 1; transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@keyframes secFadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes secPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
