/* ========================================
   九方财齐集团官网 — 全局样式
   ======================================== */

/* --- CSS 变量 --- */
:root {
  --primary: #8B1A4A;
  --primary-light: #A8325E;
  --primary-dark: #6B1036;
  --secondary: #1A1A2E;
  --secondary-light: #252540;
  --gold: #C8956C;
  --gold-light: #E8C9A8;
  --white: #FFFFFF;
  --bg-light: #F8F7F4;
  --bg-warm: #FDF8F4;
  --text: #2D2D2D;
  --text-light: #6B6B6B;
  --text-white: rgba(255,255,255,0.92);
  --border: #E5E2DD;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --max-width: 1200px;
  --nav-height: 72px;
  --transition: 0.3s ease;
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--text);
  line-height: 1.75;
  background: var(--white);
  padding-top: var(--nav-height);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- 容器 --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- 导航 --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--secondary);
}
.nav-logo img { height: 36px; }

.nav-links {
  display: flex;
  gap: 0.25rem;
}
.nav-links a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(139,26,74,0.06);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  padding: 0.5rem;
}

/* --- 页脚 --- */
.footer {
  background: var(--secondary);
  color: var(--text-white);
  padding: 4rem 2rem 2rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.7;
  line-height: 1.8;
}
.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  color: var(--white);
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  opacity: 0.65;
  padding: 0.3rem 0;
  transition: opacity var(--transition);
}
.footer-col a:hover { opacity: 1; color: var(--gold-light); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.6;
}
.footer-bottom a {
  color: var(--gold-light);
  text-decoration: underline;
}

/* --- 通用 Section --- */
.section {
  padding: 6rem 2rem;
}

.section-label {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.section-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

/* --- 按钮 --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(139,26,74,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--primary);
}
.btn-white:hover {
  background: var(--bg-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* --- 卡片 --- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* --- 数字亮点 --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item .stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}
.stat-item .stat-label {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-light);
}

/* --- 网格 --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* --- 页面 Hero（内页通用） --- */
.page-hero {
  background: linear-gradient(135deg, var(--secondary) 0%, #2D2040 100%);
  color: var(--white);
  padding: 6rem 2rem 4rem;
  text-align: center;
}
.page-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.page-hero p {
  font-size: 1.1rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

/* --- 滚动动画 --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- 响应式 --- */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

@media (max-width: 768px) {
  :root { --nav-height: 60px; }
  html { font-size: 15px; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-links a { padding: 0.75rem 1rem; }

  .section { padding: 4rem 1.25rem; }
  .section-title { font-size: 1.8rem; }
  .page-hero { padding: 4rem 1.25rem 3rem; }
  .page-hero h1 { font-size: 2rem; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .stat-item .stat-number { font-size: 2rem; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
