﻿/* Copyright (c) UPtools. 仅供学习参考和二开使用，禁止原版倒卖�?*/
:root {
  --ink: #002766;
  --muted: #1677ff;
  --line: rgba(22, 119, 255, .22);
  --paper: #e6f4ff;
  --card: rgba(255, 255, 255, .74);
  --brand: #0050b3;
  --brand-2: #1677ff;
  --brand-3: #69b1ff;
  --danger: #f43f5e;
  --ok: #10b981;
  --shadow: 0 24px 70px rgba(22, 119, 255, .12);
  --inner: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -18px 40px rgba(22,119,255,.04);
  --hero-from: #002766;
  --hero-via: #0050b3;
  --hero-to: #4096ff;
  --hero-shadow: rgba(22, 119, 255, .28);
  --input-bg: rgba(255,255,255,.82);
  --input-focus-ring: rgba(22, 119, 255, .15);
  --th-bg: rgba(230, 244, 255, .5);
  --th-color: #0050b3;
  --tr-hover: rgba(230, 244, 255, .4);
  --resource-body-bg: rgba(230, 244, 255, .82);
  --announce-bg: rgba(230, 244, 255, .86);
  --code-bg: rgba(230, 244, 255, .92);
  --code-color: #0050b3;
  --badge-yellow-bg: #fef3c7;
  --badge-yellow-color: #92400e;
  --badge-green-bg: #d1fae5;
  --badge-green-color: #065f46;
  --badge-red-bg: #fee2e2;
  --badge-red-color: #991b1b;
  --text-ad-bg: rgba(255,255,255,.75);
  --text-ad-color: #0050b3;
  --text-ad-border: rgba(22, 119, 255, .24);
  --menu-item-bg: rgba(186, 230, 253, .84);
  --menu-item-hover: rgba(22, 119, 255, .12);
  --pill-bg: rgba(255,255,255,.74);
  --notice-bg: rgba(255,255,255,.78);
  --modal-bg: rgba(255,255,255,.92);
  --danger-notice-bg: rgba(254, 242, 242, .86);
  --danger-notice-border: rgba(244, 63, 94, .28);
  --danger-notice-color: #9f1239;
  --footer-bg: transparent;
  --grid-line: rgba(22, 119, 255, .05);
  --glow-color: rgba(22, 119, 255, .2);
  --success-hero-from: #002766;
  --success-hero-to: #4096ff;
  --admin-body-bg: #e6f4ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(99, 102, 241, .28) 0, transparent 28%),
    radial-gradient(circle at 84% 16%, rgba(79, 70, 229, .2) 0, transparent 24%),
    linear-gradient(135deg, #f8faff 0%, #eef2ff 48%, #e0e7ff 100%);
  font-family: "Microsoft YaHei", "PingFang SC", "Trebuchet MS", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  /* 性能优化:优化滚动行为,减少重排 */
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(99, 102, 241, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, .05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 86%);
}
body::after {
  content: "";
  position: fixed;
  width: 380px;
  height: 380px;
  right: -150px;
  bottom: -160px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, .2), transparent 68%);
  animation: floatGlow 9s ease-in-out infinite alternate;
  /* 性能优化:提升到合成层,避免滚动时重绘 */
  will-change: transform;
  transform: translateZ(0);
  contain: strict;
  pointer-events: none;
}
a { color: inherit; text-decoration: none; }
svg { width: 1em; height: 1em; fill: currentColor; }
.svg-icon { display: inline-flex; align-items: center; justify-content: center; margin-right: 7px; vertical-align: -2px; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 18px 24px 26px;
  color: #fff;
  background: linear-gradient(125deg, var(--hero-from) 0%, var(--hero-via) 48%, var(--hero-to) 100%);
  border-radius: 24px;
  box-shadow: 0 12px 40px var(--hero-shadow);
  max-width: 1400px;
  margin: 18px auto 0;
  box-sizing: border-box;
  contain: layout paint;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 35%, rgba(255,255,255,.18) 36%, transparent 46%),
    radial-gradient(circle at 50% 0, rgba(255,255,255,.32), transparent 36%);
  animation: scanLight 8s linear infinite;
  transform: translateZ(0);
  pointer-events: none;
  contain: strict;
}
.hero-orbit { position: absolute; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; pointer-events: none; }
.hero-orbit.one { width: 180px; height: 180px; top: -70px; right: 12%; animation: orbit 12s linear infinite; }
.hero-orbit.two { width: 90px; height: 90px; left: 10%; bottom: -45px; animation: orbit 10s linear infinite reverse; }
.nav, .hero-body { position: relative; z-index: 1; }
.nav { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; position: relative; }
.nav > .nav-links { flex: 1; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
#themeSwitcherAnchor { flex-shrink: 0; align-self: center; width: auto; height: auto; }
.brand { display: inline-flex; align-items: center; font-size: 26px; font-weight: 900; letter-spacing: 2px; flex-shrink: 0; }
.brand .svg-icon { width: 34px; height: 34px; border-radius: 12px; background: rgba(255,255,255,.18); }
.mobile-menu-toggle { display: none !important; }
.nav-links a {
  opacity: .95;
  padding: 8px 16px;
  border: 1.5px solid #00c6ff;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  background: rgba(0, 198, 255, 0.08);
  box-shadow: 0 0 0 0 rgba(0, 198, 255, 0);
}
.nav-links a:hover {
  background: rgba(0, 198, 255, 0.25);
  border-color: #6ae6ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 198, 255, 0.45);
}
.hero-body { max-width: 1400px; margin: 34px auto 20px; }
.hero-body p { margin: 0 0 12px; color: rgba(255,255,255,.85); font-weight: 800; letter-spacing: 1px; }
.hero-body h1 { max-width: 100%; margin: 0; font-size: clamp(24px, 4vw, 46px); line-height: 1.08; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 10px 32px rgba(0,0,0,.2); }
.container { max-width: 1400px; margin: 18px auto 30px; padding: 0 18px; }
.container > .enhanced-dashboard { margin: 0; max-width: 100%; padding: 0; }
.footer { padding: 40px 20px; color: var(--muted); text-align: center; }

.notice, .ad-banner, .danger-notice {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), var(--inner);
  /* 性能优化:移除 backdrop-filter */
}
.danger-notice { background: rgba(255, 241, 244, .86); border-color: rgba(255, 77, 109, .28); color: #a41233; }
.danger-notice p { margin-bottom: 0; }

.search { display: grid; grid-template-columns: 1fr 160px; gap: 12px; margin: 24px 0; }
input, textarea, select, button {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255,255,255,.82);
  font: inherit;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, textarea:focus, select:focus { 
  border-color: rgba(11,134,255,.55); 
  box-shadow: 0 0 0 4px var(--glow-color, rgba(11,134,255,.11));
}
textarea {
  min-height: 80px;
  resize: both;
}
input[type="checkbox"] { width: auto; }
input[type="radio"] { width: auto; height: auto; padding: 0; margin: 0; border: none; border-radius: 0; box-shadow: none; background: transparent; vertical-align: middle; }
button, .btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  width: auto;                /* override global button{width:100%} */
  max-width: 100%;
  box-shadow: 0 2px 8px var(--glow-color, rgba(11, 134, 255, .2));
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  line-height: 1.4;
}
button:hover, .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--glow-color, rgba(11, 134, 255, .3));
}
.btn.ghost { 
  background: rgba(231, 246, 255, .95); 
  color: var(--brand); 
  box-shadow: none;
}
.btn.ghost.danger-link {
  background: rgba(254, 226, 226, .95);
  color: #991b1b;
}
.btn.tiny { 
  padding: 8px 16px; 
}
.btn.wide { 
  width: 100%; 
  margin-top: 18px;
}

/* 小药丸按钮 */
.btn-pill {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 16px !important;
  border: none;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  width: auto !important;          /* override global button{width:100%} */
  min-width: 0;                    /* override input/select global width:100% */
  max-width: 100%;
  box-shadow: 0 2px 8px var(--glow-color, rgba(11, 134, 255, 0.25)) !important;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  line-height: 1.4;
}
.btn-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--glow-color, rgba(11, 134, 255, 0.35)) !important;
}
.btn-pill.purple {
  background: linear-gradient(135deg, var(--brand), var(--brand-2)) !important;
  box-shadow: 0 2px 8px var(--glow-color, rgba(11, 134, 255, 0.3)) !important;
}
.btn-pill.purple:hover {
  box-shadow: 0 4px 12px var(--glow-color, rgba(11, 134, 255, 0.4)) !important;
}
.btn-pill.blue {
  background: linear-gradient(135deg, var(--brand), var(--brand-2)) !important;
}
.btn-pill.full {
  width: 100% !important;
  height: 40px !important;
}

