:root {
  color-scheme: light;
  --bg: #f7f9fd;
  --panel: #ffffff;
  --ink: #17233a;
  --muted: #63728a;
  --line: #dfe8f5;
  --blue: #2f7df1;
  --blue-dark: #1f5fc6;
  --blue-soft: #eaf3ff;
  --orange: #ff7a45;
  --orange-soft: #fff2e9;
  --red: #e83232;
  --green: #20b26b;
  --shadow: 0 16px 38px rgba(25, 54, 96, 0.11);
  --black: #050609;
  --black-2: #111217;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #eaf1fa;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--black);
  border-bottom: 0;
}

.header-inner,
.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 23px;
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 0;
  background: #111;
  color: #fff;
  font-size: 15px;
  line-height: 1;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.nav-action,
.ghost-button,
.primary-button,
.icon-button,
.notice-bell {
  border: 0;
  border-radius: 999px;
  min-height: 38px;
  padding: 0 16px;
  font-weight: 800;
}

.nav-action,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #4c4c51;
  color: #fff;
  border: 0;
  text-decoration: none;
}

.primary-button {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 22px rgba(47, 125, 241, 0.22);
}

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

.notice-bell {
  display: grid;
  place-items: center;
  width: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #2b2d33;
  color: #fff;
  font-size: 18px;
  font-weight: 950;
}

.notice-bell:hover {
  background: #383b43;
}

.page {
  padding: 0 0 72px;
}

.home-stage {
  position: relative;
  overflow: hidden;
  margin: 0 0 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 18px),
    radial-gradient(circle at 76% 18%, rgba(58, 68, 86, 0.42), transparent 32%),
    #050609;
  padding: 58px 22px 34px;
}

.home-stage::before {
  content: "";
  position: absolute;
  inset: 18px 18px auto auto;
  width: 86px;
  height: 86px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: rotate(18deg);
}

.domain-hero {
  position: relative;
  z-index: 1;
  margin: 0 0 26px;
  border: 0;
  background: transparent;
  padding: 0;
}

.domain-hero h1 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #fff;
  font-size: 44px;
  line-height: 1.12;
  text-align: center;
}

.domain-hero h1 span {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}

.domain-hero h1 em {
  color: #fff;
  font-style: normal;
  font-weight: 900;
}

.hero-sub {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.notice-card {
  display: block;
  margin: 0 auto 18px;
  padding: 14px 18px;
  border: 1px solid #cfe0fb;
  border-left: 5px solid var(--blue);
  border-radius: 12px;
  background: linear-gradient(110deg, #fff, #f4f8ff);
  box-shadow: 0 12px 30px rgba(47, 125, 241, 0.08);
  line-height: 1.6;
  color: #34445a;
  font-size: 14px;
}

.notice-label {
  display: inline-flex;
  margin-bottom: 6px;
  border-radius: 6px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  padding: 4px 8px;
  font-weight: 900;
  white-space: nowrap;
}

.notice-copy {
  min-width: 0;
}

.notice-card p {
  margin: 0;
}

.notice-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: flex-start;
  margin-top: 6px;
}

.notice-links a {
  border-radius: 999px;
  background: transparent;
  color: var(--blue);
  padding: 0;
  font-weight: 800;
  text-decoration: none;
}

.category-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: stretch;
  gap: 12px;
  overflow: visible;
  padding: 10px 0 16px;
}

.category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 0 0 auto;
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 0;
  border: 2px solid #05070b;
  background: #fff;
  color: #05070b;
  font-size: 18px;
  font-weight: 900;
  box-shadow: none;
}

.category-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-icon {
  display: grid;
  place-items: center;
  min-width: 28px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: transparent;
  color: currentColor;
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
}

.category-icon.grid-icon {
  grid-template-columns: repeat(2, 6px);
  grid-template-rows: repeat(2, 6px);
  gap: 3px;
}

.category-icon.grid-icon i {
  display: block;
  width: 6px;
  height: 6px;
  border: 2px solid currentColor;
  border-radius: 1px;
}

.category-icon.plane-icon {
  width: 26px;
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  background: currentColor;
  color: inherit;
  font-size: 0;
}

.category-icon.plane-icon::before {
  content: "";
  width: 15px;
  height: 15px;
  background: #fff;
  clip-path: polygon(0 43%, 100% 0, 67% 100%, 47% 61%, 22% 82%);
  transform: translate(1px, -1px);
}

.category.active .category-icon.plane-icon::before {
  background: #05070b;
}

.category-icon.uploaded-icon {
  width: 36px;
  min-width: 36px;
  height: 36px;
  border-radius: 6px;
  background: transparent;
}

