/* 修远律所管理系统官网 - 主样式 */
:root {
  --primary: #1a365d;
  --primary-light: #2c5282;
  --primary-dark: #0f2744;
  --accent: #3182ce;
  --accent-hover: #2b6cb0;
  --gray-50: #f7fafc;
  --gray-100: #edf2f7;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e0;
  --gray-600: #718096;
  --gray-700: #4a5568;
  --gray-800: #2d3748;
  --white: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --radius: 8px;
  --header-h: 72px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
}
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled {
  background: rgba(26,54,93,.97);
  box-shadow: var(--shadow);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.logo-area { display: flex; align-items: center; gap: 12px; color: var(--white); }
.logo-area img {
  height: 44px; width: 44px; object-fit: contain;
  background: transparent; flex-shrink: 0;
}
.logo-text h1 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.logo-text span { font-size: 12px; opacity: .85; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: rgba(255,255,255,.9); padding: 8px 14px; border-radius: 6px;
  font-size: 15px; transition: all .2s;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--white); background: rgba(255,255,255,.15);
}
.btn-consult {
  background: var(--accent); color: var(--white) !important;
  padding: 10px 22px !important; border-radius: 6px; font-weight: 600;
  margin-left: 12px; border: none; cursor: pointer;
}
.btn-consult:hover { background: var(--accent-hover); color: var(--white) !important; }

.menu-toggle {
  display: none; background: none; border: none; color: var(--white);
  font-size: 28px; cursor: pointer; padding: 4px;
}

/* Hero */
.hero {
  background: linear-gradient(145deg, #0b1c33 0%, var(--primary-dark) 28%, var(--primary) 62%, var(--primary-light) 100%);
  color: var(--white); padding: calc(var(--header-h) + 80px) 0 100px;
  text-align: center; position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(40px); opacity: .45;
  will-change: transform;
}
.hero-orb-a {
  width: 420px; height: 420px; top: -120px; left: -80px;
  background: radial-gradient(circle, rgba(49,130,206,.7) 0%, rgba(49,130,206,0) 70%);
  animation: heroOrbA 18s ease-in-out infinite;
}
.hero-orb-b {
  width: 360px; height: 360px; right: -60px; top: 20%;
  background: radial-gradient(circle, rgba(99,179,237,.55) 0%, rgba(99,179,237,0) 70%);
  animation: heroOrbB 22s ease-in-out infinite;
}
.hero-orb-c {
  width: 480px; height: 480px; left: 30%; bottom: -220px;
  background: radial-gradient(circle, rgba(44,82,130,.75) 0%, rgba(44,82,130,0) 68%);
  animation: heroOrbC 26s ease-in-out infinite;
}
.hero-grid {
  position: absolute; inset: -20%;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(700px) rotateX(52deg) translateY(-8%);
  transform-origin: center top;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 78%);
  animation: heroGrid 28s linear infinite;
}
.hero-shine {
  position: absolute; inset: 0;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 38%,
    rgba(255,255,255,.07) 48%,
    transparent 58%,
    transparent 100%
  );
  background-size: 220% 100%;
  animation: heroShine 9s ease-in-out infinite;
}
.hero .container { position: relative; z-index: 1; }
.hero h2 {
  font-size: clamp(28px, 5vw, 44px); font-weight: 700; margin-bottom: 20px; line-height: 1.3;
  animation: heroFadeUp .8s ease both;
}
.hero p {
  font-size: clamp(16px, 2.5vw, 20px); opacity: .9; max-width: 700px; margin: 0 auto 36px;
  animation: heroFadeUp .8s ease .12s both;
}
.hero-btns {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  animation: heroFadeUp .8s ease .24s both;
}