.category-row, .actions, .tabs, .user-menu, .sub-menu { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.user-menu {
  padding: 18px;
  border-radius: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), var(--inner);
  /* 性能优化:移除 backdrop-filter */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.user-menu .menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(221,244,255,.84);
  color: var(--brand);
  font-weight: 900;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  border: 1px solid transparent;
}
.user-menu .menu-item:hover {
  background: rgba(11,134,255,.12);
  border-color: rgba(11,134,255,.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11,134,255,.15);
}
.pill, .tabs a {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.74);
  border: 1px solid var(--line);
  color: var(--brand);
  font-weight: 900;
  box-shadow: var(--inner);
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.resource, .card, .panel, .detail, .stats > div {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 26px;
  box-shadow: var(--shadow), var(--inner);
  /* 性能优化:移除 backdrop-filter,20+ 卡片同时模糊背景是滚动卡顿主因 */
  transition: box-shadow 0.2s ease;
  contain: layout style;
}
.resource::after, .card::after, .panel::after, .detail::after, .stats > div::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.36), transparent 42%);
}
.resource { transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; animation: cardIn .48s ease both; }
.resource:hover { 
  transform: translateY(-6px); 
  border-color: rgba(11,134,255,.42);
  box-shadow: 0 8px 24px rgba(18, 92, 174, .2), var(--inner);
}
.resource .thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 18px 18px 0 0;
  margin: -22px -22px 16px -22px;
  transition: transform 0.3s ease;
}
.resource:hover .thumb {
  transform: scale(1.05);
}
.resource-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.resource-top span, .resource span { display: inline-flex; align-items: center; color: var(--brand); font-size: 13px; font-weight: 900; }
.owned-badge { display: inline-flex; align-items: center; padding: 7px 10px; border-radius: 999px; color: #06734f; background: rgba(212, 255, 239, .92); border: 1px solid rgba(15,186,129,.24); font-size: 13px; font-weight: 900; }
.detail-owned { margin-left: 8px; }
.resource h3 { min-height: 58px; margin: 12px 0; font-size: 21px; line-height: 1.35; }
.resource p, .muted { color: var(--muted); }
.meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.meta b, .price { color: var(--danger); font-size: 28px; }
.sale-price { color: var(--danger); font-weight: 900; }
del { margin-left: 8px; color: var(--muted); font-size: 15px; font-weight: 500; }
.meta em { color: var(--muted); font-style: normal; }
.detail { display: grid; grid-template-columns: 1fr 280px; gap: 26px; align-items: start; }
.resource-body { margin: 18px 0; padding: 18px; border-radius: 20px; background: rgba(239, 248, 255, .82); border: 1px solid var(--line); line-height: 1.8; }
.form { max-width: 520px; margin: 0 auto; display: grid; gap: 14px; }
.wide-form { max-width: 800px; }
.form label {
  font-weight: 900;
  color: var(--brand);
  font-size: 14px;
  margin-top: 8px;
}
/* admin/two-column layout: form 40% / list 60% on wide screens, stack on narrow */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}
.two-col > * { min-width: 0; }
@media (max-width: 960px) {
  .two-col { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
.recharge-card {
  padding: 28px;
}
.recharge-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  margin-bottom: 16px;
}
.stats { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 18px; 
  margin-bottom: 20px;
}
.stats b { 
  display: block; 
  font-size: 32px; 
  color: var(--brand);
  margin-bottom: 6px;
}
.stats span { 
  color: var(--muted);
  font-size: 14px;
}
table { 
  width: 100%; 
  border-collapse: collapse;
}
th, td { 
  padding: 16px 14px; 
  border-bottom: 1px solid var(--line); 
  text-align: left; 
  vertical-align: top;
}
th { 
  color: #1d65b7;
  font-weight: 900;
  background: rgba(239, 248, 255, .5);
}
tbody tr {
  transition: background-color 0.15s ease;
}
tbody tr:hover {
  background-color: rgba(239, 248, 255, .3);
}
.inline { display: flex; gap: 8px; }
code { background: rgba(224, 244, 255, .92); padding: 4px 7px; border-radius: 9px; color: #0756d8; }
.ad-grid { display: grid; grid-template-columns: repeat(6, minmax(118px, 1fr)); gap: 10px; margin: 20px 0; max-width: 100%; }
.text-ad { min-width: 0; height: 42px; display: flex; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid rgba(11,134,255,.24); border-radius: 14px; background: rgba(255,255,255,.75); color: #0965d5; font-size: 15px; font-weight: 900; line-height: 1; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; box-shadow: var(--inner); }
.badge { display: inline-flex; padding: 6px 10px; border-radius: 999px; font-weight: 900; font-size: 13px; }
.badge.yellow { background: #fff7d6; color: #8a5a00; }
.badge.green { background: #dcfce7; color: #166534; }
.badge.red, .danger-link { background: #fee2e2; color: #991b1b; }
.thumb { 
  width: 100%; 
  height: 150px; 
  object-fit: cover; 
  border-radius: 18px; 
  margin-bottom: 12px;
}
.shipping-info {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.point-product {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.point-product h3 {
  margin: 8px 0 4px;
  font-size: 18px;
}
.point-price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
}
.points-cost {
  font-weight: 900;
  color: var(--brand);
  font-size: 16px;
}
.ad-admin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
.ad-admin-item, .mini-form { 
  display: grid; 
  gap: 6px;
}
.mini-form label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  margin-top: 4px;
}
.announce-card { margin-bottom: 18px; padding: 18px 22px; border-radius: 24px; background: rgba(229, 248, 255, .86); border: 1px solid var(--line); box-shadow: var(--inner); }
.announce-card h3 { margin: 0 0 8px; color: var(--brand); }
.modal-mask { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(7, 31, 62, .46); backdrop-filter: blur(8px); }
.modal { max-width: 460px; width: 100%; padding: 26px; border-radius: 30px; background: rgba(255,255,255,.92); box-shadow: 0 10px 30px rgba(0,67,140,.24); }
.modal h3 { margin-top: 0; color: var(--brand); }

/* === 公告弹窗美化 === */
.announce-modal {
  max-width: 440px;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
  animation: announcePop .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes announcePop {
  from { opacity: 0; transform: scale(.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.announce-modal-header {
  padding: 32px 32px 20px;
  text-align: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.announce-modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.announce-modal-header h3 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}
.announce-modal-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.08), transparent);
}
.announce-modal-body {
  padding: 24px 32px;
  color: #4a5568;
  font-size: 14px;
  line-height: 1.8;
  max-height: 320px;
  overflow-y: auto;
}
.announce-modal-footer {
  padding: 0 32px 28px;
  text-align: center;
}
.announce-modal-btn {
  display: inline-block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
}
.announce-modal-btn:hover {
  opacity: .9;
  transform: translateY(-1px);
}
.announce-modal-btn:active {
  transform: translateY(0);
}

.success-hero { display: grid; grid-template-columns: 1fr 140px; gap: 20px; align-items: center; padding: 28px; margin-bottom: 18px; border-radius: 34px; color: #fff; background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); box-shadow: 0 28px 80px var(--hero-shadow); }
.success-kicker { display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.18); font-weight: 900; }
.success-hero h2 { margin: 14px 0 8px; font-size: clamp(26px, 4vw, 44px); }
.success-hero p { margin: 0; color: #dcf8ff; }
.success-seal { width: 118px; height: 118px; display: grid; place-items: center; border-radius: 50%; border: 2px dashed rgba(255,255,255,.68); font-weight: 900; letter-spacing: 2px; transform: rotate(-12deg); }
.success-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.success-info h2 { margin-top: 0; }
.info-list { display: grid; gap: 10px; }
.info-list p { display: flex; justify-content: space-between; gap: 14px; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-list b { color: #1d65b7; }

.install-wrap { max-width: 920px; }
.install-card { margin: 28px auto; }
.install-card h1 { margin-top: 0; font-size: clamp(30px, 5vw, 48px); }
.agree-line { display: flex; gap: 10px; align-items: center; margin: 18px 0; font-weight: 900; }
/* ===== Art Design Pro 风格后台 ===== */
.admin-body {
  background: #f0f2f5;
  overflow: hidden;
  height: 100vh;
}
.admin-shell {
  height: 100vh;
  overflow: hidden;
  display: flex;
}

/* === 侧边栏(纯白) === */
.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  padding: 0;
  background: #fff;
  border-right: 1px solid #f0f0f0;
  color: #1e293b;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.2s ease;
}
.admin-logo {
  padding: 14px 20px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  flex-shrink: 0;
}
.admin-logo::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, #722ed1, #1890ff);
  flex-shrink: 0;
}
.admin-sub {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  opacity: 1;
  padding: 8px 24px;
  flex-shrink: 0;
}
.admin-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.admin-sidebar a {
  position: relative;
  padding: 8px 14px;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-weight: 500;
  font-size: 13px;
  transition: all 0.2s ease;
  border: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}
.admin-sidebar a:hover {
  background: #f5f5f5;
  color: #1e293b;
  transform: none;
}
/* 当前选中菜单项(Art Design Pro 风格:浅蓝背景+左侧渐变竖线) */
.admin-sidebar a.active {
  background: linear-gradient(135deg, rgba(114,46,209,0.08), rgba(24,144,255,0.08));
  color: #1890ff;
  font-weight: 500;
}
.admin-sidebar a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  background: linear-gradient(180deg, #722ed1, #1890ff);
  border-radius: 0 2px 2px 0;
}
.admin-bottom-nav {
  padding: 4px 8px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-shrink: 0;
}
.admin-bottom-nav a {
  padding: 6px 14px;
  font-size: 13px;
}

/* 清除缓存按钮容器 */
.admin-sidebar > div[style*="margin-top:20px"] {
  margin-top: 20px;
}
.menu-dot {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f5222d;
  box-shadow: 0 0 0 2px rgba(245,34,45,0.15);
}

/* === 主内容区 === */
.admin-main {
  min-width: 0;
  flex: 1;
  margin-left: 220px;
  padding: 0;
  height: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}
.admin-main .panel, .admin-main .stats > div {
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s ease;
  border-radius: 8px;
}
.admin-main .panel:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* === 顶栏(Art Design Pro 风格) === */
.admin-header {
  position: sticky;
  top: 0;
  z-index: 99;
  height: 56px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: none;
}
.admin-breadcrumb {
  font-size: 14px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-breadcrumb .sep {
  color: #d9d9d9;
}
.admin-breadcrumb .current {
  color: #1e293b;
  font-weight: 500;
}
.admin-header-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}
.admin-search {
  padding: 6px 12px;
  background: #f5f5f5;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  color: #8c8c8c;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.admin-search:hover {
  background: #f0f0f0;
}
.admin-search .kbd {
  background: #e8e8e8;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  color: #8c8c8c;
}
.admin-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: #64748b;
  transition: all 0.2s ease;
  position: relative;
}
.admin-header-icon:hover {
  background: #f5f5f5;
  color: #1890ff;
}
.admin-header-icon .badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f5222d;
  border: 2px solid #fff;
}
.admin-header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #722ed1, #1890ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

/* === 主内容容器(独立滚动区) === */
.admin-content {
  flex: 1;
  min-height: 0;
  padding: 24px 24px 24px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* === 后台表格增强 === */
.admin-main table {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.admin-main table th {
  background: #fafafa;
  color: #8c8c8c;
  font-weight: 500;
  font-size: 13px;
  border-bottom: 1px solid #f0f0f0;
  padding: 12px 16px;
}
.admin-main table td {
  padding: 16px;
  font-size: 14px;
  color: #1e293b;
  border-bottom: 1px solid #f5f5f5;
}
.admin-main table tr:last-child td {
  border-bottom: none;
}
.admin-main table tr:hover td {
  background: #fafafa;
}

/* === 后台按钮 === */
.admin-main .btn,
.admin-main button[type="submit"] {
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.admin-main .btn-primary {
  background: linear-gradient(135deg, #722ed1, #1890ff);
  color: #fff;
  border: none;
}
.admin-main .btn-primary:hover {
  box-shadow: 0 4px 12px rgba(24,144,255,0.3);
}

/* === 后台标签/徽章 === */
.admin-main .tag,
.admin-main .badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

/* === 版权(侧边栏底部) === */
.admin-copy {
  padding: 4px 8px;
  margin-top: 4px;
  color: #8c8c8c;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
  background: transparent;
  border-top: none;
}
.dashboard-screen {
  margin-top: 20px;
}
.dashboard-screen h2 {
  margin-top: 0;
  margin-bottom: 20px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.dashboard-card {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255,255,255,.85);
  border: 1px solid var(--line);
  box-shadow: var(--inner);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(18,92,174,.12), var(--inner);
}
.dashboard-card.warning {
  background: rgba(255, 247, 214, .85);
  border-color: rgba(255, 193, 7, .3);
}
.dashboard-card h3 {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--muted);
  font-weight: 700;
}
.metric-value {
  font-size: 36px;
  font-weight: 900;
  color: var(--brand);
  margin: 8px 0;
}
.metric-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.metric-compare {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.dashboard-card .btn.tiny {
  margin-top: 12px;
}
.actions-cell {
  min-width: 140px;
}
.actions-cell button,
.actions-cell .btn {
  width: 100%;
}
.admin-copy { 
  padding: 12px 24px; 
  margin-left: 238px; 
  color: var(--muted); 
  font-size: 13px; 
  text-align: center;
}

@keyframes scanLight { 0% { transform: translateX(-18%); } 100% { transform: translateX(18%); } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes floatGlow { to { transform: translate(-34px, -28px) scale(1.08); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
  .hero { padding: 18px; border-bottom-left-radius: 28px; border-bottom-right-radius: 28px; }
  .nav { align-items: flex-start; flex-direction: column; }
  .search, .two-col, .detail, .success-grid, .success-hero { grid-template-columns: 1fr; display: grid; }
  .grid, .stats { grid-template-columns: 1fr; }
  .ad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-admin-grid { grid-template-columns: 1fr; }
  .inline { flex-direction: column; }
  .hero-body h1 { white-space: normal; }
  .success-seal { width: 96px; height: 96px; }
  table { font-size: 14px; }
  .admin-shell { display: block; height: auto; overflow: visible; }
  .admin-body { overflow: auto; height: auto; }
  .admin-sidebar { position: fixed; transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
  .admin-main { margin-left: 0; height: auto; overflow: visible; }
  .admin-content { padding: 16px; overflow-y: visible; }
  .admin-copy { margin-left: 0; }
  .admin-header { padding: 0 16px; }
  .admin-search { display: none; }
  .user-menu {
    grid-template-columns: 1fr;
  }
  .resource .thumb {
    height: 150px;
  }
  
  /* 资源详情页移动端适配 */
  .purchase-card-inner {
    flex-direction: column;
  }
  
  .purchase-card-left {
    flex-direction: column;
    width: 100%;
  }
  
  .purchase-cover-wrapper {
    width: 100%;
    max-width: 300px;
    height: 200px;
  }
  
  .purchase-card-right {
    width: 100%;
    min-width: auto;
  }
  
  .purchase-price {
    font-size: 1.8rem;
  }
  
  .resource-content {
    padding: 20px;
  }
  
  .resource-gallery .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

/* 资源详情�?- 顶部购买卡片 */
.resource-purchase-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
  color: #fff;
}

.purchase-card-inner {
  display: flex;
  gap: 24px;
  align-items: center;
}

.purchase-card-left {
  flex: 1;
  display: flex;
  gap: 20px;
  align-items: center;
}

.purchase-cover-wrapper {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.purchase-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.purchase-info {
  flex: 1;
}

.purchase-info .pill {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  margin-bottom: 12px;
}

.purchase-info .owned-badge {
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.purchase-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 12px 0;
  line-height: 1.3;
  color: #fff;
}

.purchase-meta {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
}

.purchase-card-right {
  flex-shrink: 0;
  text-align: center;
  min-width: 180px;
}

.purchase-price {
  font-size: 2rem;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
  margin-bottom: 16px;
}

.purchase-btn {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #333;
  border: none;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4);
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
}

.purchase-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 215, 0, 0.5);
}

/* 资源主内容区�?*/
.resource-content {
  background: var(--card);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid var(--line);
}

.resource-main {
  max-width: 100%;
}

.resource-description,
.resource-gallery,
.resource-detail,
.resource-downloads {
  margin-bottom: 32px;
}

.resource-description h3,
.resource-gallery h3,
.resource-detail h3,
.resource-downloads h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-icon {
  font-size: 1.4rem;
}

.resource-description p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

.resource-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.gallery-item {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.detail-content {
  background: rgba(243, 244, 246, 0.5);
  padding: 20px;
  border-radius: 12px;
  line-height: 1.8;
  color: var(--text);
}

.resource-downloads {
  border-top: 2px solid var(--line);
  padding-top: 32px;
}

/* 网盘链接卡片样式 - v2.0 优化�?*/
.cloud-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.cloud-link-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.cloud-link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 134, 255, 0.15);
  border-color: var(--brand);
}

.cloud-link-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.cloud-icon {
  font-size: 24px;
  line-height: 1;
}

.cloud-name {
  flex: 1;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}

.cloud-price-tag {
  background: linear-gradient(135deg, #ff6b6b, #ff4757);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

.cloud-get-link-btn {
  width: 100%;
  margin-top: 8px;
}

.cloud-link-info {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.cloud-link-info p {
  margin: 8px 0;
  font-size: 0.9rem;
}

.cloud-link-info code.pickup-code {
  background: rgba(11, 134, 255, 0.1);
  color: var(--brand);
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

.cloud-direct-link {
  color: var(--brand);
  text-decoration: underline;
  word-break: break-all;
}

.cloud-direct-link:hover {
  color: var(--brand-2);
}

/* 资源详情�?- 新布局样式 v3.0 */

/* 顶部标题和封面图区域 */
.resource-header {
  background: var(--card);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
}

.resource-header-inner {
  display: flex;
  gap: 32px;
  align-items: center;
}

.header-cover-wrapper {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.header-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.header-info {
  flex: 1;
}

.resource-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin: 16px 0 12px;
  line-height: 1.3;
}

.resource-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* 主体内容区域 - 左右布局（文章在左，侧边栏在右） */
.resource-body-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* 侧边�?*/
.resource-sidebar {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* 付费下载区域�?*/
.purchase-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 24px;
  color: #fff;
  text-align: center;
}

.purchase-price-large {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffd700;
  text-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
  margin-bottom: 20px;
}

.purchase-main-btn {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #333;
  border: none;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4);
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}

.purchase-main-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 215, 0, 0.5);
}

/* 下载说明区域 */
.download-notes-box {
  background: var(--card);
  padding: 20px;
  border-top: 1px solid var(--line);
}

.download-notes-box h4 {
  margin: 0 0 16px 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 8px;
}

.download-note-item {
  background: rgba(243, 244, 246, 0.8);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 12px;
  line-height: 1.8;
  color: var(--text);
  border-left: 4px solid #667eea;
}

.download-note-item:last-child {
  margin-bottom: 0;
}

/* 网盘下载卡片�?*/
.download-cards-box {
  background: var(--card);
  padding: 20px;
  border-top: 1px solid var(--line);
}

.download-cards-box h4 {
  margin: 0 0 16px 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.download-card-mini {
  background: rgba(243, 244, 246, 0.5);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.download-card-mini:last-child {
  margin-bottom: 0;
}

.download-card-mini:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.download-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.download-icon {
  font-size: 1.5rem;
}

.download-name {
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.download-get-btn {
  width: 100%;
  padding: 10px 16px;
  font-size: 0.95rem;
  border-radius: 10px;
}

.download-card-info {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.download-card-info p {
  margin: 8px 0;
}

.download-card-info code {
  background: rgba(102, 126, 234, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  font-family: monospace;
  color: var(--brand);
}

.download-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.download-link:hover {
  text-decoration: underline;
}

/* 文章区域 */
.resource-article {
  background: var(--card);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid var(--line);
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.resource-description,
.resource-gallery,
.resource-detail {
  margin-bottom: 32px;
}

.resource-description:last-child,
.resource-gallery:last-child,
.resource-detail:last-child {
  margin-bottom: 0;
}

.resource-description h3,
.resource-gallery h3,
.resource-detail h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-icon {
  font-size: 1.5rem;
}

.resource-description p {
  line-height: 1.8;
  color: var(--text);
  margin: 0;
}

.resource-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.gallery-item {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.detail-content {
  background: rgba(243, 244, 246, 0.5);
  padding: 20px;
  border-radius: 12px;
  line-height: 1.8;
  color: var(--text);
}

/* 响应式设�?*/
@media (max-width: 1024px) {
  .resource-body-layout {
    grid-template-columns: 1fr;
  }
  
  /* 移动端：侧边栏显示在文章下方 */
  .resource-sidebar {
    order: 1;
  }
}

@media (max-width: 768px) {
  .resource-header-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .header-cover-wrapper {
    width: 100%;
    max-width: 300px;
    height: 200px;
  }
  
  .resource-title {
    font-size: 1.5rem;
  }
  
  .resource-article {
    padding: 20px;
  }
  
  .resource-gallery .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  
  .purchase-price-large {
    font-size: 2rem;
  }
}

/* 版权声明样式 */
.resource-copyright {
  margin-top: 32px;
  padding: 24px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 16px;
  border-left: 4px solid #667eea;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.resource-copyright p {
  margin: 0 0 16px 0;
  line-height: 1.8;
  color: #2c3e50;
  font-size: 0.95rem;
  text-align: justify;
}

.resource-copyright p:last-child {
  margin-bottom: 0;
}

.resource-copyright strong {
  color: #e040fb;
  font-weight: 700;
}

/* 新的版权声明样式（按照图�?设计�?*/
.resource-copyright-new {
  margin-top: 32px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.copyright-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 16px 24px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.copyright-content {
  padding: 24px;
}

.copyright-content p {
  margin: 0 0 16px 0;
  line-height: 1.8;
  color: #555;
  font-size: 0.9rem;
  text-align: justify;
}

.copyright-content p:last-child {
  margin-bottom: 0;
}

.copyright-content strong {
  color: #667eea;
  font-weight: 700;
}

/* 点赞、分享、收藏功能区（按照图�?设计�?*/
.article-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
  padding: 24px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  padding: 12px 24px;
  border-radius: 12px;
  min-width: 80px;
}

.action-item:hover {
  background: rgba(102, 126, 234, 0.08);
  transform: translateY(-2px);
}

.action-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.action-text {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.action-count {
  font-size: 0.85rem;
  color: #999;
  font-weight: 600;
}

/* 点赞状�?*/
.action-item.liked .action-icon {
  animation: likeAnimation 0.5s ease;
}

.action-item.liked .action-text {
  color: #ff4081;
}

.action-item.liked .action-count {
  color: #ff4081;
}

/* 收藏状�?*/
.action-item.favorited .action-icon {
  animation: starAnimation 0.5s ease;
}

.action-item.favorited .action-text {
  color: #ff9800;
}

/* 动画效果 */
@keyframes likeAnimation {
  0% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

@keyframes starAnimation {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.3) rotate(180deg); }
  100% { transform: scale(1) rotate(360deg); }
}

/* Toast提示消息 */
.toast-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 0.95rem;
  z-index: 10000;
  animation: toastFadeIn 0.3s ease;
  pointer-events: none;
}

@keyframes toastFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* 跑马灯动态效�?*/
.marquee-container {
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 12px 0;
  margin: 20px 0;
  position: relative;
}

.marquee-content {
  display: flex;
  animation: marqueeScroll 20s linear infinite;
  white-space: nowrap;
}

.marquee-content:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 0.9rem;
  padding: 0 32px;
}

.marquee-item::before {
  content: "";
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* 响应式设�?*/
@media (max-width: 768px) {
  .article-actions {
    gap: 16px;
    padding: 16px;
  }
  
  .action-item {
    padding: 8px 16px;
    min-width: 60px;
  }
  
  .action-icon {
    font-size: 1.5rem;
  }
  
  .action-text {
    font-size: 0.8rem;
  }
  
  .copyright-header {
    padding: 12px 16px;
    font-size: 1rem;
  }
}

/* ========== 图片库样�?- 全新简洁卡片式设计 ========== */

/* 主布局 */
.gallery-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  min-height: calc(100vh - 200px);
  align-items: start;
  max-width: 1400px;
  margin: 30px auto;
  padding: 0 20px;
  box-sizing: border-box;
  width: 100%;
}

/* 左侧筛选面�?*/
.gallery-sidebar {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.filter-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(18, 92, 174, 0.08);
  /* 性能优化:移除 backdrop-filter,改为不透明背景,避免滚动时重新模糊 */
  will-change: transform;
  contain: layout style;
}

.filter-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 18px 0;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
}

/* 品牌卡片 */
.brand-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brand-card {
  padding: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(243, 244, 246, 0.7));
  border: 2px solid transparent;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s cubic-bezier(0.4,0,0.2,1), background-color 0.3s cubic-bezier(0.4,0,0.2,1), border-color 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s cubic-bezier(0.4,0,0.2,1), transform 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.brand-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.brand-card:hover {
  background: linear-gradient(135deg, rgba(11, 134, 255, 0.15), rgba(11, 134, 255, 0.08));
  border-color: rgba(11, 134, 255, 0.4);
  transform: translateX(6px);
  box-shadow: 0 6px 20px rgba(11, 134, 255, 0.18);
}

.brand-card:hover::before {
  transform: scaleY(1);
}

.brand-card.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 8px 28px rgba(11, 134, 255, 0.35);
  transform: translateX(4px);
}

.brand-card.active::before {
  transform: scaleY(1);
  background: rgba(255, 255, 255, 0.6);
}

.brand-name {
  position: relative;
  z-index: 1;
}

/* 型号卡片 */
.model-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.model-card {
  padding: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(243, 244, 246, 0.7));
  border: 2px solid transparent;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s cubic-bezier(0.4,0,0.2,1), background-color 0.3s cubic-bezier(0.4,0,0.2,1), border-color 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s cubic-bezier(0.4,0,0.2,1), transform 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.model-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.model-card:hover {
  background: linear-gradient(135deg, rgba(11, 134, 255, 0.15), rgba(11, 134, 255, 0.08));
  border-color: rgba(11, 134, 255, 0.4);
  transform: translateX(6px);
  box-shadow: 0 6px 20px rgba(11, 134, 255, 0.18);
}

.model-card:hover::before {
  transform: scaleY(1);
}

.model-card.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 8px 28px rgba(11, 134, 255, 0.35);
  transform: translateX(4px);
}

.model-card.active::before {
  transform: scaleY(1);
  background: rgba(255, 255, 255, 0.6);
}

.model-name {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.model-name-text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  min-width: 0;
}

.vip-badge {
  font-size: 0.9rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.crown-badge {
  font-size: 14px;
  flex-shrink: 0;
  margin-left: 4px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

/* 右侧内容�?*/
/* 右侧内容区 */
.gallery-content {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  min-height: 700px;
  box-shadow: 0 8px 24px rgba(18, 92, 174, 0.06);
  /* 性能优化:移除 backdrop-filter */
}

/* 品牌导航横排样式 */
.brand-navigation-bar {
  background: linear-gradient(135deg, rgba(11, 134, 255, 0.08), rgba(0, 198, 255, 0.05));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(11, 134, 255, 0.08);
}

.brand-nav-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.brand-nav-tab {
  padding: 12px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(243, 244, 246, 0.8));
  border: 2px solid transparent;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s cubic-bezier(0.4,0,0.2,1), background-color 0.3s cubic-bezier(0.4,0,0.2,1), border-color 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s cubic-bezier(0.4,0,0.2,1), transform 0.3s cubic-bezier(0.4,0,0.2,1);
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.brand-nav-tab:hover {
  background: linear-gradient(135deg, rgba(11, 134, 255, 0.15), rgba(11, 134, 255, 0.08));
  border-color: rgba(11, 134, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11, 134, 255, 0.18);
}

.brand-nav-tab.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 8px 28px rgba(11, 134, 255, 0.35);
  transform: translateY(-1px);
}

.brand-nav-tab.active::after {
  content: '✓';
  font-size: 0.8rem;
  margin-left: 4px;
}

/* 左侧边栏空状态提示 */
.sidebar-empty-hint {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.6), rgba(243, 244, 246, 0.4));
  border-radius: 12px;
  border: 1px dashed var(--line);
}

.sidebar-empty-hint p {
  margin: 0;
  font-size: 0.9rem;
}

/* 型号标题 */
.gallery-model-header {
  background: linear-gradient(135deg, rgba(11, 134, 255, 0.1), rgba(0, 198, 255, 0.08));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 32px;
  margin-bottom: 32px;
  box-shadow: 0 6px 20px rgba(11, 134, 255, 0.1);
  /* 性能优化:移除 backdrop-filter */
}

.gallery-model-header h2 {
  margin: 0 0 12px 0;
  font-size: 1.8rem;
  color: var(--brand);
  font-weight: 800;
}

.gallery-model-header p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* 空状�?*/
.gallery-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.8), rgba(243, 244, 246, 0.6));
  border: 2px dashed var(--line);
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
  gap: 16px;
}

.gallery-empty p {
  margin: 0;
  font-size: 1.1rem;
}

.gallery-empty .hint {
  font-size: 0.95rem;
  opacity: 0.7;
}

/* 图片展示区域 - 大尺寸卡�?*/
.gallery-images {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.gallery-image-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(18, 92, 174, 0.1);
  transition: color 0.4s cubic-bezier(0.4,0,0.2,1), background-color 0.4s cubic-bezier(0.4,0,0.2,1), border-color 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.4s cubic-bezier(0.4,0,0.2,1), transform 0.4s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  width: 100%;
}

.gallery-image-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-image-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 8px 24px rgba(11, 134, 255, 0.25);
  border-color: rgba(11, 134, 255, 0.5);
}

.gallery-image-card:hover::after {
  opacity: 1;
}

.gallery-image-wrapper {
  width: 100%;
  display: flex;
  background: #f8fafc;
  min-height: 400px;
}

.gallery-image-card img,
.gallery-image {
  width: 100%;
  height: auto;
  display: block;
  transition: width 0.3s ease;
  cursor: grab;
}

.gallery-image-card:hover img {
  /* hover缩放已移除，避免与width缩放冲突 */
}

/* 响应式设�?*/
@media (max-width: 1200px) {
  .gallery-container {
    grid-template-columns: 280px 1fr;
    gap: 24px;
  }
  
  .gallery-images {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
  }
}

@media (max-width: 1024px) {
  .gallery-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .gallery-sidebar {
    position: static;
    max-height: none;
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .filter-section {
    flex: 1;
    min-width: 280px;
  }
  
  .brand-cards,
  .model-cards {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .brand-card,
  .model-card {
    flex: 0 0 auto;
    padding: 12px 16px;
  }
}

@media (max-width: 768px) {
  .gallery-content {
    padding: 20px;
    border-radius: 18px;
  }
  
  /* 品牌导航响应式 */
  .brand-navigation-bar {
    padding: 16px 18px;
    margin-bottom: 20px;
  }
  
  .brand-nav-tabs {
    gap: 8px;
  }
  
  .brand-nav-tab {
    padding: 10px 18px;
    font-size: 0.85rem;
  }
  
  .gallery-images {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .gallery-model-header {
    padding: 20px 24px;
  }
  
  .gallery-model-header h2 {
    font-size: 1.4rem;
  }
  
  .filter-section {
    padding: 18px;
  }
}

@media (max-width: 480px) {
  .gallery-container {
    gap: 16px;
  }
  
  .gallery-content {
    padding: 16px;
  }
  
  .filter-section {
    padding: 16px;
  }
  
  .brand-card,
  .model-card {
    padding: 10px 14px;
    font-size: 0.9rem;
  }
}
/* ========== 图片库增强功能样�?========== */

/* 图片控制工具�?*/
.gallery-image-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid var(--line);
  /* 性能优化:移除 backdrop-filter */
}

.control-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--brand);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.control-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 134, 255, 0.2);
  border-color: var(--brand);
}

.control-btn.toggle-magnifier.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border-color: transparent;
}

/* 图片容器 */
.gallery-image-wrapper {
  position: relative;
  overflow: auto; /* 放大后显示滚动条 */
  cursor: grab;
  max-height: 70vh; /* 限制最大高度，超出部分滚动 */
}

/* 自定义滚动条样式 */
.gallery-image-wrapper::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.gallery-image-wrapper::-webkit-scrollbar-track {
  background: rgba(11, 134, 255, 0.1);
  border-radius: 10px;
}

.gallery-image-wrapper::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 10px;
  transition: background 0.3s ease;
}

.gallery-image-wrapper::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
}

.gallery-image-wrapper.magnifier-active {
  cursor: none;
}

.gallery-image-wrapper.dragging {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}

.gallery-image-wrapper.dragging img {
  pointer-events: none;
}

.gallery-image {
  width: 100%;
  height: auto;
  display: block;
  margin: auto;
  flex-shrink: 0;
  max-width: none;
  transition: width 0.3s ease;
  /* 禁止拖拽 */
  user-drag: none;
  -webkit-user-drag: none;
  -moz-user-drag: none;
  -ms-user-drag: none;
  /* 禁止选择 */
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  /* 禁止指针事件传播，但允许放大镜功能 */
  pointer-events: auto;
}

/* ====== 多图轮播模式 ====== */
.gallery-images.carousel-mode {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-carousel-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0;
}

.gallery-counter {
  font-size: 14px;
  color: var(--muted);
  background: var(--th-bg);
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 500;
}

.gallery-counter b {
  color: var(--brand-2);
  font-size: 16px;
  font-weight: 800;
}

.gallery-carousel-body {
  position: relative;
}

/* 左右导航按钮 */
.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  font-size: 26px;
  color: var(--brand-2);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
  user-select: none;
}

.gallery-nav-btn:hover {
  background: var(--brand-2);
  color: #fff;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  transform: translateY(-50%) scale(1.08);
}

.gallery-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.gallery-nav-prev {
  left: 8px;
}

.gallery-nav-next {
  right: 8px;
}

/* 缩略图导航条 */
.gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-2) transparent;
}

.gallery-thumbs::-webkit-scrollbar {
  height: 6px;
}

.gallery-thumbs::-webkit-scrollbar-track {
  background: transparent;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
  background: var(--brand-2);
  border-radius: 3px;
}

.gallery-thumb {
  position: relative;
  flex-shrink: 0;
  width: 90px;
  height: 70px;
  border: 2px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--th-bg);
}

