/* ========== 全局重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #4f6ef7;
  --primary-dark: #3a56d4;
  --primary-light: #eef1fe;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text: #1f2937;
  --text-light: #6b7280;
  --text-lighter: #9ca3af;
  --bg: #f5f7fa;
  --card: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; }

/* ========== 通用组件 ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border: none; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(79,110,247,0.3); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #16a34a; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { background: #d97706; }
.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-ghost { background: transparent; color: var(--text-light); }
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.badge-success { background: #dcfce7; color: #16a34a; }
.badge-warning { background: #fef3c7; color: #d97706; }
.badge-danger { background: #fee2e2; color: #dc2626; }
.badge-info { background: #dbeafe; color: #2563eb; }
.badge-gray { background: #f3f4f6; color: #6b7280; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
.form-control {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px; transition: border-color 0.2s; background: #fff;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,110,247,0.1); }
textarea.form-control { resize: vertical; min-height: 80px; }

/* ========== 前台 - 顶部导航 ========== */
.shop-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.shop-nav {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.shop-logo { font-size: 22px; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.shop-logo:hover { text-decoration: none; }
.shop-nav-links { display: flex; align-items: center; gap: 28px; }
.shop-nav-links a {
  color: var(--text); font-size: 15px; font-weight: 500;
  padding: 4px 0; border-bottom: 2px solid transparent; transition: all 0.2s;
}
.shop-nav-links a:hover, .shop-nav-links a.active { color: var(--primary); border-bottom-color: var(--primary); text-decoration: none; }
.cart-icon {
  position: relative; display: flex; align-items: center; gap: 6px;
  font-size: 15px; color: var(--text); padding: 8px 16px;
  border: 1px solid var(--border); border-radius: 20px; transition: all 0.2s;
}
.cart-icon:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.cart-count {
  position: absolute; top: -6px; right: -6px; background: var(--danger); color: #fff; font-size: 11px;
  min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* ========== 前台 - Banner ========== */
.shop-banner { max-width: 1200px; margin: 24px auto; padding: 0 24px; }
.banner-inner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: var(--radius); padding: 48px 40px; color: #fff;
  display: flex; align-items: center; justify-content: space-between;
}
.banner-text h1 { font-size: 32px; margin-bottom: 12px; }
.banner-text p { font-size: 16px; opacity: 0.9; margin-bottom: 20px; }
.banner-text .btn { background: #fff; color: var(--primary); }
.banner-text .btn:hover { background: var(--primary-light); }
.banner-emoji { font-size: 100px; }

/* ========== 前台 - 分类筛选 ========== */
.shop-container { max-width: 1200px; margin: 0 auto; padding: 0 24px 40px; }
.category-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.category-bar .cat-item {
  padding: 8px 18px; border-radius: 20px; background: #fff;
  border: 1px solid var(--border); font-size: 14px; cursor: pointer; transition: all 0.2s;
}
.category-bar .cat-item:hover { border-color: var(--primary); color: var(--primary); }
.category-bar .cat-item.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.search-box { margin-left: auto; display: flex; gap: 8px; }
.search-box input {
  width: 240px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 20px; font-size: 14px;
}
.search-box input:focus { outline: none; border-color: var(--primary); }

/* ========== 前台 - 商品网格 ========== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all 0.3s; cursor: pointer; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-image {
  height: 160px; display: flex; align-items: center; justify-content: center;
  font-size: 64px; background: linear-gradient(135deg, #f0f4ff, #e8ecf8);
}
.product-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-info { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-cat { font-size: 12px; color: var(--primary); background: var(--primary-light); padding: 2px 8px; border-radius: 4px; align-self: flex-start; margin-bottom: 8px; }
.product-name { font-size: 15px; font-weight: 600; margin-bottom: 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-desc { font-size: 13px; color: var(--text-light); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 20px; font-weight: 700; color: var(--danger); }
.product-price small { font-size: 13px; font-weight: 400; }
.add-cart-btn { padding: 6px 14px; background: var(--primary); color: #fff; border: none; border-radius: 16px; font-size: 13px; transition: all 0.2s; }
.add-cart-btn:hover { background: var(--primary-dark); }

/* ========== 前台 - 商品详情 ========== */
.detail-wrap { max-width: 1000px; margin: 30px auto; padding: 0 24px; }
.detail-card {
  background: #fff; border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow); display: flex; gap: 40px;
}
.detail-image {
  width: 360px; height: 360px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 140px; background: linear-gradient(135deg, #f0f4ff, #e8ecf8); flex-shrink: 0;
}
.detail-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.detail-info { flex: 1; }
.detail-cat { display: inline-block; padding: 4px 12px; background: var(--primary-light); color: var(--primary); border-radius: 4px; font-size: 13px; margin-bottom: 12px; }
.detail-name { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.detail-price-box { background: linear-gradient(135deg, #fff5f5, #fff0f0); border-radius: var(--radius-sm); padding: 20px; margin-bottom: 20px; }
.detail-price { font-size: 36px; font-weight: 700; color: var(--danger); }
.detail-price small { font-size: 16px; }
.detail-stock { color: var(--text-light); font-size: 14px; margin-top: 4px; }
.detail-desc { color: var(--text-light); font-size: 14px; line-height: 1.8; margin-bottom: 24px; }
.detail-actions { display: flex; gap: 12px; }
.quantity-selector { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.quantity-selector button { width: 36px; height: 40px; border: none; background: var(--bg); font-size: 18px; color: var(--text); }
.quantity-selector button:hover { background: var(--border); }
.quantity-selector input, .quantity-selector span.qty {
  width: 50px; height: 40px; border: none; text-align: center;
  font-size: 15px; border-left: 1px solid var(--border); border-right: 1px solid var(--border); display:flex; align-items:center; justify-content:center;
}

/* ========== 前台 - 购物车 ========== */
.cart-wrap { max-width: 1000px; margin: 30px auto; padding: 0 24px; }
.cart-empty { text-align: center; padding: 80px 20px; color: var(--text-lighter); }
.cart-empty .emoji { font-size: 80px; margin-bottom: 16px; }
.cart-empty p { font-size: 16px; margin-bottom: 20px; }
.cart-list { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cart-item { display: flex; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border); gap: 16px; }
.cart-item:last-child { border-bottom: none; }
.cart-item-image {
  width: 64px; height: 64px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; background: var(--primary-light); flex-shrink: 0; overflow: hidden;
}
.cart-item-image img { max-width:100%; max-height:100%; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.cart-item-price { color: var(--danger); font-weight: 600; }
.cart-item-remove { color: var(--text-lighter); cursor: pointer; font-size: 13px; background:none;border:none; }
.cart-item-remove:hover { color: var(--danger); }
.cart-summary {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; margin-top: 20px; display: flex; align-items: center; justify-content: space-between;
}
.cart-total { font-size: 16px; }
.cart-total .amount { font-size: 28px; font-weight: 700; color: var(--danger); }

/* ========== 前台 - 结算页 ========== */
.checkout-wrap { max-width: 1000px; margin: 30px auto; padding: 0 24px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; }
.order-items-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 20px; }
.order-items-box h3 { margin-bottom: 16px; font-size: 16px; }
.order-item-row {
  display: flex; justify-content: space-between; padding: 10px 0;
  border-bottom: 1px dashed var(--border); font-size: 14px;
}
.order-item-row:last-child { border-bottom: none; }
.order-summary-box {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; height: fit-content; position: sticky; top: 84px;
}
.order-summary-box h3 { margin-bottom: 16px; font-size: 16px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; color: var(--text-light); }
.summary-total {
  display: flex; justify-content: space-between; padding-top: 16px;
  border-top: 1px solid var(--border); margin-top: 16px; font-size: 16px; font-weight: 600;
}
.summary-total .amount { font-size: 24px; color: var(--danger); }

/* ========== 前台 - 订单结果 ========== */
.result-wrap { max-width: 640px; margin: 40px auto; padding: 0 24px; }
.result-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; text-align: center; }
.result-icon { font-size: 72px; margin-bottom: 20px; }
.result-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.result-desc { color: var(--text-light); margin-bottom: 24px; }
.result-order-info { background: var(--bg); border-radius: var(--radius-sm); padding: 20px; text-align: left; margin-bottom: 24px; }
.result-order-info .row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.result-keys { text-align: left; margin-top: 16px; }
.result-keys h4 { margin-bottom: 10px; font-size: 14px; }
.key-item {
  background: #fff; border: 1px dashed var(--border); border-radius: var(--radius-sm);
  padding: 10px 14px; margin-bottom: 8px; font-family: monospace; font-size: 14px;
  display: flex; justify-content: space-between; align-items: center; gap:10px;
}
.key-item .copy-btn { font-size: 12px; color: var(--primary); cursor: pointer; background: none; border: none; flex-shrink:0; }

/* 订单查询框 */
.query-bar { max-width:600px;margin:30px auto;display:flex;gap:10px;padding:0 24px; }
.query-bar input { flex:1;padding:12px 18px;border:1px solid var(--border);border-radius:24px; }
.query-bar input:focus { outline:none;border-color:var(--primary); }

/* ========== 后台 - 布局 ========== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 220px; background: #1e293b; color: #cbd5e1; display: flex; flex-direction: column; flex-shrink: 0; }
.admin-logo {
  padding: 20px 24px; font-size: 18px; font-weight: 700; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; gap: 8px;
}
.admin-menu { flex: 1; padding: 16px 0; }
.admin-menu a {
  display: flex; align-items: center; gap: 10px; padding: 12px 24px;
  color: #cbd5e1; font-size: 14px; transition: all 0.2s; border-left: 3px solid transparent;
}
.admin-menu a:hover { background: rgba(255,255,255,0.05); color: #fff; text-decoration: none; }
.admin-menu a.active { background: rgba(79,110,247,0.15); color: #fff; border-left-color: var(--primary); }
.admin-sidebar-footer { padding: 16px 24px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; }
.admin-sidebar-footer a { background: none; border: none; color: #cbd5e1; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.admin-sidebar-footer a:hover { color: #fff; text-decoration:none; }

.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.admin-topbar {
  height: 60px; background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; padding: 0 28px;
}
.admin-topbar h2 { font-size: 18px; font-weight: 600; }
.admin-user-info { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-light); }
.admin-content { flex: 1; padding: 28px; }

/* ========== 后台 - 登录页 ========== */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.login-card {
  background: #fff; border-radius: 16px; padding: 40px; width: 400px; max-width:92vw;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.login-card h1 { font-size: 24px; text-align: center; margin-bottom: 8px; }
.login-card .subtitle { text-align: center; color: var(--text-light); margin-bottom: 28px; font-size: 14px; }
.login-tip { margin-top: 16px; padding: 12px; background: var(--primary-light); border-radius: var(--radius-sm); font-size: 13px; color: var(--primary); text-align: center; }

/* ========== 后台 - 统计卡片 ========== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 28px; }
.stat-card {
  background: #fff; border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px;
}
.stat-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.stat-icon.blue { background: #dbeafe; }
.stat-icon.green { background: #dcfce7; }
.stat-icon.orange { background: #fef3c7; }
.stat-icon.purple { background: #f3e8ff; }
.stat-info .label { font-size: 13px; color: var(--text-light); margin-bottom: 4px; }
.stat-info .value { font-size: 24px; font-weight: 700; }

/* ========== 后台 - 表格 ========== */
.admin-table-wrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.admin-table-header {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap:10px;
}
.admin-table-header h3 { font-size: 16px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  background: var(--bg); padding: 12px 16px; text-align: left;
  font-size: 13px; font-weight: 600; color: var(--text-light); border-bottom: 1px solid var(--border);
}
.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover { background: var(--bg); }
.table-actions { display: flex; gap: 6px; flex-wrap:wrap; }
.table-actions a, .table-actions button {
  padding: 4px 10px; font-size: 12px; border-radius: 4px;
  border: 1px solid var(--border); background: #fff; cursor: pointer; color:var(--text);
}
.table-actions .edit-btn:hover { border-color: var(--primary); color: var(--primary); }
.table-actions .del-btn:hover { border-color: var(--danger); color: var(--danger); }

/* 分页 */
.pagination { display:flex; gap:6px; justify-content:center; padding:18px; flex-wrap:wrap; }
.pagination a, .pagination span {
  padding:6px 12px;border:1px solid var(--border);border-radius:6px;font-size:13px;background:#fff;
}
.pagination .current { background:var(--primary);color:#fff;border-color:var(--primary); }

/* 筛选行 */
.filter-row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.filter-row select, .filter-row input { padding:8px 12px; border:1px solid var(--border); border-radius:6px; }

/* 卡密 textarea */
.batch-textarea { width:100%; min-height:160px; font-family:monospace; padding:12px; border:1px solid var(--border); border-radius:8px; }

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .banner-inner { flex-direction: column; text-align: center; padding: 32px 24px; }
  .banner-emoji { font-size: 64px; margin-top: 16px; }
  .detail-card { flex-direction: column; }
  .detail-image { width: 100%; height: 240px; font-size: 100px; }
  .checkout-layout { grid-template-columns: 1fr; }
  .order-summary-box { position: static; }
  .admin-sidebar { width: 60px; }
  .admin-logo span, .admin-menu a span, .admin-sidebar-footer span { display: none; }
  .admin-menu a { justify-content: center; padding: 14px; }
  .search-box { margin-left: 0; width: 100%; }
  .search-box input { flex: 1; }
  .admin-table { display:block; overflow-x:auto; white-space:nowrap; }
}

/* ==========================================================
   资源站风格前台（rs- 前缀）—— 模仿「极速软件」布局
   ========================================================== */
:root {
  --rs-blue: #2f6bff;
  --rs-purple: #6c5ce7;
  --rs-bg: #f4f5f8;
  --rs-yellow: #ffc233;
  --rs-text: #2b2f3a;
  --rs-muted: #9aa0b0;
}

/* 使用新前台的页面背景统一 */
body:has(.rs-header) { background: var(--rs-bg); }

/* ===== 顶部导航 ===== */
.rs-header { background:#fff; border-bottom:1px solid #eceef3; position:sticky; top:0; z-index:100; }
.rs-nav {
  max-width:1240px; margin:0 auto; height:62px; padding:0 24px;
  display:flex; align-items:center; gap:30px;
}
.rs-logo { display:flex; align-items:center; gap:9px; text-decoration:none; flex-shrink:0; }
.rs-logo:hover { text-decoration:none; }
.rs-logo-mark {
  width:30px; height:30px; border-radius:8px; color:#fff; font-weight:800; font-style:italic;
  display:flex; align-items:center; justify-content:center; font-size:19px;
  background:linear-gradient(135deg,#2f6bff,#1749e0);
}
.rs-logo-text { font-size:19px; font-weight:800; color:#1f2740; letter-spacing:.5px; }

.rs-menu { display:flex; align-items:center; gap:20px; flex:1; min-width:0; overflow:visible; }
.rs-menu::-webkit-scrollbar { display:none; height:0; }
.rs-menu a { color:#4a5060; font-size:15px; font-weight:500; text-decoration:none; padding:4px 0; white-space:nowrap; flex-shrink:0; }
.rs-menu a:hover { color:var(--rs-blue); text-decoration:none; }
.rs-menu a.active { color:var(--rs-blue); font-weight:600; }

/* ===== 分类下拉菜单 ===== */
.rs-drop { position:relative; flex-shrink:0; display:flex; align-items:center; }
.rs-drop-btn { display:inline-flex; align-items:center; gap:5px; }
.rs-caret { font-size:11px; line-height:1; transition:transform .2s; }
.rs-drop-panel {
  display:none; position:absolute; top:calc(100% + 14px); left:50%; transform:translateX(-50%);
  min-width:178px; background:#fff; border:1px solid #eceef3; border-radius:12px;
  box-shadow:0 18px 44px rgba(30,40,80,.18); padding:8px; z-index:200;
}
.rs-drop-panel::before {
  content:''; position:absolute; top:-6px; left:50%; transform:translateX(-50%);
  border:6px solid transparent; border-bottom-color:#fff;
}
.rs-drop-panel a {
  display:block; padding:10px 14px; border-radius:8px; font-size:14px; color:#4a5060;
  white-space:nowrap; text-align:left;
}
.rs-drop-panel a:hover { background:#f2f4fa; color:var(--rs-blue); text-decoration:none; }
.rs-drop-panel a.active { color:var(--rs-blue); font-weight:600; background:#eef3ff; }
.rs-drop:hover .rs-drop-panel, .rs-drop:focus-within .rs-drop-panel { display:block; }
.rs-drop:hover .rs-caret, .rs-drop:focus-within .rs-caret { transform:rotate(180deg); }

/* 二级分类（桌面：向右展开） */
.rs-drop-item { position:relative; }
.rs-drop-parent { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.rs-arrow { color:#b6bcc8; font-size:14px; line-height:1; }
.rs-drop-sub {
  display:none; position:absolute; top:-8px; left:100%; margin-left:6px;
  min-width:172px; background:#fff; border:1px solid #eceef3; border-radius:12px;
  box-shadow:0 18px 44px rgba(30,40,80,.18); padding:8px; z-index:210;
}
.rs-drop-sub a {
  display:block; padding:10px 14px; border-radius:8px; font-size:14px; color:#4a5060; white-space:nowrap;
}
.rs-drop-sub a:hover { background:#f2f4fa; color:var(--rs-blue); text-decoration:none; }
.rs-drop-sub a.active { color:var(--rs-blue); font-weight:600; background:#eef3ff; }
.rs-drop-item:hover > .rs-drop-sub, .rs-drop-item:focus-within > .rs-drop-sub { display:block; }
.rs-drop-item:hover > .rs-drop-parent .rs-arrow { color:var(--rs-blue); }

.rs-nav-right { display:flex; align-items:center; gap:14px; flex-shrink:0; }
.rs-hamburger {
  display:none; width:40px; height:40px; border:1px solid #d6dae4; border-radius:8px;
  background:#fff; font-size:19px; color:#444b5c; align-items:center; justify-content:center; flex-shrink:0;
  cursor:pointer; position:relative; z-index:101; padding:0; line-height:1;
  -webkit-tap-highlight-color:transparent;
}
.rs-login-btn {
  padding:7px 22px; border:1px solid #d6dae4; border-radius:8px;
  color:#444b5c; font-size:14px; text-decoration:none; transition:.2s;
}
.rs-login-btn:hover { border-color:var(--rs-blue); color:var(--rs-blue); text-decoration:none; }
.rs-cart-link { font-size:20px; text-decoration:none; position:relative; line-height:1; }
.rs-cart-link:hover { text-decoration:none; }
.rs-cart-badge {
  position:absolute; top:-8px; right:-10px; background:#ff4d4f; color:#fff;
  font-size:11px; min-width:17px; height:17px; border-radius:9px;
  display:flex; align-items:center; justify-content:center; padding:0 4px;
}

/* ===== 通栏 Banner ===== */
.rs-banner {
  position:relative; height:250px; overflow:hidden;
  background:linear-gradient(120deg,#3a4a8c 0%,#5b4b9c 55%,#7a4f9e 100%);
  display:flex; align-items:center; justify-content:center; text-align:center;
}
.rs-banner-bg { position:absolute; inset:0; }
.rs-banner-emoji { position:absolute; font-size:120px; opacity:.18; }
.rs-banner-emoji.e1 { left:6%; top:-20px; transform:rotate(-12deg); }
.rs-banner-emoji.e2 { right:8%; top:-10px; transform:rotate(10deg); }
.rs-banner-emoji.e3 { left:18%; bottom:-40px; opacity:.12; }
.rs-banner-emoji.e4 { right:20%; bottom:-45px; opacity:.12; }
.rs-banner-inner { position:relative; z-index:2; color:#fff; }
.rs-banner-inner h1 { font-size:40px; font-weight:800; letter-spacing:1px; text-shadow:0 4px 20px rgba(0,0,0,.25); }
.rs-banner-inner h1 span {
  background:linear-gradient(90deg,#ffd34d,#ff9d3c); -webkit-background-clip:text;
  background-clip:text; -webkit-text-fill-color:transparent;
}
.rs-banner-inner p { margin-top:12px; font-size:16px; opacity:.92; }
.rs-banner-btn {
  display:inline-block; margin-top:20px; padding:10px 28px; background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.55); border-radius:8px; color:#fff; font-size:15px; text-decoration:none; transition:.2s;
}
.rs-banner-btn:hover { background:#fff; color:var(--rs-purple); text-decoration:none; }

/* ===== 主内容 ===== */
.rs-home { max-width:1240px; margin:0 auto; padding:0 24px 50px; }

/* ===== 首页公告条 ===== */
.rs-notice {
  max-width:1240px; margin:18px auto 0; padding:12px 18px;
  background:linear-gradient(90deg,#fff8e6,#fff3cc);
  border:1px solid #ffe1a8; border-left:4px solid #f5a623;
  border-radius:10px; color:#8a5a00; font-size:14px;
  display:flex; align-items:flex-start; gap:8px;
}
.rs-notice span { line-height:1.5; }

/* ===== 大搜索框 ===== */
.rs-search {
  margin:20px auto 22px; max-width:760px; position:relative; z-index:5;
  display:flex; align-items:center; background:#fff; border-radius:30px;
  box-shadow:0 10px 34px rgba(40,50,100,.16); padding:6px 6px 6px 20px;
}
.rs-search-icon { font-size:17px; color:#aab; margin-right:10px; }
.rs-search input { flex:1; border:none; outline:none; font-size:15px; padding:12px 8px; background:transparent; }
.rs-search-btn {
  border:none; background:linear-gradient(135deg,#6c5ce7,#5a4bd6); color:#fff;
  padding:12px 34px; border-radius:24px; font-size:15px; font-weight:600;
}
.rs-search-btn:hover { filter:brightness(1.08); }

/* ===== 分类标签栏 ===== */
.rs-tabs {
  background:#fff; border-radius:12px; padding:8px 14px; margin-bottom:24px;
  display:flex; gap:8px; flex-wrap:wrap; box-shadow:0 2px 10px rgba(0,0,0,.04);
}
.rs-tab { padding:8px 20px; border-radius:8px; font-size:14px; color:#5a6070; text-decoration:none; transition:.18s; }
.rs-tab:hover { background:#f2f4fa; color:var(--rs-blue); text-decoration:none; }
.rs-tab.active { background:var(--rs-blue); color:#fff; font-weight:600; }
/* 二级分类标签栏 */
.rs-subtabs { margin-top:-12px; background:transparent; box-shadow:none; padding:0 8px; margin-bottom:22px; }
.rs-subtabs .rs-tab {
  font-size:13px; padding:6px 16px; background:#fff; border:1px solid #e9ecf3; border-radius:20px;
}
.rs-subtabs .rs-tab:hover { border-color:var(--rs-blue); }
.rs-subtabs .rs-tab.active { background:var(--rs-blue); border-color:var(--rs-blue); }

/* ===== 卡片网格 ===== */
.rs-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:16px; }
.rs-card {
  position:relative; background:#fff; border-radius:14px; padding:22px 18px 16px;
  box-shadow:0 2px 10px rgba(0,0,0,.05); cursor:pointer; transition:.22s; border:1px solid #f0f2f6;
}
.rs-card:hover { transform:translateY(-4px); box-shadow:0 14px 30px rgba(40,60,120,.13); }
.rs-dot-new { position:absolute; top:14px; left:14px; width:9px; height:9px; border-radius:50%; background:#ff4d4f; box-shadow:0 0 0 3px rgba(255,77,79,.15); }
.rs-platform { position:absolute; top:12px; right:14px; font-size:15px; color:#c4cad6; }

.rs-app-icon {
  width:84px; height:84px; margin:6px auto 14px; border-radius:20px;
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.rs-app-emoji { font-size:44px; background:linear-gradient(145deg,#f6f8ff,#eef1fb); box-shadow:inset 0 0 0 1px #eceffa; }
.rs-app-icon img { width:100%; height:100%; object-fit:cover; border-radius:20px; }

.rs-tags { display:flex; flex-wrap:wrap; gap:4px 12px; margin-bottom:9px; }
.rs-tag { font-size:12px; color:#7a8090; display:inline-flex; align-items:center; gap:4px; }
.rs-tag .dot { width:7px; height:7px; border-radius:50%; display:inline-block; }
.rs-tag .dot.orange { background:#ff8a3d; }
.rs-tag .dot.green { background:#22c55e; }
.rs-tag .dot.blue { background:#3b82f6; }

.rs-card-title {
  font-size:14px; font-weight:600; color:#2f6bff; line-height:1.45; min-height:40px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; margin-bottom:12px;
}

.rs-card-foot { display:flex; align-items:center; gap:10px; padding-top:10px; border-top:1px solid #f1f3f7; }
.rs-meta { font-size:12px; color:#9aa0b0; }
.rs-price-btn { margin-left:auto; background:var(--rs-yellow); color:#5c4400; font-size:13px; font-weight:700; padding:4px 12px; border-radius:7px; }

/* ===== 新前台响应式 ===== */
@media (max-width:1100px) { .rs-grid { grid-template-columns:repeat(3,1fr); } }
@media (max-width:860px) {
  .rs-grid { grid-template-columns:repeat(2,1fr); }
  .rs-hamburger { display:flex; }
  .rs-menu {
    display:none; position:absolute; top:62px; left:0; right:0; z-index:99;
    flex-direction:column; gap:0; background:#fff; padding:8px 0;
    box-shadow:0 12px 30px rgba(0,0,0,.12); max-height:calc(100vh - 62px); overflow-y:auto;
  }
  .rs-menu.open { display:flex; }
  .rs-menu a { width:100%; padding:13px 24px; border-bottom:1px solid #f0f2f6; }
  /* 移动端：分类在汉堡面板内直接展开，不使用悬浮 */
  .rs-drop { width:100%; flex-direction:column; align-items:stretch; }
  .rs-drop-btn { width:100%; }
  .rs-caret { display:none; }
  .rs-drop-panel {
    position:static; display:block; transform:none; box-shadow:none; border:none; border-radius:0;
    padding:0; min-width:0; width:100%; background:#f7f8fb;
  }
  .rs-drop-panel::before { display:none; }
  .rs-drop-panel a { padding:12px 24px 12px 46px; border-bottom:1px solid #f0f2f6; border-radius:0; }
  /* 移动端：二级分类也静态展开、更深缩进 */
  .rs-drop-item { width:100%; }
  .rs-drop-parent .rs-arrow { display:none; }
  .rs-drop-sub {
    position:static; display:block; box-shadow:none; border:none; border-radius:0;
    padding:0; margin:0; min-width:0; width:100%; background:transparent;
  }
  .rs-drop-sub a { padding:11px 24px 11px 64px; border-bottom:1px solid #f0f2f6; border-radius:0; font-size:13px; }
  .rs-banner { height:210px; }
  .rs-banner-inner h1 { font-size:28px; }
}
@media (max-width:520px) {
  .rs-grid { grid-template-columns:1fr; }
  .rs-logo-text { font-size:16px; }
  .rs-search-btn { padding:10px 18px; }
}

/* ===== 注册按钮高亮 ===== */
.rs-register-btn { background:var(--rs-blue); color:#fff; border-color:var(--rs-blue); }
.rs-register-btn:hover { filter:brightness(1.07); color:#fff; }

/* ===== 登录 / 注册页 ===== */
.auth-wrap { max-width:440px; margin:44px auto; padding:0 20px; }
.auth-card { background:#fff; border-radius:16px; padding:36px; box-shadow:var(--shadow); }
.auth-head { font-size:22px; font-weight:700; text-align:center; }
.auth-sub { text-align:center; color:var(--text-light); font-size:13px; margin:8px 0 22px; }
.auth-alert { background:#fee2e2; color:#dc2626; padding:11px 14px; border-radius:8px; font-size:13px; margin-bottom:18px; }
.auth-foot { text-align:center; margin-top:18px; font-size:14px; color:var(--text-light); }

/* ===== 会员中心 ===== */
.account-wrap { max-width:1000px; margin:26px auto; padding:0 24px; }
.account-profile { display:flex; align-items:center; gap:16px; margin-bottom:22px; }
.account-avatar {
  width:56px; height:56px; border-radius:50%; color:#fff; font-size:24px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,#2f6bff,#6c5ce7);
}
.account-name { font-size:19px; font-weight:700; }
.account-email { font-size:13px; color:var(--text-light); margin-top:2px; }

@media (max-width:600px) {
  .auth-card { padding:26px 20px; }
  .account-profile { flex-wrap:wrap; }
}

/* ===== VIP 开通页 ===== */
.vip-page { max-width:1080px; margin:0 auto; padding:0 24px 50px; }
.vip-hero { text-align:center; padding:40px 0 26px; }
.vip-crown { font-size:54px; }
.vip-hero h1 { font-size:30px; font-weight:800; margin:10px 0; }
.vip-hero p { color:#6b7280; font-size:15px; }
.vip-current { margin-top:16px; display:inline-block; background:#fff7e6; border:1px solid #ffe1a8; color:#a16207; padding:9px 18px; border-radius:20px; font-size:13px; }

.vip-plans { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-bottom:24px; }
.vip-plan-card {
  position:relative; background:#fff; border-radius:16px; padding:30px 20px;
  text-align:center; cursor:pointer; border:2px solid #eef0f4; transition:.2s;
}
.vip-plan-card:hover { transform:translateY(-4px); box-shadow:0 14px 30px rgba(40,60,120,.12); }
.vip-plan-radio { position:absolute; top:14px; right:14px; }
.vip-plan-card:has(.vip-plan-radio:checked) { border-color:#f0b400; background:linear-gradient(180deg,#fffdf4,#fff); }
.vip-plan-name { font-size:19px; font-weight:700; color:#1f2740; }
.vip-plan-days { color:#9aa0b0; font-size:13px; margin:6px 0 14px; }
.vip-plan-price { font-size:34px; font-weight:800; color:#e8890c; }
.vip-plan-price small { font-size:16px; }
.vip-plan-tip { margin-top:12px; font-size:12px; color:#16a34a; }

.vip-paybox { text-align:center; padding:24px; }
.vip-pay-title { font-size:16px; font-weight:600; margin-bottom:14px; }
.vip-pay-methods { display:flex; gap:12px; justify-content:center; margin-bottom:18px; flex-wrap:wrap; }
.vip-pay-method { border:1px solid var(--border); border-radius:8px; padding:9px 18px; font-size:14px; cursor:pointer; }
.vip-test-tip { background:#fff7e6; border:1px solid #ffe1a8; color:#a16207; padding:11px; border-radius:8px; font-size:13px; margin-bottom:16px; }
.vip-submit { min-width:220px; }

/* 会员中心 VIP 标识 */
.account-vip-badge { margin-top:8px; display:inline-block; background:linear-gradient(135deg,#ffd770,#f5a623); color:#5c3d00; font-size:13px; font-weight:600; padding:5px 14px; border-radius:16px; }
.account-vip-off { display:inline-block; margin-top:8px; font-size:13px; color:#e8890c; }

@media (max-width:860px) { .vip-plans { grid-template-columns:1fr; } }

/* ==========================================================
   软件详情页（pd- 前缀）—— 模仿「极速软件」详情布局
   ========================================================== */
.pd-wrap { max-width:1080px; margin:26px auto; padding:0 24px 60px; }

/* 面包屑 */
.pd-crumb { font-size:13px; color:#9aa0b0; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.pd-crumb a { color:#9aa0b0; }
.pd-crumb a:hover { color:var(--rs-blue); text-decoration:none; }
.pd-crumb i { font-style:normal; color:#cdd2dc; }

.pd-title { font-size:27px; font-weight:800; color:#1f2740; line-height:1.4; margin:16px 0 14px; }
.pd-line { border-top:1px dashed #dfe3ea; margin-bottom:26px; }

/* 大图标 */
.pd-icon { margin-bottom:22px; }
.pd-icon-img {
  width:96px; height:96px; border-radius:24px; font-size:52px;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(145deg,#f6f8ff,#eef1fb);
  box-shadow:0 10px 26px rgba(60,80,150,.14), inset 0 0 0 1px #eceffa;
}
.pd-icon-img img { width:100%; height:100%; object-fit:cover; border-radius:24px; }

/* 支持系统 / 机型 */
.pd-syslines { margin-bottom:22px; }
.pd-sysline { font-size:15px; color:#3a4152; padding:5px 0; display:flex; align-items:center; gap:8px; }
.pd-check { color:var(--rs-blue); font-size:15px; }

/* 购买卡片 */
.pd-buycard {
  background:#fff; border-radius:16px; padding:24px 26px; margin-bottom:20px;
  box-shadow:0 4px 18px rgba(30,40,80,.06); border:1px solid #eef0f5;
}
.pd-buy-top { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.pd-price { font-size:36px; font-weight:800; color:#f5860c; line-height:1; }
.pd-price small { font-size:18px; font-weight:700; }
.pd-price-free { font-size:24px; color:#d97706; }
.pd-buy-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.pd-cart-btn {
  padding:12px 22px; border-radius:10px; font-size:15px; font-weight:600;
  background:#fff; color:var(--rs-blue); border:1px solid var(--rs-blue);
}
.pd-cart-btn:hover { background:#eef3ff; }
.pd-unlock-btn {
  padding:13px 30px; border:none; border-radius:10px; color:#fff; font-size:16px; font-weight:700;
  background:linear-gradient(135deg,#ffa726,#fb8c00); box-shadow:0 8px 20px rgba(251,140,0,.32);
}
.pd-unlock-btn:hover { filter:brightness(1.05); transform:translateY(-1px); }
.pd-buy-actions .quantity-selector button { width:38px; height:44px; }
.pd-buy-actions .quantity-selector input, .pd-buy-actions .quantity-selector span.qty { width:48px; height:44px; }

.pd-get { margin-top:20px; padding-top:18px; border-top:1px dashed #e6e9f0; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.pd-get-label { font-size:13px; color:#9aa0b0; }
.pd-get-tag {
  font-size:13px; padding:6px 14px; border-radius:8px;
  background:#f2f5fc; color:#4a5578; border:1px solid #e6ebf7;
}
.pd-get-tag.vip { background:#fff4e0; color:#d97706; border-color:#ffe0b0; }

/* 信息表格 */
.pd-meta-grid {
  display:grid; grid-template-columns:repeat(6,1fr); background:#fff; border-radius:14px; overflow:hidden;
  border:1px solid #eef0f5; box-shadow:0 4px 18px rgba(30,40,80,.05); margin-bottom:34px;
}
.pd-meta-cell { padding:18px 16px; border-right:1px solid #f0f2f7; min-width:0; }
.pd-meta-cell:last-child { border-right:none; }
.pd-meta-k { font-size:12px; color:#9aa0b0; margin-bottom:8px; }
.pd-meta-v { font-size:14px; font-weight:600; color:#2f3648; line-height:1.5; word-break:break-word; }

/* 标题与正文 */
.pd-h2 {
  font-size:19px; font-weight:800; color:#1f2740; margin:30px 0 16px;
  padding-left:12px; border-left:4px solid var(--rs-blue); line-height:1.1;
}
.pd-desc-body { font-size:15px; color:#565d6e; line-height:1.95; }

/* 免责声明 */
.pd-disclaimer {
  margin-top:28px; padding:18px 22px; background:#f4f6fa; border-left:4px solid #c7cddb;
  border-radius:10px; font-size:13px; color:#8a90a0; line-height:1.8;
}

/* 相关推荐 */
.pd-related { display:grid; grid-template-columns:repeat(5,1fr); gap:16px; }
.pd-rel-card {
  background:#fff; border-radius:14px; padding:22px 14px 14px; text-align:center;
  border:1px solid #eef0f5; box-shadow:0 3px 12px rgba(30,40,80,.05); transition:.2s;
}
.pd-rel-card:hover { transform:translateY(-3px); box-shadow:0 12px 26px rgba(40,60,120,.12); text-decoration:none; }
.pd-rel-icon { display:flex; justify-content:center; margin-bottom:12px; }
.pd-rel-icon > div {
  width:66px; height:66px; border-radius:16px; font-size:34px;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(145deg,#f6f8ff,#eef1fb); box-shadow:inset 0 0 0 1px #eceffa;
}
.pd-rel-icon img { width:100%; height:100%; object-fit:cover; border-radius:16px; }
.pd-rel-name {
  font-size:13px; font-weight:600; color:#2f3648; line-height:1.45; min-height:38px; margin-bottom:10px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; text-align:left;
}
.pd-rel-foot { display:flex; align-items:center; justify-content:space-between; font-size:12px; color:#9aa0b0; }
.pd-rel-price { background:#fff4e0; color:#f5860c; font-weight:700; padding:3px 10px; border-radius:7px; }
.pd-rel-price.free { background:#fff4e0; color:#d97706; }

/* 详情页响应式 */
@media (max-width:960px) {
  .pd-meta-grid { grid-template-columns:repeat(3,1fr); }
  .pd-meta-cell:nth-child(3n) { border-right:none; }
  .pd-related { grid-template-columns:repeat(3,1fr); }
}
@media (max-width:680px) {
  .pd-title { font-size:21px; }
  .pd-buy-top { flex-direction:column; align-items:stretch; }
  .pd-buy-actions { justify-content:space-between; }
  .pd-unlock-btn { flex:1; }
  .pd-meta-grid { grid-template-columns:repeat(2,1fr); }
  .pd-meta-cell:nth-child(3n) { border-right:1px solid #f0f2f7; }
  .pd-meta-cell:nth-child(2n) { border-right:none; }
  .pd-related { grid-template-columns:repeat(2,1fr); }
}

/* ==========================================================
   深色页脚（rs-footer）—— 模仿「极速软件」页脚
   ========================================================== */
.rs-footer { background:#1f2733; color:#aeb6c2; margin-top:56px; }
.rs-footer-inner {
  max-width:1240px; margin:0 auto; padding:50px 24px 38px;
  display:grid; grid-template-columns:1.5fr 1fr 1fr 1.2fr; gap:42px;
}
.rs-footer-col h4 { color:#fff; font-size:15px; font-weight:700; margin-bottom:18px; }
.rs-footer-col p { font-size:13px; line-height:1.95; color:#9aa3b2; }
.rs-footer-col ul { list-style:none; }
.rs-footer-col li { margin-bottom:12px; font-size:13px; color:#9aa3b2; line-height:1.5; }
.rs-footer-col a { color:#9aa3b2; font-size:13px; text-decoration:none; transition:color .18s; }
.rs-footer-col a:hover { color:#fff; text-decoration:none; }
.rs-footer-bottom {
  border-top:1px solid rgba(255,255,255,.08); padding:22px 24px; text-align:center;
}
.rs-footer-bottom p { font-size:12px; color:#7d8696; line-height:1.9; }

@media (max-width:860px) {
  .rs-footer-inner { grid-template-columns:repeat(2,1fr); gap:30px 26px; padding:40px 24px 30px; }
}
@media (max-width:520px) {
  .rs-footer-inner { grid-template-columns:1fr; gap:26px; }
}
