:root {
  --blue:#2856ed;
  --ink:#172134;
  --muted:#748094;
  --line:#e6eaf0;
  --surface:#fff;
  --bg:#f5f7fa;
  --radius:20px;
  --shadow:0 18px 65px #132f5b0b;
  font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;
  color:var(--ink);
  background:var(--bg);
  font-synthesis:none;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
}

button,input,select,textarea {
  font:inherit;
}

button,a,input,select,textarea {
  -webkit-tap-highlight-color:transparent;
}

button {
  cursor:pointer;
}

button:disabled {
  cursor:wait;
  opacity:.55;
}

a {
  color:inherit;
  text-decoration:none;
}

button {
  border:0;
  background:none;
  color:inherit;
}

button:focus-visible,a:focus-visible {
  outline:3px solid #89a6ff;
  outline-offset:4px;
}

input:focus,select:focus,textarea:focus {
  outline:2px solid #91acff;
  border-color:var(--blue);
}

[hidden] {
  display:none!important;
}

.announcement {
  height:34px;
  background:#16233c;
  color:#e6ecfc;
  text-align:center;
  font-size:11px;
  letter-spacing:2px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:25px;
}

.announcement span {
  opacity:.6;
  font-size:10px;
}

.site-header {
  height:88px;
  display:flex;
  align-items:center;
  gap:65px;
  max-width:1240px;
  padding:0 30px;
  margin:auto;
}

.brand {
  font-size:27px;
  font-weight:850;
  letter-spacing:2px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
}

.brand-mark {
  color:var(--blue);
  font-size:34px;
}

.brand-cn {
  font-size:13px;
  font-weight:500;
  letter-spacing:3px;
  margin-left:6px;
}

.site-header nav {
  display:flex;
  gap:30px;
}

.nav-link {
  padding:12px 0;
  color:var(--muted);
  font-size:13px;
  white-space:nowrap;
}

.nav-link.active {
  color:var(--ink);
  font-weight:650;
}

.header-actions {
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:20px;
  font-size:12px;
}

.cart-button {
  white-space:nowrap;
}

.cart-button span {
  background:#e7edff;
  color:var(--blue);
  padding:3px 7px;
  border-radius:6px;
  margin-left:5px;
}

.login-button {
  background:#fff;
  border:1px solid var(--line);
  border-radius:9px;
  padding:9px 17px;
  white-space:nowrap;
}

main:not(.admin-main) {
  max-width:1240px;
  margin:auto;
  padding:0 30px;
}

.hero {
  display:grid;
  grid-template-columns:1fr 1fr;
  background:#edf1f6;
  border-radius:24px;
  overflow:hidden;
  min-height:445px;
}

.hero-copy {
  padding:48px 0 38px 48px;
  position:relative;
  z-index:1;
}

.eyebrow {
  font-size:10px;
  letter-spacing:2.5px;
  color:var(--blue);
  font-weight:700;
  margin:0 0 18px;
}

.hero h1 {
  font-size:49px;
  line-height:1.25;
  letter-spacing:-2px;
  margin:0 0 20px;
  font-weight:750;
}

.hero h1 span {
  color:var(--blue);
}

.hero-description {
  font-size:13px;
  line-height:1.95;
  color:#647286;
  margin-bottom:25px;
}

.primary {
  background:var(--blue);
  color:white;
  padding:13px 21px;
  border-radius:9px;
  font-size:13px;
  font-weight:600;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:30px;
}

.primary:hover {
  background:#1942c7;
}

.secondary {
  background:#fff;
  border:1px solid var(--line);
  padding:11px 16px;
  border-radius:9px;
  font-size:13px;
}

.text-button {
  color:var(--blue);
  padding:8px;
  font-size:12px;
}

.danger {
  color:#c2494d;
}

.hero-facts {
  display:flex;
  gap:30px;
  margin-top:28px;
  font-size:9px;
  color:#7e8898;
}

.hero-facts span {
  display:flex;
  flex-direction:column;
  gap:5px;
}

.hero-facts b {
  font-size:16px;
  color:#4d5d77;
  letter-spacing:1.2px;
}

