:root {
  --navy: #0c223a;
  --navy-2: #14385f;
  --ink: #1f2f45;
  --muted: #66768a;
  --line: #dfe6ef;
  --paper: #f5f7fb;
  --white: #ffffff;
  --gold: #b98b3a;
  --gold-2: #d7b36a;
  --teal: #1d7774;
  --shadow: 0 18px 45px rgba(12, 34, 58, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
}

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

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

p {
  margin: 0 0 16px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--navy);
  line-height: 1.28;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(32px, 6vw, 56px);
}

h2 {
  font-size: clamp(26px, 4vw, 38px);
}

h3 {
  font-size: 21px;
}

ul,
ol {
  margin: 0;
  padding-left: 20px;
}

li {
  margin-bottom: 8px;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(223, 230, 239, 0.9);
  backdrop-filter: blur(14px);
}

.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 0;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-2), var(--gold));
  color: var(--white);
  font-weight: 800;
  font-family: Georgia, serif;
  letter-spacing: 0;
}

.brand-title {
  display: block;
  color: var(--navy);
  font-weight: 800;
  font-size: 18px;
}

.brand-subtitle {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  width: 42px;
  height: 42px;
  border-radius: 6px;
  font-size: 24px;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  display: block;
  padding: 11px 12px;
  border-radius: 6px;
  color: #25364a;
  font-size: 15px;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
  background: #eef4fa;
}

.nav-links .nav-cta {
  margin-left: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--gold), #9f742c);
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta.active {
  color: var(--white);
  background: linear-gradient(135deg, #c99d4d, #8e6523);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(5, 18, 32, 0.96) 0%, rgba(8, 29, 50, 0.92) 46%, rgba(8, 29, 50, 0.66) 100%),
    url("/assets/images/qingdao-lawyer-office.jpg") center/cover;
  color: rgba(255, 255, 255, 0.86);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(185, 139, 58, 0.14) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 100%);
  background-size: 72px 72px;
  opacity: 0.28;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(215, 179, 106, 0.65), transparent);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.68fr);
  gap: 44px;
  align-items: center;
  padding: 70px 0 58px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--teal);
  font-weight: 800;
  font-size: 14px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
}

.hero-lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  margin-top: 18px;
  max-width: 760px;
}

.hero h1 {
  color: var(--white);
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.26);
}

.hero .eyebrow {
  color: var(--gold-2);
}

.hero .eyebrow::before {
  background: var(--gold-2);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 19px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(12, 34, 58, 0.15);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #956d2b);
  color: var(--white);
}

.btn-secondary {
  color: var(--navy);
  background: var(--white);
  border-color: var(--line);
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.stat {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.stat strong {
  display: block;
  color: var(--white);
  font-size: 22px;
}

.stat span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.hero-media {
  position: relative;
  width: min(100%, 430px);
  justify-self: center;
}

.lawyer-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 244, 250, 0.96));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.lawyer-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #e8eef5;
}

.lawyer-card-body {
  padding: 20px;
  background: linear-gradient(180deg, #ffffff, #eef4fa);
  border-top: 3px solid var(--gold);
}

.lawyer-card-body strong {
  display: block;
  color: var(--navy);
  font-size: 22px;
}

.lawyer-card-body span {
  color: var(--muted);
  font-size: 14px;
}

.hero-note {
  position: absolute;
  right: -14px;
  bottom: 28px;
  width: min(260px, 72%);
  padding: 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #b98b3a, #835d20);
  color: var(--white);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.hero-note b {
  color: var(--white);
}

.authority-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
  max-width: 760px;
}

.authority-item {
  padding: 12px 14px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  backdrop-filter: blur(10px);
}

.section {
  padding: 70px 0;
}

.section-soft {
  background: var(--paper);
}

.section-dark {
  background: linear-gradient(135deg, var(--navy), #183b62);
  color: rgba(255, 255, 255, 0.86);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-dark .eyebrow {
  color: var(--gold-2);
}

.section-head {
  max-width: 820px;
  margin-bottom: 30px;
}

.section-head p {
  color: var(--muted);
  margin-top: 12px;
}

.section-dark .section-head p {
  color: rgba(255, 255, 255, 0.76);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 20px;
}

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

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

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.service-card,
.article-card,
.contact-card,
.aside-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(12, 34, 58, 0.08);
}

.card,
.service-card,
.contact-card,
.aside-card {
  padding: 24px;
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
}

.service-card h3,
.card h3 {
  margin-bottom: 10px;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 8px;
}

.card-icon svg {
  width: 25px;
  height: 25px;
  stroke-width: 1.9;
}

.service-card .card-icon {
  color: var(--teal);
  background: linear-gradient(135deg, #ecf8f6, #f8fbff);
  border: 1px solid #d5e8e6;
  box-shadow: 0 12px 26px rgba(29, 119, 116, 0.12);
}

.card .card-icon {
  color: #9b712a;
  background: linear-gradient(135deg, #fbf4e7, #ffffff);
  border: 1px solid #eadbbd;
  box-shadow: 0 12px 26px rgba(185, 139, 58, 0.13);
}

.service-card p,
.card p,
.article-card p,
.aside-card p,
.contact-card p {
  color: var(--muted);
}

.image-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: center;
}

.image-band img,
.article-card img,
.feature-image {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.feature-image {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.compact-feature-image {
  width: 100%;
  aspect-ratio: 2 / 1;
  margin: 0 auto 28px;
  object-fit: cover;
  object-position: center;
}

.profile-photo {
  display: block;
  width: min(100%, 360px);
  height: 360px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 28px;
  object-fit: cover;
  object-position: center top;
}

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step {
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-weight: 800;
}

.consult-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #122d4d, #1d7774);
  color: var(--white);
  box-shadow: var(--shadow);
}

.article-consult-aside {
  margin-top: 28px;
}

.consult-panel h2,
.consult-panel h3 {
  color: var(--white);
}

.consult-panel p {
  color: rgba(255, 255, 255, 0.82);
}

.qr-img {
  width: 178px;
  height: 178px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--white);
  padding: 8px;
  justify-self: center;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 0 18px;
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 0;
  color: var(--navy);
  font-weight: 800;
}

.faq-list details p {
  padding-bottom: 18px;
  color: var(--muted);
}

.page-hero {
  padding: 50px 0 42px;
  background:
    linear-gradient(135deg, rgba(12, 34, 58, 0.94), rgba(20, 56, 95, 0.9)),
    url("/assets/images/qingdao-lawyer-office.jpg") center/cover;
  color: rgba(255, 255, 255, 0.88);
}

.page-hero h1 {
  color: var(--white);
  max-width: 900px;
}

.page-hero p {
  max-width: 820px;
  margin-top: 14px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--navy);
  font-weight: 700;
}

.breadcrumb span::before {
  content: "/";
  margin-right: 8px;
  color: #a6b2c1;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 32px;
  align-items: start;
}

.content-block {
  font-size: 17px;
}

.content-block h2 {
  margin: 32px 0 14px;
  font-size: 28px;
}

.content-block h3 {
  margin: 24px 0 10px;
}

.content-block p {
  color: #3c4d62;
}

.content-block .lead {
  font-size: 18px;
  color: #33465d;
}

.aside {
  position: sticky;
  top: 102px;
  display: grid;
  gap: 16px;
}

.aside-card h3 {
  margin-bottom: 12px;
}

.aside-links {
  list-style: none;
  padding: 0;
}

.aside-links a {
  display: block;
  padding: 10px 0;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.article-card {
  overflow: hidden;
}

.article-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  box-shadow: none;
}

.article-card-body {
  padding: 20px;
}

.article-meta {
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 8px;
}

.article-card h3 {
  margin-bottom: 10px;
}

.read-more {
  display: inline-flex;
  margin-top: 8px;
  color: var(--teal);
  font-weight: 800;
}

.insight-section {
  background:
    linear-gradient(135deg, rgba(8, 26, 44, 0.98), rgba(17, 52, 85, 0.96)),
    url("/assets/images/qingdao-lawyer-office.jpg") center/cover;
}

.insight-section .section-head {
  max-width: 900px;
}

.insight-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: 22px;
  align-items: stretch;
}

.insight-lead-card,
.insight-list-card {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
}

.insight-lead-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  color: rgba(255, 255, 255, 0.78);
}