@keyframes heroOrbA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(70px, 40px) scale(1.12); }
}
@keyframes heroOrbB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, 50px) scale(1.08); }
}
@keyframes heroOrbC {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -50px) scale(1.15); }
}
@keyframes heroGrid {
  0% { background-position: 0 0; }
  100% { background-position: 56px 56px; }
}
@keyframes heroShine {
  0%, 100% { background-position: 120% 0; opacity: .35; }
  50% { background-position: -20% 0; opacity: .7; }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orb, .hero-grid, .hero-shine,
  .hero h2, .hero p, .hero-btns {
    animation: none !important;
  }
}

/* Buttons */
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 6px;
  font-size: 16px; font-weight: 600; cursor: pointer; border: 2px solid transparent;
  transition: all .2s; text-align: center;
}
.btn-primary { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); color: var(--white); }
.btn-secondary { background: var(--gray-100); color: var(--primary); border-color: var(--gray-200); }
.btn-secondary:hover { background: var(--gray-200); }

/* Sections */
.section { padding: 80px 0; }
.section-gray { background: var(--gray-50); }
.section-title { text-align: center; margin-bottom: 16px; }
.section-title h2 { font-size: clamp(24px, 4vw, 36px); color: var(--primary); font-weight: 700; }
.section-title p { color: var(--gray-600); font-size: 17px; max-width: 600px; margin: 12px auto 0; }
.section-subtitle { color: var(--accent); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }

/* Cards grid */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 48px; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 32px 24px;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
  border: 1px solid var(--gray-100);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon { font-size: 40px; margin-bottom: 16px; }
.card-icon.f-icon {
  width: 48px;
  height: 48px;
  color: #2b6cb0;
  font-size: inherit;
}
.card-icon.f-icon svg { width: 100%; height: 100%; display: block; }
.card h3 { font-size: 20px; color: var(--primary); margin-bottom: 10px; }
.card p { color: var(--gray-600); font-size: 15px; }

/* Feature cards with link */
.feature-card { cursor: pointer; }
.feature-card a {
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.feature-card .card-icon.f-icon { margin-left: auto; margin-right: auto; }

/* Solution cards */
.solution-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; margin-top: 48px; }
.solution-card {
  background: var(--white); border-radius: var(--radius); padding: 36px 28px;
  border: 2px solid var(--gray-200); transition: border-color .2s;
}
.solution-card:hover { border-color: var(--accent); }
.solution-card h3 { font-size: 22px; color: var(--primary); margin-bottom: 12px; }
.solution-card .tag { display: inline-block; background: var(--gray-100); color: var(--primary-light); padding: 4px 12px; border-radius: 20px; font-size: 13px; margin-bottom: 16px; }
.solution-card ul { margin: 16px 0; }
.solution-card li { padding: 6px 0; color: var(--gray-700); font-size: 15px; }
.solution-card li::before { content: '✓ '; color: var(--accent); font-weight: bold; }

/* Table */
.table-wrap { overflow-x: auto; margin-top: 32px; border-radius: var(--radius); box-shadow: var(--shadow); }
.data-table { width: 100%; border-collapse: collapse; background: var(--white); min-width: 700px; }
.data-table th, .data-table td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--gray-200); font-size: 14px; }
.data-table th { background: var(--primary); color: var(--white); font-weight: 600; }
.data-table tr:hover td { background: var(--gray-50); }
.data-table .highlight { background: rgba(49,130,206,.08); font-weight: 600; color: var(--primary); }

/* Page header */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white); padding: calc(var(--header-h) + 60px) 0 60px; text-align: center;
}
.page-header h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.page-header p { opacity: .9; font-size: 17px; max-width: 640px; margin: 0 auto; }
.page-header p.page-header-oneline {
  max-width: 1100px;
  white-space: nowrap;
  font-size: 17px;
  letter-spacing: 0.02em;
}

/* Function page module grid (matches product shot: 4x2 cards) */
.function-module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.function-module-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--white);
  border: 1px solid #dbe7f3;
  border-radius: 12px;
  padding: 36px 20px 28px;
  color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.function-module-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}
