:root{
  --bg: #f6f7fb;
  --card: #ffffff;
  --muted: #6b7280;
  --accent: #0070f3;
  --subtle: rgba(15,23,42,0.06);
  --radius-lg: 18px;
  --radius-md: 12px;
}

*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family:-apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial;background:linear-gradient(180deg,#ffffff 0%,var(--bg) 100%);color:#111827;-webkit-font-smoothing:antialiased}
.app-root{min-height:100vh;padding:0}

/* 顶栏 - Apple 风格：居中链接、留白、细腻阴影 */
.topbar{display:flex;align-items:center;justify-content:space-between;padding:8px 20px;background:rgba(255,255,255,0.9);backdrop-filter:blur(6px);box-shadow:0 8px 24px rgba(2,6,23,0.04);position:sticky;top:0;z-index:40;height:72px}
.topbar .left{display:flex;align-items:center;gap:14px}
.menu-block{display:flex;flex-direction:column;align-items:center;gap:4px}
.welcome-under{font-size:12px;color:#0f172a;white-space:nowrap;display:flex;align-items:center;gap:8px}
.welcome-logout{
  font-size:12px;
  text-decoration:underline;
  color:rgba(15,23,42,0.45);
  padding:0;
  border-radius:0;
  background:none;
  transition:color .2s ease;
}
.welcome-logout:hover{
  color:rgba(15,23,42,0.65);
}
.brand-mini{display:flex;align-items:center;gap:12px}
.logo-wrap{display:flex;flex-direction:column;align-items:center;line-height:1.2}
.brand-text{display:flex;flex-direction:column;line-height:1.1;align-items:center}
.brand-title{
  font-weight:700;
  font-size:16px;
  position:relative;
  background:linear-gradient(90deg,#0f172a, #0ea5e9, #ec4899, #0f172a);
  background-size:200% 100%;
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  animation:brandShine 2.2s ease-in-out infinite;
}
.brand-title-line{display:block;white-space:nowrap;text-align:center}
.brand-sub{font-size:11px;color:#6b7280;margin-top:3px;text-align:center}
.menu-btn{width:46px;height:46px;border-radius:10px;border:none;background:transparent;display:none;align-items:center;justify-content:center;font-size:20px;cursor:pointer}
.menu-btn:hover{background:rgba(0,0,0,0.03)}
.horse{display:inline-block;margin-right:4px;animation:sideRun 0.7s ease-in-out infinite;transform-origin:center}

@keyframes sideRun{
  0%{transform:translateX(0) rotate(0deg)}
  25%{transform:translateX(2px) rotate(-2deg)}
  50%{transform:translateX(0) rotate(2deg)}
  75%{transform:translateX(-2px) rotate(-1deg)}
  100%{transform:translateX(0) rotate(0deg)}
}
.logo{width:80px;height:80px;border-radius:12px;object-fit:contain;display:inline-block;overflow:hidden;background:transparent;position:relative;}
.logo-wrap{
  position:relative;
}
.logo-wrap::after{
  content:"";
  position:absolute;
  inset:-30% 0 0 -60%;
  width:60%;
  height:160%;
  background:linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
  transform:translateX(-120%) skewX(-12deg);
  animation:logoSheen 3.2s ease-in-out infinite;
  pointer-events:none;
  border-radius:14px;
}

@keyframes logoSheen{
  0%{transform:translateX(-120%) skewX(-12deg);opacity:0}
  10%{opacity:1}
  35%{transform:translateX(200%) skewX(-12deg);opacity:0}
  100%{transform:translateX(200%) skewX(-12deg);opacity:0}
}


.topbar .nav-right{display:flex;gap:18px;align-items:center}
.topbar .nav-right a{color:rgba(0,0,0,0.7);text-decoration:none;padding:6px 8px;border-radius:8px;font-weight:400;font-size:14px}
.topbar .nav-right a:hover{background:rgba(0,0,0,0.04);color:var(--accent)}
.topbar .nav-right a.danger{color:#ff3b30;font-weight:500}
.topbar .nav-right a.nav-strong{color:#e11d48;font-weight:700;background:transparent}
.topbar .nav-right a.nav-strong:hover{color:#be123c;background:transparent}

/* 容器与排版 */
.container{max-width:1180px;margin:0 auto;padding:28px}
.home-container{padding-top:0}
.home-container .detail{margin-top:0}
.center{display:flex;align-items:center;justify-content:center;min-height:56vh}
.card{background:var(--card);border-radius:16px;padding:22px;box-shadow:0 20px 50px rgba(2,6,23,0.06);max-width:520px;margin:18px auto}
.brand{display:flex;align-items:center;gap:12px;margin-bottom:8px}
.form label{display:block;margin-bottom:10px;color:#333}
.form input{width:100%;padding:12px;border-radius:12px;border:1px solid var(--subtle);outline:none}
.btn{display:inline-block;background:linear-gradient(180deg,var(--accent),#0050d1);color:white;padding:12px 16px;border-radius:12px;border:none;width:100%;font-weight:700;margin-top:10px}
.links{margin-top:12px;text-align:center}
.alert{background:#fff8e1;padding:10px;border-radius:10px;color:#856404}

.site-footer{margin:24px auto 18px auto;text-align:center;color:rgba(15,23,42,0.25);font-size:12px;line-height:1.6}

/* 登录页美化 */
.login-topbar{
  display:flex;
  gap:12px;
  justify-content:center;
  align-items:center;
  padding:8px 12px;
  margin:12px auto 0 auto;
  max-width:720px;
  background:linear-gradient(180deg,rgba(255,255,255,0.95),rgba(250,250,250,0.95));
  border:1px solid rgba(15,23,42,0.06);
  border-radius:12px;
  box-shadow:0 10px 24px rgba(2,6,23,0.05);
  backdrop-filter:blur(6px);
}
.login-top-link{
  flex:0 0 auto;
  text-decoration:none;
  color:rgba(0,0,0,0.75);
  font-size:14px;
  padding:6px 10px;
  border-radius:999px;
  transition:background .2s ease,color .2s ease,transform .2s ease;
}
.login-top-link:hover{
  color:var(--accent);
  background:rgba(0,112,243,0.08);
  transform:translateY(-1px);
}
.auth-card{max-width:560px}
.auth-brand{display:flex;align-items:center;gap:16px;margin-bottom:12px}
.auth-logo{width:72px;height:72px;border-radius:14px;object-fit:contain}
.auth-brand .brand-text h3{margin:0;font-size:20px;color:#0f172a}
.auth-brand .brand-text .muted{margin:4px 0 0 0}
.auth-links{display:flex;gap:10px;justify-content:center;flex-wrap:nowrap;width:100%}
.auth-links .btn{flex:1;margin-top:0}
.login-btn{font-size:15px;font-weight:400}
.btn.gradient{
  padding:10px 16px;
  font-size:12px;
  background:linear-gradient(135deg,#0ea5e9 0%,#6366f1 50%,#ec4899 100%);
  color:#fff;
  border:none;
  border-radius:10px;
  box-shadow:0 8px 18px rgba(14,165,233,0.25),0 4px 10px rgba(99,102,241,0.2);
  transition:transform .2s ease, box-shadow .2s ease, filter .2s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:400;
}
.btn.gradient:hover{
  transform:translateY(-1px) scale(1.02);
  box-shadow:0 10px 22px rgba(14,165,233,0.3),0 6px 14px rgba(99,102,241,0.25);
  filter:saturate(1.1);
}

/* Banner / Hero */
.hero{margin:10px 0 22px;padding:36px;border-radius:16px;background:linear-gradient(90deg,rgba(255,255,255,0.96),rgba(250,250,250,0.96));box-shadow:0 12px 40px rgba(2,6,23,0.04)}
.banner{position:relative;padding:44px;border-radius:18px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;background:linear-gradient(135deg,#fff8f0,#fff6f0);color:#0f172a}
.banner-title{font-size:40px;margin:0 0 6px 0;letter-spacing:0.2px;font-weight:700}
.banner-sub{margin:0;font-size:15px;color:var(--muted);opacity:0.95}
.banner-meta{position:absolute;right:28px;top:22px;font-size:13px;color:var(--muted)}

/* 单页标题栏（配件列表页风格） */
.page-topbar{
  padding:10px 16px;
  border-radius:14px;
  background:linear-gradient(135deg,#0ea5e9 0%,#6366f1 50%,#ec4899 100%);
  color:#fff;
  box-shadow:0 12px 30px rgba(14,165,233,0.25),0 6px 16px rgba(99,102,241,0.2);
}
.page-topbar h1,.page-topbar h2,.page-topbar h3{color:#fff;margin:0}
.page-topbar .muted{color:rgba(255,255,255,0.85)}

/* CPU 列表页顶部区域更紧凑 */
.cpu-hero{padding:8px 14px}
.cpu-hero .banner-title{font-size:16px;margin:0;display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.cpu-hero .banner-sub{font-size:12px;font-weight:400;color:var(--muted)}
.cpu-hero-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:nowrap}
.cpu-hero-row .banner-title{flex:0 0 auto;white-space:nowrap}
.cpu-hero-row .btn{padding:6px 10px;font-size:12px}
.cpu-hero-actions{display:flex;align-items:center;gap:8px;justify-content:flex-end;flex:1 1 auto;min-width:0}
.cpu-refresh{
  width:auto;
  height:28px;
  padding:6px 10px;
  font-size:12px;
  font-weight:400;
  line-height:16px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  cursor:pointer;
  position:relative;
}
.cpu-refresh:disabled{opacity:0.8;cursor:default}
.cpu-refresh .refresh-spinner{
  width:12px;
  height:12px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,0.35);
  border-top-color:#fff;
  display:none;
  animation:spin .8s linear infinite;
}
.cpu-refresh .refresh-percent{
  font-size:11px;
  opacity:0.9;
  display:none;
}
.cpu-refresh.loading .refresh-spinner,
.cpu-refresh.loading .refresh-percent{display:inline-block}
.cpu-refresh.loading .refresh-label{opacity:0.95}

@keyframes spin{
  0%{transform:rotate(0deg)}
  100%{transform:rotate(360deg)}
}
.cpu-filter select{
  appearance:none;
  padding:6px 28px 6px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.6);
  background:rgba(255,255,255,0.9);
  color:#0f172a;
  font-size:12px;
  cursor:pointer;
  position:relative;
  height:28px;
  line-height:16px;
}
.cpu-filter select:focus{outline:2px solid rgba(255,255,255,0.7)}
.cpu-filter select option{color:#0f172a;background:#fff}
.cpu-filter{position:relative}
.cpu-filter::after{
  content:"▾";
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  color:#0ea5e9;
  pointer-events:none;
  font-size:18px;
}

/* CPU 列表页炫目导航条样式 */
.cpu-topbar{
  animation: glowFlow 1.8s ease-in-out infinite;
  padding:6px 12px;
  border-radius:14px;
  background:linear-gradient(135deg,#0ea5e9 0%,#6366f1 50%,#ec4899 100%);
  color:#fff;
  box-shadow:0 12px 30px rgba(14,165,233,0.25),0 6px 16px rgba(99,102,241,0.2);
}
@keyframes glowFlow{
  0%{box-shadow:0 0 14px rgba(255,255,255,0.10),0 0 28px rgba(99,102,241,0.12),0 0 40px rgba(14,165,233,0.10)}
  50%{box-shadow:0 0 22px rgba(255,255,255,0.18),0 0 40px rgba(99,102,241,0.18),0 0 56px rgba(14,165,233,0.16)}
  100%{box-shadow:0 0 14px rgba(255,255,255,0.10),0 0 28px rgba(99,102,241,0.12),0 0 40px rgba(14,165,233,0.10)}
}

@keyframes brandShine{
  0%,100%{background-position:0% 50%}
  50%{background-position:100% 50%}
}
.cpu-topbar .banner-title{font-size:18px;color:#fff;letter-spacing:.2px}
.cpu-topbar .banner-sub{font-size:12px;color:rgba(255,255,255,0.85)}
.cpu-date{white-space:normal;max-width:70px;line-height:0.6;text-align:right;display:inline-block}
.cpu-topbar .cpu-hero-row{gap:16px}
.cpu-topbar .btn{
  padding:6px 12px;
  font-size:12px;
  background:rgba(255,255,255,0.18);
  color:#fff;
  border:1px solid rgba(255,255,255,0.35);
  border-radius:999px;
  box-shadow:none;
  position:relative;
  overflow:hidden;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.cpu-topbar .cpu-refresh{
  height:28px;
  line-height:16px;
  margin-top:0;
  width:auto;
  font-weight:400;
}
.cpu-hero-actions .btn{margin-top:0;width:auto;font-weight:400}
.cpu-topbar .btn:hover{
  background:rgba(255,255,255,0.28);
  transform:translateY(-1px) scale(1.02);
  box-shadow:0 6px 14px rgba(0,0,0,0.15);
}
.cpu-topbar .btn::after{
  content:"";
  position:absolute;
  top:0;
  left:-120%;
  width:120%;
  height:100%;
  background:linear-gradient(120deg,transparent,rgba(255,255,255,0.45),transparent);
  transition:left .6s ease;
}
.cpu-topbar .btn:hover::after{
  left:120%;
}

.cpu-search{display:flex;justify-content:flex-start}
.cpu-search input{
  width:180px;
  max-width:180px;
  padding:6px 10px;
  font-size:12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.5);
  background:rgba(255,255,255,0.9);
  color:#0f172a;
  height:28px;
  line-height:16px;
}

@media (max-width: 520px){
  .cpu-hero-actions{gap:6px}
  .cpu-search input{width:120px;max-width:120px}
  .topbar .left{width:100%;justify-content:flex-start;margin-bottom:0}
  .brand-mini{order:1}
  .topbar .nav-right{display:flex;width:100%;justify-content:flex-start;gap:10px;flex-wrap:wrap;margin-top:0}
  .news-hero{padding:6px}
  .news-hero-banner{margin-bottom:4px}
  .news-hero-img{height:70px}
}

.muted{color:var(--muted)}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}
.module-card{background:#fff;padding:14px;border-radius:4px;border:1px solid rgba(15,23,42,0.08);cursor:pointer;box-shadow:none;transition:box-shadow .18s ease,border-color .18s ease}
.module-card:hover{border-color:rgba(15,23,42,0.18);box-shadow:0 6px 14px rgba(2,6,23,0.05)}
.detail{margin-top:16px;padding:14px;border-radius:12px}

/* 模块中心卡片化布局（苹果风格） */
.module-list-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}

/* 桌面端：卡片可跨两列；条目列表可双列 */
@media (min-width:801px){
  .module-list-grid .module-card.wide{grid-column:1 / -1}
  /* columns: 左列从上到下填充，再到右列（实现 123 / 456 排序） */
  .module-list-grid .module-card.items-two-col .module-item-titles{column-count:2;column-gap:10px}
  .module-list-grid .module-card.items-two-col .module-item-titles li{break-inside:avoid;-webkit-column-break-inside:avoid;margin-bottom:8px}
  .module-list-grid .module-card.items-two-col .module-item-titles .link-pill{width:100%}
}

/* 游客桌面端：手机客户模块跨两列 + 内部双列展示 */
@media (min-width:801px){
  .module-list-grid.guest-grid .module-card.phone-wide{grid-column:1 / -1}
  .module-list-grid.guest-grid .module-card.phone-wide .module-item-titles{column-count:2;column-gap:10px}
  .module-list-grid.guest-grid .module-card.phone-wide .module-item-titles li{break-inside:avoid;-webkit-column-break-inside:avoid;margin-bottom:8px}
  .module-list-grid.guest-grid .module-card.phone-wide .module-item-titles .link-pill{width:100%}
}
.module-card{cursor:default;display:flex;flex-direction:column;gap:8px;border:1px solid rgba(15,23,42,0.08);background:#ffffff}
.module-card{width:100%;overflow:hidden}
.module-card .link-pill{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.module-item-titles{padding-right:4px}
.module-card-head{display:flex;flex-direction:column;gap:4px}
.module-title{margin:0;font-size:18px;color:#0f172a;position:relative;padding-left:12px;letter-spacing:-0.2px}
.module-title::before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
  width:6px;
  height:18px;
  border-radius:999px;
  background:linear-gradient(180deg,rgba(59,130,246,0.95),rgba(16,185,129,0.85));
  box-shadow:0 10px 18px rgba(59,130,246,0.12);
}
.module-card:hover .module-title::before{filter:saturate(1.1);box-shadow:0 12px 22px rgba(59,130,246,0.18)}
.module-desc{margin:0}
.module-card-actions{margin-top:6px;display:flex;gap:8px;flex-wrap:wrap}
.news-hero{margin-bottom:16px;padding:14px 16px 16px}
.news-hero-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.news-hero-head h4{margin:0}
.news-hero-list{display:flex;flex-wrap:wrap;gap:8px}
.news-hero-list li{margin:0}
.news-hero-banner{position:relative;border-radius:16px;overflow:hidden;margin-bottom:12px}
.news-hero-banner::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  right:0;
  height:26px;
  background:linear-gradient(90deg,rgba(251,191,36,0.35),rgba(244,63,94,0.25),rgba(59,130,246,0.25));
  z-index:1;
  pointer-events:none;
}
.news-hero-banner::after{
  content:"";
  position:absolute;
  left:12px;
  top:6px;
  width:46px;
  height:8px;
  border-radius:999px;
  background:rgba(255,255,255,0.55);
  box-shadow:0 0 12px rgba(255,255,255,0.65);
  z-index:2;
  pointer-events:none;
}
.news-hero-img{width:100%;height:100px;display:block;object-fit:cover}
.news-hero-title{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%, -50%);
  z-index:3;
  font-size:26px;
  font-weight:800;
  color:#ffffff;
  -webkit-text-stroke:0;
  text-shadow:0 6px 18px rgba(0,0,0,0.25);
  letter-spacing:1px;
  white-space:nowrap;
  animation:bannerFloat 2.6s ease-in-out infinite;
}

@keyframes bannerFloat{
  0%{transform:translate(-50%, -50%) translateX(-8px)}
  50%{transform:translate(-50%, -50%) translateX(8px)}
  100%{transform:translate(-50%, -50%) translateX(-8px)}
}
.news-hero-sub{margin:0 0 8px 0;font-size:13px;color:#b91c1c;font-weight:600}
.news-pill{background:rgba(14,165,233,0.12);border-color:rgba(14,165,233,0.28)}
.news-hero-list li:nth-child(1) .news-pill{background:rgba(236,72,153,0.14);border-color:rgba(236,72,153,0.3);color:#9d174d}
.news-hero-list li:nth-child(2) .news-pill{background:rgba(59,130,246,0.14);border-color:rgba(59,130,246,0.3);color:#1d4ed8}
.news-hero-list li:nth-child(3) .news-pill{background:rgba(16,185,129,0.14);border-color:rgba(16,185,129,0.3);color:#047857}
.sidebar .item-list{display:flex;flex-direction:column;gap:6px}
.sidebar .item-list li{margin:0}
.sidebar-pill{
  font-size:12px;
  background:rgba(255,255,255,0.95);
  border-radius:999px;
  padding:5px 14px;
  min-height:28px;
  width:100%;
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
.market-head h4{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  justify-content:center;
  box-shadow:0 6px 14px rgba(2,6,23,0.06);
.market-name{font-size:12px;color:#0f172a;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
.sidebar-pill:hover{
  background:rgba(14,165,233,0.08);
  box-shadow:0 8px 18px rgba(2,6,23,0.08);
}
.sidebar-card{
  background:rgba(255,255,255,0.9);
  border-radius:14px;
  padding:12px;
  border:1px solid rgba(15,23,42,0.06);
  box-shadow:0 10px 22px rgba(2,6,23,0.06);
}
.market-card{
  min-height:420px;
  max-height:560px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.market-body{flex:1 1 auto;overflow:hidden}
.market-card #market-list{
  flex:1 1 auto;
  margin-top:6px;
  transform-origin:left top;
  --market-scroll: 0px;
  overflow:hidden;
}
.market-card #market-list.market-loop{
  animation:marketLoop var(--market-duration, 180s) linear infinite;
}
@keyframes marketLoop{
  0%{transform:translateY(0)}
  100%{transform:translateY(calc(-1 * var(--market-scroll)))}
}
.market-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.market-card .item-list{display:flex;flex-direction:column;gap:6px}
.market-card .item-list li{display:flex;align-items:center;justify-content:space-between;gap:8px}
.market-name{font-size:12px;color:#0f172a;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.market-price{font-size:12px;color:#ef4444;font-weight:600;flex:0 0 auto}
.link-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 12px;
  border-radius:999px;
  text-decoration:none;
  font-size:12px;
  color:#0f172a;
  background:rgba(15,23,42,0.04);
  border:1px solid rgba(15,23,42,0.08);
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.link-pill:hover{
  background:rgba(14,165,233,0.12);
  color:#0b4dd6;
  transform:translateY(-1px);
  box-shadow:0 8px 16px rgba(2,6,23,0.08);
}
.link-pill.primary{
  color:#fff;
  background:linear-gradient(135deg,#0ea5e9 0%,#6366f1 50%,#ec4899 100%);
  border:none;
}
.link-pill.primary:hover{filter:saturate(1.1)}

/* DIY/AI 下拉选项：价格/品名样式 */
.diy-option{
  letter-spacing:-0.2px;
}
.diy-option-price,
.diy-option-slash{
  color:#ef4444;
  font-weight:700;
}
.diy-option-name{
  color:#0f172a;
  font-weight:500;
}
.diy-option-slash{margin:0}

/* 模块列表样式 */
.module-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:14px}
.module-item-titles{margin:6px 0 0 0;padding-left:0;list-style:none}
.module-item-titles li{margin:0}
.module-item-titles .link-pill{
  display:grid;
  grid-template-columns:20px 1fr auto;
  column-gap:6px;
  align-items:center;
  padding:6px 8px;
  border-radius:4px;
  border:1px solid rgba(15,23,42,0.08);
  color:rgba(3,37,65,0.9);
  text-decoration:none;
  background:#fff;
}
.module-item-titles a.link-pill{cursor:pointer}
.module-item-titles span.link-pill{cursor:default}
.module-item-titles .item-no{
  flex:0 0 auto;
  min-width:0;
  font-variant-numeric:tabular-nums;
  color:rgba(15,23,42,0.55);
  justify-self:end;
  text-align:right;
}
.module-item-titles .item-title{min-width:0}
.module-item-titles .item-uuid{
  justify-self:end;
  text-align:right;
  font-size:11px;
  color:rgba(15,23,42,0.45);
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  overflow-wrap:anywhere;
}
.module-item-titles a + a{margin-top:6px}
.module-item-titles a:hover{border-color:rgba(15,23,42,0.18);background:rgba(15,23,42,0.02);color:var(--accent)}

/* 详情布局 */
.layout-two-col{display:grid;grid-template-columns:1fr 320px;gap:24px}
.sidebar{background:linear-gradient(180deg,rgba(255,255,255,0.8),rgba(250,250,250,0.8));padding:16px;border-radius:12px;height:fit-content}
.sidebar h4{margin:0 0 8px 0}
.related-list, .item-list{list-style:none;padding:0;margin:0}
.related-list li, .item-list li{margin:8px 0}
.small{font-size:12px;color:var(--muted)}
.module-detail-content img{max-width:100%;height:auto;border-radius:8px}
.config-content ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:0}
.config-content{
  margin-left:-16px;
  margin-right:-16px;
}
.config-content ul li{
  padding:10px 12px;
  border-bottom:1px solid rgba(15,23,42,0.08);
  display:grid;
  grid-template-columns:40px 1fr 80px;
  align-items:center;
  gap:12px;
}
.config-content ul li:last-child{border-bottom:none}
.config-list-header{
  display:grid;
  grid-template-columns:40px 1fr 80px;
  gap:12px;
  padding:10px 12px;
  border-radius:10px;
  background:linear-gradient(180deg, rgba(14,165,233,0.08), rgba(99,102,241,0.06));
  border:1px solid rgba(15,23,42,0.06);
  font-weight:400;
  color:#1f2937;
  margin-bottom:6px;
}
.config-list-header span{text-align:center}
.config-col-type{text-align:center;color:#0f172a;font-weight:600;white-space:nowrap}
.config-col-name{text-align:left;color:#0f172a;font-weight:400}
.config-col-price{text-align:right;color:#0f172a;font-weight:600;white-space:nowrap}
.config-col-type{font-size:15px}
.config-col-name{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.config-col-price{font-size:15px}
.config-summary-table{
  margin-top:12px;
  border-top:1px solid rgba(15,23,42,0.08);
}
.summary-row{
  padding:8px 12px;
  border-bottom:1px solid rgba(15,23,42,0.08);
}
.summary-header{
  background:linear-gradient(180deg, rgba(14,165,233,0.08), rgba(99,102,241,0.06));
  border:1px solid rgba(15,23,42,0.06);
  border-radius:10px;
}
.summary-inline{
  display:grid;
  grid-template-columns:1fr 2fr;
  gap:12px;
}
.summary-inline-item{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}
.summary-row:last-child{border-bottom:none}
.summary-label{color:#0f172a;text-align:center;font-weight:400;font-size:17px}
.summary-value{color:#0f172a;text-align:center;font-weight:400;font-size:17px}
.summary-strong .summary-label,
.summary-strong .summary-value{color:#e11d48;font-size:21px;font-weight:700}
.summary-inline-item{white-space:nowrap}
.summary-label,.summary-value{letter-spacing:0}

/* 后台系数表格样式 */
.coeff-table{
  margin-top:8px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(15,23,42,0.08);
  background:linear-gradient(180deg,rgba(255,255,255,0.98),rgba(248,250,252,0.95));
  box-shadow:0 10px 24px rgba(2,6,23,0.06);
}
.coeff-row{display:grid;grid-template-columns:140px 1fr;align-items:center}
.coeff-row + .coeff-row{border-top:1px solid rgba(15,23,42,0.06)}
.coeff-cell{padding:12px 14px}
.coeff-label{
  font-weight:700;
  color:#0f172a;
  background:linear-gradient(135deg,rgba(14,165,233,0.12),rgba(236,72,153,0.10));
  border-right:1px solid rgba(15,23,42,0.06);
}
.coeff-input input{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(15,23,42,0.12);
  background:#fff;
}
.coeff-note{margin-top:6px;font-size:12px}
@media (max-width: 640px){
  .coeff-row{grid-template-columns:1fr}
  .coeff-label{border-right:none;border-bottom:1px solid rgba(15,23,42,0.06)}
}

/* 活动详情页新布局 */
.activity-hero{display:flex;align-items:center;justify-content:space-between;gap:16px}
.activity-hero-main{display:flex;flex-direction:column;gap:6px}
.activity-hero h2{font-size:32px;letter-spacing:0.2px}
.activity-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  padding:4px 12px;
  border-radius:999px;
  background:rgba(255,255,255,0.2);
  border:1px solid rgba(255,255,255,0.35);
  color:#fff;
  width:fit-content;
}
.activity-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:28px;align-items:start}
.activity-layout .card{max-width:none;margin:0}
.activity-main{padding:28px}
.activity-meta{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.meta-dot{width:8px;height:8px;border-radius:50%;background:linear-gradient(135deg,#0ea5e9,#ec4899)}
.rich-content{font-size:16px;line-height:1.9;color:#111827}
.rich-content p{margin:0 0 12px 0}
.rich-content h1,.rich-content h2,.rich-content h3{margin:16px 0 8px 0;line-height:1.2}
.rich-content ul,.rich-content ol{padding-left:20px;margin:0 0 12px 0}
.rich-content img{
  max-width:100%;
  height:auto;
  display:block;
  margin:16px auto;
  border-radius:14px;
  box-shadow:0 14px 30px rgba(2,6,23,0.12);
}
.rich-content blockquote{
  margin:12px 0;
  padding:12px 14px;
  background:rgba(14,165,233,0.08);
  border-left:4px solid rgba(14,165,233,0.5);
  border-radius:10px;
  color:#0f172a;
}
.activity-side{display:flex;flex-direction:column;gap:16px}
.purchase-card h4{margin:0 0 4px 0}
.purchase-grid{display:grid;gap:10px;margin-top:10px}
.purchase-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:12px;
  text-decoration:none;
  font-weight:600;
  color:#fff;
  background:linear-gradient(135deg,#0ea5e9 0%,#6366f1 50%,#ec4899 100%);
  box-shadow:0 12px 20px rgba(14,165,233,0.2);
  transition:transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.purchase-btn:hover{transform:translateY(-1px);box-shadow:0 16px 26px rgba(14,165,233,0.25);filter:saturate(1.08)}

/* 活动编辑页 */
.activity-edit-form .form-section{margin-top:16px}
.activity-edit-form h4{margin:0 0 6px 0}
.link-config{display:flex;flex-direction:column;gap:12px;margin-top:10px}
.link-row{display:grid;grid-template-columns:1.1fr 1.4fr auto;gap:12px;align-items:end}
.link-row label{display:flex;flex-direction:column;gap:6px}
.inline-check{display:flex;align-items:center;gap:8px;font-size:13px;color:#0f172a}

@media (max-width: 960px){
  .activity-layout{grid-template-columns:1fr}
}

@media (max-width: 640px){
  .link-row{grid-template-columns:1fr;align-items:stretch}
}

/* 配置分类列表美化 */
.category-hero{display:flex;align-items:center;justify-content:space-between;gap:16px}
.category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin-top:16px}
.category-card{
  background:linear-gradient(180deg,rgba(255,255,255,0.98),rgba(250,250,250,0.98));
  border-radius:16px;
  padding:16px;
  border:1px solid rgba(15,23,42,0.08);
  box-shadow:0 16px 30px rgba(2,6,23,0.08);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.category-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.category-card-head h4{margin:0;font-size:16px;color:#0f172a;flex:1 1 auto}
.category-card-head a{text-decoration:none;color:#0f172a}
.category-card-head a:hover{color:var(--accent)}
.category-card-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.empty-card{max-width:none}
.summary-strong{
  position:relative;
  animation:totalGlow 2.2s ease-in-out infinite;
}

@keyframes totalGlow{
  0%{transform:translateY(0);filter:drop-shadow(0 0 0 rgba(225,29,72,0.0))}
  50%{transform:translateY(-1px);filter:drop-shadow(0 6px 14px rgba(225,29,72,0.25))}
  100%{transform:translateY(0);filter:drop-shadow(0 0 0 rgba(225,29,72,0.0))}
}
.summary-strong .summary-label{color:#e11d48;font-size:21px;font-weight:700}
.order-hero-row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.order-meta-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;width:100%}
.order-meta-row .order-edit-btn{margin-left:auto}
.order-topbar{padding:8px 12px}
.order-topbar h2{font-size:20px;margin:0}
.order-topbar .muted{font-size:12px}
.config-case{
  margin-top:16px;
  padding-top:12px;
  border-top:1px dashed rgba(15,23,42,0.12);
}
.config-case-frame{position:relative;width:72vw;max-width:520px;margin:0 auto;border-radius:12px;overflow:hidden}
.config-case-frame::after{
  content:"";
  position:absolute;
  inset:-30% 0 0 -60%;
  width:60%;
  height:160%;
  background:linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
  transform:translateX(-120%) skewX(-12deg);
  animation:logoSheen 3.2s ease-in-out infinite;
  pointer-events:none;
  border-radius:12px;
}
.config-case-img{display:block;width:100%;max-width:520px;border-radius:12px;box-shadow:0 12px 28px rgba(2,6,23,0.08)}
.order-edit-btn{
  background:linear-gradient(135deg, rgba(255,255,255,0.75), rgba(255,255,255,0.45));
  color:#0f172a;
  border:1px solid rgba(255,255,255,0.6);
  font-weight:500;
  font-size:14px;
  padding:6px 12px;
  border-radius:10px;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  box-shadow:0 10px 20px rgba(2,6,23,0.08);
  transition:transform .2s ease, box-shadow .2s ease;
  animation:orderPulse 2.2s ease-in-out infinite;
}
.order-edit-btn:hover{
  transform:translateY(-1px) scale(1.02);
  box-shadow:0 14px 26px rgba(2,6,23,0.12);
  background:#f3f4f6;
  color:#0f172a;
  border-color:rgba(15,23,42,0.2);
}

@keyframes orderPulse{
  0%{transform:translateX(0)}
  50%{transform:translateX(3px)}
  100%{transform:translateX(0)}
}
.order-topbar h2{font-size:21px}
.order-topbar .muted{font-size:13px}

/* admin page tweaks retained */
.card label input[name="mid"], .card label input[name="title"], .card label input[name="desc"]{width:100%;padding:10px;margin-top:8px;border-radius:10px;border:1px solid var(--subtle)}
.card #editor{min-height:280px;background:white;padding:14px;border-radius:10px;border:1px solid rgba(15,23,42,0.04)}

/* 后台管理页（专业化布局） */
.admin-shell{max-width:1280px}
.admin-layout{
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
  gap:18px;
  align-items:start;
}
.admin-sidebar{
  position:sticky;
  top:86px;
  align-self:start;
  background:linear-gradient(180deg,#ffffff,#f8fafc);
  border-radius:16px;
  padding:16px 14px;
  border:1px solid rgba(15,23,42,0.06);
  box-shadow:0 14px 30px rgba(2,6,23,0.06);
  min-height:380px;
}
.admin-sidebar-title{
  font-size:16px;
  font-weight:700;
  margin:4px 6px 10px;
}
.admin-tree{display:flex;flex-direction:column;gap:10px}
.admin-tree-section{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:rgba(15,23,42,0.45);
  margin:4px 6px;
}
.admin-tree ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.admin-tree a{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:10px;
  text-decoration:none;
  color:#0f172a;
  font-size:14px;
  transition:background .15s ease,color .15s ease,transform .15s ease;
}
.admin-tree a:hover{background:rgba(14,165,233,0.1);color:#0ea5e9;transform:translateX(2px)}
.admin-tree-dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:rgba(14,165,233,0.6);
  flex:0 0 auto;
}
.admin-content{min-width:0}
.admin-hero{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  padding:18px;
  border-radius:16px;
  background:linear-gradient(135deg,rgba(14,165,233,0.14),rgba(99,102,241,0.12));
  border:1px solid rgba(15,23,42,0.06);
  box-shadow:0 18px 40px rgba(2,6,23,0.08);
  margin:10px 0 18px;
}
.admin-hero h2{margin:0}
.admin-hero-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.admin-chip{
  padding:4px 10px;
  border-radius:999px;
  background:#0ea5e9;
  color:#fff;
  font-size:12px;
}
.admin-chip-soft{background:rgba(15,23,42,0.08);color:#0f172a}
.admin-actions{display:flex;gap:10px;flex-wrap:wrap}

.admin-panel{
  background:linear-gradient(180deg,#ffffff,#f8fafc);
  border-radius:16px;
  padding:16px;
  border:1px solid rgba(15,23,42,0.06);
}
.admin-panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.admin-panel-head h3{margin:0}

.admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.admin-card{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,0.06);
  background:#fff;
  text-decoration:none;
  color:#0f172a;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.admin-card:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 30px rgba(2,6,23,0.08);
  border-color:rgba(14,165,233,0.35);
}
.admin-card-icon{
  width:36px;
  height:36px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(14,165,233,0.12);
  color:#0ea5e9;
  font-size:16px;
  flex:0 0 auto;
}
.admin-card-body h4{margin:0 0 4px 0;font-size:16px}
.admin-card-body p{margin:0;font-size:12px}
.admin-card-arrow{margin-left:auto;color:rgba(15,23,42,0.35);font-size:18px}

@media (max-width:800px){
  .admin-layout{grid-template-columns:1fr}
  .admin-sidebar{position:static}
  .admin-hero{flex-direction:column;align-items:flex-start}
  .admin-actions{width:100%}
  .admin-grid{grid-template-columns:1fr}
  .grid{gap:10px}
  .module-list-grid{grid-template-columns:1fr;gap:10px}
  .module-card{padding:12px;border-radius:4px}
}

/* AI 配置页 */
.ai-card{max-width:820px}
.ai-form textarea{
  width:100%;
  min-height:70px;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--subtle);
  outline:none;
  resize:vertical;
  font-size:14px;
}
.ai-result pre{
  white-space:pre-wrap;
  background:rgba(15,23,42,0.03);
  border-radius:12px;
  padding:12px;
  border:1px solid rgba(15,23,42,0.06);
  font-size:13px;
  line-height:1.5;
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* 自助DIY 配置页 */
.diy-card{max-width:980px;margin-top:2px}
.cpu-hero{margin-bottom:2px}
.diy-table{display:flex;flex-direction:column;gap:2px}
.diy-row{display:grid;grid-template-columns:32px 1fr 80px;gap:6px;align-items:center}
.diy-row.diy-header{
  font-weight:600;
  color:#fff;
  font-size:14px;
  text-transform:none;
  letter-spacing:0.4px;
  text-decoration:none;
}
.diy-row.diy-header .diy-name,
.diy-row.diy-header .diy-select,
.diy-row.diy-header .diy-price{
  color:#fff;
  text-decoration:none;
}
.diy-row.diy-header{
  background:linear-gradient(135deg, rgba(14,165,233,1) 0%, rgba(99,102,241,1) 50%, rgba(236,72,153,1) 100%);
  border:1px solid rgba(15,23,42,0.06);
  border-radius:10px;
  padding:5px 14px;
  width:calc(100% + 44px);
  margin-left:-22px;
  margin-right:-22px;
}
.diy-row.diy-order-row{border-bottom:1px dashed rgba(15,23,42,0.06);padding-bottom:4px;margin-bottom:2px}
.diy-row.diy-order-row{margin-top:-4px}
.diy-row.diy-total-row{border-top:1px dashed rgba(15,23,42,0.1);padding-top:8px;margin-top:6px}
.diy-row.diy-discount-row{border-top:1px dashed rgba(15,23,42,0.06);padding-top:6px;margin-top:4px}
.diy-row.diy-shipping-row{border-top:1px dashed rgba(15,23,42,0.06);padding-top:6px;margin-top:4px}
.diy-row.diy-subtotal-row{border-top:1px dashed rgba(15,23,42,0.06);padding-top:6px;margin-top:4px}
.diy-col{display:flex;align-items:center;justify-content:center;text-align:center}
.diy-name{font-size:14px;color:#0f172a;text-align:left;justify-content:flex-start}
.diy-row.diy-header .diy-name,
.diy-row.diy-order-row .diy-name{
  color:#fff;
  font-weight:400;
}
.diy-row.diy-order-row .diy-name{color:#0f172a}
.diy-name,
.diy-select,
.diy-price{
  white-space:nowrap;
}
.diy-price{justify-content:center}
.diy-price-input{
  text-align:center;
}
.diy-profit{margin-left:12px;font-size:13px;color:#0f172a}
.diy-input-wrap{position:relative;width:100%}
.diy-select .diy-input-wrap{width:calc(100% - 17px)}
.diy-shipping-select{width:calc(100% - 17px);display:block}
.diy-input{
  width:100%;
  height:30px;
  padding:4px 8px;
  border-radius:4px;
  border:1px solid rgba(59,130,246,0.18);
  outline:none;
  font-size:13px;
  background:#fff;
}

textarea.diy-input{
  height:auto;
  min-height:240px; /* ~10行以上的默认编辑高度 */
  padding:10px 12px;
  line-height:1.5;
  resize:vertical;
}
.diy-price .diy-input,
.diy-price-input{
  border-color:rgba(236,72,153,0.22);
}
.diy-input-wrap.has-toggle .diy-input{
  padding-right:22px;
}
.diy-toggle{
  position:absolute;
  right:6px;
  top:50%;
  transform:translateY(-50%);
  width:16px;
  height:16px;
  border:none;
  background:transparent;
  color:rgba(15,23,42,0.6);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  font-size:12px;
}
.diy-toggle:hover{color:#0f172a}
.diy-discount-amount{
  text-align:right;
}
.diy-discount-amount{
  border-width:2px;
}
.diy-order-label{font-weight:700}
.diy-order-input{
  font-weight:400;
  color:#0f172a;
  text-align:center;
  background:rgba(15,23,42,0.03);
}
.diy-order-inline{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:nowrap;
}
.diy-order-inline .diy-order-input{
  width:120px;
  max-width:140px;
  flex:0 0 auto;
}
.diy-order-inline .diy-zd1-select{
  flex:0 0 auto;
  width:88px;
  min-width:96px;
  color:#0f172a;
}
.diy-order-inline .diy-sort-toggle{white-space:nowrap}
.diy-order-inline .diy-zd1-select:disabled{
  color:#1e3a8a;
}
.diy-input:focus{border-color:rgba(14,165,233,0.55);box-shadow:0 0 0 3px rgba(14,165,233,0.12)}
.diy-dropdown{
  position:fixed;
  left:0;
  top:0;
  box-sizing:border-box;
  background:#fff;
  border-radius:4px;
  border:1px solid rgba(15,23,42,0.08);
  box-shadow:0 12px 28px rgba(2,6,23,0.08);
  max-height:420px;
  overflow:auto;
  overflow-y:auto;
  overscroll-behavior:contain;
  z-index:30;
  padding:1px;
  min-width:100%;
}
.diy-actions{display:flex;justify-content:flex-end;margin-top:12px}
.diy-option{
  display:flex;
  justify-content:flex-start;
  gap:4px;
  padding:6px 8px;
  border-radius:4px;
  cursor:pointer;
  font-size:13px;
}
.diy-option + .diy-option{margin-top:1px}
.diy-option-name{flex:0 0 auto;text-align:left}
.diy-option:hover,
.diy-option.active{background:rgba(14,165,233,0.12);color:#0b4dd6}
.diy-option-price{flex:0 0 auto;color:#ef4444;font-weight:500;text-align:left}
.diy-sort-toggle{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  color:rgba(15,23,42,0.7);
  white-space:nowrap;
}
.diy-sort-toggle input{margin:0}
.diy-total{font-size:18px;font-weight:800;color:#ef4444}
.diy-profit{font-size:12px;color:#0f172a;opacity:0.85;display:none !important}
.diy-actions .diy-save{
  padding:10px 16px;
  border-radius:999px;
  background:linear-gradient(135deg,#0ea5e9 0%,#6366f1 50%,#ec4899 100%);
  color:#fff;
  border:none;
  box-shadow:0 10px 22px rgba(14,165,233,0.25),0 6px 14px rgba(99,102,241,0.2);
  font-weight:600;
  transition:transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.diy-actions .diy-save:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 26px rgba(14,165,233,0.3),0 8px 18px rgba(99,102,241,0.25);
  filter:saturate(1.05);
}
.diy-total-cost{display:none}

/* 自定义确认弹窗 */
.modal{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:80;opacity:0;pointer-events:none;transition:opacity .2s ease}
.modal[aria-hidden="false"]{opacity:1;pointer-events:auto}
.modal-backdrop{position:absolute;inset:0;background:rgba(2,6,23,0.35)}
.modal-card{position:relative;background:#fff;border-radius:14px;padding:18px 20px;min-width:280px;max-width:360px;box-shadow:0 20px 40px rgba(2,6,23,0.2)}
.modal-card h3{margin:0 0 8px 0;font-size:16px}
.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:14px}
.btn.light{background:#f3f4f6;color:#0f172a;border:1px solid rgba(15,23,42,0.12)}

/* 响应式 */
@media (max-width:1100px){
  .container{padding:18px}
  .layout-two-col{grid-template-columns:1fr 300px}
}

@media (max-width:800px){
  .topbar{height:64px;padding:8px 14px}
  .topbar .left{width:100%;justify-content:space-between}
  .brand-mini{order:1}
  .menu-block{order:2;margin-left:auto}
  .menu-btn{display:flex}
  .topbar .nav-right{
    display:flex;
    position:absolute;
    right:12px;
    top:64px;
    background:rgba(255,255,255,0.9);
    padding:8px;
    border-radius:10px;
    flex-direction:column;
    opacity:0;
    transform:translateY(-6px);
    pointer-events:none;
    visibility:hidden;
    transition:opacity .35s ease, transform .35s ease, visibility .35s ease;
  }
  .topbar .nav-right a{
    padding:4px 8px;
    line-height:1.2;
  }
  .topbar .nav-right.open{
    opacity:1;
    transform:translateY(0);
    pointer-events:auto;
    visibility:visible;
  }
  .topbar .nav-right.fade-out{
    opacity:0;
    transform:translateY(-6px);
    pointer-events:none;
    visibility:hidden;
  }
  .container{padding:12px}
  .layout-two-col{grid-template-columns:1fr}
  .module-list-grid{grid-template-columns:1fr}
  .market-card{width:88vw;max-width:88vw;margin-left:auto;margin-right:auto}
  .cpu-list{height:auto;overflow:visible}
}

/* CPU List Styles */
.cpu-list {
  margin-top: 14px;
  display:flex;
  flex-direction:column;
  gap:3px;
}

.cpu-list .cpu-item {
  background: #ffffff;
  padding: 7px 8px;
  margin-bottom: 0;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,0.04);
  box-shadow: 0 6px 18px rgba(2,6,23,0.06);
  display: block;
  clear: both;
  cursor: pointer;
}
.cpu-text{display:flex;align-items:center;gap:0}
.cpu-logo-wrap{
  width:16px;
  height:16px;
  border-radius:6px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, rgba(14,165,233,0.25), rgba(59,130,246,0.35));
  border:1px solid rgba(59,130,246,0.4);
  flex:0 0 auto;
  overflow:hidden;
  margin-right:4px;
  animation:logoBlink 2.6s ease-in-out infinite;
  animation-delay: calc(var(--blink-delay, 0) * 0.2s);
}
.cpu-logo-wrap.good{
  background:linear-gradient(135deg, rgba(14,165,233,0.28), rgba(59,130,246,0.38));
  border-color:rgba(59,130,246,0.45);
}
.cpu-logo-wrap.bad{
  background:linear-gradient(135deg, rgba(236,72,153,0.28), rgba(139,92,246,0.32));
  border-color:rgba(236,72,153,0.45);
}
.cpu-logo{
  width:12px;
  height:12px;
  object-fit:contain;
  display:block;
}

@keyframes logoBlink{
  0%, 80%, 100%{opacity:1; filter:brightness(1)}
  90%{opacity:0.65; filter:brightness(1.2)}
}
.cpu-empty{
  text-align:center;
  font-size:12px;
  color:rgba(15,23,42,0.5);
  padding:12px 0;
}

.cpu-list .cpu-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}


.cpu-list .cpu-name {
  font-weight: 400;
  color: #0b1324;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  letter-spacing: .2px;
}

.cpu-list .cpu-name.full,
.cpu-list .cpu-name.hover-full{
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.cpu-list .cpu-item:hover .cpu-name{font-weight:600}

.cpu-list .cpu-price {
  color: #ef4444;
  font-weight: 400;
  margin-left: auto;
  font-size: 14px;
  white-space: nowrap;
}

.enlarged {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 60vw;
  max-width: 60vw;
  height: auto;
  max-height: 60vh;
  z-index: 1000;
  background: rgba(0,0,0,0.5);
  padding: 0;
  border-radius: 12px;
  border: 2px solid rgba(0,0,0,0.8);
  cursor: pointer;
  object-fit: contain;
  box-shadow:
    0 0 18px rgba(255,255,255,0.12),
    0 0 32px rgba(99,102,241,0.15),
    0 0 48px rgba(14,165,233,0.12);
  opacity: 0;
  transition: transform .12s ease, opacity .12s ease;
}
.enlarged.show{
  opacity:1;
  transform: translate(-50%, -50%) scale(1.1);
}