/* ========================================
   浩信北京律师事务所 — 独立品牌网站
   haoxinbj.com
   ======================================== */

/* --- Reset & Variables --- */
:root {
  --navy: #0a1628;
  --navy-light: #132038;
  --gold: #b8860b;
  --gold-light: #d4a732;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-500: #868e96;
  --gray-700: #495057;
  --gray-900: #212529;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --font-serif: "Noto Serif SC", "STSong", "SimSun", serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 6px;
  --radius-lg: 10px;
  --max-width: 1200px;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--gray-900);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

/* --- Typography --- */
.section-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--gray-700);
  max-width: 640px;
  line-height: 1.8;
}

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.logo-main {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 2px;
}

.logo-sub {
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 1px;
  position: relative;
  top: -2px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--gray-700);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.nav-cta {
  background: var(--gold);
  color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: var(--radius);
  font-weight: 600;
  border: none !important;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: 0.2s;
}

/* --- Hero --- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 100px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(184,134,11,0.08) 0%, transparent 60%);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-tag {
  font-size: 0.85rem;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 24px;
}

.hero h1 span {
  color: var(--gold);
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  padding: 14px 36px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  transition: background 0.2s;
}

.btn-primary:hover { background: var(--gold-light); }

.btn-outline {
  display: inline-block;
  border: 1.5px solid rgba(255,255,255,0.4);
  color: var(--white);
  padding: 14px 36px;
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.06);
}

/* --- Section Common --- */
.section {
  padding: 90px 24px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-desc {
  margin: 0 auto;
}

/* --- Practice Areas --- */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.practice-card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--gray-200);
  transition: transform 0.2s, box-shadow 0.2s;
}

.practice-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.practice-card .icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.practice-card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 10px;
  font-weight: 600;
}

.practice-card p {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.7;
}

/* --- Team Section (Home page preview) --- */
.team-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 28px;
}

.team-card {
  text-align: center;
}

.team-card .avatar {
  width: 120px;
  height: 150px;
  border-radius: 12px;
  background: var(--gray-200);
  margin: 0 auto 16px;
  overflow: hidden;
}

.team-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.team-card .avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--gray-500);
  background: var(--gray-100);
}

.team-card h4 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.team-card .role {
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 6px;
}

.team-card .specialty {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* --- Cases --- */
.cases-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.case-item {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--gray-200);
  transition: box-shadow 0.2s;
}

.case-item:hover {
  box-shadow: var(--shadow-md);
}

.case-item .case-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--gold);
  background: rgba(184,134,11,0.1);
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  font-weight: 600;
}

.case-item h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.case-item p {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.7;
}

/* --- Insights --- */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.insight-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.insight-card:hover {
  box-shadow: var(--shadow-md);
}

.insight-card .card-body {
  padding: 28px;
}

.insight-card .card-date {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.insight-card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.5;
}

.insight-card p {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.7;
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  background: var(--gray-200);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 0.9rem;
}

.about-content h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 20px;
}

.about-content p {
  color: var(--gray-700);
  line-height: 1.9;
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 4px;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h3 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-item .label {
  font-size: 0.85rem;
  color: var(--gray-500);
  min-width: 56px;
}

.contact-item .value {
  font-size: 0.95rem;
  color: var(--gray-900);
}

.contact-form {
  background: var(--gray-50);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.contact-form h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 1px;
  transition: background 0.2s;
}

.btn-submit:hover { background: var(--navy-light); }

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 48px 24px 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.9rem;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.footer-bottom a {
  color: var(--gold);
  margin-left: 16px;
}

/* --- Page Banner (subpages) --- */
.page-banner {
  background: var(--navy);
  color: var(--white);
  padding: 72px 24px;
  text-align: center;
}

.page-banner h1 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.page-banner p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
}

/* --- Team Page Full --- */
.team-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 36px;
}

.team-full-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  transition: box-shadow 0.2s;
}

.team-full-card:hover {
  box-shadow: var(--shadow-md);
}

.team-full-card .avatar {
  width: 140px;
  height: 170px;
  border-radius: 12px;
  margin: 0 auto 20px;
  overflow: hidden;
}

.team-full-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.team-full-card .avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--gray-500);
  background: var(--gray-100);
}

.team-full-card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.team-full-card .title {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}

.team-full-card .bio {
  font-size: 0.85rem;
  color: var(--gray-700);
  line-height: 1.6;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    border-bottom: 1px solid var(--gray-200);
    gap: 16px;
  }

  .menu-toggle { display: flex; }

  .hero { padding: 72px 20px; }

  .hero h1 { font-size: 2rem; }

  .section { padding: 60px 20px; }

  .section-title { font-size: 1.7rem; }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .page-banner h1 { font-size: 1.8rem; }

  .insights-grid { grid-template-columns: 1fr; }

  .practice-grid { grid-template-columns: 1fr; }

  .team-full-grid,
  .team-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }

  .hero-btns { flex-direction: column; align-items: center; }

  .team-full-grid,
  .team-preview-grid {
    grid-template-columns: 1fr;
  }

  .about-stats { grid-template-columns: 1fr; }
}