.insight-lead-card h3 {
  color: var(--white);
  font-size: 30px;
  margin-bottom: 16px;
}

.insight-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(215, 179, 106, 0.14);
  color: var(--gold-2);
  font-weight: 800;
  font-size: 13px;
}

.insight-list-card {
  overflow: hidden;
}

.insight-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 128px;
  padding: 22px 24px;
  color: rgba(255, 255, 255, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.insight-row:last-child {
  border-bottom: 0;
}

.insight-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(215, 179, 106, 0.14);
  color: var(--gold-2);
  font-weight: 900;
}

.insight-row h3 {
  color: var(--white);
  margin-bottom: 6px;
}

.insight-row p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.insight-link {
  color: var(--gold-2);
  font-weight: 900;
  white-space: nowrap;
}

.fee-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(12, 34, 58, 0.08);
}

.fee-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.fee-table th,
.fee-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.fee-table th {
  background: #eef4fa;
  color: var(--navy);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.tag-list li,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef4fa;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.contact-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.map-box {
  display: grid;
  place-items: center;
  min-height: 300px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(12, 34, 58, 0.84), rgba(29, 119, 116, 0.75)),
    url("/assets/images/qingdao-lawyer-office.jpg") center/cover;
  color: var(--white);
  padding: 28px;
  text-align: center;
}

.site-footer {
  background: #081a2c;
  color: rgba(255, 255, 255, 0.78);
  padding: 46px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 28px;
}

.footer-brand-block p {
  max-width: 520px;
  margin-top: 16px;
}

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

.footer-logo-mark {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #8f6522);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 900;
}

.footer-logo-title {
  display: block;
  color: var(--white);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.08;
}

.footer-logo-subtitle {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 700;
}

.site-footer h2,
.site-footer h3,
.site-footer strong {
  color: var(--white);
}

.site-footer a {
  color: var(--gold-2);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-bottom {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--white);
  color: var(--navy);
  padding: 8px 12px;
  z-index: 100;
}

.skip-link:focus {
  left: 8px;
}

@media (max-width: 980px) {
  .topbar-inner {
    flex-direction: column;
    gap: 2px;
  }

  .brand-row {
    min-height: 66px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 18px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(12, 34, 58, 0.12);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 10px;
  }

  .nav-links .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .hero-grid,
  .image-band,
  .article-layout,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding: 48px 0;
  }

  .hero-media {
    width: min(100%, 460px);
  }

  .hero-note {
    position: static;
    width: auto;
    margin-top: 14px;
  }

  .grid-4,
  .grid-3,
  .steps,
  .authority-strip,
  .insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insight-grid {
    grid-template-columns: 1fr;
  }

  .aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  .hero-stats,
  .grid-2,
  .grid-3,
  .grid-4,
  .steps,
  .authority-strip {
    grid-template-columns: 1fr;
  }

  .insight-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .insight-link {
    grid-column: 2;
  }

  .section {
    padding: 48px 0;
  }

  .consult-panel {
    grid-template-columns: 1fr;
  }

  .qr-img {
    width: 160px;
    height: 160px;
  }

  .button-row,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