.hero-art {
  position:relative;
  display:grid;
  place-items:center;
  background:radial-gradient(ellipse at 55% 50%,#d9e5fb 0,transparent 65%);
  overflow:hidden;
}

.hero-art svg {
  width:100%;
  filter:drop-shadow(0 35px 25px #27395938);
  transform:rotate(-10deg);
}

#hero-device {
  width:95%;
  z-index:1;
}

.orbit {
  position:absolute;
  border:1px solid #d8e1ef;
  border-radius:50%;
  width:350px;
  height:350px;
}

.orbit-two {
  width:470px;
  height:470px;
}

.art-caption {
  position:absolute;
  top:35px;
  right:30px;
  font-size:8px;
  letter-spacing:2px;
  color:#8290a6;
}

.floating-note {
  position:absolute;
  bottom:60px;
  left:35px;
  background:#ffffffd9;
  padding:12px 18px;
  border:1px solid white;
  border-radius:11px;
  font-size:10px;
  box-shadow:var(--shadow);
  z-index:2;
}

.floating-note i {
  display:inline-block;
  width:6px;
  height:6px;
  background:#4c9d8b;
  border-radius:50%;
  margin-right:8px;
}

.art-number {
  position:absolute;
  bottom:25px;
  right:30px;
  font-size:10px;
  letter-spacing:2px;
  color:#96a2b5;
}

.benefits {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  padding:23px 0;
  border-bottom:1px solid var(--line);
  font-size:11px;
  color:var(--muted);
  text-align:center;
}

.benefits b {
  color:#45516a;
  margin:0 10px;
  font-weight:600;
}

.catalog-section {
  padding:37px 0 45px;
}

.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:25px;
}

.section-heading .eyebrow {
  margin-bottom:9px;
}

h2 {
  font-size:23px;
  letter-spacing:-.5px;
  margin:0;
}

h2 span {
  font-size:12px;
  font-weight:400;
  color:var(--muted);
  margin-left:12px;
}

.search {
  display:flex;
  align-items:center;
  background:white;
  border:1px solid var(--line);
  border-radius:9px;
  padding:0 12px;
  width:255px;
  height:41px;
}

.search input {
  border:0;
  outline:0;
  background:transparent;
  min-width:0;
  width:100%;
  font-size:11px;
}

.search button {
  font-size:24px;
  color:var(--muted);
}

.product-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
}

.product-card {
  background:white;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:13px;
  box-shadow:var(--shadow);
  transition:transform .2s;
}

.product-card:hover {
  transform:translateY(-3px);
}

.product-image {
  height:235px;
  border-radius:13px;
  background:#edf1f5;
  position:relative;
  display:grid;
  place-items:center;
  overflow:hidden;
}

.product-image.home {
  background:#eeefec;
}

.product-image svg {
  height:205px;
  width:90%;
  filter:drop-shadow(0 15px 12px #263a5022);
}

.product-tag {
  position:absolute;
  left:17px;
  top:17px;
  font-size:9px;
  letter-spacing:1px;
  background:#ffffffbd;
  padding:7px 10px;
  border-radius:5px;
  z-index:1;
}

.product-info {
  padding:20px 10px 10px;
}

.product-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}

.product-top h3 {
  font-size:19px;
  margin:0;
}

.product-info p {
  font-size:11px;
  color:var(--muted);
  line-height:1.8;
  margin:8px 0 20px;
}

.product-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.price {
  font-size:25px;
  font-weight:700;
  letter-spacing:-1px;
}

.price small {
  font-size:15px;
  margin-right:3px;
}

.product-bottom button {
  padding:10px 15px;
  font-size:11px;
  border:1px solid var(--line);
  border-radius:8px;
}

.product-bottom button:hover {
  border-color:var(--blue);
  color:var(--blue);
}

.stock {
  color:#468571;
  font-size:10px;
  white-space:nowrap;
}

.stock:before {
  content:'●';
  font-size:6px;
  margin-right:5px;
}

footer {
  max-width:1180px;
  margin:auto;
  padding:25px 0 30px;
  border-top:1px solid var(--line);
  display:flex;
  gap:25px;
  align-items:center;
  color:var(--muted);
  font-size:11px;
}

footer .brand {
  font-size:19px;
  color:#475770;
}

