:root {
  --primary: #0b66b2;
  --primary-dark: #064b86;
  --accent: #0f9f8f;
  --ink: #152433;
  --muted: #667587;
  --line: #d9e5ef;
  --bg: #f5f8fb;
  --soft: #eef6fb;
  --white: #ffffff;
  --danger: #b42318;
  --warning: #9a6700;
  --success: #087443;
  --shadow: 0 12px 28px rgba(15, 48, 76, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

textarea {
  resize: vertical;
}

.container {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand__logo {
  width: 152px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.brand__text {
  display: none;
  font-weight: 700;
  color: var(--primary);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  min-width: 0;
}

.site-nav a,
.lang-switch a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 11px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.site-nav a.is-active,
.site-nav a:hover,
.lang-switch a.is-active {
  color: var(--primary);
  background: var(--soft);
}

.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 54px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 247, 253, 0.95) 58%, rgba(229, 242, 250, 0.92) 100%),
    repeating-linear-gradient(90deg, rgba(11, 102, 178, 0.08) 0, rgba(11, 102, 178, 0.08) 1px, transparent 1px, transparent 64px);
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.9;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 38px;
  align-items: center;
}

.hero__content,
.contact-panel,
.filter-bar,
.post-card,
.admin-panel {
  max-width: 100%;
  min-width: 0;
}

.hero__intro,
.post-card h2,
.post-card h3,
.post-card p,
.rich-text,
.article-head h1,
.table-title {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero__logo {
  width: min(330px, 80vw);
  height: 88px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 14px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1,
.page-head h1,
.admin-page-head h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.18;
  color: var(--ink);
}

.hero__intro {
  max-width: 690px;
  margin: 18px 0 0;
  color: #334a61;
  font-size: 18px;
  line-height: 1.8;
}

.hero__actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.btn-primary {
  color: var(--white);
  background: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

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

.btn-block {
  width: 100%;
}

.text-link {
  color: var(--primary);
  font-weight: 700;
  word-break: break-word;
}

.contact-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.contact-panel__title,
.site-footer__brand {
  margin-bottom: 12px;
  color: var(--primary);
  font-weight: 800;
}

.contact-panel a {
  display: grid;
  gap: 3px;
  padding: 12px 13px;
  border: 1px solid #dceaf5;
  border-radius: 8px;
  background: #f8fbfe;
}

.contact-panel a + a {
  margin-top: 10px;
}

.contact-panel a:hover {
  border-color: #a8cfe9;
  background: #f1f8fd;
}

.contact-panel span,
.contact-panel strong {
  min-width: 0;
}

.contact-panel span {
  color: var(--muted);
  font-size: 13px;
}

.contact-panel strong {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.section {
  padding: 42px 0;
}

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

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

.section-heading h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.25;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pillar-card {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.pillar-card:hover {
  border-color: #9ec8e9;
  box-shadow: var(--shadow);
}

.pillar-card span {
  font-weight: 800;
}

.pillar-card strong {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--primary);
  background: var(--soft);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

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

.post-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}

.post-card h2 a,
.post-card h3 a {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.post-card:hover {
  border-color: #9ec8e9;
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.post-card__meta span,
.badge-top {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 8px;
  color: var(--primary);
  background: var(--soft);
  font-size: 12px;
  font-weight: 700;
}

.badge-top {
  color: var(--success);
  background: #e9f8f0;
}

.post-card h2,
.post-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
}

.post-card h2 a:hover,
.post-card h3 a:hover {
  color: var(--primary);
}

.post-card p {
  margin: 10px 0 16px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  overflow: visible;
}

.chip-row--wrap {
  flex-wrap: wrap;
  overflow: visible;
}

.chip {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 8px;
  color: var(--primary);
  background: #e6f1fa;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip-light {
  color: #4b5d6f;
  background: #f1f5f9;
}

.empty-state {
  padding: 34px;
  border: 1px dashed #b9c9d8;
  border-radius: 8px;
  background: var(--white);
  text-align: center;
}

.empty-state.compact {
  padding: 18px;
}

.empty-state h1,
.empty-state h3 {
  margin: 0 0 8px;
}

.empty-state p {
  margin: 0 0 18px;
  color: var(--muted);
}

.page-head {
  padding: 36px 0 28px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.filter-bar,
.admin-filter {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) repeat(3, minmax(130px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-weight: 700;
}

label span {
  font-size: 13px;
}

input[type="text"],
input[type="search"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="number"],
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #cbd9e6;
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
}

textarea {
  min-height: 120px;
  line-height: 1.55;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(11, 102, 178, 0.16);
  border-color: var(--primary);
}

.result-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.article-page {
  background: var(--bg);
  padding: 34px 0;
}

.article-layout {
  max-width: 920px;
}

.article-head,
.article-section,
.article-meta,
.article-contact {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.article-head {
  padding: 24px;
}

.article-head h1 {
  margin: 10px 0 0;
  font-size: 28px;
  line-height: 1.3;
}

.back-link {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--primary);
  font-weight: 700;
}

.article-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 16px 0;
  overflow: hidden;
}

.article-meta div {
  padding: 14px;
  border-right: 1px solid var(--line);
}

.article-meta div:last-child {
  border-right: 0;
}

.article-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.article-meta dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.article-section {
  margin-top: 16px;
  padding: 22px;
}

.article-section h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.rich-text {
  color: #2d3d4f;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.article-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding: 18px;
}

.article-contact strong {
  color: var(--primary);
}

.article-contact a {
  color: #344054;
  overflow-wrap: anywhere;
}

.related-section {
  padding-bottom: 0;
}

.qr-public,
.qr-admin {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.qr-box {
  width: 100%;
  max-width: 360px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

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

.qr-info h2 {
  margin: 0 0 8px;
}

.qr-info p {
  color: var(--muted);
}

.site-footer {
  padding: 28px 0;
  color: #d8e5ef;
  background: #10263a;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.site-footer p {
  margin: 0;
  color: #b7c7d6;
}

.footer-tagline {
  margin-top: 6px !important;
  color: #e4eef7 !important;
  font-weight: 600;
}

.footer-contact {
  display: grid;
  gap: 8px;
  text-align: right;
}

.footer-contact a {
  overflow-wrap: anywhere;
}

.error-pre {
  max-height: 280px;
  overflow: auto;
  padding: 12px;
  border-radius: 8px;
  text-align: left;
  background: #f1f5f9;
}

.admin-body {
  min-height: 100vh;
  background: var(--bg);
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.admin-topbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
  color: var(--primary);
}

.admin-topbar__brand img {
  width: 118px;
  height: 42px;
  object-fit: contain;
}

.admin-topbar__links {
  display: flex;
  gap: 8px;
}

.admin-topbar__links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--primary);
  font-weight: 700;
}

.admin-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.admin-sidebar {
  min-height: calc(100vh - 64px);
  padding: 18px;
  border-right: 1px solid var(--line);
  background: var(--white);
}

.admin-sidebar nav {
  display: grid;
  gap: 6px;
}

.admin-sidebar a {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  color: #425466;
  font-weight: 700;
}

.admin-sidebar a.is-active,
.admin-sidebar a:hover {
  color: var(--primary);
  background: var(--soft);
}

.admin-main {
  min-width: 0;
  padding: 24px;
}

.admin-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-page-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 18px rgba(15, 48, 76, 0.04);
}

.stat-card {
  padding: 18px;
}

.stat-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  color: var(--primary);
  font-size: 32px;
  line-height: 1;
}

.admin-panel {
  margin-bottom: 18px;
  padding: 18px;
}

.admin-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-panel__head h2 {
  margin: 0;
  font-size: 19px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.quick-grid a {
  min-height: 70px;
  display: flex;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--primary);
  background: var(--soft);
  font-weight: 800;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

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

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

.admin-table th {
  color: #475467;
  background: #f7fafc;
  font-size: 12px;
  text-transform: uppercase;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.table-title {
  max-width: 260px;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 230px;
}

.table-action,
.table-actions button,
.inline-sort button {
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--primary);
  background: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.table-actions .danger {
  color: var(--danger);
}

.status {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.status-on {
  color: var(--success);
  background: #e9f8f0;
}

.status-off {
  color: #667085;
  background: #eef2f6;
}

.admin-filter {
  grid-template-columns: repeat(5, minmax(120px, 1fr)) auto;
  padding: 0;
  border: 0;
}

.inline-sort {
  display: flex;
  gap: 6px;
  align-items: center;
}

.inline-sort input {
  width: 68px;
  min-height: 34px;
  padding: 5px 7px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.form-grid__wide {
  grid-column: 1 / -1;
}

.post-form,
.settings-form,
.upload-form {
  display: grid;
  gap: 16px;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 22px;
}

.checkbox-line label,
.radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.field-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.field-list span {
  padding: 7px 10px;
  border-radius: 8px;
  color: #344054;
  background: #f1f5f9;
  font-size: 13px;
  font-weight: 700;
}

.import-result {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.import-result div {
  padding: 14px;
  border-radius: 8px;
  background: var(--soft);
}

.import-result span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.import-result strong {
  color: var(--primary);
  font-size: 26px;
}

.logo-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.logo-preview span {
  color: var(--muted);
  font-weight: 700;
}

.logo-preview img {
  width: 160px;
  height: 56px;
  object-fit: contain;
}

.password-box {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.password-box h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
}

.alert-success {
  color: var(--success);
  border-color: #b8e3ca;
  background: #ecfdf3;
}

.alert-error {
  color: var(--danger);
  border-color: #f1b4ad;
  background: #fff1f0;
}

.alert-warning {
  color: var(--warning);
  border-color: #f3d78a;
  background: #fff8e6;
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}

.login-card {
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.login-card img {
  width: 170px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 18px;
}

.login-card h1 {
  margin: 0;
  font-size: 24px;
}

.login-card p {
  margin: 6px 0 20px;
  color: var(--muted);
}

.login-card form {
  display: grid;
  gap: 14px;
}

@media (max-width: 980px) {
  .hero__grid,
  .qr-public,
  .qr-admin {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    max-width: none;
  }

  .pillar-grid,
  .post-grid,
  .post-grid--compact,
  .stat-grid,
  .quick-grid,
  .import-result {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .filter-bar button,
  .admin-filter button {
    width: 100%;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
  }

  .admin-sidebar nav {
    display: flex;
    min-width: max-content;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(calc(100vw - 24px), 1120px);
  }

  .site-header__inner {
    min-height: auto;
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .brand__logo {
    width: 132px;
    height: 40px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    margin-left: 0;
  }

  .site-nav a {
    flex: 1;
    min-width: 0;
    padding-left: 6px;
    padding-right: 6px;
  }

  .lang-switch {
    margin-left: auto;
  }

  .hero {
    padding: 36px 0 34px;
  }

  .hero h1,
  .page-head h1,
  .admin-page-head h1 {
    font-size: 29px;
  }

  .hero__logo {
    width: min(260px, 76vw);
    height: 66px;
  }

  .hero__intro {
    font-size: 16px;
  }

  .section {
    padding: 30px 0;
  }

  .section-heading,
  .result-line,
  .admin-page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .pillar-grid,
  .post-grid,
  .post-grid--compact,
  .filter-bar,
  .form-grid,
  .stat-grid,
  .quick-grid,
  .import-result,
  .admin-filter {
    grid-template-columns: 1fr;
  }

  .post-card {
    min-height: 0;
    padding: 18px;
  }

  .article-meta {
    grid-template-columns: 1fr;
  }

  .article-meta div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .article-meta div:last-child {
    border-bottom: 0;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .footer-contact {
    text-align: left;
  }

  .admin-topbar {
    height: auto;
    flex-wrap: wrap;
    padding: 12px;
  }

  .admin-topbar__brand span {
    display: none;
  }

  .admin-main {
    padding: 16px 12px;
  }

  .admin-panel {
    padding: 14px;
  }

  .qr-box {
    max-width: 300px;
  }
}

/* Commercial UI refresh */
:root {
  --radius: 10px;
  --radius-sm: 8px;
  --surface: #ffffff;
  --surface-blue: #f3f8fc;
  --navy: #0b2742;
  --blue-50: #eff7fd;
  --blue-100: #dceefb;
  --blue-200: #b8dcf4;
  --text-soft: #516477;
  --shadow-soft: 0 10px 24px rgba(22, 54, 83, 0.07);
  --shadow-card: 0 1px 2px rgba(16, 37, 58, 0.05), 0 10px 30px rgba(16, 37, 58, 0.06);
}

body {
  color: #0f2235;
  background: #f6f9fc;
}

.site-header {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #dbe8f2;
  box-shadow: 0 1px 0 rgba(15, 45, 75, 0.02);
}

.site-header__top {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header__nav-row {
  border-top: 1px solid #eef4f8;
}

.brand__logo {
  width: 166px;
  height: 46px;
  object-fit: contain;
  object-position: left center;
}

.brand__text {
  display: inline-flex;
  color: var(--primary);
  font-size: 15px;
  letter-spacing: 0;
  white-space: nowrap;
}

.site-nav {
  min-height: 44px;
  margin: 0 auto;
  justify-content: center;
  gap: 8px;
}

.site-nav a {
  min-height: 32px;
  padding: 5px 18px;
  border-radius: 999px;
  color: #53687b;
  font-size: 14px;
}

.site-nav a.is-active,
.site-nav a:hover {
  color: var(--primary);
  background: #edf6fd;
}

.lang-switch {
  flex: 0 0 auto;
  border-color: #d6e6f2;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 0 rgba(16, 45, 72, 0.03);
}

.lang-switch a {
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 7px;
}

.hero {
  padding: 76px 0 60px;
  background:
    radial-gradient(circle at 78% 22%, rgba(11, 102, 178, 0.13) 0, rgba(11, 102, 178, 0.09) 22%, transparent 46%),
    linear-gradient(135deg, #ffffff 0%, #f4faff 46%, #eaf5fc 100%);
}

.hero::before {
  content: "";
  position: absolute;
  right: -90px;
  top: 42px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(11, 102, 178, 0.16);
  border-radius: 50%;
}

.hero__grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 44px;
}

.hero__mark {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  margin-bottom: 14px;
  border: 1px solid #cae2f5;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero__logo {
  width: min(360px, 82vw);
  height: 96px;
}

.hero h1 {
  font-size: clamp(36px, 4vw, 54px);
  color: #081d33;
  letter-spacing: 0;
}

.hero__intro {
  max-width: 620px;
  color: #425a70;
  font-size: 18px;
}

.hero__actions {
  margin-top: 28px;
}

.btn {
  min-height: 42px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  box-shadow: 0 8px 18px rgba(11, 102, 178, 0.18);
}

.btn-secondary {
  border-color: #bdd8ed;
  background: rgba(255, 255, 255, 0.88);
}

.contact-panel {
  padding: 22px;
  border-color: #d9e9f4;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-card);
}

.contact-panel__title {
  color: #0e4778;
  font-size: 16px;
}

.contact-item {
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
}

.contact-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: var(--primary);
  background: #e8f4fc;
  font-size: 11px;
  font-weight: 900;
}

.contact-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.section {
  padding: 54px 0;
}

.section-muted {
  background: #f3f7fb;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  color: #081d33;
  font-size: clamp(24px, 3vw, 34px);
}

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

.pillar-card {
  min-height: 88px;
  padding: 18px 20px;
  border-color: #dce9f3;
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(16, 42, 65, 0.03);
}

.pillar-card span {
  display: grid;
  gap: 4px;
}

.pillar-card em {
  font-style: normal;
  color: #10283e;
  font-size: 17px;
  font-weight: 850;
}

.pillar-card small {
  color: #6a7e91;
  font-size: 12px;
  font-weight: 700;
}

.pillar-card strong {
  min-width: 38px;
  height: 38px;
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 8px 16px rgba(11, 102, 178, 0.18);
}

.post-grid {
  gap: 22px;
}

.post-card {
  min-height: 218px;
  padding: 20px;
  border-color: #dce9f3;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.post-card:hover {
  border-color: #a9d0ea;
  box-shadow: var(--shadow-card);
}

.post-card__meta span,
.badge-top {
  min-height: 24px;
  border-radius: 999px;
  color: #0a5d9f;
  background: #edf7fd;
  font-size: 12px;
}

.post-card h2,
.post-card h3 {
  color: #09223a;
  font-size: 20px;
}

.post-card p {
  color: #536a80;
  line-height: 1.7;
}

.chip {
  min-height: 26px;
  border-radius: 999px;
  color: #0a5d9f;
  background: #e8f4fc;
}

.page-head {
  padding: 42px 0 34px;
  background: linear-gradient(135deg, #f6fbff 0%, #eef6fc 100%);
}

.filter-bar {
  padding: 18px;
  border-color: #dce9f3;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.article-page {
  background: #f3f7fb;
}

.article-head,
.article-section,
.article-meta,
.article-contact {
  border-color: #dce9f3;
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(16, 42, 65, 0.03);
}

.article-head h1 {
  font-size: clamp(28px, 4vw, 42px);
}

.article-contact {
  align-items: center;
  justify-content: space-between;
}

.site-footer {
  padding: 34px 0;
  background: linear-gradient(135deg, #081d33 0%, #0d3150 100%);
}

.site-footer__grid {
  align-items: start;
}

.site-footer__brand {
  color: #ffffff;
  font-size: 18px;
}

.footer-contact {
  gap: 7px;
}

.footer-contact a {
  color: #e5f0f8;
}

.admin-body {
  background: #f4f7fb;
}

.admin-topbar {
  height: 66px;
  border-bottom-color: #dce8f2;
  box-shadow: 0 1px 0 rgba(20, 45, 72, 0.03);
}

.admin-topbar__brand img {
  width: 142px;
  height: 42px;
}

.admin-topbar__brand span {
  display: grid;
  gap: 1px;
  color: #0a5d9f;
}

.admin-topbar__brand strong {
  font-size: 15px;
}

.admin-topbar__brand small {
  color: #6a7e91;
  font-size: 12px;
  font-weight: 700;
}

.admin-topbar__links a {
  border-color: #d5e5f0;
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.admin-shell {
  grid-template-columns: 224px minmax(0, 1fr);
}

.admin-sidebar {
  padding: 18px 14px;
  border-right-color: #dce8f2;
  background: #ffffff;
}

.admin-sidebar nav {
  gap: 5px;
}

.admin-sidebar a {
  min-height: 38px;
  border-radius: var(--radius-sm);
  color: #526779;
  font-size: 14px;
}

.admin-sidebar a.is-active,
.admin-sidebar a:hover {
  color: #0a5d9f;
  background: #edf7fd;
}

.admin-main {
  padding: 26px;
}

.admin-page-head {
  padding: 20px;
  border: 1px solid #dce8f2;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff 0%, #f4faff 100%);
  box-shadow: var(--shadow-soft);
}

.admin-page-head h1 {
  font-size: 26px;
}

.stat-grid {
  gap: 14px;
  margin: 18px 0;
}

.stat-card {
  position: relative;
  min-height: 116px;
  padding: 18px;
  border-color: #dce8f2;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.stat-card i,
.quick-grid i {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 10px;
  color: #0a5d9f;
  background: #e8f4fc;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.stat-card strong {
  color: #09223a;
  font-size: 30px;
}

.admin-panel {
  border-color: #dce8f2;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.quick-grid {
  gap: 14px;
}

.quick-grid a {
  min-height: 112px;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-color: #dce8f2;
  border-radius: var(--radius);
  background: #fbfdff;
}

.quick-grid a span {
  display: grid;
  gap: 5px;
}

.quick-grid a strong {
  color: #10283e;
}

.quick-grid a small {
  color: #6a7e91;
  font-size: 12px;
  line-height: 1.5;
}

.admin-table th {
  color: #536779;
  background: #f4f8fb;
  letter-spacing: 0.02em;
}

.admin-table td {
  color: #25394b;
}

.table-tag {
  max-width: 210px;
  display: inline-flex;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

input[type="text"],
input[type="search"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="number"],
select,
textarea {
  border-color: #cfdfea;
  border-radius: var(--radius-sm);
  background: #ffffff;
}

@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .admin-main {
    padding: 18px;
  }
}

@media (max-width: 640px) {
  .site-header__top {
    min-height: 58px;
  }

  .brand__logo {
    width: 128px;
    height: 38px;
  }

  .brand__text {
    display: none;
  }

  .site-nav {
    min-height: 42px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .site-nav a {
    padding: 5px 8px;
  }

  .hero {
    padding: 40px 0 38px;
  }

  .hero::before {
    right: -160px;
    top: 90px;
  }

  .hero__logo {
    width: min(278px, 76vw);
    height: 72px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero__intro {
    font-size: 16px;
  }

  .hero__actions .btn {
    flex: 1 1 140px;
  }

  .contact-panel {
    padding: 18px;
  }

  .pillar-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .pillar-card {
    min-height: 78px;
  }

  .post-card {
    padding: 18px;
  }

  .admin-topbar__brand img {
    width: 122px;
  }

  .admin-topbar__brand small {
    display: none;
  }

  .admin-page-head {
    padding: 16px;
  }
}

/* Admin mobile hardening: keep the whole admin app single-column below tablet width. */
.admin-mobile-list {
  display: none;
}

@media (max-width: 767px) {
  html,
  body,
  .admin-body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .admin-topbar {
    width: 100%;
    height: auto;
    min-height: 62px;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 10px 12px;
  }

  .admin-topbar__brand {
    min-width: 0;
    flex: 1 1 auto;
    gap: 8px;
  }

  .admin-topbar__brand img {
    width: 124px;
    height: 38px;
    flex: 0 0 auto;
  }

  .admin-topbar__brand span {
    min-width: 0;
  }

  .admin-topbar__brand strong {
    max-width: 118px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-topbar__brand small {
    display: none;
  }

  .admin-topbar__links {
    flex: 0 0 auto;
    gap: 6px;
  }

  .admin-topbar__links a {
    min-height: 32px;
    padding: 5px 8px;
    font-size: 13px;
  }

  .admin-shell {
    width: 100%;
    max-width: 100%;
    display: block;
  }

  .admin-sidebar {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    padding: 8px 12px;
    border-right: 0;
    border-bottom: 1px solid #dce8f2;
    background: #ffffff;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .admin-sidebar nav {
    width: max-content;
    min-width: 100%;
    display: flex;
    gap: 8px;
  }

  .admin-sidebar a {
    min-width: max-content;
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 13px;
    white-space: nowrap;
  }

  .admin-main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 16px 12px;
    overflow-x: hidden;
  }

  .admin-page-head {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-bottom: 14px;
    padding: 16px;
  }

  .admin-page-head h1 {
    font-size: 24px;
  }

  .admin-page-head p {
    font-size: 14px;
  }

  .admin-page-head .btn {
    width: 100%;
    margin-top: 14px;
  }

  .stat-grid,
  .quick-grid,
  .admin-filter,
  .form-grid,
  .import-result {
    width: 100%;
    grid-template-columns: 1fr !important;
  }

  .stat-card {
    min-height: 98px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 8px 10px;
    align-items: center;
    padding: 14px;
  }

  .stat-card i {
    grid-row: 1 / 3;
    margin: 0;
  }

  .stat-card span {
    align-self: end;
  }

  .stat-card strong {
    grid-column: 2 / 4;
    margin: 0;
    font-size: 26px;
  }

  .admin-panel {
    width: 100%;
    max-width: 100%;
    margin-bottom: 14px;
    padding: 14px;
  }

  .admin-panel__head {
    align-items: flex-start;
  }

  .quick-grid a {
    min-height: 88px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 14px;
  }

  .quick-grid i {
    margin: 0;
  }

  .table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-table {
    min-width: 760px;
  }

  .admin-mobile-list {
    display: grid;
    gap: 10px;
  }

  .admin-panel .admin-mobile-list + .table-wrap {
    display: none;
  }

  .admin-mobile-card {
    padding: 13px;
    border: 1px solid #dce8f2;
    border-radius: var(--radius);
    background: #ffffff;
  }

  .admin-mobile-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
  }

  .admin-mobile-card__top strong {
    min-width: 0;
    color: #09223a;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-mobile-card dl {
    display: grid;
    gap: 8px;
    margin: 0 0 12px;
  }

  .admin-mobile-card dl div {
    min-width: 0;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 8px;
  }

  .admin-mobile-card dt {
    color: #6a7e91;
    font-size: 12px;
    font-weight: 800;
  }

  .admin-mobile-card dd {
    min-width: 0;
    margin: 0;
    color: #25394b;
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  .admin-mobile-card .table-action {
    width: 100%;
    justify-content: center;
  }

  .post-form,
  .settings-form,
  .upload-form {
    width: 100%;
    max-width: 100%;
  }

  .qr-admin {
    grid-template-columns: 1fr;
  }
}
