:root {
  --ink: #1b2530;
  --muted: #72808a;
  --soft: #f5f7f8;
  --card: rgba(255,255,255,.78);
  --line: #dbe1e3;
  --teal: #197c7d;
  --teal-dark: #145c65;
  --orange: #ef795c;
  --violet: #7772ba;
  --font: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; color: var(--ink); background: #eaf0f1; font-family: var(--font); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { border: 0; cursor: pointer; }
.background-glow { position: fixed; z-index: -1; inset: 0; pointer-events: none; background: radial-gradient(circle at 20% 15%, rgba(255,255,255,.86), transparent 28%), radial-gradient(circle at 90% 65%, rgba(221,230,255,.72), transparent 27%), linear-gradient(135deg, #f3f6f3 0%, #e6eeee 48%, #f0edf6 100%); }
.background-glow::after { position: absolute; content: ""; inset: 0; opacity: .22; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 22px 22px; mix-blend-mode: soft-light; }
.shop-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgba(219,225,227,.82); background: rgba(247,249,249,.87); backdrop-filter: blur(16px); }
.header-inner { display: flex; align-items: center; width: min(1260px, calc(100% - 56px)); height: 78px; margin: 0 auto; }
.shop-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.shop-brand > span:last-child { display: flex; flex-direction: column; line-height: 1; }
.shop-brand strong { font-size: 18px; letter-spacing: .08em; }
.shop-brand small { margin-top: 5px; color: var(--teal); font-size: 8px; letter-spacing: .24em; }
.logo-orbit { position: relative; display: grid; place-items: center; width: 38px; height: 38px; overflow: hidden; border-radius: 50%; background: var(--ink); }
.logo-orbit::before, .logo-orbit::after, .logo-orbit span { position: absolute; content: ""; border: 1px solid #a8efdf; border-radius: 50%; }
.logo-orbit::before { width: 25px; height: 11px; transform: rotate(45deg); }
.logo-orbit::after { width: 11px; height: 25px; transform: rotate(45deg); }
.logo-orbit span { width: 6px; height: 6px; border: 0; background: #d8ff92; }
.primary-nav { display: flex; align-items: center; gap: 30px; margin-left: 85px; }
.primary-nav a, .primary-nav button, .mobile-nav a, .mobile-nav button { position: relative; color: #66747b; background: transparent; font-size: 13px; }
.primary-nav a.active, .primary-nav a:hover, .primary-nav button:hover { color: var(--ink); }
.primary-nav a.active::after { position: absolute; content: ""; right: 0; bottom: -10px; left: 0; height: 2px; background: var(--orange); }
.cart-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 4px; padding: 0 5px; border-radius: 10px; color: white; background: var(--teal); font-size: 10px; font-weight: 500; }
.account-actions { display: flex; align-items: center; gap: 17px; margin-left: auto; }
.login-button, .register-button { padding: 9px 0; color: var(--ink); background: transparent; font-size: 13px; }
.register-button { padding: 11px 19px; border: 1px solid var(--ink); border-radius: 11px; font-weight: 700; }
.register-button:hover, .buy-button:hover { color: white; background: var(--teal-dark); }
.mobile-nav-toggle { display: none; margin-left: auto; padding: 8px; background: transparent; }
.mobile-nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--ink); }
.mobile-nav { display: none; }
.shop-container { width: min(1260px, calc(100% - 56px)); margin: 0 auto; padding: 26px 0 76px; }
.notice-card { display: flex; gap: 20px; margin-bottom: 24px; padding: 26px 30px; border: 1px solid rgba(255,255,255,.8); border-radius: 14px; background: rgba(255,255,255,.57); box-shadow: 0 8px 30px rgba(75,95,102,.05); }
.notice-icon { display: grid; flex: 0 0 38px; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: white; background: linear-gradient(140deg, var(--violet), #a0a8ed); font-size: 20px; }
.notice-card h1 { margin: 1px 0 13px; font-size: 18px; letter-spacing: -.02em; }
.notice-card h1 span { color: var(--orange); }
.notice-card p { max-width: 990px; margin: 0 0 9px; color: #627179; font-size: 12px; line-height: 1.8; }
.notice-card p strong { color: var(--ink); }
.notice-links { display: flex; gap: 20px; margin-top: 12px; font-size: 11px; font-weight: 700; }
.notice-links a, .notice-links button { padding: 0; color: var(--teal); background: transparent; }
.notice-links a:hover, .notice-links button:hover { color: var(--orange); }
.shop-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: start; }
.category-sidebar, .product-area { border: 1px solid rgba(255,255,255,.9); border-radius: 14px; background: var(--card); box-shadow: 0 10px 35px rgba(75,95,102,.05); }
.category-sidebar { padding: 22px 13px 14px; }
.sidebar-heading { display: flex; align-items: baseline; justify-content: space-between; padding: 0 11px 16px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 700; }
.sidebar-heading small, .section-kicker { color: var(--teal); font: 500 9px/1 var(--font); letter-spacing: .15em; }
.category-menu { display: flex; flex-direction: column; gap: 3px; padding-top: 12px; }
.category-link { display: flex; align-items: center; gap: 9px; padding: 12px 10px; border-radius: 8px; color: #65747a; background: transparent; text-align: left; font-size: 12px; transition: .2s ease; }
.category-link:hover { color: var(--ink); background: #eef5f2; }
.category-link.active { color: white; background: var(--teal); box-shadow: 0 7px 16px rgba(25,124,125,.18); }
.category-symbol { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: var(--teal); background: #dbece9; font-size: 14px; }
.category-link.active .category-symbol { color: var(--teal-dark); background: #dff5db; }
.category-link b { margin-left: auto; color: #a2adb1; font-size: 10px; font-weight: 500; }
.category-link.active b { color: rgba(255,255,255,.75); }
.sidebar-help { display: flex; flex-direction: column; align-items: flex-start; margin: 40px 5px 0; padding: 20px 13px; border-radius: 11px; background: #eaf0ff; }
.help-orb { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: white; background: var(--violet); font: 700 14px Georgia, serif; }
.sidebar-help p { margin: 11px 0 13px; color: #6f7796; font-size: 11px; line-height: 1.8; }
.sidebar-help strong { color: #515986; }
.sidebar-help button { padding: 0; color: var(--violet); background: transparent; font-size: 11px; font-weight: 700; }
.product-area { min-width: 0; padding: 25px 24px 17px; }
.product-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; padding-bottom: 22px; }
.product-toolbar h2 { margin: 7px 0 0; font-size: 25px; letter-spacing: -.05em; }
.product-toolbar h2 span { color: var(--muted); font-size: 12px; font-weight: 500; vertical-align: middle; }
.toolbar-actions { display: flex; gap: 10px; }
.search-box { display: flex; align-items: center; gap: 6px; min-width: 165px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: rgba(255,255,255,.75); }
.search-box span { font-size: 20px; transform: rotate(-20deg); }
.search-box input { width: 100%; min-width: 0; padding: 9px 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }
.search-box input::placeholder { color: #a7b1b4; }
.toolbar-actions select { padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: var(--muted); background: rgba(255,255,255,.75); font-size: 11px; }
.product-table-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.62); }
.product-table-head, .product-row { display: grid; grid-template-columns: minmax(260px, 1fr) 84px 84px 72px; align-items: center; gap: 14px; }
.product-table-head { padding: 12px 15px; border-bottom: 1px solid var(--line); color: #879398; background: rgba(239,244,244,.72); font-size: 10px; }
.product-table-head span:nth-child(n+2) { text-align: center; }
.product-row { min-height: 74px; padding: 11px 15px; border-bottom: 1px solid #e8edef; transition: background .2s ease; }
.product-row:last-child { border-bottom: 0; }
.product-row:hover { background: rgba(225,242,237,.65); }
.product-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.product-icon { display: grid; flex: 0 0 40px; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: white; background: var(--icon, var(--teal)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); font-size: 20px; }
.product-copy { min-width: 0; }
.product-name { display: block; overflow: hidden; margin-bottom: 4px; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 700; }
.product-name:hover { color: var(--teal); }
.product-copy small { color: var(--muted); font-size: 10px; }
.product-price { color: var(--orange); font-size: 15px; font-weight: 800; text-align: center; }
.product-stock { color: #6d7d80; font-size: 11px; text-align: center; }
.buy-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 35px; padding: 0 12px; border-radius: 8px; color: white; background: var(--teal); font-size: 11px; font-weight: 700; transition: .2s; }
.buy-button span { font-size: 16px; line-height: 0; }
.product-row > .buy-button { justify-self: end; }
.empty-state { padding: 60px 20px; color: var(--muted); text-align: center; font-size: 12px; }
.product-footer { display: flex; justify-content: space-between; padding-top: 17px; color: #8b989d; font-size: 10px; }
.product-footer b { color: var(--ink); }
.product-footer button { padding: 0; color: var(--teal); background: transparent; font-size: 10px; font-weight: 700; }
.product-footer button span { margin-left: 5px; font-size: 14px; }
.shop-footer { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; width: min(1260px, calc(100% - 56px)); margin: 0 auto; padding: 30px 0 35px; border-top: 1px solid rgba(203,213,216,.8); }
.shop-footer > div:first-child p { margin: 16px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.footer-links { display: flex; justify-content: center; gap: 22px; padding-bottom: 5px; }
.footer-links a, .footer-links button { padding: 0; color: var(--muted); background: transparent; font-size: 11px; }
.footer-links a:hover, .footer-links button:hover { color: var(--teal); }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; color: #99a5a9; font-size: 9px; }
.modal-layer { position: fixed; z-index: 40; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(23,38,47,.48); opacity: 0; visibility: hidden; transition: .22s ease; }
.modal-layer.open { opacity: 1; visibility: visible; }
.product-modal, .simple-modal { position: relative; width: min(510px, 100%); padding: 34px; border: 1px solid rgba(255,255,255,.9); border-radius: 16px; background: #f8faf9; box-shadow: 0 22px 70px rgba(22,38,45,.18); transform: translateY(15px); transition: .22s ease; }
.modal-layer.open .product-modal, .modal-layer.open .simple-modal { transform: translateY(0); }
.modal-close { position: absolute; top: 17px; right: 19px; width: 26px; height: 26px; border-radius: 50%; color: var(--muted); background: #e9eff0; font-size: 20px; line-height: 1; }
.modal-close:hover { color: white; background: var(--teal); }
.modal-product-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 23px; border-radius: 17px; color: white; background: var(--teal); font-size: 28px; }
.product-modal h2, .simple-modal h2 { margin: 10px 0 15px; font-size: 27px; letter-spacing: -.05em; }
.modal-description, .simple-modal > p:not(.section-kicker) { color: var(--muted); font-size: 12px; line-height: 1.9; }
.modal-info { display: flex; gap: 10px; margin: 23px 0; }
.modal-info span { padding: 6px 9px; border-radius: 5px; color: var(--teal-dark); background: #e3f0eb; font-size: 10px; }
.modal-purchase { display: flex; align-items: center; justify-content: space-between; padding-top: 23px; border-top: 1px solid var(--line); }
.modal-purchase strong { color: var(--orange); font-size: 22px; }
.simple-modal form { display: flex; flex-direction: column; gap: 11px; margin-top: 25px; }
.simple-modal input { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: var(--ink); background: white; font-size: 12px; }
.simple-modal input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(25,124,125,.1); }
.form-feedback { min-height: 18px; margin: 2px 0 0; color: var(--teal); font-size: 11px; }
.cart-drawer { position: fixed; z-index: 45; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(420px, 100%); padding: 30px 26px; background: #f8faf9; box-shadow: -18px 0 50px rgba(23,38,47,.16); transform: translateX(100%); transition: .28s ease; }
.cart-drawer.open { transform: translateX(0); }
.drawer-header { display: flex; justify-content: space-between; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.drawer-header h2 { margin: 9px 0 0; font-size: 25px; }
.drawer-header h2 .cart-count { vertical-align: middle; }
.cart-items { flex: 1; overflow: auto; padding: 14px 0; }
.cart-empty { padding: 80px 0; color: var(--muted); text-align: center; font-size: 12px; line-height: 2.1; }
.cart-empty a { color: var(--teal); font-weight: 700; }
.cart-item { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 11px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item .product-icon { width: 40px; height: 40px; }
.cart-item-info strong { display: block; overflow: hidden; margin-bottom: 5px; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.cart-item-info small { color: var(--muted); font-size: 10px; }
.cart-item-price { color: var(--orange); font-size: 12px; font-weight: 700; }
.remove-cart-item { margin-top: 5px; padding: 0; color: var(--muted); background: transparent; font-size: 10px; }
.cart-summary { padding-top: 18px; border-top: 1px solid var(--line); }
.cart-summary > div { display: flex; justify-content: space-between; margin-bottom: 16px; color: var(--muted); font-size: 11px; }
.cart-summary strong { color: var(--ink); font-size: 18px; }
.cart-summary .buy-button { width: 100%; min-height: 44px; }
.cart-summary p { margin: 10px 0 0; color: #9ba5a8; font-size: 9px; text-align: center; }
.toast { position: fixed; z-index: 60; right: 25px; bottom: 25px; padding: 13px 17px; border-radius: 8px; color: white; background: var(--ink); box-shadow: 0 10px 25px rgba(23,38,47,.16); opacity: 0; visibility: hidden; transform: translateY(12px); transition: .22s ease; font-size: 11px; }
.toast.show { opacity: 1; visibility: visible; transform: translateY(0); }

@media (max-width: 900px) {
  .header-inner, .shop-container, .shop-footer { width: min(100% - 36px, 680px); }
  .primary-nav, .account-actions { display: none; }
  .mobile-nav-toggle { display: block; }
  .mobile-nav { display: flex; flex-direction: column; gap: 17px; width: min(100% - 36px, 680px); margin: 0 auto; padding: 0 0 22px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s; }
  .mobile-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .mobile-nav a, .mobile-nav button { text-align: left; }
  .mobile-nav > div { display: flex; gap: 18px; }
  .mobile-nav .register-button { padding: 8px 16px; }
  .shop-layout { grid-template-columns: 1fr; }
  .category-sidebar { display: flex; align-items: center; gap: 15px; overflow: auto; padding: 13px; }
  .sidebar-heading, .sidebar-help { display: none; }
  .category-menu { flex-direction: row; padding: 0; }
  .category-link { flex: 0 0 auto; padding: 9px 11px; }
  .category-link b { display: none; }
}

@media (max-width: 620px) {
  .shop-container { padding-top: 15px; }
  .notice-card { gap: 12px; padding: 18px; }
  .notice-icon { flex-basis: 30px; width: 30px; height: 30px; border-radius: 9px; font-size: 15px; }
  .notice-card h1 { font-size: 15px; line-height: 1.5; }
  .notice-card p { font-size: 11px; }
  .notice-links { flex-wrap: wrap; gap: 10px 17px; }
  .product-area { padding: 17px 12px 14px; }
  .product-toolbar { display: block; padding-bottom: 15px; }
  .toolbar-actions { margin-top: 15px; }
  .search-box { flex: 1; }
  .product-table-head { display: none; }
  .product-row { grid-template-columns: 1fr auto; gap: 8px 11px; padding: 14px 10px; }
  .product-info { grid-column: 1 / -1; }
  .product-price { grid-column: 1; text-align: left; }
  .product-stock { grid-column: 1; text-align: left; }
  .product-row > .buy-button { grid-column: 2; grid-row: 2 / span 2; }
  .product-name { white-space: normal; line-height: 1.55; }
  .shop-footer { display: block; }
  .footer-links { justify-content: flex-start; flex-wrap: wrap; margin: 25px 0; }
  .footer-meta { align-items: flex-start; gap: 6px; }
  .product-modal, .simple-modal { padding: 27px 21px; }
  .modal-purchase { align-items: flex-start; flex-direction: column; gap: 15px; }
  .modal-purchase .buy-button { width: 100%; }
}