.gallery-thumb:hover {
  border-color: var(--brand-3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.gallery-thumb.active {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.gallery-thumb-num {
  position: absolute;
  bottom: 3px;
  right: 3px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  padding: 1px 5px;
  min-width: 16px;
  text-align: center;
}

.gallery-thumb.active .gallery-thumb-num {
  background: var(--brand-2);
}

/* ====== PDF 在线阅读器 ====== */
.gallery-image-wrapper.pdf-mode {
  display: block;
  overflow: hidden;
  background: #525659;
  min-height: 500px;
}

.gallery-pdf-viewer {
  width: 100%;
  height: 70vh;
  min-height: 500px;
  border: none;
  display: block;
}

/* PDF 控件按钮（链接样式，文字按钮） */
a.control-btn {
  width: auto;
  min-width: 100px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

a.control-btn:hover {
  background: var(--brand-2);
  color: #fff;
  border-color: var(--brand-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* PDF 缩略图图标 */
.gallery-thumb.thumb-pdf {
  background: #f8fafc;
}

.gallery-thumb-pdf-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #dc2626;
}

.gallery-thumb-pdf-icon span {
  font-size: 11px;
  font-weight: 800;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

.gallery-thumb.thumb-pdf.active .gallery-thumb-pdf-icon {
  color: var(--brand-2);
}

/* VIP权限遮罩 */
.image-vip-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 1; /* 默认始终显示遮罩 */
  transition: opacity 0.3s ease;
  pointer-events: none; /* 允许鼠标穿透遮罩层，使放大镜能正常工作 */
}

.gallery-image-card:hover .image-vip-overlay {
  opacity: 1; /* 悬停时保持遮罩显示 */
}

.vip-lock-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4);
}

.vip-lock-icon::before {
  content: '🔒';
}

.vip-text {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* 放大�?*/
.magnifier-lens {
  position: absolute;
  width: 150px;
  height: 150px;
  border: 3px solid var(--brand);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(0, 0, 0, 0.1);
  z-index: 100; /* 确保放大镜在遮罩层之上 */
  background-repeat: no-repeat;
}

/* 权限提示 */
.permission-hint {
  font-size: 0.85rem;
  color: #ff9800;
  font-weight: 600;
  margin-left: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 响应�?*/
@media (max-width: 768px) {
  .gallery-image-controls {
    gap: 8px;
    padding: 12px;
  }
  
  .control-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  a.control-btn {
    width: auto;
    min-width: 80px;
    height: 38px;
    padding: 0 14px;
    font-size: 13px;
  }
  
  .magnifier-lens {
    width: 120px;
    height: 120px;
  }
}

/* 底部样式优化 */
.footer {
  padding: 24px 20px 20px;
  color: var(--muted);
  text-align: center;
  background: rgba(255,255,255,0.6);
  border-top: 1px solid var(--line);
}

/* 文章目录页样式 */
.category-page-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  max-width: 1400px;
  margin: 30px auto;
  padding: 0 18px;
}

.category-sidebar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow), var(--inner);
  /* 性能优化:移除 backdrop-filter,避免 sticky 滚动时重新模糊 */
  will-change: transform;
  contain: layout style;
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.category-sidebar h3 {
  margin: 0 0 16px 0;
  font-size: 1.2rem;
  color: var(--ink);
  font-weight: 700;
}

.category-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-nav-item {
  margin-bottom: 8px;
}

.category-nav-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(221,244,255,0.5);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none;
}

.category-nav-item a:hover {
  background: rgba(221,244,255,0.8);
  border-color: var(--brand);
  transform: translateX(4px);
}

.category-nav-item.gallery-mode a {
  background: linear-gradient(135deg, rgba(11, 134, 255, 0.1), rgba(0, 198, 255, 0.1));
}

.cat-name {
  font-weight: 600;
  color: var(--ink);
  flex: 1;
}

.cat-count {
  display: inline-block;
  padding: 4px 10px;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-left: 8px;
}

.gallery-badge {
  margin-left: 6px;
  font-size: 1rem;
}

.category-main {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow), var(--inner);
  /* 性能优化:移除 backdrop-filter */
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--line);
}