footer p {
  margin:0;
}

footer>span {
  margin-left:auto;
  font-size:10px;
}

.workspace {
  min-height:640px;
  padding:40px 0;
}

.workspace h1,.admin-content h1 {
  font-size:31px;
  margin:0;
}

.empty {
  text-align:center;
  padding:55px 20px;
  color:var(--muted);
  font-size:14px;
  grid-column:1/-1;
}

.empty strong {
  display:block;
  font-size:20px;
  margin-bottom:12px;
  color:var(--ink);
}

.muted {
  color:var(--muted);
  font-size:12px;
  line-height:1.7;
}

.cart-layout {
  display:grid;
  grid-template-columns:1fr 310px;
  gap:25px;
}

.cart-item {
  display:flex;
  align-items:center;
  gap:22px;
  padding:23px;
  background:white;
  border:1px solid var(--line);
  border-radius:13px;
  margin-bottom:13px;
}

.cart-item svg {
  width:95px;
  height:80px;
  background:#f0f3f8;
  border-radius:8px;
}

.cart-item h3 {
  font-size:15px;
  margin:0 0 8px;
}

.cart-item .quantity {
  width:65px;
  padding:8px;
  border:1px solid var(--line);
  border-radius:7px;
}

.cart-item .item-tail {
  margin-left:auto;
  text-align:right;
  display:grid;
  gap:10px;
}

.summary {
  padding:25px;
  background:white;
  border:1px solid var(--line);
  border-radius:15px;
  align-self:start;
}

.summary h3 {
  margin-top:0;
}

.summary-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:22px 0;
}

.summary .primary {
  width:100%;
}

.order-card {
  background:white;
  border:1px solid var(--line);
  border-radius:14px;
  padding:24px;
  margin-bottom:15px;
  display:flex;
  gap:20px;
  justify-content:space-between;
  align-items:center;
}

.order-card h3 {
  font-size:15px;
  margin:0 0 9px;
}

.badge {
  font-size:10px;
  background:#edf1f7;
  color:#647286;
  padding:5px 9px;
  border-radius:5px;
  white-space:nowrap;
}

.badge.paid,.badge.approved {
  background:#e5f4ed;
  color:#2e8160;
}

.badge.pending {
  background:#fff2db;
  color:#a47421;
}

.badge.refunded {
  background:#e8eeff;
  color:#4160ad;
}

.badge.rejected {
  background:#fce8e8;
  color:#b55656;
}

.order-actions {
  display:flex;
  gap:10px;
  align-items:center;
}

.pager {
  display:flex;
  gap:15px;
  justify-content:center;
  align-items:center;
  margin-top:22px;
  color:var(--muted);
  font-size:12px;
}

.pager button {
  padding:8px;
  border:1px solid var(--line);
  border-radius:6px;
  background:white;
}

dialog {
  border:1px solid var(--line);
  border-radius:20px;
  width:min(580px,calc(100% - 30px));
  max-height:90vh;
  padding:35px;
  box-shadow:0 30px 100px #132f5b35;
}

dialog::backdrop {
  background:#14243e66;
  backdrop-filter:blur(4px);
}

.modal-close {
  position:absolute;
  right:13px;
  top:9px;
  font-size:27px;
  color:var(--muted);
}

dialog h2 {
  margin:5px 0 18px;
}

dialog label {
  font-size:12px;
  font-weight:600;
  display:block;
  margin:17px 0 8px;
}

dialog input,dialog textarea,dialog select {
  width:100%;
  padding:12px;
  border:1px solid #dce1e9;
  border-radius:8px;
  background:#fafbfd;
}

dialog textarea {
  min-height:85px;
  resize:vertical;
}

dialog form>.primary {
  width:100%;
  margin-top:23px;
}

.detail-art {
  height:180px;
  background:#eef2f7;
  border-radius:12px;
  display:grid;
  place-items:center;
  margin-bottom:25px;
}

.detail-art svg {
  height:170px;
  width:100%;
}

.detail-row {
  display:flex;
  justify-content:space-between;
  gap:15px;
  border-bottom:1px solid var(--line);
  padding:15px 0;
  font-size:12px;
  line-height:1.8;
}

