:root {
  --blue: #1a5fb4;
  --blue-dark: #0e3f7d;
  --orange: #e8833a;
  --bg: #f5f7fa;
  --text: #202a37;
  --muted: #68727f;
  --line: #e2e8f0;
  --white: #ffffff;
  --green: #1a7f4e;
  --red: #c0392b;
  --radius: 10px;
  --shadow: 0 1px 4px rgba(20, 40, 70, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); font-size: 13px; }
.hint { color: var(--muted); font-size: 13px; }
.narrow { max-width: 760px; }

.topbar { background: var(--blue-dark); color: #dceafc; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 8px; background: var(--blue);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; flex: 0 0 auto;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 18px; color: var(--blue-dark); }
.brand-text small { color: var(--muted); font-size: 12px; }
.main-nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.main-nav a { padding: 8px 12px; border-radius: 6px; color: var(--text); font-size: 15px; position: relative; }
.main-nav a:hover { background: #eef3fa; color: var(--blue); }
.main-nav a.active { color: var(--blue); font-weight: 600; }
.cart-badge {
  font-style: normal; background: var(--orange); color: #fff; border-radius: 20px;
  padding: 0 6px; font-size: 12px; margin-left: 3px;
}

.notice { background: #fff7ec; color: #8a5a1f; border-bottom: 1px solid #f3dfc0; font-size: 13px; padding: 6px 0; }

.hero { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color: #fff; padding: 58px 0; }
.hero h1 { margin: 0 0 12px; font-size: 34px; }
.hero p { font-size: 17px; color: #dceafc; max-width: 640px; }
.hero-actions { display: flex; gap: 12px; margin: 24px 0; flex-wrap: wrap; }
.trust-list { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 14px 0 0; list-style: none; color: #cfe0f5; font-size: 14px; }
.trust-list li::before { content: "✓"; margin-right: 6px; color: #7fd0a3; }

.section { padding: 40px 0; }
.section-gray { background: #fff; }
.section-title { font-size: 22px; margin: 0 0 20px; color: var(--blue-dark); }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.section-head .section-title { margin: 0; }
.link-more { color: var(--blue); font-size: 14px; }

.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 8px 16px;
  color: var(--text); font-size: 14px;
}
.chip em { font-style: normal; background: var(--blue); color: #fff; border-radius: 10px; padding: 0 6px; margin-left: 6px; font-size: 12px; }
.chip:hover { border-color: var(--blue); color: var(--blue); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.product-card { overflow: hidden; display: flex; flex-direction: column; }
.product-ph { display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, #e8f0fb, #d4e2f4); color: var(--blue); position: relative; min-height: 150px; }
.product-ph span { font-size: 54px; font-weight: 700; opacity: 0.75; }
.product-ph img.product-photo { width: 100%; height: 100%; min-height: 150px; object-fit: cover; display: block; }
.product-ph img.product-photo + .tag { position: absolute; }
.product-ph.large { min-height: 260px; }
.product-ph.large img.detail-img, img.detail-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-ph .tag {
  position: absolute; left: 10px; top: 10px; background: rgba(255,255,255,0.9); color: var(--blue);
  font-size: 12px; font-style: normal; padding: 2px 9px; border-radius: 12px;
}
.product-ph.large { min-height: 260px; }
.product-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-name { color: var(--text); font-weight: 600; font-size: 16px; }
.product-sku { color: var(--muted); font-size: 12px; margin: 0; }
.product-summary { color: var(--muted); font-size: 13px; margin: 2px 0 8px; flex: 1; }
.product-card-bottom { display: flex; justify-content: space-between; align-items: center; }
.price { color: #d6452a; font-weight: 700; font-size: 20px; }
.price i { font-style: normal; font-size: 13px; color: var(--muted); font-weight: 400; }
.price.inquiry { color: var(--blue); font-size: 18px; }

.btn {
  display: inline-block; border: 1px solid var(--line); background: #fff; color: var(--text);
  border-radius: 6px; padding: 9px 16px; font-size: 14px; cursor: pointer; text-align: center;
}
.btn:hover { border-color: var(--blue); color: var(--blue); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-lg { padding: 12px 24px; font-size: 16px; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-block { display: block; width: 100%; margin-bottom: 8px; }
.btn-link { background: none; border: none; color: var(--blue); cursor: pointer; font-size: 13px; padding: 0; }
.btn-link.danger { color: var(--red); }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { padding: 22px; }
.feature h3 { margin: 0 0 8px; color: var(--blue-dark); font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

.cta-strip { background: linear-gradient(135deg, var(--orange), #cf6d2e); color: #fff; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; padding: 26px 20px; gap: 16px; }
.cta-inner h3 { margin: 0 0 4px; font-size: 20px; }
.cta-inner p { margin: 0; opacity: 0.92; }
.cta-inner .btn { border-color: #fff; color: #fff; background: transparent; }
.cta-inner .btn:hover { background: #fff; color: var(--orange); }

.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 24px 0; }
.page-head h1 { margin: 0; font-size: 26px; color: var(--blue-dark); }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.breadcrumb a { color: var(--muted); }

.products-layout { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.sidebar { padding: 18px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 84px; }
.sidebar h3 { margin: 0 0 8px; font-size: 16px; }
.sidebar a { padding: 7px 10px; border-radius: 6px; color: var(--text); display: flex; justify-content: space-between; }
.sidebar a:hover, .sidebar a.active { background: #eef3fa; color: var(--blue); }
.sidebar a em { font-style: normal; color: var(--muted); font-size: 12px; }
.search-form { margin-top: 16px; display: flex; gap: 6px; }
.search-form input { flex: 1; }
.product-list { min-width: 0; }
.empty { padding: 40px; text-align: center; }
.empty p { color: var(--muted); }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.product-detail-media { overflow: hidden; }
.gallery-main { min-height: 260px; display: flex; align-items: center; justify-content: center; background: #fafcff; }
.gallery-main img { max-height: 420px; width: 100%; object-fit: contain; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 10px 12px 0; }
.gallery-thumb { border: 2px solid transparent; border-radius: 6px; padding: 0; cursor: pointer; background: #fff; overflow: hidden; }
.gallery-thumb img { width: 100%; height: 52px; object-fit: cover; display: block; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--blue); }
.media-note { color: var(--muted); font-size: 12px; text-align: center; padding: 6px; margin: 0; }
.product-info { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.product-info h2 { margin: 0 0 6px; color: var(--blue-dark); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 12px 0; }
.tag-list li { background: #eef6ff; color: var(--blue); border-radius: 12px; font-size: 12px; padding: 2px 10px; }
.price-panel { margin-top: 18px; background: #fafcff; border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.price-line { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.per-unit { color: var(--muted); }
.stock { color: var(--green); font-size: 13px; margin-left: 6px; }
.buy-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.buy-form label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.buy-form input { width: 84px; }
.buy-form .qty-hint { font-size: 12px; color: #8a99ad; }
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.spec-table th { width: 180px; background: #f8fafc; color: var(--muted); font-weight: 500; }
.paragraph { margin: 0 0 12px; }
.product-spec-section .section-title { margin-top: 20px; }

.cart-layout, .checkout-layout, .contact-layout, .admin-detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.contact-layout, .admin-detail-grid { grid-template-columns: 1fr 1fr; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; }
.data-table th, .data-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; vertical-align: top; }
.data-table th { background: #f8fafc; color: var(--muted); font-weight: 500; white-space: nowrap; }
.cart-product-name { display: block; font-weight: 600; color: var(--text); }
.qty-input { width: 78px; }
.order-summary { padding: 20px; }
.order-summary h3 { margin: 0 0 12px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.summary-row.total { border-bottom: none; font-weight: 700; font-size: 16px; color: var(--blue-dark); margin: 8px 0; }

.form-card { padding: 22px; }
.form-card h2 { margin: 0 0 14px; font-size: 18px; color: var(--blue-dark); }
.form-card h2 + .form-grid, .form-card h2 + .pay-option, .form-card h2 + p { margin-top: 4px; }
.captcha-box { margin: 8px 0 12px; }
.captcha-line { display: flex; align-items: center; gap: 10px; }
.captcha-line input { max-width: 190px; }
.captcha-question {
  flex: 0 0 auto; min-width: 96px; font-weight: 700; font-size: 17px;
  color: var(--blue-dark); white-space: nowrap;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; color: var(--muted); }
input, select, textarea {
  border: 1px solid var(--line); border-radius: 6px; padding: 9px 11px; font-size: 14px;
  font-family: inherit; color: var(--text); background: #fff; width: 100%;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); }
.pay-option {
  flex-direction: row; align-items: flex-start; gap: 10px; border: 1px solid var(--line);
  border-radius: 8px; padding: 12px; margin-bottom: 10px; cursor: pointer;
}
.pay-option input { width: auto; margin-top: 3px; }
.pay-label { display: flex; flex-direction: column; }
.pay-option.disabled { opacity: 0.55; cursor: not-allowed; }
.alert { background: #fff1f0; border: 1px solid #f5c6c0; color: #a03329; border-radius: 6px; padding: 10px 14px; margin-bottom: 16px; font-size: 14px; }
.alert.success { background: #eef9f1; border-color: #bfe6cc; color: #17603a; }

.success-card { padding: 36px; text-align: center; }
.success-card h1 { margin: 0 0 10px; color: var(--blue-dark); }
.success-no { font-size: 16px; }
.success-card .price { font-size: 24px; }
.quote-wait { color: var(--orange); font-size: 18px; font-weight: 700; }
.bank-box { text-align: left; background: #f8fafc; border: 1px dashed var(--line); border-radius: 8px; padding: 16px 18px; margin: 18px 0; }
.bank-box h3 { margin: 0 0 8px; font-size: 15px; color: var(--blue-dark); }
.bank-box p { margin: 4px 0; }
.success-actions { display: flex; gap: 12px; justify-content: center; margin-top: 14px; }

.about-card { padding: 24px; margin-bottom: 18px; }
.plain-list { padding-left: 20px; color: #3c4652; }
.plain-list li { margin: 4px 0; }

.contact-info { padding: 22px; }
.contact-info p { margin: 7px 0; }
.qr-placeholder {
  border: 1px dashed var(--line); border-radius: 8px; padding: 20px; text-align: center;
  color: var(--muted); background: #fafcff; margin-top: 16px; display: flex; flex-direction: column;
}
.qr-placeholder span { font-size: 15px; }

.site-footer { background: #13243a; color: #b9c9dc; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.2fr 1fr; gap: 26px; padding: 32px 20px; }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: 15px; }
.site-footer p { margin: 5px 0; font-size: 13px; }
.footer-bottom { border-top: 1px solid #233a56; }
.footer-bottom .container { display: flex; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; font-size: 12px; }
.footer-bottom a { color: #9ec3ee; }
.footer-bottom .footer-bottom-left { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.footer-bottom .footer-icp { white-space: nowrap; }
.login-note { text-align: center; font-size: 12px; color: #6b7c93; margin: 14px 0 0; }
.login-note a { color: #6b7c93; }

/* 内容编辑器 */
.brand-logo { width: 42px; height: 42px; object-fit: contain; flex: 0 0 auto; }
.hero.has-bg { position: relative; background-size: cover; background-position: center; }
.hero.has-bg::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(14, 63, 125, 0.88), rgba(26, 95, 180, 0.72));
}
.hero.has-bg .hero-inner { position: relative; z-index: 1; }
.editor-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.editor-toolbar h2 { margin: 0; color: var(--blue-dark); }
.editor-toolbar p { margin: 4px 0 0; }
.editor-actions { display: flex; gap: 8px; }
.editor-status { min-height: 20px; font-size: 14px; margin-bottom: 8px; }
.editor-status.ok { color: var(--green); }
.editor-status.error { color: var(--red); }
.editor-card { padding: 8px 18px 18px; }
.editor-intro { margin: 10px 0; }
.editor-section { border: 1px solid var(--line); border-radius: 8px; margin-top: 10px; background: #fafcff; }
.editor-section-title { cursor: pointer; padding: 11px 14px; font-weight: 600; color: var(--blue-dark); background: #f2f6fc; border-radius: 8px; list-style: none; }
.editor-section-title::-webkit-details-marker { display: none; }
.editor-section-title::before { content: "▸ "; }
.editor-section[open] > .editor-section-title::before { content: "▾ "; }
.editor-section-body { padding: 12px 14px 16px; }
.editor-field { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; }
.field-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.editor-field > textarea { min-height: 64px; }
.editor-array { margin: 12px 0; }
.editor-array > textarea { margin-top: 5px; }
.editor-object-list { display: flex; flex-direction: column; gap: 10px; margin: 8px 0; }
.editor-object-item { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fff; }
.editor-object-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; margin-bottom: 4px; }
.editor-object-head strong { font-size: 14px; color: var(--blue-dark); }
.editor-array > .btn, .editor-object-head .btn { padding: 3px 8px; }
.editor-field.image .editor-image-preview { border: 1px dashed var(--line); border-radius: 6px; padding: 8px; background: #fff; min-height: 70px; display: flex; align-items: center; }
.editor-field.image .editor-image-preview img { max-height: 120px; max-width: 100%; border-radius: 4px; }
.editor-field.image input[type="file"] { padding: 5px; }

/* 图片库 */
.upload-card { padding: 18px 20px; margin-bottom: 18px; }
.upload-card h2 { margin: 0 0 10px; font-size: 17px; color: var(--blue-dark); }
.upload-card form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.upload-card input[type="file"] { max-width: 480px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.media-item { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fafcff; }
.media-thumb { width: 100%; height: 120px; object-fit: cover; display: block; cursor: pointer; }
.media-meta { padding: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: space-between; }
.media-meta .muted { flex-basis: 100%; }

/* 产品编辑 */
.narrow-edit { max-width: 900px; }
.product-image-edit { display: grid; grid-template-columns: 220px 1fr; gap: 16px; }
.preview-box { border: 1px dashed var(--line); border-radius: 8px; background: #fafcff; min-height: 150px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.preview-box img { max-width: 100%; max-height: 220px; object-fit: contain; }
.no-image { color: var(--muted); }
.upload-fields { display: flex; flex-direction: column; gap: 10px; }
.check-row { display: flex; gap: 20px; margin-top: 6px; }
.check-inline { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; }
.check-inline input[type="checkbox"] { width: auto; }
.thumb-img { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; display: block; }
.thumb-empty { color: var(--muted); font-size: 12px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.row-actions form { display: inline; margin: 0; }
.btn-danger { color: var(--red); border-color: #efd0cc; }
.btn-danger:hover { background: #fdecea; color: var(--red); border-color: var(--red); }
.form-actions { display: flex; gap: 10px; margin-top: 18px; }
.about-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.about-photos img { border-radius: 8px; border: 1px solid var(--line); width: 100%; height: 180px; object-fit: cover; }
.qr-img { max-width: 220px; border: 1px solid var(--line); border-radius: 8px; }
.qr-block { margin-top: 14px; }
.account-box { margin-bottom: 16px; }
.account-box h2 { margin-top: 0; }
.account-box.logged p { margin: 4px 0; }
.account-login-row { display: flex; gap: 10px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.account-login-row input { max-width: 280px; }
.account-login-row .btn { flex: 0 0 auto; }
.error-text { color: var(--red); }
.account-credential { background: #eef9f1; border-color: #bfe6cc; }
.account-credential strong { color: var(--blue-dark); }
.password-text { font-size: 20px; letter-spacing: 2px; color: #a33a00; }
.login-customer-card { max-width: 460px; margin: 0 auto; padding: 28px; }
.login-customer-card h1 { margin: 0 0 8px; color: var(--blue-dark); }
.login-customer-card form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.login-extra { border-top: 1px dashed var(--line); margin-top: 18px; padding-top: 12px; }
.login-extra p { margin: 4px 0; }
.pay-status-box { background: #f8fafc; border: 1px dashed var(--line); border-radius: 8px; padding: 14px 16px; margin-bottom: 12px; }
.pay-status-box p { margin: 5px 0; }
.account-order-layout .checkout-main { min-width: 0; }
.quick-add-wrap { max-width: 860px; }
.quick-add-card { padding: 26px; }
.quick-add-card h1 { margin: 0 0 6px; color: var(--blue-dark); font-size: 22px; }
.qa-success { margin: 14px 0; }
.qa-section { border-top: 1px solid var(--line); padding: 18px 0 8px; margin-top: 14px; }
.qa-section h2 { margin: 0 0 12px; font-size: 17px; color: var(--blue-dark); }
.qa-dropzone {
  border: 2px dashed #b9c9dd; border-radius: 10px; background: #fafcff; min-height: 180px;
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 14px;
  transition: border-color .15s, background .15s;
}
.qa-dropzone.dragging { border-color: var(--blue); background: #eef5ff; }
.qa-drop-hint { text-align: center; color: var(--muted); pointer-events: none; }
.qa-drop-hint strong { display: block; font-size: 17px; color: var(--blue); margin-bottom: 6px; }
.qa-previews { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; width: 100%; align-items: stretch; }
.qa-preview { position: relative; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.qa-preview img { width: 100%; height: 88px; object-fit: cover; display: block; }
.qa-index {
  position: absolute; left: 4px; top: 4px; background: rgba(14,63,125,.8); color: #fff;
  border-radius: 10px; font-size: 11px; padding: 0 6px;
}
.qa-remove {
  position: absolute; right: 4px; top: 4px; border: none; border-radius: 50%;
  width: 20px; height: 20px; background: rgba(192,57,43,.9); color: #fff; cursor: pointer; line-height: 1;
}
.qa-desc { position: relative; }
.qa-desc textarea { min-height: 150px; }
.qa-count { position: absolute; right: 10px; bottom: 9px; font-size: 12px; color: var(--muted); background: rgba(255,255,255,.85); padding: 0 4px; }
#qaError { color: var(--red); font-weight: 600; min-height: 20px; margin: 10px 0 0; }

/* 后台 */
.admin-bar { background: var(--blue-dark); color: #fff; }
.admin-nav { display: flex; justify-content: space-between; align-items: center; min-height: 50px; gap: 16px; }
.admin-nav nav { display: flex; gap: 4px; }
.admin-nav a { color: #cfe0f5; padding: 6px 11px; border-radius: 5px; font-size: 14px; }
.admin-nav a.active, .admin-nav a:hover { background: rgba(255,255,255,0.14); color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 22px; }
.stat { text-align: center; padding: 22px; }
.stat strong { display: block; font-size: 30px; color: var(--blue-dark); }
.stat span { color: var(--muted); font-size: 13px; }
.dashboard-quick { margin: 0 0 18px; }
.table-card { padding: 20px; margin-bottom: 18px; }
.table-card h2 { margin: 0 0 14px; font-size: 18px; color: var(--blue-dark); }
.status { border-radius: 12px; padding: 2px 10px; font-size: 12px; background: #eef3fa; color: var(--muted); white-space: nowrap; }
.status.awaiting_payment { background: #fff3e0; color: #b26a00; }
.status.confirmed, .status.completed { background: #e5f6ec; color: #17603a; }
.status.shipped { background: #e3f0ff; color: #15549f; }
.status.cancelled { background: #fdecea; color: #a03329; }
.kv-table { width: 100%; border-collapse: collapse; }
.kv-table th, .kv-table td { text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv-table th { width: 110px; color: var(--muted); font-weight: 500; }
.summary-box { background: #f8fafc; border-radius: 8px; padding: 12px 16px; margin: 12px 0; }
.summary-box p { margin: 3px 0; }
.summary-box .strong { font-weight: 700; color: var(--blue-dark); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { border-left: 2px solid var(--line); padding: 0 0 14px 14px; margin-left: 4px; }
.timeline li:last-child { border-color: transparent; }
.timeline p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.inquiry-item { border-bottom: 1px solid var(--line); padding: 14px 0; }
.inquiry-item:last-child { border-bottom: none; }
.inquiry-head { display: flex; gap: 10px; align-items: center; }
.inquiry-message { background: #f8fafc; border-radius: 6px; padding: 8px 12px; }

.login-wrap { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { width: 360px; padding: 28px; }
.login-card h1 { margin: 0 0 6px; color: var(--blue-dark); font-size: 22px; }
.login-card .btn { margin-top: 8px; }
.back-home { display: inline-block; margin-top: 14px; text-align: center; width: 100%; font-size: 13px; color: var(--muted); }

@media (max-width: 900px) {
  .product-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .products-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .product-detail, .cart-layout, .checkout-layout, .contact-layout, .admin-detail-grid { grid-template-columns: 1fr; }
  .footer-grid, .stat-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; padding: 12px 0; }
  .hero h1 { font-size: 26px; }
  .form-grid { grid-template-columns: 1fr; }
  .admin-nav { flex-direction: column; padding: 10px 0; }
  .topbar-inner { flex-direction: column; }
  .product-image-edit { grid-template-columns: 1fr; }
  .account-login-row input { max-width: 100%; }
  .qa-previews { grid-template-columns: repeat(3, 1fr); }
  .footer-bottom .container { flex-direction: column; gap: 6px; }
  .footer-bottom .footer-bottom-left { flex-direction: column; align-items: flex-start; gap: 4px; }
}