.function-module-card .f-icon {
  width: 56px;
  height: 56px;
  color: #2b6cb0;
  margin-bottom: 18px;
}
.function-module-card .f-icon svg { width: 100%; height: 100%; display: block; }
.function-module-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 10px;
}
.function-module-card p {
  margin: 0;
  font-size: 14px;
  color: #718096;
  line-height: 1.5;
}
/* Function page sidebar (left-right detail layout) */
.function-layout { display: flex; gap: 40px; padding: 0 0 60px; }
.function-sidebar {
  width: 200px; flex-shrink: 0; position: sticky; top: calc(var(--header-h) + 20px);
  align-self: flex-start;
}
.function-sidebar a {
  display: block; padding: 10px 16px; color: var(--gray-700); border-left: 3px solid transparent;
  font-size: 15px; margin-bottom: 4px; transition: all .2s;
}
.function-sidebar a:hover, .function-sidebar a.active {
  color: var(--accent); border-left-color: var(--accent); background: var(--gray-50);
}
.function-content { flex: 1; min-width: 0; }
.module-block {
  padding: 40px 0; border-bottom: 1px solid var(--gray-200);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.module-block:last-child { border-bottom: none; }
.module-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 42%);
  gap: 32px;
  align-items: center;
}
.module-block:nth-child(even) .module-body {
  grid-template-columns: minmax(240px, 42%) minmax(0, 1fr);
}
.module-block:nth-child(even) .module-media { order: -1; }
.module-title {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.module-title .module-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  color: #2b6cb0;
  flex: 0 0 auto;
  margin: 0;
}
.module-title .module-icon svg { width: 100%; height: 100%; display: block; }
.module-block h2 {
  display: inline-block;
  font-size: 26px;
  color: var(--primary);
  margin: 0;
  flex: 0 1 auto;
  line-height: 1.2;
}
.module-block .value { color: var(--accent); font-size: 16px; margin-bottom: 20px; font-weight: 500; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.feature-tags span {
  background: var(--gray-100); color: var(--primary-light);
  padding: 6px 14px; border-radius: 20px; font-size: 13px;
}
.module-block p.desc { color: var(--gray-600); line-height: 1.8; }
.module-media { width: 100%; }
.module-shot {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  object-fit: cover; object-position: top center;
  border-radius: var(--radius); border: 1px solid var(--gray-200);
  background: var(--gray-50); box-shadow: var(--shadow);
  image-rendering: -webkit-optimize-contrast;
}
.module-shot-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; width: 100%; aspect-ratio: 16 / 10;
  border-radius: var(--radius); border: 1px dashed rgba(49,130,206,.35);
  background:
    linear-gradient(135deg, rgba(49,130,206,.06), rgba(26,54,93,.04)),
    repeating-linear-gradient(-45deg, transparent, transparent 8px, rgba(49,130,206,.04) 8px, rgba(49,130,206,.04) 16px);
  color: var(--primary-light); text-align: center; padding: 20px;
}
.module-shot-placeholder span {
  font-size: 15px; font-weight: 600; color: var(--primary);
}
.module-shot-placeholder small {
  font-size: 12px; color: var(--gray-600); letter-spacing: .02em;
}

/* Contact form */
.contact-layout { display: grid; grid-template-columns: 1fr 360px; gap: 48px; padding: 60px 0; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; color: var(--gray-700); }
.form-group label .req { color: #e53e3e; }
.form-control {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gray-300);
  border-radius: 6px; font-size: 15px; transition: border-color .2s;
  font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(49,130,206,.15); }