.category-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--ink);
}

.category-stats {
  color: var(--muted);
  font-size: 0.95rem;
}

.category-stats strong {
  color: var(--brand);
}

.resource-category-card {
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.resource-category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(11, 134, 255, 0.15);
  border-color: var(--brand);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.card-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.card-badge {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
}

.card-count {
  color: var(--muted);
  font-weight: 600;
}

.gallery-mode-badge {
  padding: 4px 10px;
  background: rgba(255, 193, 7, 0.15);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.view-all-btn {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.latest-update {
  color: var(--muted);
  font-size: 0.9rem;
}

.card-description {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 响应式布局 */
@media (max-width: 768px) {
  .category-page-layout {
    grid-template-columns: 1fr;
  }
  
  .category-sidebar {
    position: static;
    max-height: none;
  }
  
  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .card-actions {
    width: 100%;
    justify-content: space-between;
  }
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 底部单行横排样式 */
.footer-single-line {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 0;
  padding: 6px 0;
}
.footer-single-line > span,
.footer-single-line > a {
  display: inline-flex;
  align-items: center;
}
.footer-single-line .footer-sep {
  color: #cbd5e1;
  font-size: 12px;
  margin: 0 10px;
  user-select: none;
}
.footer-single-line .footer-copyright {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.footer-single-line .footer-author {
  font-size: 13px;
  color: #64748b;
}
.footer-single-line .footer-author strong {
  color: var(--brand);
  font-weight: 700;
}
.footer-single-line .footer-runtime {
  font-size: 13px;
  color: #64748b;
}
.footer-single-line .footer-runtime span {
  display: inline-block;
  min-width: 22px;
  text-align: center;
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
  margin: 0 1px;
}
.footer-single-line .footer-link {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s;
}
.footer-single-line .footer-link:hover {
  color: var(--brand);
}
@media (max-width: 768px) {
  .footer-single-line {
    gap: 6px 0;
  }
  .footer-single-line .footer-sep {
    margin: 0 6px;
  }
  .footer-single-line .footer-copyright,
  .footer-single-line .footer-author,
  .footer-single-line .footer-runtime {
    font-size: 12px;
  }
  .footer-single-line .footer-runtime span {
    min-width: 18px;
    font-size: 12px;
  }
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-copyright {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.footer-author {
  font-size: 12px;
  color: #94a3b8;
}

.footer-author strong {
  color: var(--brand);
  font-weight: 600;
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: 12px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-runtime {
  font-size: 12px;
  color: #94a3b8;
}

.footer-runtime span {
  display: inline-block;
  min-width: 26px;
  padding: 0;
  background: none;
  color: var(--brand);
  border-radius: 0;
  font-weight: 700;
  margin: 0 1px;
  font-size: 12px;
}

.footer-link {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  text-decoration: none;
  transition: color .25s;
}

.footer-link:hover {
  color: var(--brand);
}

.footer-friendlinks {
  width: 100%;
  max-width: 100%;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: left;
  overflow: hidden;
}

.friendlinks-title {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0;
  white-space: nowrap;
}

.friendlinks-list {
  display: flex;
  flex: 0 1 auto;
  min-width: 0;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  margin-bottom: 0;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: thin;
}

.friendlink-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex: 0 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #1e293b;
  transition: color 0.2s ease, opacity 0.2s ease;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  text-decoration: none;
}

.friendlink-item:hover {
  color: #0b4fb3;
  text-decoration: underline;
}

.friendlink-item img {
  display: none !important;
}

.friendlink-apply {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  margin-top: 10px;
  text-align: center;
}

.friendlink-apply:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(11, 134, 255, 0.25);
}

/* 自适应表单样式 */
.form.wide-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--ink);
}

.form.wide-form input,
.form.wide-form textarea,
.form.wide-form select {
  width: 100% !important;
  margin-bottom: 14px;
}

.form.wide-form input[type="text"],
.form.wide-form input[type="date"],
.form.wide-form input[type="number"],
.form.wide-form input[type="email"],
.form.wide-form input[type="url"] {
  max-width: 100%;
}

/* date input alignment - fix Chrome/Safari picker icon offset
   Place AFTER form input styling so it overrides box-sizing/padding */
input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="month"],
input[type="week"] {
  box-sizing: border-box;
  padding: 10px 14px;
  text-align: left;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  min-height: 42px;
  width: 100%;
}
/* ensure placeholder text aligns with other text inputs */
input[type="date"]::-webkit-datetime-edit {
  text-align: left;
}
input[type="date"]::-webkit-datetime-edit-fields-wrapper { text-align: left; }
input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.6;
  cursor: pointer;
  margin-left: 4px;
}

/* 卡片生成表单：让 4 列 grid 的 label/输入框 全部顶部对齐
   覆盖 inline style 的 align-items:end */
.panel form[style*="grid-template-columns"] {
  align-items: end !important;
  row-gap: 8px !important;
}
/* 强制"到期日期"div 高度跟其他 div 一致（去掉辅助文字撑高），
   让底部对齐生效，4 个 div 的 label/input 全部顶部齐平 */
.panel form[style*="grid-template-columns"] > div:has(input[type="date"]) {
  max-height: 64px;
  overflow: visible;
  position: relative;
}
.panel form[style*="grid-template-columns"] > div:has(input[type="date"]) > div:last-child {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

/* ========== 轮播图样式 ========== */
.carousel-container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

/* 当轮播图在info-grid内时，清除容器样式 */
.info-col.carousel-container {
  max-width: none;
  margin: 0;
  padding: 0;
  width: auto;
  box-sizing: border-box;
}

.carousel-wrapper {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  background: transparent;
  height: 100%;
  min-height: 0;
  padding: 0;
}

.info-col.carousel-container .carousel-body {
  padding: 0;
  overflow: hidden;
}
.info-col.carousel-container .carousel-body .carousel-wrapper {
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  border-radius: 0;
}

.carousel-track {
  display: none;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

/* 效果1: 淡入淡出（默认） */
.carousel-effect-fade .carousel-slide {
  transition: opacity 0.8s ease-in-out;
  transform: none;
}

/* 效果2: 左右滑动 */
.carousel-effect-slide .carousel-slide {
  opacity: 1;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  z-index: 1;
}
.carousel-effect-slide .carousel-slide.active {
  transform: translateX(0);
  z-index: 2;
}

/* 效果3: 上下滑动 */
.carousel-effect-slide_up .carousel-slide {
  opacity: 1;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  z-index: 1;
}
.carousel-effect-slide_up .carousel-slide.active {
  transform: translateY(0);
  z-index: 2;
}

/* 效果4: 缩放放大 */
.carousel-effect-zoom .carousel-slide {
  opacity: 0;
  transform: scale(1.15);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
  z-index: 1;
}
.carousel-effect-zoom .carousel-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

/* 效果5: 3D翻转 */
.carousel-effect-flip .carousel-wrapper {
  perspective: 1000px;
}
.carousel-effect-flip .carousel-slide {
  opacity: 0;
  transform: rotateY(90deg);
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
  backface-visibility: hidden;
  z-index: 1;
}
.carousel-effect-flip .carousel-slide.active {
  opacity: 1;
  transform: rotateY(0deg);
  z-index: 2;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  background: transparent;
}

/* ===== 统计栏 ===== */
.stats-bar {
  max-width: 1200px;
  margin: 0 auto 16px;
  padding: 10px 24px;
  background: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: flex-start;
  font-size: 14px;
  color: var(--muted);
}
.stats-item strong {
  color: var(--brand);
  font-weight: 700;
  margin-left: 2px;
}
.stats-highlight {
  color: #f59e0b !important;
}

/* ===== 四列信息面板 ===== */
.info-grid {
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  box-sizing: border-box;
}
.info-col {
  background: var(--card, rgba(255,255,255,0.92));
  /* 性能优化:移除 backdrop-filter */
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  height: 220px;
  display: flex;
  flex-direction: column;
}
.info-col-header {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  flex-shrink: 0;
}
.info-col-blue .info-col-header { border-left-color: #1890ff; }
.info-col-green .info-col-header { border-left-color: #52c41a; }
.info-col-orange .info-col-header { border-left-color: #fa8c16; }
.info-col-red .info-col-header { border-left-color: #f5222d; }
.info-col-body {
  padding: 10px 14px;
  flex: 1;
  overflow: hidden;
}
.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.info-list li {
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.info-list li:last-child { border-bottom: none; }
.info-list li::before {
  content: none;
}
.info-list li.has-rank::before {
  content: none;
}
.info-list a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}
.info-list a:hover { color: var(--brand); }
.info-list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.info-list-grid li {
  border-bottom: 1px dashed var(--line);
  border-right: 1px dashed var(--line);
  padding: 6px 4px;
  text-align: center;
}
.info-list-grid li:nth-child(2n) {
  border-right: none;
}
.info-meta {
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
}
.info-rank {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: var(--inner, rgba(0,0,0,0.04));
  border-radius: 50%;
  flex-shrink: 0;
  line-height: 1;
  margin-top: -4px;
}
.info-rank-top {
  color: #fff;
  background: linear-gradient(135deg, #f5222d, #ff4d4f);
}
.info-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.info-img-item {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.info-img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.info-img-item:hover img { transform: scale(1.08); }
.info-empty {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 40px 0;
}
@media (max-width: 560px) {
  .info-grid {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .stats-bar { gap: 12px; font-size: 12px; }
}

.carousel-slide a {
  display: block;
  width: 100%;
  height: 100%;
}

/* 指示器 */
.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-indicators .indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.carousel-indicators .indicator.active {
  background: #fff;
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.carousel-indicators .indicator:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

/* 左右箭头 */
.carousel-btn {
  display: none !important;
}

.carousel-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

/* ========== 固件下载网站布局 ========== */
.firmware-layout {
  display: grid;
  /* 侧边栏固定宽度,既容纳最长文字又不留多余空白 */
  grid-template-columns: 200px 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

/* ========== 优化后的资源分类侧边栏 ========= */
.firmware-sidebar {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
  /* 性能优化:移除 backdrop-filter,避免 sticky 滚动时重新模糊 */
  will-change: transform;
  contain: layout style;
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  overflow-x: hidden;
  /* Firefox: 细滚动条 */
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
}

.firmware-sidebar::-webkit-scrollbar {
  width: 4px;
}

.firmware-sidebar::-webkit-scrollbar-track {
  background: transparent;
  margin: 8px 0;
}

.firmware-sidebar::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 4px;
  border: none;
  transition: background 0.25s ease;
}

.firmware-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--brand);
}

.firmware-sidebar h3 {
  margin: 0;
  padding: 20px 20px 16px;
  font-size: 1.1rem;
  color: #1e293b;
  font-weight: 700;
  border-bottom: 2px solid #f1f5f9;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  /* 标题固定在侧边栏顶部，仅下方分类列表滚动 */
  position: sticky;
  top: 0;
  z-index: 10;
}

.firmware-sidebar h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 2px;
}

.firmware-nav {
  list-style: none;
  /* 右侧 padding 减小,补偿滚动条占据的宽度,使按钮两侧视觉对称 */
  padding: 12px 6px 12px 12px;
  margin: 0;
}

.firmware-nav-item {
  margin-bottom: 4px;
}

.firmware-nav-item a {
  display: flex;
  align-items: center;
  /* 用 gap 控制间距,名称 flex:1 占满剩余空间,无徽标时也不会留空白 */
  gap: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  background: transparent;
  transition: color 0.25s cubic-bezier(0.4,0,0.2,1), background-color 0.25s cubic-bezier(0.4,0,0.2,1), border-color 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s cubic-bezier(0.4,0,0.2,1), opacity 0.25s cubic-bezier(0.4,0,0.2,1), transform 0.25s cubic-bezier(0.4,0,0.2,1);
  border: 1px solid transparent;
  text-decoration: none;
  color: #475569;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.firmware-nav-item a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.08), transparent);
  transition: width 0.3s ease;
}

.firmware-nav-item a:hover {
  background: rgba(248, 250, 252, 0.8);
  border-color: #e2e8f0;
  transform: translateX(4px);
  color: #1e293b;
}

.firmware-nav-item a:hover::before {
  width: 100%;
}

.firmware-nav-item.active a {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25), 0 2px 4px rgba(59, 130, 246, 0.15);
  font-weight: 600;
}

.firmware-nav-item.active a::before {
  display: none;
}

.nav-icon {
  font-size: 1.1rem;
  /* margin-right 由父级 gap 统一管理,避免双重间距 */
  flex-shrink: 0;
  transition: transform 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
}

.nav-icon img {
  width: 120% !important;
  height: 120% !important;
  object-fit: cover !important;
  margin: -10% !important;
}

.firmware-nav-item a:hover .nav-icon {
  transform: scale(1.1);
}

/* ========== 客服信息模块样式 ========== */
.contact-module {
  margin-top: 20px;
  padding: 0;
  border-top: 2px solid #f1f5f9;
}

.contact-module h3 {
  margin: 0;
  padding: 16px 20px 12px;
  font-size: 1rem;
  color: #1e293b;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border-bottom: none;
  border-radius: 0;
}

.contact-module h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  border-radius: 2px;
}

.contact-items {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.contact-item:hover {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-color: #0ea5e9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.contact-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}

.qq-icon, .group-icon {
  background: linear-gradient(135deg, #e6f7ff 0%, #bae7ff 100%);
}

.wechat-icon {
  background: linear-gradient(135deg, #f6ffed 0%, #d9f7be 100%);
}

.contact-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.contact-value {
  font-size: 14px;
  color: #1e293b;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

a.contact-value:hover {
  color: #0ea5e9;
}

.wechat-copy {
  cursor: pointer;
  position: relative;
}

.wechat-copy:hover {
  color: #07C160;
}

.wechat-qrcode {
  margin-top: 12px;
  text-align: center;
  padding: 12px;
  background: linear-gradient(135deg, #f6ffed 0%, #ffffff 100%);
  border-radius: 12px;
  border: 1px solid #d9f7be;
}

.wechat-qrcode img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s;
}

.wechat-qrcode img:hover {
  transform: scale(1.05);
}

.qrcode-tip {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #64748b;
}

/* ========== 客服栏样式（点击展开） ========== */
.contact-bar {
  margin-bottom: 20px;
  position: relative;
}

.contact-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.contact-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.contact-icon {
  font-size: 18px;
}

.contact-arrow {
  font-size: 12px;
  transition: transform 0.3s;
}

.contact-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  margin-top: 8px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid #e2e8f0;
  min-width: 280px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-panel-inner {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.contact-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.qq-card:hover {
  border-color: #12B7F5;
  background: linear-gradient(135deg, #e6f7ff 0%, #bae7ff 100%);
}

.group-card:hover {
  border-color: #12B7F5;
  background: linear-gradient(135deg, #e6f7ff 0%, #bae7ff 100%);
}

.wechat-card:hover {
  border-color: #07C160;
  background: linear-gradient(135deg, #f6ffed 0%, #d9f7be 100%);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f1f5f9;
}

.qq-card .contact-card-icon,
.group-card .contact-card-icon {
  background: linear-gradient(135deg, #e6f7ff 0%, #bae7ff 100%);
}

.wechat-card .contact-card-icon {
  background: linear-gradient(135deg, #f6ffed 0%, #d9f7be 100%);
}

.contact-card-content {
  flex: 1;
}

.card-label {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}

.card-value {
  font-size: 16px;
  color: #1e293b;
  font-weight: 600;
  text-decoration: none;
}

a.card-value:hover {
  color: #0ea5e9;
}

.wechat-copy-btn {
  cursor: pointer;
  transition: color 0.2s;
}

.wechat-copy-btn:hover {
  color: #07C160;
}

.wechat-qr-card {
  text-align: center;
  padding: 16px;
  background: linear-gradient(135deg, #f6ffed 0%, #fff 100%);
  border-radius: 12px;
  border: 1px solid #d9f7be;
}

.wechat-qr-card img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s;
}

.wechat-qr-card img:hover {
  transform: scale(1.05);
}

.qr-tip {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #07C160;
  font-weight: 500;
}

/* 微信二维码弹窗 */
.wechat-qr-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.qr-modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.qr-modal-content img {
  width: 250px;
  height: 250px;
  object-fit: contain;
  border-radius: 12px;
}

.qr-modal-content p {
  margin: 20px 0 0;
  font-size: 16px;
  color: #07C160;
  font-weight: 600;
}

/* ========== 右侧悬浮按钮组 ========== */
.side-float-btn {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.4s cubic-bezier(0.34,1.56,0.64,1), background-color 0.4s cubic-bezier(0.34,1.56,0.64,1), border-color 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.4s cubic-bezier(0.34,1.56,0.64,1), transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.side-float-btn:hover {
  transform: translateY(-50%) scale(1.15);
  border-color: rgba(255, 255, 255, 0.6);
}

.side-float-btn::after {
  content: attr(data-tip);
  position: absolute;
  right: 62px;
  top: 50%;
  transform: translateY(-50%);
  background: #1e293b;
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  transform: translateY(-50%) translateX(8px);
}

.side-float-btn:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.side-float-icon {
  font-size: 22px;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.side-float-text {
  display: none;
}

/* 友链按钮 - 跟随主题色 */
.friendlink-float-btn {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 4px 20px var(--glow-color, rgba(11, 134, 255, 0.4));
  margin-top: -68px;
  animation: floatPulse 3s ease-in-out infinite;
}

.friendlink-float-btn:hover {
  box-shadow: 0 8px 32px var(--glow-color, rgba(11, 134, 255, 0.55));
}

/* 客服按钮 - 跟随主题色 */
.contact-float-btn {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.4s cubic-bezier(0.34,1.56,0.64,1), background-color 0.4s cubic-bezier(0.34,1.56,0.64,1), border-color 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.4s cubic-bezier(0.34,1.56,0.64,1);
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
  box-shadow: 0 4px 20px var(--glow-color, rgba(11, 134, 255, 0.4));
  border: 2px solid rgba(255, 255, 255, 0.3);
  /* 性能优化:will-change 提示浏览器合成,opacity 动画走 GPU */
  animation: floatPulse 3s ease-in-out infinite 1.5s;
  will-change: opacity;
}

.contact-float-btn::after {
  content: attr(data-tip);
  position: absolute;
  right: 62px;
  top: 50%;
  transform: translateY(-50%);
  background: #1e293b;
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  transform: translateY(-50%) translateX(8px);
}

.contact-float-btn:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.contact-float-btn:hover {
  transform: translateY(-50%) scale(1.15);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px var(--glow-color, rgba(11, 134, 255, 0.55));
}

.contact-float-btn.active {
  background: linear-gradient(135deg, #f43f5e, #fb7185);
  box-shadow: 0 4px 20px rgba(244, 63, 94, 0.4);
  animation: none;
}

/* 呼吸光效动画 - 性能优化:仅用 opacity,避免与 transform 定位冲突 */
@keyframes floatPulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

.contact-float-btn.active {
  background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
  box-shadow: -4px 0 20px rgba(244, 63, 94, 0.3);
}

.float-icon {
  font-size: 22px;
  color: #fff;
}

.float-text {
  font-size: 13px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 2px;
}

/* 通知悬浮按钮 — 客服按钮下方 */
.notify-float-btn {
  top: calc(50% + 65px);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 4px 20px var(--hero-shadow);
  animation: floatPulse 3s ease-in-out infinite 3s;
}
.notify-float-btn:hover {
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 8px 32px var(--hero-shadow);
}
.notify-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
  border: 2px solid #fff;
  line-height: 1;
}
.notify-pulse {
  animation: notifyRingPulse 0.6s ease-in-out 3;
}
@keyframes notifyRingPulse {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-50%) scale(1.25); box-shadow: 0 0 20px rgba(239,68,68,.6); }
}

.contact-float-panel {
  display: none;
  position: fixed;
  right: 76px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 998;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid #e2e8f0;
  min-width: 260px;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

.float-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border-radius: 16px 16px 0 0;
  font-weight: 600;
  font-size: 15px;
}

.float-panel-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 0;
}

.float-panel-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.float-panel-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  text-decoration: none;
}

.float-contact-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.float-contact-item.qq:hover,
.float-contact-item.group:hover {
  border-color: #12B7F5;
  background: linear-gradient(135deg, #e6f7ff 0%, #bae7ff 100%);
}

.float-contact-item.wechat:hover {
  border-color: #07C160;
  background: linear-gradient(135deg, #f6ffed 0%, #d9f7be 100%);
}

.float-item-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f1f5f9;
}

.float-contact-item.qq .float-item-icon,
.float-contact-item.group .float-item-icon {
  background: linear-gradient(135deg, #e6f7ff 0%, #bae7ff 100%);
}

.float-contact-item.wechat .float-item-icon {
  background: linear-gradient(135deg, #f6ffed 0%, #d9f7be 100%);
}

.float-item-info {
  flex: 1;
}

.float-item-label {
  display: block;
  font-size: 12px;
  color: #64748b;
}

.float-item-value {
  display: block;
  font-size: 14px;
  color: #1e293b;
  font-weight: 600;
}

.float-wechat-qr {
  text-align: center;
  padding: 12px;
  background: linear-gradient(135deg, #f6ffed 0%, #fff 100%);
  border-radius: 10px;
  border: 1px solid #d9f7be;
}

.float-wechat-qr img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s;
}

.float-wechat-qr img:hover {
  transform: scale(1.05);
}

.qr-label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #07C160;
  font-weight: 500;
}

.float-wechat-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.float-wechat-modal .modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.float-wechat-modal .modal-content img {
  width: 250px;
  height: 250px;
  object-fit: contain;
  border-radius: 12px;
}

.float-wechat-modal .modal-content p {
  margin: 20px 0 0;
  font-size: 16px;
  color: #07C160;
  font-weight: 600;
}

.firmware-nav-item.active .nav-icon {
  transform: scale(1.15);
  background: var(--brand-2);
}

.nav-name {
  font-weight: 500;
  flex: 1;
  font-size: 0.95rem;
  /* 防止文字换行 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.firmware-nav-item.active .nav-name {
  font-weight: 600;
}

.nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  background: #f1f5f9;
  color: #64748b;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 24px;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.firmware-nav-item a:hover .nav-count {
  background: #e2e8f0;
  color: #475569;
}

.firmware-nav-item.active .nav-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  /* 性能优化:移除 backdrop-filter */
}

.firmware-main {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow), var(--inner);
  /* 性能优化:移除 backdrop-filter */
}

.firmware-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--line);
  flex-wrap: wrap;
  gap: 12px;
}

.firmware-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--ink);
}

.search-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-form input {
  padding: 12px 18px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  min-width: 260px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.search-form input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--input-focus-ring);
}

.search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 14px var(--hero-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px var(--hero-shadow);
}

.search-form button:active {
  transform: translateY(0);
}

.search-form button .svg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.search-form button .svg-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.resource-count {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.resource-count strong {
  color: var(--brand);
}

.firmware-card {
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.firmware-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(11, 134, 255, 0.15);
  border-color: var(--brand);
}

.firmware-card.locked {
  opacity: 1;
  background: #fff;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.card-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.resource-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
}

.resource-version {
  font-size: 0.9rem;
  color: var(--muted);
}

.card-actions {
  display: flex;
  gap: 12px;
}

.btn-versions {
  padding: 8px 20px;
  background: rgba(11, 134, 255, 0.1);
  color: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.btn-versions:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}

.btn-download {
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(11, 134, 255, 0.3);
}

.btn-download.locked {
  background: linear-gradient(135deg, #722ed1, #1890ff);
  color: #fff;
  border: none;
  cursor: pointer;
}

.card-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 版本弹窗 */
.versions-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.versions-modal .modal-content {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  max-width: 800px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: 0 10px 30px rgba(18, 92, 174, 0.3);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
  transform: rotate(90deg);
}

.versions-modal-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--line);
}

.versions-modal-header h3 {
  margin: 0 0 8px 0;
  font-size: 1.5rem;
  color: var(--ink);
}

.versions-modal-header p {
  margin: 0;
  color: var(--muted);
}

.versions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.version-item {
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.version-item.locked {
  opacity: 1;
}

.version-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.version-badge {
  padding: 6px 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

.version-desc {
  color: var(--muted);
  font-size: 0.95rem;
}

.version-date {
  color: var(--muted);
  font-size: 0.85rem;
}

.version-actions .btn-download-sm {
  padding: 6px 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.version-actions .btn-download-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 134, 255, 0.3);
}

.version-actions .btn-download-sm.locked {
  background: linear-gradient(135deg, #722ed1, #1890ff);
  color: #fff;
  border: none;
  cursor: pointer;
}

/* 响应式 */
@media (max-width: 768px) {
  .firmware-layout {
    grid-template-columns: 1fr;
  }
  
  .firmware-sidebar {
    position: static;
    max-height: none;
  }
  
  .card-top {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .card-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .search-form input {
    min-width: 150px;
  }
}

/* 表格样式（图2设计） */
.firmware-table-wrapper {
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: visible;
  margin-top: 16px;
}

.firmware-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.firmware-table thead {
  background: linear-gradient(135deg, rgba(11, 134, 255, 0.1), rgba(0, 198, 255, 0.1));
}

.firmware-table th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
  border-bottom: 2px solid var(--line);
}

.firmware-table tbody tr {
  border-bottom: 1px solid var(--line);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.firmware-table tbody tr:hover {
  background: rgba(11, 134, 255, 0.05);
}

.firmware-table tbody tr.locked {
  opacity: 1;
  background: transparent;
}

.firmware-table td {
  padding: 10px 14px;
  vertical-align: middle !important;
}

.firmware-table td.col-type {
  vertical-align: middle !important;
  text-align: center;
}

.firmware-table td.col-action {
  text-align: center;
}

.col-title .title-text {
  font-weight: 700;
  color: var(--ink);
  font-size: 1rem;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.col-code .code-text {
  font-family: 'Courier New', monospace;
  color: var(--brand);
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.col-version .version-text {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.col-version .update-date {
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.7;
}

.col-desc .desc-text {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.col-desc .desc-empty {
  color: var(--muted);
  font-size: 0.85rem;
  opacity: 0.5;
}

.type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  vertical-align: middle;
  line-height: 1;
  white-space: nowrap;
  height: 32px;
  box-sizing: border-box;
}

.type-badge::first-letter {
  vertical-align: middle;
}

.type-badge.free {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.type-badge.paid {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-table-download {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: none;
  width: auto;
  height: 26px;
  min-height: 26px;
  padding: 0 11px;
  background: var(--brand-2);
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap !important;
  vertical-align: middle;
  line-height: 26px;
  box-shadow: none;
  gap: 5px;
}

.btn-table-download svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  display: block;
  fill: currentColor;
  stroke-width: 2.4;
  margin: 0;
  position: relative;
  top: 0;
  vertical-align: middle;
}

.btn-table-download .svg-icon,
.btn-table-download span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  min-height: 26px;
  line-height: 26px;
  margin: 0;
  padding: 0;
  vertical-align: middle;
}

.btn-table-download .btn-download-text {
  font-weight: 900;
  font-size: 14px;
  height: 26px;
  min-height: 26px;
  line-height: 26px;
  letter-spacing: 0;
  transform: none;
  -webkit-font-smoothing: antialiased;
}

.btn-table-download .btn-download-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  flex: 0 0 14px;
  margin: 0;
  padding: 0;
  background: currentColor;
  transform: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 9V7A5 5 0 0 0 7 7v2H5v13h14V9h-2ZM9 7a3 3 0 0 1 6 0v2H9V7Zm4 8.73V18h-2v-2.27A2 2 0 1 1 13 15.73Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 9V7A5 5 0 0 0 7 7v2H5v13h14V9h-2ZM9 7a3 3 0 0 1 6 0v2H9V7Zm4 8.73V18h-2v-2.27A2 2 0 1 1 13 15.73Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.btn-table-download .btn-download-icon::before {
  content: none;
}

.btn-table-download .btn-download-icon::after {
  content: none;
}

.btn-table-download:hover {
  transform: none;
  box-shadow: none;
  background: var(--brand);
}

.btn-table-download:active {
  transform: translateY(0);
}

.btn-table-download.locked {
  background: var(--brand-2);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: none;
  width: auto;
  min-width: 0;
  max-width: none;
  height: 26px;
  min-height: 26px;
  padding: 0 11px;
  line-height: 26px;
  font-size: 14px;
  font-weight: 900;
}

.btn-table-download.locked:hover {
  transform: none;
  box-shadow: none;
  background: var(--brand);
}

/* 表格响应式 */
@media (max-width: 768px) {
  .firmware-table-wrapper {
    overflow-x: auto;
  }
  
  .firmware-table {
    min-width: 800px;
  }
}

/* 余额充值页面 */
.recharge-container {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 20px;
}

.vip-benefits {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow), var(--inner);
}

.vip-benefits h2 {
  margin: 0 0 24px 0;
  font-size: 1.5rem;
  color: var(--ink);
  text-align: center;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.benefit-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(11, 134, 255, 0.15);
}

.benefit-icon {
  font-size: 2.5rem;
}

.benefit-text {
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}

.recharge-card-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow), var(--inner);
}

.recharge-card-section h2 {
  margin: 0 0 12px 0;
  font-size: 1.5rem;
  color: var(--ink);
  text-align: center;
}

.recharge-tip {
  text-align: center;
  color: var(--muted);
  margin-bottom: 24px;
}

.recharge-form {
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--ink);
}

.form-group input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.8);
  font-size: 1rem;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11, 134, 255, 0.1);
}

.btn-recharge {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.btn-recharge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 134, 255, 0.3);
}

@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

/* 自定义确认对话框动画 */
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ========== LED滚动公告样式 ========== */

.led-notice-wrapper {
  max-width: 1200px;
  margin: 0 auto 18px;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

.led-notice {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  position: relative !important;
  min-height: auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.led-notice::before {
  display: none !important;
}

.led-label {
  flex-shrink: 0 !important;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)) !important;
  color: #fff !important;
  padding: 10px 24px !important;
  border-radius: 999px !important;
  font-weight: 900 !important;
  font-size: 1rem !important;
  white-space: nowrap !important;
  box-shadow: 0 4px 15px var(--glow-color, rgba(11, 134, 255, 0.35)) !important;
  position: relative !important;
  z-index: 2 !important;
}

.led-content {
  flex: 1 !important;
  overflow: hidden !important;
  position: relative !important;
  min-height: 40px !important;
  display: flex !important;
  align-items: center !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.led-scroll-track {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.led-scroll-text {
  display: inline-flex;
  white-space: nowrap;
  color: #333;
  font-weight: 600;
  font-size: 1rem;
  animation: scrollText 15s linear infinite;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.led-text-item {
  padding-right: 60px;
  display: inline-block;
}

.led-scroll-text:hover {
  animation-play-state: paused;
  cursor: pointer;
}

@keyframes scrollText {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ======================
   分页样式
   ====================== */
.pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 30px 20px;
  padding: 15px;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--line);
  flex-wrap: wrap;
}

.pagination-btn {
  padding: 8px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pagination-btn:hover {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px var(--glow-color, rgba(11, 134, 255, 0.2));
}

.pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-pages {
  display: flex;
  gap: 6px;
  align-items: center;
}

.pagination-page {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.pagination-page:hover {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  transform: translateY(-1px);
}

.pagination-page.active {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  font-weight: 700;
  box-shadow: 0 2px 8px var(--glow-color, rgba(11, 134, 255, 0.3));
}

.pagination-ellipsis {
  color: var(--muted);
  padding: 0 4px;
}

.pagination-info {
  color: var(--muted);
  font-size: 13px;
  margin-left: 8px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 6px;
}

/* ======================
   图纸案例 - 型号搜索样式
   ====================== */
.model-search-wrapper {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  align-items: center;
}

.model-search-input {
  flex: 1;
  min-width: 120px;
  max-width: none;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
  height: 34px;
  line-height: 1;
  min-height: 0;
  box-sizing: border-box;
  box-shadow: none;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  outline: none;
}

.model-search-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(11, 134, 255, 0.1);
}

.model-search-input::placeholder {
  color: var(--muted);
  font-size: 12px;
}

.model-search-btn {
  padding: 0 12px;
  background: var(--brand);
  color: white;
  border: 1px solid var(--brand);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  height: 34px;
  line-height: 32px;
  min-height: 0;
  box-sizing: border-box;
  box-shadow: none;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.model-search-btn:hover {
  background: var(--brand-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11, 134, 255, 0.3);
}

.model-search-btn:active {
  transform: translateY(0);
}

/* ======================
   图纸案例 - 型号滚动容器
   ====================== */
.model-cards-scroll {
  max-height: 520px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  padding: 12px;
  margin-top: 8px;
  width: 100%;
}

.model-cards-scroll::-webkit-scrollbar {
  width: 8px;
}

.model-cards-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.model-cards-scroll::-webkit-scrollbar-thumb {
  background: var(--brand);
  border-radius: 4px;
  transition: background 0.3s ease;
}

.model-cards-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--brand-2);
}

.model-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ===== 安装向导（重新设计） ===== */

/* 全屏渐变背景 */
body:has(.install-wrap) {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top left, var(--hero-shadow), transparent 50%),
    radial-gradient(ellipse at bottom right, var(--glow-color), transparent 50%),
    linear-gradient(135deg, var(--hero-from) 0%, var(--hero-via) 50%, var(--hero-to) 100%);
  background-attachment: fixed;
}

.install-wrap {
  max-width: 760px;
  padding: 32px 16px 64px;
  margin: 0 auto;
  min-height: 100vh;
  box-sizing: border-box;
}

/* 品牌头部 */
.install-brand {
  text-align: center;
  margin-bottom: 28px;
  color: #fff;
}
.install-brand-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 6px;
  background: linear-gradient(135deg, #fff, #c7d2fe);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -.5px;
}
.install-brand-subtitle {
  font-size: 14px;
  color: rgba(199, 210, 254, .8);
  margin: 0;
  font-weight: 400;
}

/* 步骤进度条 */
.install-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 auto 28px;
  max-width: 640px;
  padding: 18px 24px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
}
.install-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(199, 210, 254, .6);
  border-radius: 999px;
  white-space: nowrap;
  transition: color .35s ease, background-color .35s ease, box-shadow .35s ease, transform .35s ease;
}
.install-step .step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: rgba(199, 210, 254, .7);
  border: 1.5px solid rgba(255, 255, 255, .15);
  transition: all .35s ease;
}
.step-done {
  color: #a7f3d0;
}
.step-done .step-no {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border-color: #34d399;
  box-shadow: 0 0 12px rgba(16, 185, 129, .5);
}
.step-done .step-no::after {
  content: '✓';
  font-size: 13px;
}
.step-done .step-no { font-size: 0; }
.step-done .step-no::after { font-size: 13px; }
.step-active {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 0 0 2px var(--input-focus-ring), 0 4px 16px var(--hero-shadow);
  transform: scale(1.04);
}
.step-active .step-no {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border-color: var(--brand-3);
  box-shadow: 0 0 16px var(--hero-shadow);
}
.step-sep {
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, .05));
  margin: 0 4px;
  border-radius: 1px;
}

/* 主卡片 - 玻璃拟态 */
.install-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 44px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 24px;
  box-shadow:
    0 24px 64px rgba(15, 23, 42, .35),
    0 0 0 1px rgba(255, 255, 255, .2),
    inset 0 1px 0 rgba(255, 255, 255, .9);
  position: relative;
  overflow: hidden;
  animation: cardFadeIn .5s ease-out;
}
.install-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.install-card h1 {
  font-size: 24px;
  margin: 0 0 6px;
  color: var(--ink);
  text-align: center;
  font-weight: 800;
  letter-spacing: -.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.install-card h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  margin: 24px 0 12px;
  padding: 8px 12px;
  background: linear-gradient(90deg, var(--input-focus-ring), transparent);
  border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.install-card .form {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: none;
}

/* 表单字段 - 浮动标签 + 图标 */
.install-card label {
  display: block;
  margin: 16px 0 6px;
  font-size: 13px;
  color: #475569;
  font-weight: 600;
}
.install-card .field {
  position: relative;
}
.install-card input[type=text],
.install-card input[type=password],
.install-card input[type=email] {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  transition: all .25s ease;
  box-sizing: border-box;
  font-family: inherit;
}
.install-card input:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px var(--input-focus-ring);
}
.install-card input[readonly] {
  background: #f1f5f9;
  color: #64748b;
  cursor: not-allowed;
}

/* 主按钮 */
.install-card button {
  width: 100%;
  margin-top: 28px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 50%, var(--brand-3) 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all .35s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 4px 14px var(--hero-shadow);
  letter-spacing: .3px;
}
.install-card button:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--hero-shadow);
}
.install-card button:active {
  transform: translateY(0);
}
.install-card .muted {
  margin-top: 10px;
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
}

/* 版权同意页 */
.install-card .resource-body {
  margin: 16px 0;
  padding: 18px 20px;
  background: var(--paper);
  border-radius: 14px;
  border: 1px solid var(--line);
}
.install-card .resource-body p {
  margin: 8px 0;
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
}
.install-card .agree-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  padding: 14px 18px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1.5px solid #f59e0b;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #92400e;
  cursor: pointer;
  transition: all .25s ease;
}
.install-card .agree-line:hover {
  box-shadow: 0 4px 14px rgba(245, 158, 11, .25);
}
.install-card .agree-line input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: #f59e0b;
  cursor: pointer;
}

/* 信息汇总 */
.install-summary {
  margin: 20px 0 24px;
  padding: 20px 22px;
  background: var(--paper);
  border-radius: 16px;
  border: 1px solid var(--line);
}
.install-summary h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  margin: 16px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--line);
}
.install-summary h3:first-child { margin-top: 0; }
.install-summary ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.install-summary li {
  padding: 8px 0;
  font-size: 14px;
  color: #334155;
  display: flex;
  justify-content: space-between;
}
.install-summary li:not(:last-child) {
  border-bottom: 1px dashed var(--line);
}
.install-summary li strong,
.install-summary li span {
  font-weight: 600;
  color: var(--ink);
}