.detail-row span {
  min-width:0;
  overflow-wrap:anywhere;
}

.modal-actions {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:22px;
}

.form-error {
  color:#bc4248;
  font-size:12px;
  line-height:1.7;
}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

#toast {
  position:fixed;
  left:50%;
  bottom:28px;
  transform:translateX(-50%);
  background:#1d2b43;
  color:white;
  border-radius:10px;
  padding:13px 22px;
  font-size:13px;
  box-shadow:var(--shadow);
  z-index:100;
  max-width:90%;
  display:none;
}

#toast.visible {
  display:block;
}

#toast.error {
  background:#a13d44;
}

.admin-layout {
  display:flex;
  min-height:100vh;
}

.sidebar {
  width:235px;
  flex-shrink:0;
  background:white;
  border-right:1px solid var(--line);
  padding:32px 23px;
  display:flex;
  flex-direction:column;
}

.sidebar .brand {
  font-size:24px;
}

.sidebar-label {
  font-size:9px;
  color:#a0a8b6;
  letter-spacing:1px;
  margin:48px 0 15px;
}

.sidebar nav {
  display:grid;
  gap:9px;
}

.side-link {
  padding:14px 15px;
  display:flex;
  align-items:center;
  gap:14px;
  border-radius:9px;
  text-align:left;
  color:#7c8798;
  font-size:16px;
}

.side-link span {
  font-size:13px;
}

.side-link.active {
  background:#edf2ff;
  color:var(--blue);
  font-weight:600;
}

.sidebar-bottom {
  margin-top:auto;
  display:grid;
  gap:20px;
  padding-top:60px;
  font-size:12px;
  color:var(--muted);
}

.sidebar-bottom .badge {
  justify-self:start;
}

.admin-main {
  min-width:0;
  flex:1;
}

.admin-header {
  height:90px;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 40px;
  font-size:12px;
  background:#ffffff80;
}

.admin-header>span {
  display:flex;
  gap:12px;
}

.admin-content {
  padding:40px;
}

.admin-content .section-heading {
  margin-bottom:30px;
}

.stat-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  margin-bottom:28px;
}

.stat-card {
  background:white;
  border:1px solid var(--line);
  border-radius:13px;
  padding:23px;
}

.stat-card span {
  font-size:11px;
  color:var(--muted);
}

.stat-card b {
  display:block;
  font-size:28px;
  margin-top:13px;
  font-weight:600;
}

.stat-card small {
  display:block;
  color:var(--muted);
  font-size:10px;
  margin-top:8px;
}

.table-panel {
  background:white;
  border:1px solid var(--line);
  border-radius:15px;
  overflow:hidden;
}

.panel-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:24px;
}

.panel-heading h2 {
  font-size:16px;
}

.table-scroll {
  overflow-x:auto;
}

table {
  border-collapse:collapse;
  width:100%;
  font-size:12px;
  white-space:nowrap;
}

th {
  background:#f8fafc;
  color:#7b8798;
  text-align:left;
  font-size:11px;
  font-weight:500;
}

td,th {
  padding:17px 22px;
  border-bottom:1px solid #eff2f6;
}

td.reason {
  white-space:normal;
  min-width:150px;
  max-width:300px;
  overflow-wrap:anywhere;
}

.table-panel .pager {
  padding:0 20px 20px;
}

.admin-footnote {
  color:#98a2b3;
  font-size:10px;
  margin-top:23px;
}

@media(min-width:1500px) {
  .hero {
    min-height:470px;
  }
  .hero-copy {
    padding-top:55px;
  }
}

@media(max-width:1000px) {
  .site-header {
    gap:30px;
  }
  .hero h1 {
    font-size:40px;
  }
  .hero-copy {
    padding-left:30px;
  }
  .sidebar {
    width:190px;
    padding:25px 17px;
  }
  .admin-content {
    padding:25px;
  }
  .admin-header {
    padding:0 25px;
  }
  .cart-layout {
    grid-template-columns:1fr 270px;
  }
  .header-actions {
    gap:12px;
  }
}