.category-icon img,
.product-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-icon.uploaded-icon img {
  object-fit: contain;
}

.category-icon.has-image,
.product-icon.has-image {
  background: #fff;
}

.category.active {
  border-color: #05070b;
  background: #05070b;
  color: #fff;
  box-shadow: none;
}


.search-row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0 10px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(680px, 100%);
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.search-box span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
  font-weight: 900;
}

.search-box input,
.single-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.search-box input {
  min-height: 48px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

.content-grid {
  display: block;
}

.hidden {
  display: none !important;
}

.catalog,
.product-section {
  min-width: 0;
}

.product-section {
  border: 0;
  border-radius: 0;
  background: #e5e8ed;
  box-shadow: none;
}

.single-field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: #445670;
  font-size: 14px;
  font-weight: 800;
}

.single-field input {
  min-height: 42px;
  padding: 0 12px;
}

h1,
h2,
p {
  margin: 0;
}

.product-section {
  overflow: hidden;
  background: #e5e8ed;
  border: 0;
  box-shadow: none;
}

.section-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: linear-gradient(90deg, #e7f2ff, #f6faff);
  color: #28517f;
  text-align: left;
  font-weight: 900;
}

.section-title em,
.section-title i {
  font-style: normal;
  color: var(--muted);
}

.product-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 14px;
}

.product-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto 28px;
  align-items: center;
  gap: 18px;
  min-height: 142px;
  padding: 20px 22px;
  border: 4px solid #fff;
  border-radius: 8px;
  background: #f8f9fb;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
}

.product-row:hover {
  transform: translateY(-1px);
  border-color: #fff;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.2);
}

.product-row.recommend {
  position: relative;
  border-color: #fff;
}

.product-row.recommend::before {
  content: "精选";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 44px;
  height: 20px;
  border-radius: 8px 0 8px 0;
  background: #050609;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  line-height: 20px;
}

.product-icon {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 18px;
  background: #05070b;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  box-shadow: none;
  overflow: hidden;
}

.product-main strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: #172033;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.28;
}

.product-main span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.stock-badge {
  justify-self: start;
  min-width: 80px;
  border-radius: 6px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  padding: 6px 9px;
  text-align: center;
  font-weight: 900;
}

.ship-badge {
  justify-self: start;
  grid-column: 2;
  width: fit-content;
  min-width: 86px;
  border: 1px solid #9aa2ad;
  border-radius: 5px;
  color: #7e8793;
  padding: 4px 8px;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.category-name {
  display: none;
}

.price {
  grid-column: 3;
  grid-row: 2;
  justify-self: start;
  color: #050609;
  font-size: 28px;
  font-weight: 900;
  white-space: nowrap;
}

.buy-now {
  grid-column: 4;
  grid-row: 1 / 3;
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  padding: 0;
  font-weight: 900;
  white-space: nowrap;
}

.buy-now {
  background: transparent;
  color: #050609;
  font-size: 30px;
  line-height: 1;
}

.home-guides {
  margin-top: 28px;
}

.guide-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  border-radius: 6px;
  background: #05070b;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(5, 7, 11, 0.12);
}