/* 次按钮 */
.install-card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 8px 4px 0;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 10px;
  text-decoration: none;
  transition: all .3s ease;
  box-shadow: 0 4px 12px var(--hero-shadow);
}
.install-card .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--hero-shadow);
}

/* 通知/错误提示 */
.install-wrap .notice {
  max-width: 640px;
  margin: 0 auto 20px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(244, 63, 94, .12), rgba(244, 63, 94, .06));
  border: 1.5px solid rgba(244, 63, 94, .3);
  border-radius: 12px;
  color: #be123c;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

/* 返回链接 */
.install-card a[href*="step="] {
  display: inline-block;
  margin-top: 14px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease;
}
.install-card a[href*="step="]:hover {
  color: var(--brand-2);
}

/* 安装完成页 */
.install-card code {
  display: inline-block;
  padding: 3px 8px;
  background: var(--paper);
  color: var(--brand);
  border-radius: 6px;
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 13px;
}
.install-card .notice {
  margin: 16px 0;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(245, 158, 11, .1), rgba(245, 158, 11, .05));
  border: 1px solid rgba(245, 158, 11, .3);
  border-radius: 10px;
  color: #92400e;
  font-size: 13px;
}

/* 页脚 */
.install-wrap ~ .footer,
.footer {
  color: rgba(199, 210, 254, .6) !important;
  text-align: center;
  padding: 20px;
  font-size: 12px;
}

