:root {
  --primary: #8e1b22;
  --primary-dark: #5f1116;
  --primary-light: #b32730;
  --gold: #c19a51;
  --gold-light: #e6cd93;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #8a8a8a;
  --bg: #ffffff;
  --bg-gray: #faf7f6;
  --border: #ece4e2;
  --radius: 6px;
  --shadow: 0 6px 24px rgba(142, 27, 34, .1);
  --maxw: 1200px;
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
input, textarea, button { font-family: inherit; font-size: inherit; outline: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ============ 顶部联系条 ============ */
.topbar {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  height: 38px;
  display: flex;
  align-items: center;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar-info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-info i { color: var(--gold); font-style: normal; }

/* ============ 导航 ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header.scrolled { box-shadow: 0 2px 16px rgba(142, 27, 34, .12); }
.navbar { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 44px; height: 44px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; letter-spacing: 1px;
  border: 1px solid var(--gold);
}
.logo-mark img{
  width: 44px;height: 44px;
}
.logo-text strong { display: block; font-size: 19px; color: var(--primary); letter-spacing: 2px; line-height: 1.2; }
.logo-text span { display: block; font-size: 11px; color: var(--text-muted); letter-spacing: 2.5px; text-transform: uppercase; }

/* LOGO 图片版 */
.logo-img {
  width: auto; height: 44px; padding: 0;
  background: none; border: none; border-radius: 0;
  color: inherit; font-size: inherit; letter-spacing: normal;
}
.logo-img img {
  display: block; height: 100%; width: auto;
  object-fit: contain; object-position: left center;
}

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block;
  padding: 10px 16px;
  font-size: 15px;
  color: var(--text);
  position: relative;
  transition: color .2s;
}
.nav-menu > li > a::after {
  content: "";
  position: absolute; left: 16px; right: 16px; bottom: 2px;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s;
}
.nav-menu > li > a:hover, .nav-menu > li.active > a { color: var(--primary); font-weight: 500; }
.nav-menu > li > a:hover::after, .nav-menu > li.active > a::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  padding: 11px 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--primary); margin: 4px 0; transition: .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .25s;
  font-size: 15px;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #a9823c; }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-lg { padding: 14px 36px; }

/* ============ 通用区块 ============ */
.section { padding: 76px 0; }
.section-gray { background: var(--bg-gray); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .en {
  display: block; font-size: 12px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.section-head h2 {
  font-size: 30px; color: var(--primary); font-weight: 600; letter-spacing: 2px;
}
.section-head .line {
  width: 56px; height: 3px; background: var(--gold);
  margin: 16px auto 0; border-radius: 2px;
}
.section-head p { color: var(--text-light); margin-top: 14px; }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 560px;
  display: flex; align-items: center;
  background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 55%, #7a1620 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(193, 154, 81, .35), transparent 45%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 2px, transparent 2px 12px);
}
.hero-inner { position: relative; z-index: 2; padding: 70px 0; max-width: 720px; }
.hero-tag {
  display: inline-block;
  border: 1px solid rgba(224, 195, 131, .6);
  color: var(--gold-light);
  padding: 5px 14px; border-radius: 20px;
  font-size: 13px; letter-spacing: 1px; margin-bottom: 22px;
}
.hero h1 { font-size: 44px; line-height: 1.3; font-weight: 600; letter-spacing: 2px; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero p.lead { margin-top: 20px; color: #e8d3d5; font-size: 16px; max-width: 560px; }
.hero-btns { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-deco {
  position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: 420px; height: 420px; border: 1px solid rgba(224,195,131,.35);
  border-radius: 50%; z-index: 1;
}
.hero-deco::after {
  content: "";
  position: absolute; inset: 40px;
  border: 1px dashed rgba(255,255,255,.18); border-radius: 50%;
}

/* ============ 数据条 ============ */
.stats { background: var(--primary); color: #fff; padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-item h3 { font-size: 34px; color: var(--gold-light); font-weight: 600; }
.stat-item h3 small { font-size: 15px; margin-left: 3px; }
.stat-item p { font-size: 14px; color: #ead6d8; letter-spacing: 1px; }

/* ============ 业务领域卡片 ============ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: var(--gold); transition: width .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::after { width: 100%; }
.service-icon {
  width: 54px; height: 54px; border-radius: var(--radius);
  background: rgba(142, 27, 34, .07);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 18px;
  transition: .3s;
}
.service-card:hover .service-icon { background: var(--primary); color: var(--gold-light); }
.service-card h3 { font-size: 18px; color: var(--primary); margin-bottom: 10px; }
.service-card p { color: var(--text-light); font-size: 14px; }
.service-card ul { margin-top: 16px; }
.service-card ul li {
  font-size: 13.5px; color: var(--text-light);
  padding-left: 16px; position: relative; line-height: 2;
}
.service-card ul li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}
.service-more { margin-top: 18px; font-size: 13.5px; color: var(--gold); font-weight: 500; }

/* ============ 关于所 ============ */
.about-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.about-img {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.85);
  overflow: hidden;
}
.about-img span { font-size: 15px; letter-spacing: 3px; }
.about-img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  transition: transform .5s ease;
}
.about-img:hover img { transform: scale(1.04); }
.about-img::before {
  content: "";
  position: absolute; inset: 24px; z-index: 2;
  border: 1px dashed rgba(255, 255, 255, .45);
  border-radius: var(--radius);
  pointer-events: none;
}
.about-content h2 { font-size: 28px; color: var(--primary); }
.about-content .en { color: var(--gold); font-size: 12px; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 8px; display: block; }
.about-content p { color: var(--text-light); margin-top: 16px; }
.about-list { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.about-list li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--text); }
.about-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--gold); font-weight: 700;
}

/* ============ 服务流程 ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.step { text-align: center; padding: 0 16px; position: relative; }
.step:not(:last-child)::after {
  content: ""; position: absolute; right: 0; top: 26px; width: 50%;
  border-top: 1px dashed #dcc6c8;
}
.step-num {
  width: 54px; height: 54px; margin: 0 auto 16px;
  border-radius: 50%;
  background: #fff; border: 2px solid var(--gold);
  color: var(--primary); font-weight: 700; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2;
}
.step h4 { font-size: 16px; color: var(--primary); margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--text-light); }

/* ============ 律师团队 ============ */
.lawyer-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all .3s;
}
.lawyer-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.lawyer-photo {
  aspect-ratio: 3 / 3.4;
  background: linear-gradient(160deg, #f7f1f0 0%, #ecdedd 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 13px; letter-spacing: 2px;
  position: relative;
  overflow: hidden;
}
.lawyer-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 0%;
  transition: transform .45s ease;
}
.lawyer-card:hover .lawyer-photo img { transform: scale(1.06); }
.lawyer-photo::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: var(--gold); transform: scaleX(0); transition: .3s;
}
.lawyer-card:hover .lawyer-photo::after { transform: scaleX(1); }
.lawyer-info { padding: 20px; text-align: center; }
.lawyer-info h3 { font-size: 18px; color: var(--primary); }
.lawyer-info .role { font-size: 13px; color: var(--gold); margin: 4px 0 10px; }
.lawyer-info p { font-size: 13.5px; color: var(--text-light); text-align: left; }
.lawyer-tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.lawyer-tags span {
  font-size: 12px; color: var(--primary-light);
  background: rgba(142, 27, 34, .07); border-radius: 3px; padding: 2px 8px;
}

