/* ============================================================
   广东科卓律师事务所 官网样式
   说明:全部使用系统字体栈,不嵌入任何字体文件,无字体授权风险。
   主色:墨蓝 #1f2d45 / 纸白 #f7f6f2 / 印章红 #9e2b25 / 描金 #a98e5b
   ============================================================ */

:root {
  --ink: #1f2d45;
  --ink-deep: #15203a;
  --paper: #f7f6f2;
  --white: #ffffff;
  --seal: #9e2b25;
  --bronze: #a98e5b;
  --text: #2c3140;
  --text-soft: #6b7080;
  --line: #e3e0d8;
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  --sans: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--paper);
}

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

/* 跳转主内容(无障碍): 仅键盘聚焦时显示 */
.skip-link{position:absolute;left:-9999px;top:0;z-index:100;background:var(--ink);color:#fff;padding:10px 18px;border-radius:0 0 4px 0;}
.skip-link:focus{left:0;outline:2px solid var(--seal);outline-offset:2px;}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 3px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 页头 ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* 品牌 logo 图标 */
.brand-logo { width: 46px; height: 46px; object-fit: contain; flex-shrink: 0; }

.brand-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 2px;
}

.brand-sub {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-soft);
  letter-spacing: 1px;
}

.main-nav { display: flex; gap: 8px; }

.main-nav a {
  padding: 8px 18px;
  font-size: 15px;
  color: var(--ink);
  border-radius: 3px;
  transition: background .15s;
}

.main-nav a:hover { background: var(--paper); }

.main-nav a.active {
  color: var(--seal);
  font-weight: 600;
}

/* 移动端导航按钮 */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- 首页主视觉 ---------- */
.hero {
  background: var(--ink);
  color: #f0ede6;
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}

/* 竖排所训:作为视觉签名元素 */
.hero-motto {
  white-space: nowrap;
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 14px;
  color: rgba(240, 237, 230, .28);
  border-right: 1px solid rgba(169, 142, 91, .45);
  padding-right: 18px;
  user-select: none;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: normal;
  color: var(--bronze);
}

.hero-phrase { display: inline-block; }

.hero p {
  max-width: 560px;
  font-size: 16.5px;
  color: rgba(240, 237, 230, .82);
  margin-bottom: 14px;
}

.hero-meta {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-meta div { font-size: 14px; color: rgba(240,237,230,.65); }

.hero-meta strong {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  color: var(--bronze);
  letter-spacing: 1px;
}

/* ---------- 通用区块 ---------- */
.section { padding: 72px 0; }

.section-head {
  margin-bottom: 40px;
}

.section-head .eyebrow {
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--seal);
  margin-bottom: 8px;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 3px;
  color: var(--ink);
}

.section-head h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--bronze);
  margin-top: 14px;
}

/* 业务领域 */
.fields {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.field-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  padding: 28px 24px;
}