@media(max-width:700px) {
  .announcement {
    font-size:9px;
    gap:15px;
    height:29px;
  }
  .announcement span {
    font-size:8px;
  }
  .site-header {
    height:auto;
    min-height:102px;
    padding:17px 18px;
    gap:14px;
    flex-wrap:wrap;
  }
  .brand {
    font-size:23px;
  }
  .brand-cn {
    font-size:10px;
  }
  .site-header nav {
    order:3;
    width:100%;
    gap:28px;
  }
  .nav-link {
    padding:3px 0;
    font-size:12px;
  }
  .header-actions {
    gap:8px;
    font-size:11px;
  }
  .login-button {
    padding:7px 10px;
  }
  #admin-link {
    display:none;
  }
  .site-header .brand-mark {
    font-size:26px;
  }
  main:not(.admin-main) {
    padding:0 16px;
  }
  .hero {
    grid-template-columns:1fr;
    min-height:0;
  }
  .hero-copy {
    padding:30px 25px 5px;
  }
  .hero h1 {
    font-size:38px;
  }
  .hero-description {
    font-size:12px;
    margin-bottom:20px;
  }
  .hero-facts {
    margin-top:21px;
    gap:30px;
  }
  .hero-art {
    height:250px;
  }
  .hero-art svg {
    max-height:250px;
  }
  .art-caption {
    top:15px;
    font-size:7px;
  }
  .floating-note {
    bottom:25px;
    left:20px;
  }
  .orbit {
    width:220px;
    height:220px;
  }
  .orbit-two {
    width:300px;
    height:300px;
  }
  .benefits {
    padding:18px 0;
    gap:7px;
    font-size:0;
  }
  .benefits b {
    font-size:10px;
    display:block;
    margin:0;
  }
  .catalog-section {
    padding-top:28px;
  }
  .section-heading {
    align-items:flex-start;
    flex-direction:column;
    gap:18px;
  }
  .section-heading h2 {
    font-size:21px;
  }
  .search {
    width:100%;
  }
  .product-grid {
    grid-template-columns:1fr;
    gap:18px;
  }
  .product-image {
    height:210px;
  }
  .product-info {
    padding:18px 9px 9px;
  }
  .product-top h3 {
    font-size:18px;
  }
  footer {
    margin:0 16px;
    flex-wrap:wrap;
    gap:10px;
    padding:20px 0;
  }
  footer>span {
    margin-left:0;
    width:100%;
    font-size:9px;
  }
  .cart-layout {
    grid-template-columns:1fr;
  }
  .cart-item {
    padding:14px;
    gap:12px;
  }
  .cart-item svg {
    width:60px;
    height:65px;
  }
  .cart-item h3 {
    font-size:13px;
  }
  .cart-item .quantity {
    width:55px;
  }
  .order-card {
    padding:18px;
    flex-wrap:wrap;
    gap:12px;
  }
  .order-actions {
    width:100%;
    justify-content:space-between;
  }
  .workspace {
    padding-top:30px;
    min-height:600px;
  }
  dialog {
    padding:27px 22px;
  }
  .admin-layout {
    display:block;
  }
  .sidebar {
    width:100%;
    padding:18px 16px;
    border-bottom:1px solid var(--line);
  }
  .sidebar-label,.sidebar-bottom {
    display:none;
  }
  .sidebar nav {
    display:flex;
    gap:8px;
    margin-top:20px;
  }
  .side-link {
    padding:10px;
    font-size:12px;
    gap:6px;
    flex:1;
  }
  .side-link span {
    font-size:11px;
  }
  .admin-header {
    height:65px;
    padding:0 16px;
    font-size:10px;
  }
  .admin-content {
    padding:26px 16px;
  }
  .admin-content h1 {
    font-size:27px;
  }
  .admin-content .section-heading {
    gap:12px;
  }
  .stat-grid {
    gap:8px;
  }
  .stat-card {
    padding:14px 11px;
  }
  .stat-card span {
    font-size:9px;
  }
  .stat-card b {
    font-size:22px;
  }
  .stat-card small {
    font-size:9px;
  }
  .panel-heading {
    padding:18px;
  }
  .admin-header #admin-name {
    max-width:90px;
    display:inline-block;
    overflow:hidden;
    vertical-align:middle;
  }
  .table-scroll {
    max-width:100%;
  }
}