/* 响应式 */
@media (max-width: 640px) {
  .install-wrap {
    padding: 20px 12px 40px;
  }
  .install-brand-title {
    font-size: 22px;
  }
  .install-card {
    padding: 28px 22px;
    border-radius: 18px;
  }
  .install-card h1 {
    font-size: 20px;
  }
  .install-steps {
    padding: 12px 14px;
    gap: 0;
  }
  .install-step {
    font-size: 0;
    padding: 4px 6px;
    gap: 4px;
  }
  .install-step .step-no {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .step-done .step-no::after { font-size: 12px; }
  .step-sep {
    width: 16px;
  }
  .install-card button {
    padding: 13px;
    font-size: 14px;
  }
}

/* ===== END 安装向导 ===== */

/* ======================
   性能优化 - 全局加速
   ====================== */

/* 消除移动端300ms点击延迟，实现"点哪打哪" */
body {
  touch-action: manipulation;
}
a, button, .btn, input, select, textarea, [role="button"] {
  touch-action: manipulation;
}

/* 资源卡片跳过离屏渲染，大幅减少滚动时的绘制开销 */
.resource,
.model-card,
.gallery-image-card,
.announce-card,
.ad-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 120px;
}

/* 后台表格区域隔离重绘（不含admin-main，避免破坏滚动） */
.content-panel,
.stats-dashboard {
  contain: layout style;
}