.guide-strip-arrow {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.guide-cards {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.guide-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 92px;
  border: 1px solid #e7eef8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(25, 54, 96, 0.07);
  color: #182133;
  text-decoration: none;
  padding: 16px;
}

.guide-card-icon {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #27b3f2, #0875bf);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  overflow: hidden;
}

.guide-card-icon.has-image {
  background: #f3f4f6;
}

.guide-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-card strong {
  display: block;
  font-size: 19px;
}

.guide-card em {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  line-height: 1.6;
}

.detail-page {
  display: none;
}

.detail-page.active,
.bill-page.active {
  display: block;
  padding: 18px 0 40px;
  background: #f2f3f5;
}

.bill-page {
  display: none;
}

.detail-card,
.bill-card {
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(25, 54, 96, 0.05);
  padding: 28px;
}

.bill-card {
  min-height: 344px;
}

.bill-lines {
  display: grid;
  gap: 14px;
  color: #8b98a7;
  font-size: 15px;
  line-height: 1.6;
}

.bill-lines p {
  display: flex;
  gap: 4px;
  margin: 0;
}

.bill-lines span {
  flex: 0 0 auto;
  font-weight: 900;
}

.bill-lines strong {
  color: #8b98a7;
  font-weight: 900;
}

.bill-warning {
  margin: 18px 0 16px;
  color: #e11d48;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.5;
  text-align: center;
}

.bill-pay-button {
  display: block;
  width: fit-content;
  min-width: 96px;
  margin: 0 auto;
  border-radius: 4px;
  background: #ff5d63;
  padding: 12px 18px;
}

.detail-kicker {
  margin: 0 0 16px;
  color: #8996a5;
  font-size: 22px;
  font-weight: 900;
}

.detail-top {
  display: block;
  margin-bottom: 18px;
}

.detail-top h1 {
  font-size: 26px;
  margin: 0;
}

.detail-top p {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
  color: var(--muted);
}

.detail-top p span {
  border-radius: 4px;
  background: #fff;
  border: 1px solid var(--blue);
  color: var(--blue);
  padding: 2px 5px;
  font-size: 12px;
  font-weight: 900;
}

.detail-top strong {
  display: block;
  margin-top: 14px;
  color: var(--red);
  font-size: 34px;
  font-weight: 500;
}

.detail-grid,
.detail-order {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.detail-grid div,
.detail-order > label,
.detail-order > div,
.detail-notes {
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.detail-order > button {
  grid-column: 1 / -1;
}

.detail-grid span,
.field-title,
.detail-total span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 4px;
}

.detail-order label {
  color: #7b8797;
  font-size: 18px;
  font-weight: 800;
}

.detail-total strong {
  color: var(--red);
  font-size: 24px;
}

.detail-pay-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.detail-pay-methods .pay-method {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  min-height: 64px;
  border-radius: 0;
  border: 2px solid #bfd0e5;
  background: #fff;
  color: #1f2c3d;
  text-align: left;
  padding: 8px 12px;
}

.detail-pay-methods .pay-method.active {
  border-color: var(--blue);
  background: #fff;
}

.detail-pay-methods .pay-method span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: #08a8e8;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.detail-pay-methods .pay-method[data-pay^="wechat"] span {
  background: #19b530;
  border-radius: 50%;
}

.detail-pay-methods .pay-method em {
  color: var(--red);
  font-size: 13px;
  font-style: normal;
}

.detail-notes {
  margin-bottom: 16px;
}

.detail-notes h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.detail-notes p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

.detail-markdown {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

.detail-markdown h2,
.detail-markdown h3 {
  color: var(--ink);
  margin: 18px 0 10px;
}

.detail-markdown h2:first-child,
.detail-markdown h3:first-child {
  margin-top: 0;
}

.detail-markdown p,
.detail-markdown ol,
.detail-markdown ul {
  margin-bottom: 12px;
}

.detail-markdown ol,
.detail-markdown ul {
  padding-left: 22px;
}

.detail-markdown li {
  margin-bottom: 8px;
}

.detail-markdown a {
  color: var(--blue);
  word-break: break-all;
}

.detail-markdown img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 12px 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.empty-state {
  display: none;
  padding: 46px 18px;
  text-align: center;
  color: var(--muted);
}

.empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 18px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: #f3f6fb;
  color: #4d6078;
  font-size: 20px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(9, 18, 32, 0.42);
}

.modal.open {
  display: grid;
}

.modal-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 24px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.modal-head {
  padding-right: 42px;
  margin-bottom: 18px;
}

.modal-head.centered {
  padding-right: 0;
  text-align: center;
}

.modal-head h2 {
  font-size: 24px;
}

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

.notice-modal-panel {
  width: min(440px, calc(100vw - 32px));
  padding: 24px 22px 22px;
}

.notice-modal-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 20px;
}