.form-control.error { border-color: #e53e3e; }
.error-msg { color: #e53e3e; font-size: 13px; margin-top: 4px; }
textarea.form-control { min-height: 120px; resize: vertical; }
.captcha-row { display: flex; gap: 12px; align-items: center; }
.captcha-row img { height: 44px; border-radius: 4px; cursor: pointer; border: 1px solid var(--gray-200); }
.form-actions { display: flex; gap: 12px; margin-top: 24px; }
.form-note { font-size: 13px; color: var(--gray-600); margin-top: 16px; }

.contact-info { background: var(--gray-50); border-radius: var(--radius); padding: 32px; }
.contact-info h3 { color: var(--primary); margin-bottom: 24px; font-size: 20px; }
.contact-item { display: flex; gap: 12px; margin-bottom: 20px; align-items: flex-start; }
.contact-item .icon { font-size: 20px; width: 32px; text-align: center; }
.contact-item strong { display: block; color: var(--gray-800); margin-bottom: 2px; }
.contact-item span { color: var(--gray-600); font-size: 15px; }
.qrcode { text-align: center; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--gray-200); }
.qrcode img { width: 160px; height: 160px; object-fit: contain; margin-bottom: 8px; }
.qrcode-inline { margin-top: 8px; }
.qrcode-inline img {
  width: 140px; height: 140px; object-fit: contain; display: block;
  border-radius: 8px; background: #fff; padding: 6px;
  border: 1px solid var(--gray-200);
}
.qrcode-inline p { margin-top: 8px; color: var(--gray-500); font-size: 13px; }
.footer-qrcode { margin-top: 10px; }
.footer-qrcode img {
  width: 96px; height: 96px; object-fit: contain; display: block;
  border-radius: 6px; background: #fff; padding: 4px;
}
.footer-qrcode span { display: block; margin-top: 6px; color: rgba(255,255,255,.7); font-size: 13px; }

/* Footer */
.site-footer {
  background: var(--primary-dark); color: rgba(255,255,255,.8); padding: 60px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand h3 { color: var(--white); font-size: 20px; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.8; }
.footer-brand a { color: rgba(255,255,255,.85); }
.footer-brand a:hover { color: var(--white); }
.footer-col h4 { color: var(--white); font-size: 16px; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,.7); padding: 4px 0; font-size: 14px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  text-align: center; font-size: 13px;
}
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: rgba(255,255,255,.9); }
.footer-bottom .beian-police {
  display: inline-flex; align-items: center; gap: 4px; vertical-align: middle;
}
.footer-bottom .beian-police img { display: inline-block; width: 16px; height: 16px; }

/* Float consult */
.float-consult {
  position: fixed; right: 24px; bottom: 32px; z-index: 999;
  background: var(--accent); color: var(--white);
  padding: 14px 22px; border-radius: 50px; font-size: 15px; font-weight: 600;
  box-shadow: var(--shadow-lg); cursor: pointer; border: none;
  transition: transform .2s, background .2s;
}
.float-consult:hover { transform: scale(1.05); background: var(--accent-hover); }

