/* ===== 律法生态环境 — 公司主页样式 ===== */
:root {
  --primary: #174737;
  --primary-light: #246f57;
  --accent: #b7791f;
  --accent-hover: #936018;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --text: #2c3e50;
  --text-light: #6c757d;
  --border: #e9ecef;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --max-w: 1100px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary) !important;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
}

.main-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  transition: color .2s;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  background: linear-gradient(135deg, var(--primary) 0%, #163528 100%);
}

.hero img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  opacity: 0.25;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(23,71,55,.9) 0%, rgba(22,53,40,.72) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  color: #fff;
}

.hero-content .eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  opacity: .8;
  margin-bottom: 12px;
}

.hero-content h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-content p {
  max-width: 760px;
  font-size: 16px;
  opacity: .9;
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.button {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  transition: all .2s;
  cursor: pointer;
  border: none;
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.button.secondary {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
}

.button.secondary:hover {
  background: rgba(255,255,255,.25);
  color: #fff;
}

/* ===== Sections ===== */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 24px;
}

.section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.section-heading .eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-heading h2 {
  font-size: clamp(22px, 3vw, 32px);
  color: var(--primary);
  font-weight: 700;
}

.section.intro p {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-light);
}

/* ===== Metrics ===== */
.section.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.section.metrics article {
  text-align: center;
  padding: 24px 12px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}

.section.metrics strong {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--primary-light);
  margin-bottom: 4px;
}

.section.metrics span {
  font-size: 13px;
  color: var(--text-light);
}

/* ===== Services ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.service-card {
  padding: 32px 24px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.service-card .icon {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary);
}

.service-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== Audiences ===== */
.audiences {
  padding-top: 28px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.tag-list span {
  padding: 10px 16px;
  background: #eef6f1;
  border: 1px solid #d6e8de;
  border-radius: var(--radius);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

/* ===== Process ===== */
.process {
  padding-top: 36px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.process-grid article {
  padding: 24px;
  border-left: 4px solid var(--accent);
  background: var(--bg-alt);
  border-radius: var(--radius);
}

.process-grid strong {
  display: block;
  color: var(--accent);
  font-size: 22px;
  margin-bottom: 10px;
}

.process-grid h3 {
  color: var(--primary);
  font-size: 17px;
  margin-bottom: 8px;
}

.process-grid p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
}

/* ===== Links Band ===== */
.links-band {
  background: var(--bg-alt);
  max-width: 100%;
  padding: 64px 24px;
}

.links-band > div:first-child {
  max-width: var(--max-w);
  margin: 0 auto 32px;
  text-align: center;
}

.links-band .eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 8px;
}

.links-band h2 {
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--primary);
}

.link-cards {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.link-card {
  display: block;
  padding: 28px 24px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}

.link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: inherit;
}

.link-card span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 6px;
}

.link-card strong {
  display: block;
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

.link-card:hover strong {
  color: var(--primary);
}

/* ===== Contact ===== */
.contact {
  text-align: center;
}

.contact h2 {
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--primary);
  margin-bottom: 24px;
}

.contact address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-light);
}

.contact-button {
  margin-top: 12px;
}

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-light);
  line-height: 2;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    gap: 12px;
  }

  .hero-content p {
    font-size: 14px;
  }

  .service-grid,
  .link-cards {
    grid-template-columns: 1fr;
  }

  .section.metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}
