/* ===== 福建策问律师事务所 - 全局样式 v2 ===== */

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

:root {
  --primary: #1a2d47;
  --primary-light: #263b5e;
  --accent: #b8942e;
  --accent-light: #d4b55a;
  --bg: #f3f4f6;
  --white: #ffffff;
  --text: #222222;
  --text-secondary: #555555;
  --text-muted: #888888;
  --border: #e5e5e5;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 12px 36px rgba(0,0,0,0.14);
  --radius: 4px;
  --max-width: 1200px;
  --font-stack: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
}

body {
  font-family: var(--font-stack);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}

/* ===== Header ===== */
.site-header {
  background: #ffffff;
  padding: 42px 20px 26px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.site-header .logo-container {
  display: inline-block;
}
.site-header .logo-img {
  max-width: 320px;
  width: 100%;
  height: auto;
  display: block;
}
.site-header .logo-en {
  font-size: 0.75em;
  letter-spacing: 0.35em;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 8px;
}
.site-header .tagline {
  font-size: 1.1em;
  color: #b71c1c;
  font-weight: 600;
  margin-top: 6px;
  letter-spacing: 0.2em;
}

/* ===== Navigation ===== */
.site-nav {
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  max-width: var(--max-width);
  margin: 0 auto;
}
.site-nav > ul > li {
  position: relative;
}
.site-nav > ul > li > a {
  display: block;
  padding: 15px 24px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.93em;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  position: relative;
}
.site-nav > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s;
}
.site-nav > ul > li > a:hover,
.site-nav > ul > li > a.active {
  color: var(--primary);
}
.site-nav > ul > li > a:hover::after,
.site-nav > ul > li > a.active::after {
  width: 60%;
}

/* Dropdown Submenu */
.site-nav .has-submenu > a::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-right: 6px;
  vertical-align: middle;
  opacity: 0.5;
}
.site-nav .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  min-width: 200px;
  box-shadow: var(--shadow);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  z-index: 200;
}
.site-nav .has-submenu:hover .submenu {
  display: block;
}
.site-nav .submenu li a {
  display: block;
  padding: 12px 24px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9em;
  white-space: nowrap;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.site-nav .submenu li a:hover {
  color: var(--primary);
  background: #f7f8fa;
  border-left-color: var(--accent);
}

/* ===== Section Common ===== */
.section {
  padding: 80px 20px;
}
.section-alt {
  background: var(--white);
}
.section-title {
  text-align: center;
  font-size: 1.75em;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: 0.06em;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95em;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.section-divider {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 48px;
}

/* ===== Hero (Home) ===== */
.hero {
  background: linear-gradient(160deg, #0f1d32 0%, #1a2d47 40%, #213554 100%);
  color: #ffffff;
  padding: 100px 20px 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 60% 30%, rgba(184,148,46,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero h2 {
  font-size: 2.4em;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.08em;
  position: relative;
}
.hero .hero-divider {
  width: 50px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 24px;
}
.hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05em;
  max-width: 700px;
  margin: 0 auto 36px;
  line-height: 1.8;
  position: relative;
}
.hero .hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(184,148,46,0.4);
  color: var(--accent-light);
  padding: 8px 24px;
  border-radius: 2px;
  font-size: 0.88em;
  letter-spacing: 0.1em;
  position: relative;
}

/* ===== Home Stats ===== */
.stats-section {
  background: var(--white);
  padding: 0;
  margin-top: -50px;
  position: relative;
  z-index: 2;
}
.stats-grid {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-item {
  flex: 1;
  text-align: center;
  padding: 32px 24px;
  position: relative;
}
.stat-item + .stat-item {
  border-left: 1px solid var(--border);
}
.stat-item .stat-num {
  font-size: 2em;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.stat-item .stat-label {
  font-size: 0.82em;
  color: var(--text-muted);
}

/* ===== Practice Area Cards ===== */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.area-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 3px solid transparent;
  position: relative;
}
.area-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--accent);
}
.area-card .card-icon {
  font-size: 1.8em;
  margin-bottom: 14px;
}
.area-card h3 {
  color: var(--primary);
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 10px;
}
.area-card p {
  color: var(--text-secondary);
  font-size: 0.88em;
  line-height: 1.7;
}

/* ===== Detail Page Content ===== */
.content-section {
  background: var(--white);
  padding: 60px 20px;
}
.content-section .container {
  max-width: 860px;
  margin: 0 auto;
}
.content-section h3 {
  color: var(--primary);
  font-size: 1.2em;
  font-weight: 600;
  margin: 36px 0 14px;
}
.content-section p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-size: 0.96em;
}
.content-section table,
.content-section td {
  text-align: left;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  background: var(--bg);
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88em;
}
.breadcrumb a {
  color: var(--primary-light);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb span {
  color: var(--text-muted);
  margin: 0 6px;
}

/* ===== Team Page ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 38px 28px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  border-bottom: 3px solid transparent;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-bottom-color: var(--accent);
}
.team-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: 700;
  margin: 0 auto 18px;
  object-fit: cover;
}
.team-card h3 {
  color: var(--primary);
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 4px;
}
.team-card .role {
  color: var(--accent);
  font-size: 0.85em;
  font-weight: 500;
  margin-bottom: 14px;
}
.profile-inline {
  text-align: justify;
  color: var(--text-secondary);
  font-size: 0.85em;
  line-height: 1.7;
  margin: 6px 0;
}
.profile-inline strong {
  color: var(--primary);
  font-weight: 600;
}
.team-card .license,
.team-card .phone {
  color: var(--text-muted);
  font-size: 0.78em;
  margin-top: 6px;
}

/* ===== Cases Page ===== */
.cases-list {
  max-width: 900px;
  margin: 0 auto;
}
.case-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
  transition: transform 0.25s, box-shadow 0.25s;
}
.case-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}
.case-item .case-category {
  display: inline-block;
  background: #eef2f7;
  color: var(--primary-light);
  font-size: 0.75em;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 8px;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.case-item h3 {
  color: var(--primary);
  font-size: 1.05em;
  margin-bottom: 8px;
  font-weight: 600;
}
.case-item .case-summary {
  color: var(--text-secondary);
  font-size: 0.9em;
  line-height: 1.7;
  margin-bottom: 10px;
}
.case-item .case-result {
  color: var(--accent);
  font-size: 0.88em;
  font-weight: 600;
}
.case-item .case-link {
  color: var(--primary);
  text-decoration: none;
  transition: color .2s;
}
.case-item .case-link:hover {
  color: var(--accent);
  text-decoration: underline;
}
.case-item .read-more,
.read-more {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 20px;
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  text-decoration: none;
  border-radius: 2px;
  font-size: 0.85em;
  transition: all .2s;
}
.case-item .read-more:hover,
.read-more:hover {
  background: var(--primary);
  color: white;
}

/* ===== News Page ===== */
.news-list {
  max-width: 900px;
  margin: 0 auto;
}
.news-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 32px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.news-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}
.news-item .news-date {
  color: var(--text-muted);
  font-size: 0.8em;
  margin-bottom: 6px;
}
.news-item h3 {
  color: var(--primary);
  font-size: 1.02em;
  font-weight: 600;
  margin-bottom: 8px;
}
.news-item p {
  color: var(--text-secondary);
  font-size: 0.88em;
  line-height: 1.7;
}