/* Modal */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.5); align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--white); border-radius: var(--radius); width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto; position: relative; animation: modalIn .3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: none; } }
.modal-header {
  padding: 20px 24px; border-bottom: 1px solid var(--gray-200);
  display: flex; justify-content: space-between; align-items: center;
}
.modal-header h3 { font-size: 18px; color: var(--primary); }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gray-600); line-height: 1; }
.modal-body { padding: 24px; }
.toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 3000;
  padding: 14px 28px; border-radius: 6px; color: var(--white); font-size: 15px;
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.toast.show { opacity: 1; }
.toast.success { background: #38a169; }
.toast.error { background: #e53e3e; }

/* TCO & tips */
.info-box {
  background: var(--gray-50); border-left: 4px solid var(--accent);
  padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; margin: 24px 0;
}
.info-box h4 { color: var(--primary); margin-bottom: 8px; }
.tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.tip-card { background: var(--white); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.tip-card h4 { color: var(--primary); margin-bottom: 12px; }
.tip-card ul li { padding: 4px 0; color: var(--gray-700); font-size: 15px; }

.motto { text-align: center; font-size: 22px; color: var(--primary); font-weight: 600; letter-spacing: 4px; padding: 40px 0; }

/* FAQ */
.faq-layout {
  display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: start;
}
.faq-nav {
  position: sticky; top: calc(var(--header-h) + 24px);
  display: flex; flex-direction: column; gap: 4px;
}
.faq-nav a {
  display: block; padding: 10px 14px; border-radius: 6px; color: var(--gray-700);
  font-size: 15px; border-left: 3px solid transparent;
}
.faq-nav a:hover { background: var(--gray-50); color: var(--primary); }
.faq-group { margin-bottom: 48px; scroll-margin-top: calc(var(--header-h) + 20px); }
.faq-group-head h2 { font-size: 24px; color: var(--primary); margin-bottom: 8px; }
.faq-group-head p { color: var(--gray-600); margin-bottom: 20px; font-size: 15px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.faq-item[open] {
  border-color: rgba(49,130,206,.35);
  box-shadow: 0 6px 18px rgba(26,54,93,.06);
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px;
  font-size: 16px; font-weight: 600; color: var(--primary); position: relative;
  line-height: 1.5; user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%; background: var(--gray-100);
  color: var(--primary); font-size: 18px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; line-height: 1;
  transition: background .2s, transform .2s;
}
.faq-item[open] summary::after {
  content: '−'; background: rgba(49,130,206,.12); color: var(--accent);
}
.faq-answer {
  padding: 0 20px 20px; color: var(--gray-700); font-size: 15px; line-height: 1.85;
  border-top: 1px solid var(--gray-100); margin-top: -2px; padding-top: 16px;
}
.faq-cta {
  margin-top: 16px; padding: 36px 28px; text-align: center;
  background: linear-gradient(135deg, var(--gray-50), #eef4fb);
  border-radius: var(--radius);
}
.faq-cta h3 { color: var(--primary); font-size: 22px; margin-bottom: 8px; }
.faq-cta p { color: var(--gray-600); margin-bottom: 24px; }
.faq-cta .hero-btns { animation: none; }

/* Case studies */
.case-intro {
  max-width: 720px; margin: 0 auto 36px; text-align: center;
  color: var(--gray-700); font-size: 16px; line-height: 1.8;
}
.case-list { display: flex; flex-direction: column; gap: 28px; }
.case-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.case-tag {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  background: rgba(49,130,206,.12); color: var(--accent); font-size: 13px; font-weight: 600;
}
.case-tag.ghost {
  background: var(--gray-100); color: var(--gray-700); font-weight: 500;
}
.case-card h2 { font-size: 24px; color: var(--primary); margin-bottom: 8px; }
.case-selling { color: var(--gray-600); font-size: 14px; margin-bottom: 20px; }
.case-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px;
}
.case-panel {
  background: var(--gray-50); border-radius: var(--radius); padding: 20px;
}
.case-panel.highlight {
  background: linear-gradient(135deg, #f0f7ff, #eef4fb);
  border: 1px solid rgba(49,130,206,.18);
}
.case-panel h3 {
  font-size: 16px; color: var(--primary); margin-bottom: 14px;
}
.case-pain { list-style: none; }
.case-pain li {
  position: relative; padding: 8px 0 8px 18px; color: var(--gray-700);
  font-size: 15px; line-height: 1.7; border-bottom: 1px dashed var(--gray-200);
}
.case-pain li:last-child { border-bottom: none; }
.case-pain li::before {
  content: ''; position: absolute; left: 0; top: 16px;
  width: 8px; height: 8px; border-radius: 50%; background: #e53e3e;
}
.case-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.case-metric {
  background: rgba(255,255,255,.85); border-radius: 8px; padding: 14px;
  border: 1px solid rgba(49,130,206,.1);
}
.case-metric-label { font-size: 13px; color: var(--gray-600); margin-bottom: 8px; }
.case-metric-values {
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
  font-size: 15px; font-weight: 600;
}
.case-metric-values .from { color: var(--gray-600); text-decoration: line-through; font-weight: 500; }
.case-metric-values .arrow { color: var(--gray-400); font-weight: 400; }
.case-metric-values .to { color: var(--accent); font-size: 18px; }
.case-summary {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--gray-200);
  color: var(--primary); font-size: 15px; line-height: 1.7; font-weight: 500;
}
.case-cta {
  margin-top: 40px; padding: 36px 28px; text-align: center;
  background: linear-gradient(135deg, var(--gray-50), #eef4fb);
  border-radius: var(--radius);
}
.case-cta h3 { color: var(--primary); font-size: 22px; margin-bottom: 8px; }
.case-cta p { color: var(--gray-600); margin-bottom: 24px; }
.case-cta .hero-btns { animation: none; }

/* Homepage case preview */
.home-case-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px;
}
.home-case-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
  transition: border-color .2s;
}
.home-case-card:hover { border-color: var(--accent); }
.home-case-card .tag {
  display: inline-block; align-self: flex-start;
  background: var(--gray-100); color: var(--primary-light);
  padding: 4px 12px; border-radius: 20px; font-size: 13px;
}
.home-case-card h3 { font-size: 18px; color: var(--primary); line-height: 1.4; }
.home-case-metrics { list-style: none; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.home-case-metrics li {
  font-size: 14px; color: var(--gray-700); line-height: 1.55;
}
.home-case-metrics strong { color: var(--accent); font-weight: 700; }
.home-case-more { margin-top: 32px; text-align: center; }

/* News */
.news-layout {
  display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start;
}
.news-nav {
  position: sticky; top: calc(var(--header-h) + 24px);
  display: flex; flex-direction: column; gap: 4px;
}
.news-nav a {
  display: block; padding: 10px 14px; border-radius: 6px; color: var(--gray-700);
  font-size: 15px; border-left: 3px solid transparent;
}
.news-nav a:hover { background: var(--gray-50); color: var(--primary); }
.news-nav a.active {
  background: rgba(49,130,206,.08); color: var(--primary);
  border-left-color: var(--accent); font-weight: 600;
}
.news-card {
  padding: 24px 0; border-bottom: 1px solid var(--gray-200);
}
.news-card:first-child { padding-top: 0; }
.news-cover {
  display: block; margin-bottom: 14px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--gray-200);
}
.news-cover img {
  display: block; width: 100%; height: auto; max-height: 220px; object-fit: cover;
}
.news-detail-cover {
  margin: 16px 0 20px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--gray-200);
}
.news-detail-cover img { display: block; width: 100%; height: auto; }
.news-card-meta {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  font-size: 13px; color: var(--gray-600); margin-bottom: 10px;
}
.news-tag {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: var(--gray-100); color: var(--primary); font-size: 12px;
}
.news-tag.top { background: rgba(49,130,206,.12); color: var(--accent); }
a.news-tag:hover { color: var(--accent-hover); }
.news-card h2 { font-size: 22px; line-height: 1.4; margin-bottom: 10px; }
.news-card h2 a { color: var(--primary); }
.news-card h2 a:hover { color: var(--accent); }
.news-summary { color: var(--gray-700); font-size: 15px; line-height: 1.8; margin-bottom: 12px; }
.news-more { font-size: 14px; font-weight: 600; }
.news-empty {
  padding: 48px 20px; text-align: center; color: var(--gray-600);
  background: var(--gray-50); border-radius: var(--radius);
}
.news-pager { margin-top: 32px; }
.news-pager ul { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.news-pager li { list-style: none; }
.news-pager a, .news-pager span {
  display: inline-block; min-width: 36px; padding: 8px 12px; text-align: center;
  border-radius: 6px; border: 1px solid var(--gray-200); color: var(--gray-700); font-size: 14px;
}
.news-pager .active span, .news-pager li.active span {
  background: var(--primary); color: var(--white); border-color: var(--primary);
}
.news-detail-wrap {
  display: grid; grid-template-columns: 1fr 260px; gap: 40px; align-items: start;
  max-width: 1000px;
}
.news-detail h1 {
  font-size: clamp(26px, 4vw, 34px); color: var(--primary);
  line-height: 1.35; margin: 8px 0 16px;
}
.news-detail-summary {
  padding: 14px 16px; background: var(--gray-50); border-left: 3px solid var(--accent);
  color: var(--gray-700); margin-bottom: 24px; line-height: 1.7;
}
.news-detail-content {
  color: var(--gray-800); font-size: 16px; line-height: 1.9;
}
.news-detail-content p { margin-bottom: 14px; }
.news-detail-back { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--gray-200); }
.news-related {
  position: sticky; top: calc(var(--header-h) + 24px);
  background: var(--gray-50); border-radius: var(--radius); padding: 20px;
}
.news-related h3 { color: var(--primary); font-size: 16px; margin-bottom: 12px; }
.news-related li { margin-bottom: 10px; }
.news-related a { color: var(--gray-700); font-size: 14px; line-height: 1.5; }
.news-related a:hover { color: var(--accent); }

/* About */
.about-content { max-width: 800px; margin: 0 auto; padding: 60px 0; }
.about-block { margin-bottom: 40px; }
.about-block h2 { font-size: 24px; color: var(--primary); margin-bottom: 16px; }
.about-block p { color: var(--gray-700); line-height: 1.9; font-size: 16px; margin-bottom: 12px; }
.about-block a { color: var(--accent); font-weight: 600; }
.about-block a:hover { color: var(--accent-hover); }
.about-back {
  margin-top: 8px; padding-top: 28px; border-top: 1px solid var(--gray-200);
  text-align: center;
}
.about-back a {
  display: inline-block; font-size: 16px; font-weight: 600; color: var(--accent);
}
.about-back a:hover { color: var(--accent-hover); }

/* 404 */
.error-page { text-align: center; padding: 120px 20px; }
.error-page h1 { font-size: 80px; color: var(--primary); }
.error-page p { font-size: 18px; color: var(--gray-600); margin: 16px 0 32px; }

/* Responsive */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .function-module-grid { grid-template-columns: repeat(2, 1fr); }
  .function-layout { flex-direction: column; }
  .function-sidebar { width: 100%; position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .function-sidebar a { border-left: none; border-bottom: 2px solid transparent; padding: 8px 12px; }
  .module-body,
  .module-block:nth-child(even) .module-body {
    grid-template-columns: 1fr;
  }
  .module-block:nth-child(even) .module-media { order: 0; }
  .tips-grid { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; gap: 24px; }
  .faq-nav {
    position: static; flex-direction: row; flex-wrap: wrap; gap: 8px;
  }
  .faq-nav a {
    border-left: none; background: var(--gray-50); padding: 8px 14px; font-size: 14px;
  }
  .news-layout, .news-detail-wrap { grid-template-columns: 1fr; gap: 24px; }
  .news-nav {
    position: static; flex-direction: row; flex-wrap: wrap; gap: 8px;
  }
  .news-nav a {
    border-left: none; background: var(--gray-50); padding: 8px 14px; font-size: 14px;
  }
  .news-nav a.active { border-left: none; }
  .news-related { position: static; }
  .case-grid { grid-template-columns: 1fr; }
  .case-metrics { grid-template-columns: 1fr; }
  .home-case-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--primary); flex-direction: column; padding: 16px;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; text-align: center; padding: 12px; }
  .menu-toggle { display: block; }
  .hero { padding-bottom: 60px; }
  .section { padding: 50px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .function-module-grid { grid-template-columns: 1fr; }
  .page-header p.page-header-oneline {
    white-space: normal;
    padding: 0 12px;
  }
  .float-consult { right: 16px; bottom: 20px; padding: 12px 18px; font-size: 14px; }
}
