:root {
  --primary: #1554d1;
  --primary-dark: #0f3fa0;
  --primary-light: #e8f0fd;
  --accent: #00a89a;
  --accent-light: #e3f6f4;
  --ink: #1a2233;
  --ink-2: #4a5568;
  --ink-3: #7b8798;
  --line: #e4e9f0;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 8px rgba(20, 40, 80, 0.06);
  --shadow-lg: 0 8px 28px rgba(20, 40, 80, 0.1);
  --max: 1200px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

svg {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  flex-shrink: 0;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.site-logo {
  width: 38px;
  height: 38px;
  color: var(--primary);
}

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

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--ink);
}

.brand-slogan {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.5px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--ink-2);
  transition: background 0.16s, color 0.16s;
}

.nav-link:hover {
  background: var(--bg-soft);
  color: var(--primary);
}

.nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(21, 84, 209, 0.24);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(21, 84, 209, 0.3);
}

.btn-outline {
  background: #fff;
  border-color: var(--line);
  color: var(--ink-2);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 13px 28px;
  font-size: 15px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0f3fa0 0%, #1554d1 55%, #1d78c9 100%);
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.13) 0, transparent 42%),
    radial-gradient(circle at 88% 78%, rgba(0, 168, 154, 0.28) 0, transparent 46%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -60px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.hero-inner {
  position: relative;
  padding: 62px 0 68px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 46px;
  align-items: center;
}

.hero h1 {
  font-size: 34px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 15.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 26px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-light {
  background: #fff;
  color: var(--primary-dark);
  font-weight: 600;
}

.btn-light:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.stat-num {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

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

/* ---------- Section ---------- */
.section {
  padding: 54px 0;
}

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

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title svg {
  color: var(--primary);
  font-size: 22px;
}

.section-desc {
  font-size: 14px;
  color: var(--ink-3);
  margin-top: 4px;
}

.section-more {
  font-size: 14px;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.section-more:hover {
  gap: 8px;
}

/* ---------- Categories ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  gap: 16px;
  transition: all 0.2s;
}

.cat-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.cat-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 11px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.cat-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cat-summary {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.6;
}

.cat-count {
  font-size: 12px;
  color: var(--accent);
  margin-top: 6px;
  font-weight: 500;
}

/* ---------- Listing cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

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

.listing-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}

.listing-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.listing-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
}

.listing-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.listing-card:hover .listing-cover img {
  transform: scale(1.05);
}

.listing-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  background: rgba(21, 84, 209, 0.92);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.listing-body {
  padding: 15px 16px 17px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.listing-title {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-card:hover .listing-title {
  color: var(--primary);
}

.listing-excerpt {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.listing-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  position: relative;
  padding-top: 12px;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(21, 84, 209, 0.24);
}

.step h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.step p {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.75;
}

/* ---------- Publish CTA ---------- */
.cta-panel {
  background: linear-gradient(120deg, #f6f9ff 0%, #eaf3ff 100%);
  border: 1px solid #dbe7fb;
  border-radius: 16px;
  padding: 38px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.cta-panel h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cta-panel p {
  font-size: 14px;
  color: var(--ink-2);
  max-width: 620px;
}

/* ---------- Detail ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-3);
  padding: 18px 0;
  flex-wrap: wrap;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  padding-bottom: 60px;
}

.detail-main {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.detail-cover {
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--bg-soft);
}

.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-body {
  padding: 26px 28px 30px;
}

.detail-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  padding: 4px 11px;
  border-radius: 20px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 500;
}

.tag-soft {
  background: var(--accent-light);
  color: #00857a;
}

.detail-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 14px;
}

.detail-meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-3);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.detail-content {
  font-size: 15px;
  line-height: 2;
  color: var(--ink-2);
}

.detail-content p {
  margin-bottom: 14px;
}

.detail-section-title {
  font-size: 16px;
  font-weight: 700;
  margin: 26px 0 12px;
  padding-left: 11px;
  border-left: 3px solid var(--primary);
}

/* ---------- Sidebar ---------- */
.sidebar-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
}

.sidebar-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.sidebar-title svg {
  color: var(--primary);
}

.contact-rows {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.contact-label {
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

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

.phone-masked {
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink-2);
}

.phone-full {
  background: var(--accent-light);
  border: 1px solid #b8e6e0;
  color: #00766c;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

.login-tip {
  font-size: 12.5px;
  color: var(--ink-3);
  text-align: center;
  margin-top: 10px;
  line-height: 1.7;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.related-item {
  display: flex;
  gap: 11px;
}

.related-thumb {
  width: 78px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-soft);
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-title {
  font-size: 13.5px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-item:hover .related-title {
  color: var(--primary);
}

/* ---------- Forms ---------- */
.form-page {
  max-width: 460px;
  margin: 0 auto;
  padding: 46px 0 70px;
}

.form-head {
  text-align: center;
  margin-bottom: 26px;
}

.form-head h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-head p {
  font-size: 14px;
  color: var(--ink-3);
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 30px 28px;
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 18px;
}

.field-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 7px;
  color: var(--ink-2);
}

.field-label .req {
  color: #d9453d;
  margin-left: 3px;
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.16s, box-shadow 0.16s;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 84, 209, 0.1);
}

.textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.8;
}

.field-hint {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 6px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 10px;
}

.checkbox-row input {
  margin-top: 4px;
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox-row a {
  color: var(--primary);
  text-decoration: underline;
}

.alert {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-error {
  background: #fdecec;
  border: 1px solid #f7c9c5;
  color: #b3261e;
}

.alert-success {
  background: var(--accent-light);
  border: 1px solid #b8e6e0;
  color: #00766c;
}

.form-foot {
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-3);
  margin-top: 18px;
}

.form-foot a {
  color: var(--primary);
  font-weight: 500;
}

/* ---------- Filter bar ---------- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 0 22px;
}

.filter-chip {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-2);
  background: #fff;
  transition: all 0.16s;
}

.filter-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 500;
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 34px 0 10px;
  flex-wrap: wrap;
}

.page-link {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--ink-2);
  background: #fff;
}

.page-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.page-link.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

.page-link.disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* ---------- Empty ---------- */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-3);
}

.empty svg {
  font-size: 44px;
  color: #c8d2e0;
  margin-bottom: 12px;
}

/* ---------- Admin table ---------- */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  background: var(--bg-soft);
  text-align: left;
  padding: 13px 16px;
  font-weight: 600;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: #fafcff;
}

.status-chip {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 500;
}

.status-pending {
  background: #fff5e6;
  color: #a86500;
}

.status-approved {
  background: var(--accent-light);
  color: #00766c;
}

.status-rejected {
  background: #f1f2f4;
  color: #6b7280;
}

/* ---------- Content page ---------- */
.content-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 46px 0 70px;
}

.content-page h1 {
  font-size: 27px;
  font-weight: 700;
  margin-bottom: 10px;
}

.content-page .page-sub {
  font-size: 14px;
  color: var(--ink-3);
  margin-bottom: 30px;
}

.doc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 34px;
  margin-bottom: 18px;
}

.doc-card h2 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.doc-card h2 svg {
  color: var(--primary);
  font-size: 18px;
}

.doc-card p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.95;
  margin-bottom: 12px;
}

.doc-card ul {
  margin: 0 0 12px 20px;
}

.doc-card li {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.95;
  margin-bottom: 4px;
}

/* ---------- About ---------- */
.about-hero {
  background: linear-gradient(135deg, #0f3fa0 0%, #1d78c9 100%);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}

.about-hero h1 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 12px;
}

.about-hero p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 660px;
  margin: 0 auto;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: -34px;
  position: relative;
  z-index: 2;
}

.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.info-card .info-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin-bottom: 12px;
}