/* ===== Contact Section ===== */
.contact-section {
  background: linear-gradient(160deg, #0f1d32 0%, #1a2d47 60%, #213554 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
}
.contact-section h2 {
  font-size: 1.6em;
  letter-spacing: 0.06em;
  margin-bottom: 36px;
  font-weight: 600;
}
.contact-grid {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}
.contact-item {
  text-align: center;
}
.contact-item .icon {
  font-size: 1.6em;
  margin-bottom: 10px;
}
.contact-item .label {
  font-size: 0.78em;
  opacity: 0.6;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}
.contact-item .value {
  font-size: 0.98em;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}

/* ===== Footer ===== */
.site-footer {
  background: #0c1729;
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 40px 20px 28px;
  font-size: 0.82em;
}
.site-footer a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer a:hover {
  color: var(--accent-light);
}
.site-footer .footer-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.site-footer .footer-divider {
  width: 30px;
  height: 1px;
  background: var(--accent);
  margin: 12px auto;
  opacity: 0.4;
}
.site-footer p {
  margin-top: 4px;
}

/* ===== CTA Button ===== */
.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 2px;
  font-size: 0.93em;
  letter-spacing: 0.04em;
  transition: all 0.25s;
  font-weight: 500;
}
.btn-primary:hover {
  background: #a38329;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184,148,46,0.3);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .site-nav ul {
    flex-wrap: wrap;
  }
  .site-nav > ul > li > a {
    padding: 12px 14px;
    font-size: 0.85em;
  }
  .hero { padding: 60px 20px 90px; }
  .hero h2 { font-size: 1.6em; }
  .hero p { font-size: 0.95em; }
  .stats-section { margin-top: -36px; }
  .stats-grid { flex-direction: column; }
  .stat-item + .stat-item { border-left: none; border-top: 1px solid var(--border); }
  .stat-item { padding: 24px 20px; }
  .section { padding: 50px 20px; }
  .areas-grid,
  .team-grid { grid-template-columns: 1fr; }
  .contact-grid { gap: 28px; }
  .site-header { padding: 36px 20px 24px; }
}