/* ============ 新闻 ============ */
.news-list { display: grid; gap: 22px; }
.news-item {
  display: grid; grid-template-columns: 180px 1fr auto;
  gap: 24px; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; transition: all .3s;
}
.news-item:hover { border-color: transparent; box-shadow: var(--shadow); }
.news-date {
  background: var(--bg-gray); border-radius: var(--radius);
  padding: 14px; text-align: center; color: var(--primary);
}
.news-date strong { display: block; font-size: 26px; line-height: 1.2; }
.news-date span { font-size: 12.5px; color: var(--text-muted); }
.news-item h3 { font-size: 17px; color: var(--primary); margin-bottom: 6px; transition: color .2s; }
.news-item:hover h3 { color: var(--gold); }
.news-item p {
  font-size: 13.5px; color: var(--text-light);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-arrow { color: var(--gold); font-size: 20px; }

/* 发展历程：无日期列时内容占满整行 */
.history-item { grid-template-columns: 1fr; }

/* ============ 优势 ============ */
.adv-item { display: flex; gap: 18px; padding: 22px; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); }
.adv-num { font-size: 30px; font-weight: 700; color: rgba(193, 154, 81, .35); line-height: 1; }
.adv-item h4 { font-size: 16px; color: var(--primary); margin-bottom: 6px; }
.adv-item p { font-size: 13.5px; color: var(--text-light); }

