/* ============================================
   财税网站全站重构 - 全局样式表
   版权归属：九天创想（河北）科技有限公司
   ============================================ */

/* === CSS Variables === */
:root {
  /* 主色调 */
  --primary: #1a3c6e;
  --primary-light: #2a5298;
  --primary-dark: #0f2a4e;
  --primary-bg: #e8edf5;
  
  /* 金色点缀 */
  --gold: #c9a84c;
  --gold-light: #e0c878;
  --gold-dark: #a8882e;
  
  /* 中性色 */
  --white: #ffffff;
  --bg: #f5f7fa;
  --bg-dark: #eef1f5;
  --border: #e0e4e8;
  --text: #333333;
  --text-secondary: #666666;
  --text-light: #999999;
  
  /* 状态色 */
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  
  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-xl: 0 8px 32px rgba(0,0,0,0.15);
  
  /* 圆角 */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* 字体 */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  
  /* 布局 */
  --max-width: 1200px;
  --header-height: 64px;
}

/* === Reset === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-light);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* === Scrollbar === */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #c1c9d6;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8b2c0;
}

/* === Selection === */
::selection {
  background: var(--primary);
  color: white;
}

/* === Layout Container === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* === Top Bar (pre-header) === */
.top-bar {
  background: #1a3355;
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* === Main Header === */
.header {
  background: #1a3355;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
}

.header .container {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #c9a84c, #e0c878);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a3355;
  font-size: 16px;
  font-weight: 700;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.logo-text span {
  color: #c9a84c;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 30px;
  flex: 1;
}

.main-nav a {
  padding: 8px 14px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

.main-nav a:hover {
  color: #ffffff;
  background: rgba(201,168,76,0.12);
}

.main-nav a.active {
  color: #c9a84c;
  background: rgba(201,168,76,0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* === Search Bar === */
.search-box {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 0 12px;
  height: 30px;
  width: 180px;
  transition: all 0.3s;
}

.search-box:focus-within {
  border-color: rgba(201,168,76,0.4);
  width: 220px;
  background: rgba(255,255,255,0.15);
}

.search-box input {
  border: none;
  background: none;
  outline: none;
  flex: 1;
  font-size: 12px;
  color: #ffffff;
}

.search-box input::placeholder {
  color: rgba(255,255,255,0.4);
  font-size: 12px;
}

.search-box .search-icon {
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  cursor: pointer;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-family);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-primary {
  background: var(--primary);
  color: white;
  border-radius: 8px;
}

.btn-primary:hover {
  background: var(--primary-light);
  box-shadow: var(--shadow);
}

.btn-gold {
  background: linear-gradient(135deg, #c9a84c, #b8962e);
  color: white;
  border-radius: 8px;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #d4b45a, #c9a84c);
  box-shadow: 0 4px 16px rgba(201,168,76,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 8px;
}

.btn-outline:hover {
  background: var(--primary-bg);
}

/* 导航栏内的登录按钮适配深色底 */
.header .btn-outline {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.25);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
}
.header .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
  color: #ffffff;
}
.header .btn-primary {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 6px;
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 8px;
}

.btn-outline-gold:hover {
  background: rgba(201,168,76,0.08);
}

.btn-sm {
  padding: 4px 12px;
  font-size: 13px;
}

.btn-lg {
  padding: 12px 28px;
  font-size: 16px;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover {
  background: #16a34a;
}

.btn-block {
  width: 100%;
}

/* === Tags / Badges === */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.tag-blue {
  background: #e8edf5;
  color: var(--primary);
}

.tag-gold {
  background: #fdf4e2;
  color: var(--gold-dark);
}

.tag-green {
  background: #dcfce7;
  color: #166534;
}

.tag-red {
  background: #fee2e2;
  color: #991b1b;
}

.tag-gray {
  background: #f0f0f0;
  color: #666;
}

.tag-orange {
  background: #ffedd5;
  color: #9a3412;
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.status-effective {
  background: #dcfce7;
  color: #166534;
}

.status-effective .status-dot {
  background: var(--success);
}

.status-abolished {
  background: #fee2e2;
  color: #991b1b;
}

.status-abolished .status-dot {
  background: var(--danger);
}

.status-partial {
  background: #ffedd5;
  color: #9a3412;
}

.status-partial .status-dot {
  background: var(--warning);
}

/* === Cards === */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.card:hover {
  box-shadow: var(--shadow);
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-body {
  padding: 20px;
}

.card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  border-radius: 0 0 var(--radius) var(--radius);
}

/* === Page Header === */
.page-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 40px 0;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-header p {
  color: rgba(255,255,255,0.8);
  font-size: 15px;
}

/* === Breadcrumb === */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .sep {
  color: #ccc;
}

/* === Section Titles === */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-title h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.section-title .more {
  font-size: 14px;
  color: var(--text-light);
  transition: color 0.2s;
}

.section-title .more:hover {
  color: var(--primary);
}

/* === Forms === */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  font-family: var(--font-family);
  transition: all 0.2s;
  background: var(--white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(26,60,110,0.1);
}

.form-input::placeholder {
  color: var(--text-light);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-hint {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

.form-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 4px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

/* === Table === */
.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table th,
table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

table th {
  background: var(--bg);
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

table tbody tr:hover {
  background: #f8f9fb;
}

/* === Pagination === */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 20px 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  transition: all 0.2s;
}

.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
}

.pagination .active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.pagination .disabled {
  color: #ccc;
  cursor: not-allowed;
}

/* === Modals === */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

.modal-lg {
  max-width: 640px;
}

.modal-header {
  padding: 20px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--border);
  color: var(--text);
}

.modal-body {
  padding: 20px 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* === Role Switcher (prototype demo) === */
.role-switcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 120px;
}

.role-switcher-label {
  font-size: 11px;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.role-switcher button {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-family);
}

.role-switcher button:hover {
  border-color: var(--primary);
}

.role-switcher button.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* === Footer === */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-brand h3 {
  color: white;
  font-size: 20px;
  margin-bottom: 12px;
}

.footer-brand h3 span {
  color: var(--gold);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.footer-qr {
  display: flex;
  gap: 20px;
}

.footer-qr-item {
  text-align: center;
}

.footer-qr-item .qr-placeholder {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}

.footer-qr-item span {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
}

.footer h4 {
  color: white;
  font-size: 15px;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-contact p {
  font-size: 14px;
  padding: 4px 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* === Floating Consult Button === */
.float-consult {
  position: fixed;
  bottom: 160px;
  right: 20px;
  z-index: 900;
}

.float-consult-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #a04040;
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(160,64,64,0.25);
  transition: all 0.2s;
  font-family: var(--font-family);
}

.float-consult-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(160,64,64,0.35);
  background: #b04848;
}

.float-consult-icon {
  font-size: 16px;
}

/* === Empty States === */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state p {
  font-size: 15px;
}

/* === Alert === */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
}

.alert-info {
  background: #e8f4fd;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.alert-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.alert-warning {
  background: #ffedd5;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.alert-danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* === Permission-based visibility === */
[data-visitor-visible="false"] {
  display: none !important;
}

[data-normal-visible="false"] {
  display: none !important;
}

[data-premium-visible="false"] {
  display: none !important;
}

/* === Responsive === */

/* 汉堡菜单按钮 */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 12px;
  z-index: 110;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* 移动端遮罩 */
.mobile-overlay {
  display: none;
}

/* ===== 平板端 (max-width: 1024px) ===== */
@media (max-width: 1024px) {
  .container {
    padding: 0 16px;
  }
  
  .main-nav a {
    padding: 6px 10px;
    font-size: 13px;
  }
  
  .search-box {
    width: 150px;
  }
  
  .header-actions {
    gap: 8px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  /* 网格布局自适应 */
  .video-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  
  .admin-stats {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  
  .page-header {
    padding: 30px 0;
  }
  
  .page-header h1 {
    font-size: 24px;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* ============================================
   移动端全面适配 (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  body { overflow-x: hidden; }
  .container { padding: 0 10px; }
  
  /* ===== 顶部TOP条 - 完全隐藏 ===== */
  .top-bar { display: none !important; }
  
  /* ===== 汉堡菜单 ===== */
  .menu-toggle { display: flex; }
  
  /* ===== 头部精简 ===== */
  .header { height: 50px; }
  .header .container { flex-wrap: nowrap; gap: 6px; }
  .logo-icon { width: 28px; height: 28px; font-size: 14px; }
  .logo-text { font-size: 15px; }
  
  /* 头部隐藏搜索和登录按钮（移到侧栏中） */
  .header .search-box { display: none !important; }
  .header .login-btns { display: none !important; }
  .header .user-info { display: none !important; }
  
  /* ===== 侧滑导航 ===== */
  .main-nav {
    display: flex;
    flex-direction: column;
    position: fixed; top: 0; right: -300px;
    width: 280px; height: 100vh;
    background: white;
    box-shadow: -4px 0 24px rgba(0,0,0,0.18);
    padding: 60px 0 20px;
    margin-left: 0;
    z-index: 105;
    transition: right 0.3s ease;
    overflow-y: auto;
  }
  .main-nav.open { right: 0; }
  
  .main-nav a {
    padding: 12px 20px;
    font-size: 15px;
    color: var(--text);
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0;
  }
  .main-nav a:hover { background: var(--primary-bg); color: var(--primary); }
  .main-nav a.active { color: var(--primary); font-weight: 600; background: var(--primary-bg); }
  
  /* 移动端菜单增强区 */
  .mobile-extra {
    margin-top: auto;
    border-top: 6px solid var(--bg);
    padding: 12px 16px 24px;
  }
  .mobile-menu-search {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
  }
  .mobile-menu-search input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    font-family: var(--font-family);
  }
  .mobile-menu-search input:focus {
    border-color: var(--primary);
  }
  .mobile-menu-search button {
    padding: 8px 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
  }
  .mobile-extra .user-info {
    flex-direction: column !important;
    gap: 8px;
    align-items: stretch !important;
  }
  .mobile-extra .user-info .user-avatar {
    align-self: center;
    width: 40px; height: 40px; font-size: 18px;
  }
  .mobile-extra .user-info .user-name {
    text-align: center;
  }
  .mobile-extra .user-info .user-role {
    align-self: center;
  }
  .mobile-extra .user-info .btn {
    width: 100%;
  }
  
  /* ===== 遮罩 ===== */
  .mobile-overlay {
    display: none;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 104;
  }
  .mobile-overlay.open { display: block; }
  
  /* ===== 页面头部 ===== */
  .page-header { padding: 16px 0; }
  .page-header h1 { font-size: 19px; margin-bottom: 4px; }
  .page-header p { font-size: 13px; }
  .breadcrumb { font-size: 12px; flex-wrap: wrap; padding: 8px 0; }
  
  /* ===== 网格 2列 ===== */
  .video-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }
  .video-cover { height: 100px; font-size: 12px; }
  .play-icon { width: 32px; height: 32px; font-size: 14px; }
  .duration-tag { font-size: 10px; padding: 1px 6px; }
  .category-tag { font-size: 10px; padding: 1px 6px; }
  .price-tag { font-size: 11px; padding: 1px 6px; }
  .video-info { padding: 8px; }
  .video-info h3 { font-size: 12px; -webkit-line-clamp: 1; }
  .video-meta { font-size: 10px; gap: 4px; }
  
  /* ===== 卡片 ===== */
  .card-body { padding: 12px; }
  .card-header { padding: 10px 12px; }
  .card-footer { padding: 10px 12px; }
  .course-grid { gap: 10px; }
  .material-grid { gap: 10px; }
  
  /* ===== Section标题 ===== */
  .section-title { margin-bottom: 12px; }
  .section-title h2 { font-size: 17px; }
  
  /* ===== 表格横滚 ===== */
  .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table th, table td { padding: 6px 8px; font-size: 12px; white-space: nowrap; }
  
  /* ===== 筛选栏 ===== */
  .filter-bar, .filter-row { flex-direction: column; gap: 6px; }
  .form-row { flex-direction: column; gap: 0; }
  .form-input, .form-select { padding: 7px 10px; font-size: 13px; }
  
  /* ===== 按钮 ===== */
  .btn { padding: 6px 12px; font-size: 13px; }
  .btn-lg { padding: 8px 16px; font-size: 14px; }
  
  /* ===== 底部 ===== */
  .footer { padding: 24px 0 12px; margin-top: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer-brand h3 { font-size: 17px; }
  .footer-brand p { font-size: 13px; }
  .footer h4 { font-size: 14px; margin-bottom: 10px; }
  
  /* ===== 弹窗 ===== */
  .modal { width: 92%; max-width: 340px; }
  .modal-header { padding: 14px 16px 0; }
  .modal-header h3 { font-size: 16px; }
  .modal-body { padding: 14px 16px; }
  .modal-footer { padding: 10px 16px; flex-direction: column; gap: 6px; }
  .modal-footer .btn { width: 100%; }
  
  /* ===== 分页 ===== */
  .pagination a, .pagination span { min-width: 28px; height: 28px; font-size: 12px; }
  
  /* ===== 悬浮按钮 ===== */
  .float-consult-btn { padding: 8px 14px; font-size: 12px; }
  
  /* ===== 角色切换器 ===== */
  .role-switcher { bottom: 8px !important; right: 8px; padding: 6px; min-width: 80px; }
  .role-switcher button { padding: 3px 6px; font-size: 10px; }
  
  /* ===== 水印 ===== */
  #site-watermark span { font-size: 12px !important; }
  
  /* ===== 分类标签横滚 ===== */
  .category-tabs { overflow-x: auto; display: flex; flex-wrap: nowrap; gap: 4px; padding-bottom: 4px; }
  .category-tabs button { white-space: nowrap; padding: 4px 10px; font-size: 12px; flex-shrink: 0; }
  .tag-filter { overflow-x: auto; display: flex; flex-wrap: nowrap; gap: 4px; }
  .tag-filter .tag { white-space: nowrap; flex-shrink: 0; }
  
  /* ===== 内容操作栏 ===== */
  .content-toolbar { flex-direction: column; gap: 8px; }
  
  /* ===== 资讯列表 ===== */
  .news-item { flex-direction: row; gap: 8px; padding: 10px 0; }
  .news-item .news-date { font-size: 11px; }
  .news-title { font-size: 13px; }
  
  /* ===== 侧边栏布局变单列 ===== */
  .dual-col, .layout-sidebar { grid-template-columns: 1fr !important; }
  
  /* ===== Banner ===== */
  .banner-stats { grid-template-columns: repeat(3, 1fr) !important; gap: 10px !important; }
  .banner-stat .num { font-size: 18px !important; }
  .banner-stat .label { font-size: 11px !important; }
  .banner .container { grid-template-columns: 1fr !important; gap: 20px !important; }
  .banner { padding: 30px 0 !important; }
  .banner-content h1 { font-size: 22px !important; }
  .banner-cards { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  
  /* ===== 会员中心 ===== */
  .member-info-card { flex-direction: column; text-align: center; }
  .member-tabs { overflow-x: auto; display: flex; flex-wrap: nowrap; }
  .member-tabs button { white-space: nowrap; flex-shrink: 0; padding: 6px 12px; font-size: 13px; }
  
  /* ===== 工单筛选 ===== */
  .order-filters { overflow-x: auto; display: flex; flex-wrap: nowrap; gap: 4px; }
  .order-filters button { white-space: nowrap; flex-shrink: 0; }
  
  /* ===== 后台 ===== */
  .admin-content { padding: 10px !important; }
  .admin-topbar { padding: 8px 12px !important; }
  .admin-topbar h2 { font-size: 15px !important; }
  .admin-sidebar { width: 200px !important; }
  
  /* ===== 统计卡片 ===== */
  .admin-stats { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
  .admin-stat-card { padding: 12px; }
  .admin-stat-card .stat-num { font-size: 20px; }
  
  /* ===== 表格列隐藏 ===== */
  .col-mobile-hide { display: none !important; }
}

/* ============================================
   小屏手机 (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
  .container { padding: 0 8px; }
  .page-header { padding: 12px 0; }
  .page-header h1 { font-size: 17px; }
  
  .video-grid { gap: 6px; }
  .video-cover { height: 80px; }
  .video-info { padding: 6px; }
  .video-info h3 { font-size: 11px; }
  .video-meta { font-size: 9px; gap: 4px; flex-wrap: wrap; }
  
  .card-body { padding: 10px; }
  .section-title h2 { font-size: 16px; }
  
  table th, table td { padding: 5px 6px; font-size: 11px; }
  .btn { padding: 5px 10px; font-size: 12px; }
  
  .footer { padding: 20px 0 10px; margin-top: 24px; }
  .footer-grid { gap: 14px; }
  
  .admin-stats { grid-template-columns: 1fr 1fr !important; }
  .stat-grid { grid-template-columns: 1fr 1fr !important; }
  
  .banner-cards { grid-template-columns: 1fr !important; }
  .banner-content h1 { font-size: 20px !important; }
  
  .admin-content { padding: 8px !important; }
  .admin-sidebar { width: 180px !important; }
  
  .col-mobile-hide-480 { display: none !important; }
  
  #site-watermark span { font-size: 10px !important; }
}

/* === Additional Utility Classes === */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-gold { color: var(--gold); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-muted { color: var(--text-light); }
.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.fs-sm { font-size: 13px; }
.fs-lg { font-size: 18px; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }
.hidden { display: none !important; }

/* === 布局组件 === */
.filter-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.filter-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.content-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.dual-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.layout-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.category-tabs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.category-tabs button { padding: 6px 16px; border: 1px solid var(--border); border-radius: 20px; background: white; font-size: 13px; cursor: pointer; transition: all 0.2s; font-family: var(--font-family); }
.category-tabs button:hover { border-color: var(--primary); color: var(--primary); }
.category-tabs button.active { background: var(--primary); color: white; border-color: var(--primary); }
.tag-filter { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.member-info-card { display: flex; align-items: center; gap: 20px; }
.member-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); }
.member-tabs button { padding: 10px 20px; border: none; background: none; font-size: 14px; cursor: pointer; color: var(--text-secondary); border-bottom: 2px solid transparent; transition: all 0.2s; font-family: var(--font-family); }
.member-tabs button:hover { color: var(--primary); }
.member-tabs button.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.order-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.order-filters button { padding: 6px 14px; border: 1px solid var(--border); border-radius: 16px; background: white; font-size: 13px; cursor: pointer; transition: all 0.2s; font-family: var(--font-family); }
.order-filters button:hover { border-color: var(--primary); color: var(--primary); }
.order-filters button.active { background: var(--primary); color: white; border-color: var(--primary); }
.news-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.2s; }
.news-item:hover { background: #f8f9fb; margin: 0 -12px; padding: 12px; border-radius: 4px; }
.news-item .news-date { font-size: 13px; color: var(--text-light); white-space: nowrap; margin-left: auto; }
.news-tag { flex-shrink: 0; }
.news-title { flex: 1; font-size: 14px; color: var(--text); }
.news-title:hover { color: var(--primary); }