.field-card h3 {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.field-card p { font-size: 14.5px; color: var(--text-soft); }

/* ---------- 合作伙伴 logo 墙 ---------- */
.partners-section { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.logo-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.logo-cell {
  background: var(--white);
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.logo-cell img {
  max-height: 56px;
  filter: grayscale(1) opacity(.62);
  transition: filter .2s;
}

.logo-cell:hover img { filter: grayscale(0) opacity(1); }

.partners-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-soft);
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--ink-deep);
  color: rgba(240, 237, 230, .75);
  padding: 56px 0 28px;
  font-size: 14.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-grid h4 {
  font-family: var(--serif);
  font-size: 16px;
  color: #f0ede6;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.footer-grid p, .footer-grid li { margin-bottom: 8px; line-height: 1.7; }
.footer-grid ul { list-style: none; }
.footer-grid a:hover { color: var(--bronze); }

.footer-bottom a { white-space: nowrap; }
.footer-bottom a:hover { color: var(--bronze); text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  font-size: 12.5px;
  color: rgba(240,237,230,.62);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- 内页头部条 ---------- */
.page-banner {
  background: var(--ink);
  color: #f0ede6;
  padding: 52px 0;
}

.page-banner h1 {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: 4px;
}

.page-banner p {
  margin-top: 8px;
  font-size: 14.5px;
  color: rgba(240,237,230,.6);
}

/* ---------- 人员介绍 ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.member-card {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  gap: 24px;
  padding: 28px;
  height: 100%;
  min-height: 312px;
  box-sizing: border-box;
}

.member-photo {
  width: 132px;
  height: 168px;
  flex-shrink: 0;
  object-fit: cover;
  background: #e8e5dd;
  border: 1px solid var(--line);
}

.member-info h3 {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  letter-spacing: 2px;
}

.member-info .role {
  display: inline-flex;
  align-items: center;
  height: 24px;
  box-sizing: border-box;
  font-size: 12.5px;
  line-height: 1;
  white-space: nowrap;
  color: var(--seal);
  border: 1px solid currentColor;
  border-radius: 2px;
  padding: 0 10px;
  margin: 8px 0 10px;
}

.member-info .focus {
  font-size: 13.5px;
  color: var(--bronze);
  margin-bottom: 8px;
}

.member-info p { font-size: 14px; color: var(--text-soft); }

/* ---------- 联系我们 ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}

.contact-list { list-style: none; }

.contact-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--bronze);
  padding: 18px 22px;
  margin-bottom: 16px;
}

.contact-list .label {
  font-size: 12.5px;
  letter-spacing: 3px;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.contact-list .value {
  font-size: 17px;
  color: var(--ink);
  font-weight: 600;
}

.contact-list .value a:hover { color: var(--seal); }

.contact-list .hint { font-size: 13px; color: var(--text-soft); margin-top: 4px; }

/* 地图占位:将 assets/map.png 替换为贵所地图截图即可 */
.map-box {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 10px;
}

.map-box img { width: 100%; height: auto; }

.map-box .map-caption {
  font-size: 13px;
  color: var(--text-soft);
  padding: 10px 6px 4px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .fields { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .fields { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .hero-motto { display: none; }

  /* 窄屏:导航常显为品牌下方一整行 */
  .header-inner { height: auto; flex-wrap: wrap; padding-top: 12px; }
  .brand { padding-bottom: 12px; }
  .main-nav {
    width: 100%;
    gap: 0;
    border-top: 1px solid var(--line);
  }
  .main-nav a {
    flex: 1;
    text-align: center;
    padding: 11px 0;
    border-radius: 0;
  }
  .main-nav a.active { box-shadow: inset 0 -2px 0 var(--seal); }
}

@media (max-width: 520px) {
  .member-card { flex-direction: column; }
  .member-photo { width: 120px; height: 152px; }
}

/* ---------- 手机端优化 ---------- */
@media (max-width: 600px) {
  body { font-size: 15px; }

  /* 主标题:两个短语各占一行,间距自然 */
  .hero h1 em { display: none; }
  .hero-phrase { display: block; }
  .hero h1 .hero-phrase + em + .hero-phrase { margin-top: 10px; }
  .container { padding: 0 18px; }

  .header-inner { padding-top: 10px; }
  .brand { padding-bottom: 10px; }
  .brand-logo { width: 38px; height: 38px; }
  .brand-name { font-size: 16.5px; letter-spacing: 1px; }
  .brand-sub { font-size: 10px; letter-spacing: .5px; }
  .main-nav a { padding: 10px 0; font-size: 14.5px; }

  .hero { padding: 52px 0 60px; }
  .hero h1 { letter-spacing: 2px; margin-bottom: 16px; }
  .hero p { font-size: 15px; }
  .hero-meta { gap: 22px; margin-top: 28px; }
  .hero-meta strong { font-size: 21px; }

  .section { padding: 48px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head h2 { font-size: 23px; letter-spacing: 2px; }
  .field-card { padding: 22px 18px; }

  .logo-cell { height: 88px; padding: 14px; }
  .logo-cell img { max-height: 44px; }

  .page-banner { padding: 36px 0; }
  .page-banner h1 { font-size: 24px; letter-spacing: 2px; }

  .team-grid { gap: 18px; }
  .member-card { padding: 20px; gap: 16px; }
  .member-info h3 { font-size: 18px; }

  .contact-layout { gap: 24px; }
  .contact-list li { padding: 14px 16px; margin-bottom: 12px; }
  .contact-list .value { font-size: 15.5px; }
  .map-box { padding: 6px; }

  .site-footer { padding: 40px 0 22px; font-size: 13.5px; }
  .footer-bottom a[href^="https://beian"] { display: block; margin-top: 5px; }
  .footer-grid { gap: 22px; margin-bottom: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ---------- 免责声明 / 隐私保护 ---------- */
.legal-text { max-width: 820px; }
.legal-text p { margin-bottom: 18px; color: var(--text); font-size: 15.5px; }

.legal-sign { text-align: right; margin-top: 44px; }
.legal-sign p { margin-bottom: 4px; font-size: 15.5px; color: var(--ink); }

.legal-text h2 {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  letter-spacing: 1px;
  margin: 26px 0 10px;
}

/* 页脚右侧法律信息入口 */
.fb-links { display: inline-flex; }

.fb-links a {
  padding: 0 14px;
  border-left: 1px solid rgba(255, 255, 255, .18);
}

.fb-links a:first-child { border-left: none; padding-left: 0; }

/* ---------- 悬浮拨号按钮 ---------- */
.call-fab {
  position: fixed;
  right: 24px;
  bottom: 28px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--seal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(30, 20, 15, .3);
  z-index: 60;
  transition: transform .15s, box-shadow .15s;
}

.call-fab:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 22px rgba(30, 20, 15, .35);
}

@media (max-width: 600px) {
  .call-fab { right: 16px; bottom: 20px; width: 50px; height: 50px; }
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 1px;
  line-height: 1;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: 0 4px 14px rgba(31, 45, 69, .22);
}
.btn-primary:hover {
  background: var(--ink-deep);
  box-shadow: 0 8px 22px rgba(31, 45, 69, .30);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 22px rgba(31, 45, 69, .20);
}

/* 无悬停特效按钮：悬停时保持原样 */
.btn-plain,
.btn-plain:hover,
.btn-plain:active {
  transform: none;
  box-shadow: none;
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
  text-decoration: none;
}

/* ---------- 404 页 ---------- */
.error-page { text-align: center; padding: 72px 0 88px; }
.error-lead {
  font-size: 20px;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 14px;
}
.error-sub { font-size: 15.5px; color: var(--text-soft); margin-bottom: 40px; }
.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.error-home-link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
}
.error-home-link:hover { color: var(--seal); }
.error-tel { font-size: 14.5px; color: var(--text-soft); }
.error-tel a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.error-tel a:hover { color: var(--seal); border-color: var(--seal); }