/* 所有可交互元素：transition 精简为仅变换必要属性 */
.btn, .nav-links a, .pagination-btn, .pagination-page,
.model-search-btn, .install-step, .install-card button, .install-card .btn,
.model-search-input, .btn-recharge {
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}

/* 滚动容器启用惯性滚动 + 隐藏滚动条优化 */
.model-cards-scroll,
.sidebar-menu {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* 用户偏好减少动画时：关闭所有无限循环动画 */
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  body::after,
  .hero-orbit.one,
  .hero-orbit.two,
  .marquee-content,
  .led-scroll-text,
  .infinite-spin {
    animation: none !important;
  }
  * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ===== 二极体值管理页面专用样式 v20260827b ===== */
.dz-wrap .dz-btn{height:34px !important;padding-top:0 !important;padding-bottom:0 !important;padding-left:18px !important;padding-right:18px !important;line-height:1 !important;box-sizing:border-box !important;border-radius:8px !important;display:inline-flex !important;align-items:center !important;justify-content:center !important;border:1px solid transparent !important;font-size:13px !important;font-weight:600 !important;cursor:pointer !important;white-space:nowrap !important;width:auto !important;}
.dz-wrap .dz-btn-sm{height:34px !important;padding:0 12px !important;font-size:13px !important;border-radius:6px !important;box-sizing:border-box !important;display:inline-flex !important;align-items:center !important;justify-content:center !important;line-height:1 !important;}
.dz-wrap .dz-inline-input{height:34px !important;padding:0 12px !important;line-height:1 !important;box-sizing:border-box !important;border-radius:8px !important;font-size:13px !important;outline:none !important;background:rgba(255,255,255,.82) !important;color:var(--ink) !important;border:1px solid var(--line) !important;width:auto !important;}
.dz-wrap .dz-inline-input:focus{border-color:var(--brand-2) !important;box-shadow:0 0 0 3px var(--input-focus-ring) !important;}
.dz-wrap .dz-inline-form{display:flex !important;gap:8px !important;align-items:flex-end !important;flex-wrap:wrap !important;margin:0 !important;}
.dz-wrap .dz-model-del{width:18px !important;height:18px !important;border-radius:50% !important;background:#f1f5f9 !important;color:#64748b !important;border:1px solid #e2e8f0 !important;padding:0 !important;box-sizing:border-box !important;display:inline-flex !important;align-items:center !important;justify-content:center !important;font-size:10px !important;line-height:1 !important;flex-shrink:0 !important;cursor:pointer !important;}
.dz-wrap .dz-model-del:hover{background:#ef4444 !important;color:#fff !important;border-color:#ef4444 !important;transform:scale(1.15) !important;}
.dz-wrap .dz-model-tag form{display:inline-flex !important;align-items:center !important;margin:0 !important;padding:0 !important;}
.dz-wrap .dz-btn-add{background:linear-gradient(135deg,var(--brand),var(--brand-2)) !important;color:#fff !important;border:1px solid transparent !important;}
.dz-wrap .dz-btn-add:hover{filter:brightness(1.1) !important;transform:translateY(-1px) !important;}
.dz-wrap .dz-btn-del{background:linear-gradient(135deg,#f43f5e,#ef4444) !important;color:#fff !important;border:1px solid transparent !important;}
.dz-wrap .dz-btn-del:hover{filter:brightness(1.1) !important;transform:translateY(-1px) !important;}



