:root {
  --brand-blue: #216eb6;
  --brand-teal: #4fb8b4;
  --ink: #111827;
  --text: #3b4656;
  --muted: #718096;
  --line: #e5edf4;
  --soft: #f5f8fb;
  --surface: #ffffff;
  --focus: #184f86;
  --max: 1180px;
  --radius: 8px;
  --shadow: 0 18px 48px rgba(24, 55, 91, .10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--surface); line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px); background: rgba(255,255,255,.88); border-bottom: 1px solid rgba(229,237,244,.9); }
.nav { max-width: var(--max); margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; gap: 28px; }
.brand img { width: 178px; height: auto; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; font-size: 15px; color: #253144; }
.nav-links a[aria-current="page"] { color: var(--brand-blue); font-weight: 650; }
.lang { display: inline-flex; gap: 8px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.lang a { padding: 5px 10px; border-radius: 999px; font-size: 13px; color: var(--muted); }
.lang a.active { background: var(--ink); color: #fff; }
.menu-btn { display: none; margin-left: auto; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 9px 11px; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px 0; }
.section { padding: 86px 24px; }
.section.alt { background: var(--soft); }
.container { max-width: var(--max); margin: 0 auto; }
.eyebrow { color: var(--brand-blue); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
h1, h2, h3 { color: var(--ink); line-height: 1.16; margin: 0; letter-spacing: 0; }
h1 { font-size: clamp(40px, 7vw, 76px); max-width: 820px; }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: 21px; }
p { margin: 0; }
.lead { font-size: 19px; max-width: 720px; color: #4a5568; margin-top: 22px; }
.hero { min-height: 760px; padding-top: 92px; display: grid; align-items: center; background: radial-gradient(circle at 86% 34%, rgba(79,184,180,.14), transparent 30%), linear-gradient(180deg,#fff 0%,#f8fbfd 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(320px,.95fr); gap: 64px; align-items: center; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.btn { border-radius: 999px; padding: 12px 20px; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; font-weight: 650; border: 1px solid var(--line); background: #fff; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn:hover, .btn:focus-visible { transform: translateY(-1px); box-shadow: var(--shadow); outline: none; border-color: #bfd0df; }
.hero-visual { min-height: 470px; border-radius: 8px; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 34px; position: relative; overflow: hidden; }
.hero-visual:before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(33,110,182,.10), transparent 42%), radial-gradient(circle at 68% 26%, rgba(79,184,180,.24), transparent 19%); }
.hero-photo { width: min(100%, 460px); min-height: 0; aspect-ratio: 1280 / 1461; justify-self: center; padding: 0; display: grid; place-items: center; background: #f1f1f1; }
.hero-photo:before { display: none; }
.hero-photo img { width: 100%; height: 100%; object-fit: contain; }
.product-shape { position: relative; width: 190px; height: 320px; border-radius: 32px 32px 18px 18px; margin: 54px auto 0; background: linear-gradient(180deg,#fff,#eaf4fb); border: 1px solid #d8e6ef; box-shadow: 0 26px 60px rgba(33,110,182,.16); }
.product-shape:before { content: ""; position: absolute; left: 49px; top: -42px; width: 92px; height: 56px; border-radius: 18px 18px 8px 8px; background: #dceaf3; border: 1px solid #cadde9; }
.product-label { position: absolute; left: 22px; right: 22px; top: 100px; padding: 22px 12px; text-align: center; border-top: 1px solid #dbe8f0; border-bottom: 1px solid #dbe8f0; color: var(--ink); font-weight: 700; }
.care-line { position: absolute; left: 34px; right: 34px; bottom: 30px; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.care-line i { height: 8px; border-radius: 999px; background: var(--brand-blue); opacity: .22; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 38px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 34px; }
.item, .card, .faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.item:hover, .card:hover { transform: translateY(-2px); border-color: #c9d8e6; box-shadow: 0 14px 30px rgba(24,55,91,.08); }
.icon { width: 42px; height: 42px; border-radius: 50%; background: rgba(33,110,182,.10); display: grid; place-items: center; color: var(--brand-blue); font-weight: 800; margin-bottom: 18px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-head p { max-width: 610px; color: var(--muted); }
.values-head { display: block; }
.values-head h2 { max-width: 980px; font-size: clamp(34px, 3.1vw, 46px); line-height: 1.18; }
.product-card .visual, .article-card .visual { aspect-ratio: 16/10; border-radius: 8px; background: linear-gradient(135deg,#edf7f8,#f8fbfd); border: 1px solid var(--line); margin: -8px -8px 20px; display: grid; place-items: center; color: var(--brand-blue); font-weight: 700; }
.product-card .product-photo { aspect-ratio: auto; min-height: 300px; padding: 14px; overflow: visible; background: #f8fbfd; }
.product-card .product-photo img { width: 100%; height: 100%; object-fit: contain; }
.tag { display: inline-flex; color: var(--brand-blue); background: rgba(33,110,182,.08); padding: 4px 10px; border-radius: 999px; font-size: 13px; margin-bottom: 12px; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(6,1fr); gap: 12px; margin-top: 34px; }
.step { counter-increment: step; padding: 20px 14px; border-top: 2px solid var(--brand-blue); background: #fff; min-height: 112px; }
.step:before { content: "0" counter(step); color: var(--muted); font-size: 13px; }
.notice { margin-top: 26px; border-left: 3px solid var(--brand-blue); padding: 16px 18px; background: #f6fafc; color: #4a5568; }
.page-hero { padding: 82px 24px 46px; background: linear-gradient(180deg,#fff,#f8fbfd); }
.filters, .searchbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 10px; }
.filter, .searchbar input, .form input, .form textarea, .form select { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 12px 14px; font: inherit; color: var(--text); }
.filter.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.searchbar input { min-width: min(100%, 360px); }
.detail { display: grid; grid-template-columns: .9fr 1.1fr; gap: 54px; align-items: start; }
.detail-visual { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(135deg,#f8fbfd,#eaf6f5); display: grid; place-items: center; }
.product-detail-image { overflow: hidden; background: #f8fbfd; }
.product-detail-image img { width: 100%; height: 100%; object-fit: contain; }
.product-gallery { max-width: 900px; }
.product-gallery figure { margin: 0 0 18px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 10px 24px rgba(24,55,91,.06); }
.product-gallery figure img { width: 100%; height: auto; }
.spec-list { display: grid; gap: 14px; margin-top: 28px; }
.spec-list div { border-top: 1px solid var(--line); padding-top: 14px; }
.article-body { max-width: 780px; margin: 0 auto; font-size: 18px; }
.article-body h2 { font-size: 28px; margin: 42px 0 14px; }
.article-body p { margin: 18px 0; }
.legal-container { max-width: 880px; }
.legal-date { margin-top: 20px; color: var(--muted); font-size: 16px; }
.legal-body { font-size: 17px; line-height: 1.9; }
.legal-body h2 { font-size: 26px; margin: 42px 0 14px; }
.legal-body p { margin: 14px 0; }
.legal-body ul { margin: 12px 0 20px; padding-left: 1.4em; }
.legal-body li { margin: 6px 0; }
.faq-list { display: grid; gap: 12px; margin-top: 28px; }
.faq-item button { all: unset; display: flex; justify-content: space-between; gap: 20px; width: 100%; cursor: pointer; font-weight: 700; color: var(--ink); }
.faq-item button:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.faq-item .answer { display: none; margin-top: 14px; color: #4a5568; }
.faq-item.open .answer { display: block; }
.form { display: grid; gap: 16px; max-width: 620px; }
.form label { display: grid; gap: 6px; font-weight: 650; color: var(--ink); }
.form .checkline { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--text); }
.form .checkline input { margin-top: 7px; }
.site-footer { padding: 46px 24px; background: #101722; color: #d6dee8; }
.footer-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 64px; align-items: start; }
.footer-grid h3 { font-size: 20px; margin-bottom: 12px; color: #fff; }
.footer-grid p { margin: 6px 0; }
.site-footer a { color: #d6dee8; display: inline-flex; margin: 0 0 0 22px; }
.footer-links { display: flex; justify-content: flex-end; flex-wrap: wrap; }
.footer-note { grid-column: 1 / -1; max-width: 760px; }
.small { color: var(--muted); font-size: 14px; }
.qr { width: 150px; aspect-ratio: 1; border: 1px dashed #b8c8d6; border-radius: 8px; display: grid; place-items: center; color: #627387; background: #fff; }
.qr-img { width: 172px; max-width: 100%; aspect-ratio: 1; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 8px; box-shadow: 0 10px 24px rgba(24,55,91,.08); }
.about-page { background: #fff; }
.about-hero { padding: 96px 24px 88px; background: linear-gradient(180deg,#fff 0%,#f7fbfd 100%); border-bottom: 1px solid var(--line); }
.about-hero-grid, .about-split { display: grid; grid-template-columns: minmax(0,1fr) minmax(340px,.86fr); gap: 76px; align-items: center; }
.about-hero h1 { max-width: 780px; }
.about-hero .lead { max-width: 680px; }
.about-hero-visual { min-height: 430px; border-radius: 8px; border: 1px solid var(--line); background: linear-gradient(135deg,#ffffff 0%,#eef7f8 100%); box-shadow: var(--shadow); display: grid; place-items: center; padding: 34px; overflow: hidden; }
.care-dashboard { width: min(100%, 330px); min-height: 300px; border: 1px solid #d8e6ef; border-radius: 8px; background: rgba(255,255,255,.86); box-shadow: 0 24px 70px rgba(24,55,91,.12); padding: 34px; display: grid; align-content: center; gap: 14px; position: relative; }
.care-dashboard span { width: 74px; height: 74px; border-radius: 50%; border: 12px solid rgba(33,110,182,.18); border-right-color: var(--brand-teal); display: block; margin-bottom: 10px; }
.care-dashboard strong { color: var(--ink); font-size: 28px; line-height: 1.1; }
.care-dashboard p { color: #536174; font-weight: 650; }
.care-dashboard i { display: block; height: 9px; border-radius: 999px; background: #d7e7f2; }
.care-dashboard i:nth-of-type(1) { width: 78%; }
.care-dashboard i:nth-of-type(2) { width: 56%; }
.care-dashboard i:nth-of-type(3) { width: 68%; }
.about-section { padding: 108px 24px; }
.about-soft { background: #f6f9fb; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-heading { max-width: 760px; margin-bottom: 34px; }
.story-container { max-width: 900px; }
.about-copy { max-width: 760px; margin-top: 28px; display: grid; gap: 18px; font-size: 18px; color: #4a5568; }
.about-quote { margin-top: 36px; padding-left: 22px; border-left: 4px solid var(--brand-teal); color: var(--ink); font-size: clamp(24px, 3vw, 34px); line-height: 1.35; font-weight: 800; }
.philosophy-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.philosophy-card { min-height: 300px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 26px; display: grid; align-content: start; gap: 12px; box-shadow: 0 10px 28px rgba(24,55,91,.05); }
.philosophy-card h3 { font-size: 24px; }
.philosophy-card p { color: #4a5568; }
.philosophy-sub { color: var(--brand-blue) !important; font-size: 13px; text-transform: uppercase; font-weight: 800; letter-spacing: .04em; }
.about-icon { width: 46px; height: 46px; border: 1px solid #cfe0ec; border-radius: 50%; background: #f8fbfd; display: block; position: relative; margin-bottom: 8px; }
.about-icon:before, .about-icon:after { content: ""; position: absolute; border-radius: 999px; background: var(--brand-blue); }
.about-icon.care:before { width: 24px; height: 24px; left: 10px; top: 10px; border: 3px solid var(--brand-teal); background: transparent; }
.about-icon.care:after { width: 15px; height: 3px; left: 24px; top: 26px; transform: rotate(42deg); }
.about-icon.guide:before { width: 23px; height: 3px; left: 11px; top: 14px; box-shadow: 0 8px 0 var(--brand-blue), 0 16px 0 var(--brand-blue); }
.about-icon.guide:after { width: 8px; height: 8px; right: 9px; top: 11px; background: var(--brand-teal); box-shadow: 0 8px 0 var(--brand-teal), 0 16px 0 var(--brand-teal); }
.about-icon.trust:before { width: 22px; height: 22px; left: 12px; top: 12px; background: transparent; border: 3px solid var(--brand-blue); transform: rotate(45deg); border-radius: 6px; }
.about-icon.trust:after { width: 16px; height: 3px; left: 15px; top: 22px; background: var(--brand-teal); transform: rotate(-45deg); }
.about-icon.long:before { width: 25px; height: 25px; left: 10px; top: 10px; background: transparent; border: 3px solid var(--brand-blue); border-radius: 50%; }
.about-icon.long:after { width: 16px; height: 3px; left: 22px; top: 21px; background: var(--brand-teal); transform-origin: left center; transform: rotate(-42deg); }
.quality-split { grid-template-columns: minmax(0,.92fr) minmax(360px,1fr); }
.quality-visual { border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(135deg,#f8fbfd,#eef7f8); min-height: 460px; display: grid; place-items: center; padding: 28px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.quality-visual img { width: 100%; height: auto; max-height: 330px; object-fit: contain; position: relative; z-index: 1; }
.quality-note { position: absolute; left: 28px; right: 28px; bottom: 28px; border: 1px solid rgba(216,230,239,.9); border-radius: 8px; background: rgba(255,255,255,.92); padding: 16px 18px; z-index: 2; }
.quality-note strong { display: block; color: var(--ink); }
.quality-note span { color: var(--muted); font-size: 14px; }
.vision-section { background: linear-gradient(180deg,#f6f9fb 0%,#fff 100%); color: var(--text); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vision-panel { max-width: 960px; }
.vision-panel:before { content: ""; display: block; width: 72px; height: 4px; border-radius: 999px; background: var(--brand-teal); margin-bottom: 28px; }
.vision-panel h2, .vision-panel .manifesto { color: var(--ink); }
.vision-panel > p { max-width: 820px; margin-top: 24px; font-size: 19px; color: #4a5568; }
.manifesto { margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); font-size: clamp(34px, 5vw, 64px); line-height: 1.18; font-weight: 850; letter-spacing: 0; }
.admin-page { background: #f3f6f9; min-height: 760px; }
.admin-page .page-hero { display: none; }
.admin-shell { max-width: none; padding: 0; }
.admin-login { max-width: 440px; margin: 70px auto; display: grid; gap: 18px; padding: 34px; border: 1px solid #dce6ef; border-radius: 10px; background: #fff; box-shadow: 0 24px 70px rgba(15, 23, 42, .12); }
.admin-login:before { content: "Magic Pure 管理后台"; color: var(--ink); font-size: 24px; font-weight: 850; line-height: 1.2; }
.admin-login label { display: grid; gap: 8px; font-weight: 700; color: var(--ink); }
.admin-login input { border: 1px solid #cfdbe6; border-radius: 8px; padding: 12px 14px; font: inherit; color: var(--text); }
.admin-app { min-height: calc(100vh - 140px); display: grid; grid-template-columns: 248px minmax(0, 1fr); background: #f3f6f9; border-top: 1px solid #e3ebf2; }
.admin-sidebar { background: #0f1724; color: #d9e2ec; padding: 24px 18px; display: flex; flex-direction: column; gap: 24px; }
.admin-brand { display: grid; gap: 4px; padding: 8px 8px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-brand strong { color: #fff; font-size: 22px; line-height: 1.1; }
.admin-brand span { color: #8fa1b5; font-size: 13px; }
.admin-nav { display: grid; gap: 8px; }
.admin-nav button { border: 0; width: 100%; border-radius: 8px; padding: 12px 12px; background: transparent; color: #c9d5e2; font: inherit; font-weight: 700; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.admin-nav button:hover, .admin-nav button.active { background: #1b2a3d; color: #fff; }
.admin-nav strong { min-width: 28px; height: 24px; padding: 0 8px; border-radius: 999px; background: rgba(255,255,255,.08); display: inline-grid; place-items: center; font-size: 12px; }
.admin-sidebar-note { margin-top: auto; padding: 14px; border-radius: 8px; background: rgba(255,255,255,.06); display: grid; gap: 4px; }
.admin-sidebar-note span { color: #91a4b9; font-size: 12px; }
.admin-sidebar-note strong { color: #fff; font-size: 14px; }
.admin-main { min-width: 0; padding: 28px; }
.admin-topbar { display: flex; justify-content: space-between; gap: 22px; align-items: flex-start; margin-bottom: 22px; }
.admin-topbar h1 { font-size: 34px; }
.admin-topbar p:not(.eyebrow) { color: #64748b; margin-top: 6px; }
.admin-top-actions, .admin-board-actions, .admin-row-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; }
.admin-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.admin-stats article { background: #fff; border: 1px solid #e1eaf2; border-radius: 10px; padding: 18px; box-shadow: 0 8px 24px rgba(15, 23, 42, .04); }
.admin-stats span { color: #64748b; font-size: 13px; }
.admin-stats strong { display: block; color: var(--ink); font-size: 30px; line-height: 1.1; margin-top: 8px; }
.admin-board { background: #fff; border: 1px solid #e1eaf2; border-radius: 10px; box-shadow: 0 14px 36px rgba(15, 23, 42, .06); overflow: hidden; }
.admin-board-head { padding: 16px; border-bottom: 1px solid #e8eef5; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.admin-searchbox { flex: 1; min-width: 240px; }
.admin-searchbox input { width: 100%; border: 1px solid #d8e3ed; border-radius: 8px; padding: 12px 14px; font: inherit; color: var(--text); background: #f8fafc; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 860px; }
.admin-table th, .admin-table td { padding: 14px 16px; border-bottom: 1px solid #edf2f7; text-align: left; vertical-align: top; font-size: 14px; }
.admin-table th { background: #f8fafc; color: #64748b; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.admin-table td strong { display: block; color: var(--ink); font-size: 15px; }
.admin-table td small { display: block; color: #7b8da3; margin-top: 4px; }
.admin-table-message { max-width: 340px; color: #475569; overflow-wrap: anywhere; }
.admin-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 9px; font-size: 12px; font-weight: 800; background: #eef6ff; color: #216eb6; white-space: nowrap; }
.admin-pill.ok { background: #eaf8f1; color: #21724d; }
.admin-pill.warn { background: #fff6e6; color: #9a5a00; }
.admin-pill.muted { background: #eef2f6; color: #64748b; }
.admin-row-actions button { border: 1px solid #d8e3ed; background: #fff; color: #334155; border-radius: 999px; padding: 7px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.admin-row-actions button:hover { border-color: #b9c9d8; background: #f8fafc; }
.admin-empty { margin: 18px; padding: 34px; border: 1px dashed #bfd0df; border-radius: 8px; background: #f8fbfd; color: var(--muted); text-align: center; }
.admin-toast { position: fixed; right: 24px; bottom: 24px; z-index: 60; margin: 0; padding: 13px 16px; border-radius: 8px; background: #0f1724; color: #fff; box-shadow: 0 18px 48px rgba(15,23,42,.20); }
.admin-drawer[hidden] { display: none; }
.admin-drawer { position: fixed; inset: 0; z-index: 50; display: grid; justify-content: end; }
.admin-drawer-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.34); }
.admin-drawer-panel { position: relative; z-index: 1; width: min(560px, 100vw); height: 100vh; overflow: auto; background: #fff; box-shadow: -20px 0 60px rgba(15,23,42,.22); padding: 24px; display: grid; gap: 16px; align-content: start; }
.admin-drawer-panel header { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid #e8eef5; }
.admin-drawer-panel header { position: sticky; top: -24px; z-index: 3; background: #fff; padding-top: 8px; }
.admin-drawer-panel header h2 { font-size: 28px; }
.admin-drawer-panel header button { border: 1px solid #d8e3ed; border-radius: 999px; background: #fff; padding: 8px 12px; font: inherit; cursor: pointer; }
.admin-drawer-panel label { display: grid; gap: 7px; color: var(--ink); font-weight: 700; }
.admin-drawer-panel input, .admin-drawer-panel textarea, .admin-drawer-panel select { width: 100%; border: 1px solid #d8e3ed; border-radius: 8px; padding: 11px 12px; font: inherit; color: var(--text); background: #fff; }
.admin-drawer-panel textarea { resize: vertical; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-switch { display: flex !important; align-items: center; gap: 10px; padding: 12px; border: 1px solid #e1eaf2; border-radius: 8px; background: #f8fafc; }
.admin-switch input { width: auto; }
.upload-field { display: grid; gap: 10px; padding: 12px; border: 1px solid #e1eaf2; border-radius: 8px; background: #f8fafc; }
.upload-field p { color: #64748b; font-size: 13px; margin: 0; }
.upload-field img { max-height: 140px; width: auto; border: 1px solid #d8e3ed; border-radius: 8px; background: #fff; }
.upload-field textarea { background: #fff; color: #64748b; font-size: 13px; }
.faq-image { display: block; max-width: 420px; width: 100%; height: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.admin-drawer-panel footer { position: sticky; bottom: -24px; margin: 8px -24px -24px; padding: 16px 24px; background: #fff; border-top: 1px solid #e8eef5; }
.btn.danger { color: #b42318; border-color: #f2b8b5; }
@media (max-width: 960px) {
  .hero-grid, .detail, .footer-grid { grid-template-columns: 1fr; }
  .about-hero-grid, .about-split, .quality-split { grid-template-columns: 1fr; gap: 42px; }
  .philosophy-grid { grid-template-columns: repeat(2,1fr); }
  .grid-4, .grid-3 { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(3,1fr); }
  .values-head { grid-template-columns: 1fr; gap: 18px; }
  .footer-links { justify-content: flex-start; }
  .site-footer a { margin: 0 22px 0 0; }
  .nav-links { display: none; position: absolute; top: 72px; left: 16px; right: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
  .nav-links.open { display: grid; }
  .menu-btn { display: block; }
  .admin-app { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; display: grid; gap: 16px; }
  .admin-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .admin-nav button { display: grid; justify-items: center; gap: 6px; text-align: center; }
  .admin-sidebar-note { display: none; }
  .admin-topbar, .admin-board-head { display: grid; }
  .admin-top-actions, .admin-board-actions, .admin-row-actions { justify-content: flex-start; }
  .admin-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .nav { padding: 12px 16px; }
  .brand img { width: 140px; }
  .section { padding: 62px 18px; }
  .about-hero, .about-section { padding: 66px 18px; }
  .about-hero-visual, .quality-visual { min-height: 350px; padding: 18px; }
  .philosophy-grid { grid-template-columns: 1fr; }
  .philosophy-card { min-height: auto; }
  .about-copy { font-size: 17px; }
  .manifesto { font-size: 34px; }
  .hero { min-height: auto; padding-top: 64px; }
  .hero-visual { min-height: 370px; padding: 18px; }
  .grid-4, .grid-3, .steps { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .actions .btn { width: 100%; }
  .admin-main { padding: 18px; }
  .admin-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-stats { grid-template-columns: 1fr; }
  .admin-top-actions .btn, .admin-board-actions .btn { width: 100%; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-drawer-panel { width: 100vw; padding: 20px; }
  h1 { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, html { scroll-behavior: auto !important; transition: none !important; }
}

.admin-body { margin: 0; background: #f3f6f9; }
.admin-body .admin-page { min-height: 100vh; background: #f3f6f9; }
.admin-body .admin-login { width: min(440px, calc(100vw - 32px)); min-height: 100vh; margin: 0 auto; display: grid; align-content: center; gap: 18px; padding: 34px; border: 0; background: transparent; box-shadow: none; position: relative; z-index: 1; }
.admin-body .admin-login:before { content: "Magic Pure 管理后台"; color: var(--ink); font-size: 26px; font-weight: 850; line-height: 1.2; }
.admin-body .admin-login:after { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(520px, calc(100vw - 28px)); height: 440px; transform: translate(-50%, -50%); border: 1px solid #dce6ef; border-radius: 12px; background: #fff; box-shadow: 0 24px 70px rgba(15, 23, 42, .12); }
.admin-inline-form { max-width: 520px; display: grid; gap: 16px; padding: 24px; }
.admin-inline-form label { display: grid; gap: 8px; font-weight: 700; color: var(--ink); }
.admin-inline-form input { border: 1px solid #d8e3ed; border-radius: 8px; padding: 11px 12px; font: inherit; }
.admin-body .admin-login[hidden],
.admin-body .admin-panel[hidden],
.admin-body .admin-drawer[hidden] {
  display: none !important;
}