.info-label {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-bottom: 4px;
}

.info-value {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  word-break: break-all;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.2s;
}

.value-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.value-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--accent-light);
  color: #00857a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  margin-bottom: 14px;
}

.value-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.8;
}

/* ---------- Dashboard ---------- */
.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 0 24px;
  flex-wrap: wrap;
}

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

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #3f8efc 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #131c2e;
  color: #9aa7bd;
  padding: 48px 0 0;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 34px;
  padding-bottom: 34px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}

.footer-brand .site-logo {
  color: #4f8ef7;
}

.footer-brand-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.footer-desc {
  font-size: 13.5px;
  line-height: 1.9;
  color: #8b98ae;
  max-width: 340px;
}

.footer-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  font-size: 13.5px;
  color: #8b98ae;
  transition: color 0.16s;
}

.footer-links a:hover {
  color: #4f8ef7;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
}

.footer-contact span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-contact svg {
  color: #4f8ef7;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 18px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer-bottom a {
  color: #7d8ba3;
}

.footer-bottom a:hover {
  color: #4f8ef7;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 46px 0 52px;
  }
  .hero h1 {
    font-size: 27px;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .cat-grid,
  .card-grid,
  .card-grid.col-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps,
  .value-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 60px;
    gap: 12px;
  }
  .brand-slogan {
    display: none;
  }
  .main-nav {
    gap: 0;
  }
  .nav-link {
    padding: 7px 9px;
    font-size: 13.5px;
  }
  .cat-grid,
  .card-grid,
  .card-grid.col-3,
  .info-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 23px;
  }
  .cta-panel {
    padding: 26px 22px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .form-card,
  .doc-card {
    padding: 22px 20px;
  }
  .detail-body {
    padding: 20px 18px 24px;
  }
  .detail-title {
    font-size: 20px;
  }
  .table-wrap {
    overflow-x: auto;
  }
}