.notice-modal-copy {
  min-height: 118px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid #cfe0fb;
  border-left: 5px solid var(--blue);
  border-radius: 12px;
  background: linear-gradient(110deg, #fff, #f4f8ff);
  color: #34445a;
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.stepper {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
}

.stepper button {
  border: 1px solid var(--line);
  background: #f6f9fd;
  font-size: 18px;
  font-weight: 900;
}

.stepper button:first-child {
  border-radius: 10px 0 0 10px;
}

.stepper button:last-child {
  border-radius: 0 10px 10px 0;
}

.stepper input {
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  text-align: center;
}

.pay-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 4px 0 16px;
}

.pay-method {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #34445a;
  font-weight: 900;
}

.pay-method.active {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.full {
  width: 100%;
}

.qr-code {
  display: grid;
  grid-template-columns: repeat(2, 76px);
  gap: 8px;
  width: 176px;
  height: 176px;
  margin: 0 auto 18px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.qr-code span {
  background:
    linear-gradient(90deg, #132a42 28%, transparent 28% 42%, #132a42 42% 58%, transparent 58%),
    linear-gradient(#132a42 28%, transparent 28% 42%, #132a42 42% 58%, transparent 58%);
}

.pay-lines {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.pay-lines p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7faff;
}

.pay-lines span {
  color: var(--muted);
}

.result-panel {
  text-align: center;
}

.result-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #e8faf1;
  color: var(--green);
  font-size: 32px;
  font-weight: 900;
}

.result-panel p {
  color: var(--muted);
  margin: 8px 0 16px;
}

.delivery-box {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 12px;
  background: #f7faff;
  text-align: left;
}

.query-result {
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  background: #f7faff;
  color: var(--muted);
}

.article-page {
  padding: 28px 0 72px;
}

.article-list-page {
  background: #fff;
  padding-bottom: 60px;
}

.article-list-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  background: #fff;
}

.article-list-shell h1 {
  padding: 42px 0 34px;
  color: #8c99a6;
  font-size: 38px;
  border-bottom: 1px solid var(--line);
}

.article-table {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-bottom: 0;
}

.article-table a {
  display: block;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  color: #2f7df1;
  font-size: 18px;
  text-decoration: none;
}

.article-table a:hover {
  background: #f7faff;
}

.article-nav {
  display: flex;
  gap: 48px;
  margin: 0 auto;
}

.article-nav a {
  color: #929da9;
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
}

.article-brand {
  color: #111;
}

.article-shell {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
}

.article-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(25, 54, 96, 0.06);
  padding: 30px;
}

.article-card h1 {
  font-size: 32px;
  line-height: 1.25;
  margin-bottom: 14px;
}

.article-meta {
  color: var(--muted);
  margin-bottom: 24px;
}

.article-card h2 {
  font-size: 22px;
  margin: 26px 0 10px;
}

.article-card p,
.article-card li {
  color: #42536a;
  line-height: 1.9;
}

.article-card ul,
.article-card ol {
  padding-left: 22px;
}

.article-video-wrap {
  display: grid;
  gap: 12px;
}

.article-video-wrap video {
  display: block;
  width: 100%;
  max-height: 72vh;
  border-radius: 10px;
  background: #000;
}

.article-video-link {
  color: #2f7df1;
  font-size: 14px;
  text-decoration: none;
}

.article-video-link:hover {
  text-decoration: underline;
}

.guide-index {
  display: grid;
  gap: 14px;
}

.guide-link-card {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.guide-link-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

.guide-link-card span {
  color: var(--muted);
  line-height: 1.6;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 16px;
  border-radius: 10px;
  background: #16263a;
  color: #fff;
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.admin-page {
  background: #eef3fa;
}

.admin-shell {
  min-height: 100vh;
}

.admin-login {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

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

.admin-login-card h1 {
  margin-top: 24px;
  font-size: 28px;
}

.admin-login-card p {
  margin: 8px 0 22px;
  color: var(--muted);
}

.admin-dashboard {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 22px 16px;
}

.admin-sidebar .brand {
  margin-bottom: 18px;
}

.admin-tab {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #34445a;
  font-weight: 900;
  text-align: left;
  padding: 0 14px;
}

.admin-tab.active,
.admin-tab:hover {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

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

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

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

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

.admin-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(25, 54, 96, 0.06);
  padding: 18px;
}

.admin-panel + .admin-panel {
  margin-top: 18px;
}

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

.admin-panel-head h2 {
  font-size: 22px;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 10px;
  background: #f7faff;
}

.admin-form label {
  display: grid;
  gap: 6px;
  color: #445670;
  font-size: 13px;
  font-weight: 900;
}

.admin-form input,
.admin-table select,
.admin-table textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.admin-form input {
  min-height: 40px;
  padding: 0 10px;
}

.admin-form .wide {
  grid-column: span 2;
}

.admin-form .check-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-form .check-line input {
  width: auto;
  min-height: 0;
}

.admin-actions {
  display: flex;
  align-items: end;
  gap: 10px;
}

.admin-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

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

.admin-table th {
  background: #f3f8ff;
  color: #28517f;
  font-size: 13px;
  font-weight: 900;
}

.admin-table td {
  color: #25354d;
  font-size: 14px;
}

.admin-table td span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.admin-table select {
  min-height: 36px;
  padding: 0 8px;
}

.admin-table textarea {
  min-height: 54px;
  padding: 8px;
  resize: vertical;
}

.table-action {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--blue-dark);
  font-weight: 900;
  padding: 0 10px;
}

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

@media (max-width: 980px) {
  .notice-links {
    justify-content: flex-start;
  }

  .product-row {
    grid-template-columns: 96px minmax(0, 1fr) auto 28px;
    min-height: 132px;
    padding: 18px;
    gap: 16px;
  }

  .product-icon {
    width: 84px;
    height: 84px;
    border-radius: 20px;
  }

  .product-main strong {
    font-size: 19px;
    font-weight: 500;
  }

  .ship-badge {
    font-size: 16px;
  }

  .price {
    font-size: 25px;
  }
}

@media (max-width: 680px) {
  .admin-dashboard {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .admin-main {
    padding: 16px;
  }

  .admin-head,
  .admin-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .admin-form .wide {
    grid-column: auto;
  }

  .header-inner {
    align-items: center;
    flex-direction: row;
    min-height: 62px;
    gap: 8px;
    padding: 8px 0;
  }

  .top-nav {
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .brand {
    gap: 8px;
    font-size: 20px;
    min-width: 0;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .nav-action {
    min-height: 32px;
    padding: 0 10px;
    font-size: 13px;
  }

  .page {
    width: min(390px, 100%);
  }

  .home-stage {
    margin-bottom: 16px;
    padding: 50px 14px 34px;
  }

  .home-stage::before {
    inset: 18px 18px auto auto;
    width: 72px;
    height: 72px;
  }

  .domain-hero {
    margin-bottom: 24px;
    padding: 0;
  }

  .domain-hero h1 {
    gap: 7px;
    font-size: 37px;
    line-height: 1.12;
  }

  .hero-sub {
    font-size: 13px;
  }

  .search-row {
    padding: 0 10px;
  }

  .search-box {
    min-height: 50px;
    padding: 0 16px;
  }

  .search-box input {
    min-height: 46px;
    font-size: 16px;
  }

  .article-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .article-nav a {
    font-size: 14px;
  }

  .article-list-shell h1 {
    padding: 28px 0 22px;
    font-size: 30px;
  }

  .article-table a {
    padding: 14px;
    font-size: 15px;
  }

  .category-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 10px;
    padding: 2px 12px 18px;
  }

  .category {
    width: 100%;
    min-height: 56px;
    padding: 0 12px;
    font-size: 17px;
  }

  .category-icon {
    min-width: 24px;
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .category-icon.uploaded-icon {
    width: 38px;
    min-width: 38px;
    height: 38px;
  }

  .pay-methods {
    grid-template-columns: 1fr;
  }

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

  .product-list {
    grid-template-columns: 1fr;
    overflow-x: visible;
    gap: 18px;
    padding: 12px;
  }

  .product-row {
    grid-template-columns: 86px minmax(0, 1fr) 24px;
    grid-template-areas:
      "icon main action"
      "price ship action";
    column-gap: 14px;
    row-gap: 8px;
    width: 100%;
    min-height: 126px;
    padding: 14px;
    border-width: 3px;
  }

  .product-icon {
    grid-area: icon;
    width: 76px;
    height: 76px;
    border-radius: 18px;
    font-size: 14px;
  }

  .product-main {
    grid-area: main;
    min-width: 0;
  }

  .product-main strong {
    min-height: 42px;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.24;
    overflow: hidden;
    text-overflow: clip;
    white-space: normal;
  }

  .product-main span {
    display: none;
  }

  .category-name {
    display: none;
  }

  .ship-badge {
    grid-area: ship;
    justify-self: start;
    min-width: 0;
    padding: 3px 7px;
    font-size: 14px;
  }

  .price {
    grid-area: price;
    justify-self: start;
    align-self: center;
    border-radius: 999px;
    background: #eef0f3;
    color: #050609;
    padding: 4px 8px;
    font-size: 15px;
    font-weight: 900;
  }

  .buy-now {
    grid-area: action;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 34px;
    min-height: 34px;
    border-radius: 0;
    background: transparent;
    padding: 0;
    color: #050609;
    font-size: 20px;
    box-shadow: none;
  }

  .product-row > .price {
    display: block;
  }

  .detail-top,
  .detail-grid,
  .detail-order {
    grid-template-columns: 1fr;
  }

  .detail-top strong {
    justify-self: start;
  }

  .guide-strip {
    min-height: 48px;
    font-size: 17px;
    gap: 9px;
  }

  .guide-strip-arrow {
    font-size: 16px;
  }

  .guide-card {
    grid-template-columns: 46px minmax(0, 1fr);
    min-height: 78px;
    padding: 13px;
  }

  .guide-card-icon {
    width: 40px;
    height: 40px;
  }

  .guide-card strong {
    font-size: 16px;
  }

  .guide-card em {
    font-size: 12px;
  }
}
