/* ============================================
   四川法泰律师事务所 — 官网样式
   专业、稳重、可信赖的律所视觉风格
   ============================================ */

:root {
  --navy-950: #0b1220;
  --navy-900: #0f1b2d;
  --navy-800: #162338;
  --navy-700: #1e3048;
  --gold-500: #c9a227;
  --gold-400: #d4b44a;
  --gold-300: #e2c96a;
  --cream: #f7f5f0;
  --cream-dark: #efebe3;
  --white: #ffffff;
  --text: #1a2332;
  --text-muted: #5a6577;
  --border: rgba(15, 27, 45, 0.08);
  --shadow: 0 12px 40px rgba(11, 18, 32, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 18, 32, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
  --font: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-500);
  color: var(--navy-950);
  border-color: var(--gold-500);
}

.btn-primary:hover {
  background: var(--gold-400);
  border-color: var(--gold-400);
  transform: translateY(-1px);
}

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

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

.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(11, 18, 32, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--gold-300);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 10px;
  letter-spacing: 0.05em;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.logo-text strong {
  font-size: 0.95rem;
  color: var(--navy-900);
  font-weight: 600;
}

.logo-text small {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.45rem 0.85rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  border-radius: 6px;
  transition: all var(--transition);
  font-weight: 400;
}

.nav-link:hover,
.nav-link.active {
  color: var(--navy-900);
  background: var(--cream-dark);
}

.header-cta {
  flex-shrink: 0;
}

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

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(11, 18, 32, 0.92) 0%, rgba(22, 35, 56, 0.88) 50%, rgba(15, 27, 45, 0.94) 100%),
    radial-gradient(ellipse at 70% 20%, rgba(201, 162, 39, 0.15), transparent 50%),
    linear-gradient(180deg, var(--navy-950), var(--navy-800));
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: rgba(201, 162, 39, 0.15);
  border: 1px solid rgba(201, 162, 39, 0.35);
  color: var(--gold-300);
  border-radius: 100px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat strong {
  font-size: 1.35rem;
  color: var(--gold-300);
  font-weight: 600;
}

.stat span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Sections ---------- */
.section {
  padding: 5.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--gold-500);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  color: var(--navy-900);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.section-header.light h2 {
  color: var(--white);
}

.section-header.light .section-desc {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- About ---------- */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.about-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: all var(--transition);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(201, 162, 39, 0.25);
}

.about-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.about-card h3 {
  font-size: 1.15rem;
  color: var(--navy-900);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.about-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.about-card strong {
  color: var(--navy-800);
  font-weight: 600;
}

.about-highlight {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.highlight-item {
  background: var(--white);
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.highlight-item h4 {
  font-size: 0.8rem;
  color: var(--gold-500);
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.highlight-item p {
  font-size: 0.95rem;
  color: var(--navy-900);
  font-weight: 500;
}

/* ---------- Services ---------- */
.services {
  background: var(--cream);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy-800), var(--gold-500));
  opacity: 0;
  transition: opacity var(--transition);
}

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

.service-card:hover::before {
  opacity: 1;
}

.service-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-500);
  letter-spacing: 0.1em;
  margin-bottom: 0.85rem;
}

.service-card h3 {
  font-size: 1.15rem;
  color: var(--navy-900);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.service-card > p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.1rem;
  line-height: 1.7;
}

.service-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.service-card li {
  font-size: 0.88rem;
  color: var(--navy-700);
  padding-left: 1rem;
  position: relative;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-500);
}

/* ---------- Advantages ---------- */
.advantages {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.advantage-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
}

.advantage-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(201, 162, 39, 0.3);
  transform: translateY(-3px);
}

.adv-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.advantage-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
  font-weight: 600;
  color: var(--gold-300);
}

.advantage-item p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

/* ---------- Process ---------- */
.process {
  background: var(--white);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  position: relative;
}

.process-step {
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
}

.step-num {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.1rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--gold-300);
  font-weight: 700;
  font-size: 1.15rem;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(15, 27, 45, 0.2);
}

.process-step h3 {
  font-size: 1.05rem;
  color: var(--navy-900);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.process-step p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  height: 100%;
}

.info-card h3 {
  font-size: 1.35rem;
  color: var(--navy-900);
  font-weight: 700;
}

.info-en {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  letter-spacing: 0.02em;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.info-list > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.75rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--border);
}

.info-list > div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-list dt {
  font-size: 0.85rem;
  color: var(--gold-500);
  font-weight: 600;
}

.info-list dd {
  font-size: 0.95rem;
  color: var(--navy-800);
  line-height: 1.6;
}

.muted {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.contact-note {
  margin-top: 1.75rem;
  padding: 1rem 1.15rem;
  background: var(--cream);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold-500);
}

.contact-note p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.contact-note strong {
  color: var(--navy-800);
}

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 1.25rem;
  color: var(--navy-900);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.form-tip {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.form-row {
  margin-bottom: 1.15rem;
}

.form-row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy-800);
  margin-bottom: 0.4rem;
}

.form-row label span {
  color: #c0392b;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
  background: var(--white);
}

.form-row textarea {
  resize: vertical;
  min-height: 110px;
}

.form-privacy {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand strong {
  display: block;
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
}

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

.footer-meta p {
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-meta .icp a {
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}

.footer-meta .icp a:hover {
  color: var(--gold-300);
}

.disclaimer {
  margin-top: 0.75rem !important;
  font-size: 0.78rem !important;
  color: rgba(255, 255, 255, 0.35) !important;
  max-width: 520px;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-300);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 900;
  box-shadow: 0 4px 16px rgba(11, 18, 32, 0.25);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--navy-700);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy-900);
  color: var(--white);
  padding: 0.9rem 1.5rem;
  border-radius: 10px;
  font-size: 0.92rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 2000;
  max-width: 90%;
  text-align: center;
  border: 1px solid rgba(201, 162, 39, 0.3);
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .about-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .process-timeline {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-step:nth-child(4),
  .process-step:nth-child(5) {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    width: 100%;
    padding: 0.85rem 1rem;
    text-align: left;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 2.5rem) 0 3.5rem;
  }

  .hero-stats {
    gap: 1.25rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .about-grid,
  .services-grid,
  .advantages-grid,
  .process-timeline,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .info-list > div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

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

  .logo-text small {
    display: none;
  }
}