/* ============ CTA ============ */
.cta {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary-light));
  color: #fff; text-align: center; padding: 64px 0;
}
.cta h2 { font-size: 28px; margin-bottom: 12px; }
.cta p { color: #ecd7d9; margin-bottom: 26px; }

/* ============ 页脚 ============ */
.footer { background: #2c1013; color: #cbbabb; padding-top: 56px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; letter-spacing: 1px; }
.footer p { line-height: 2; }
.footer ul li { padding: 6px 0; }
.footer ul li a:hover { color: var(--gold-light); }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact i { color: var(--gold); font-style: normal; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0; font-size: 13px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.footer-bottom a:hover { color: var(--gold-light); }
.footer .logo-text strong { color: #fff; }

/* ============ 内页头部 ============ */
.page-hero {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary-light));
  color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(193,154,81,.28), transparent 50%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: 34px; letter-spacing: 2px; }
.page-hero .en { color: var(--gold-light); font-size: 12px; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 10px; display: block; }
.breadcrumb { margin-top: 14px; font-size: 13px; color: #e2cdcf; }
.breadcrumb a:hover { color: #fff; }

/* ============ 内容排版 ============ */
.content-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; }
.content-box h3 { color: var(--primary); font-size: 20px; margin: 30px 0 14px; }
.content-box h3:first-child { margin-top: 0; }
.content-box p { color: var(--text-light); margin-bottom: 14px; text-indent: 2em; }
.content-box ul { margin: 0 0 16px 22px; }
.content-box li { list-style: disc; color: var(--text-light); line-height: 2; }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; text-align: center;
}
.info-card .icon { font-size: 26px; margin-bottom: 12px; }
.info-card h4 { color: var(--primary); font-size: 16px; margin-bottom: 8px; }
.info-card p { color: var(--text-light); font-size: 14px; }

.location-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
/* 防止地图内部生成的画布/容器撑破栅格列，导致手机端横向溢出 */
.location-wrap > * { min-width: 0; max-width: 100%; }

.map-box {
  width: 100%; max-width: 100%; min-width: 0;
  aspect-ratio: 4 / 3; min-height: 340px;
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, #f7f1f0, #ecdedd);
  border: 1px solid var(--border);
}
/* 高德地图初始化后会写入固定像素宽度，这里强制跟随容器 */
.map-box .amap-container,
.map-box .amap-maps,
.map-box .amap-canvas { width: 100% !important; max-width: 100% !important; }
.map-box .amap-logo,
.map-box .amap-copyright { max-width: calc(100% - 8px); }

/* 高德地图自定义标记 */
.custom-content-marker { position: relative; width: 25px; height: 34px; }
.custom-content-marker img { width: 100%; height: 100%; }
.custom-content-marker .close-btn {
  position: absolute; top: -6px; right: -8px;
  width: 15px; height: 15px; font-size: 12px;
  background: #ccc; border-radius: 50%; color: #fff;
  text-align: center; line-height: 15px;
  box-shadow: -1px 1px 1px rgba(10, 10, 10, .2);
}
.custom-content-marker .close-btn:hover { background: #666; }



/* 回到顶部 */
.back-top {
  position: fixed; right: 24px; bottom: 30px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff;
  border: none; cursor: pointer; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all .3s; z-index: 900;
  font-size: 18px;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--gold); }

/* 动画 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-deco { display: none; }
}

@media (max-width: 768px) {
  body { font-size: 14.5px; }
  .topbar { display: none; }
  .navbar { height: 62px; }
  .logo-mark { width: 38px; height: 38px; font-size: 19px; }
  .logo-img { height: 36px; }
  .logo-text strong { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; flex-direction: column; align-items: stretch;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 20px rgba(142, 27, 34, .1);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-open .nav-menu { max-height: 340px; }
  .nav-menu > li > a { padding: 14px 20px; border-bottom: 1px solid var(--border); }
  .nav-menu > li > a::after { display: none; }

  .hero { min-height: auto; }
  .hero-inner { padding: 54px 0; }
  .hero h1 { font-size: 27px; }
  .hero p.lead { font-size: 15px; }
  .section { padding: 52px 0; }
  .section-head h2 { font-size: 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
  .stat-item h3 { font-size: 27px; }
  .grid-2, .grid-3, .grid-4, .steps, .about-wrap, .info-grid, .location-wrap { grid-template-columns: 1fr; }
  .map-box { aspect-ratio: 16 / 9; min-height: 260px; }
  .about-wrap { gap: 30px; }
  .about-list { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .step { padding: 10px 0; }
  .news-item { grid-template-columns: 1fr; gap: 12px; }
  .news-date { width: 90px; padding: 8px 12px; }
  .news-date strong { font-size: 20px; }
  .news-arrow { display: none; }
  .page-hero { padding: 40px 0 34px; }
  .page-hero h1 { font-size: 25px; }
  .content-box { padding: 24px 18px; }
  .cta { padding: 44px 0; }
  .cta h2 { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 26px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .back-top { right: 14px; bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
