  :root {
    --primary:#E87722;
    --accent:#2b8a3e;
    --border:#e0e0e0;
    --text:#333333;
    --muted:#666666;
    --bg:#ffffff;
    --surface:#ffffff;
    
    /* Semantic Colors */
    --danger: #d32f2f;
    --success: #2e7d32;
    --warning: #ed6c02;
    --info: #0288d1;
    
    --radius-8:8px;
    --shadow-1: 0 1px 2px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.10);
    --shadow-2: 0 2px 6px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.10);
    --shadow-3: 0 6px 16px rgba(0,0,0,0.12), 0 12px 24px rgba(0,0,0,0.12);
    --shadow-4: 0 12px 28px rgba(0,0,0,0.16), 0 20px 40px rgba(0,0,0,0.16);
    --shadow-5: 0 20px 50px rgba(0,0,0,0.20), 0 32px 64px rgba(0,0,0,0.20);
    --motion-duration-300: 300ms;
    --motion-ease: cubic-bezier(0.2, 0, 0, 1);
    --space-8:8px;
    --space-12:12px;
    --space-16:16px;
    --space-20:20px;
  }
  :root[data-theme="dark"] {
    --bg:#121212;
    --surface:#1a1a1a;
    --text:#ededed;
    --muted:#b0b0b0;
    --border:#303030;
    --primary:#ff8a3b;
    
    /* Semantic Colors Dark Mode */
    --danger: #f44336;
    --success: #66bb6a;
    --warning: #ffa726;
    --info: #29b6f6;
  }
  
  /* Global Box Sizing */
  *, *::before, *::after {
    box-sizing: border-box;
  }

  body { font-family: Segoe UI, system-ui, -apple-system, Roboto, sans-serif; margin:0; color:var(--text); background:var(--bg); line-height: 1.6; overscroll-behavior: none; display: flex; flex-direction: column; min-height: 100vh; }
  html { scroll-behavior: smooth; overscroll-behavior: none; }
  .container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
  .home-hero { display:grid; grid-template-columns: 1.2fr 1fr; gap:24px; align-items:center; padding:24px 0; }
  .home-hero h1 { font-size:clamp(24px, 3vw, 28px); margin:0 0 10px; }
  .hero-actions { display:flex; gap:12px; align-items:center; }
  .hero-showcase { display:grid; grid-template-columns: repeat(3, 1fr); gap:12px; }
  .micro-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-8); padding:12px; display:flex; align-items:center; gap:10px; box-shadow: var(--shadow-1); }
  .micro-thumb { width:36px; height:36px; border-radius:8px; background: linear-gradient(135deg, #eef2ff, #e0e7ff); }
  .shimmer { position:relative; overflow:hidden; }
  .shimmer::after { content:""; position:absolute; inset:0; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.6), rgba(255,255,255,0)); transform: translateX(-100%); animation: shimmer 1.8s infinite; }
  @keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
  .module { padding:20px 0; }
  .module-title { font-size:20px; margin:0 0 12px; }
  .card-row { display:grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap:20px; }
  .card-compact { padding:12px; }
  .ripple { position:relative; overflow:hidden; }
  .ripple:active::after { content:""; position:absolute; left:50%; top:50%; width:4px; height:4px; background:rgba(232,119,34,0.24); border-radius:999px; transform: translate(-50%, -50%) scale(1); animation: ripple var(--motion-duration-300) ease-out; }
  @keyframes ripple { from { opacity:0.6; transform: translate(-50%, -50%) scale(1); } to { opacity:0; transform: translate(-50%, -50%) scale(24); } }
  .container h2, .container h3, .container h4 { line-height:1.25; margin:0 0 var(--space-12); }
  .container p { margin:0 0 var(--space-12); }
  .site-header { 
  background:var(--surface); 
  border-bottom: 1px solid var(--border); 
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif; 
  -webkit-font-smoothing: antialiased; 
  -moz-osx-font-smoothing: grayscale;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

:root[data-theme="dark"] .site-header {
  background: rgba(26, 26, 26, 0.95);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.site-header.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(0, 0, 0, 0.06);
}
  .site-header .container { position:relative; display:flex; align-items:center; gap:16px; min-height:72px; padding:12px 0; }
  .brand { 
  display:flex; 
  align-items:center; 
  gap:10px; 
  text-decoration:none; 
  color:inherit;
}
  .brand-logo { display:block; height: 50px; width: auto; max-height: 54px; max-width: 180px; object-fit: contain; border-radius: var(--radius-8); }
  @media (max-width: 767px) {
    .brand-logo { height: 38px; max-height: 42px; }
  }
  @media (min-width: 1024px) {
    .brand-logo { height: 52px; max-height: 56px; }
  }
  .logo-placeholder { width:36px; height:36px; border:1px solid var(--border); border-radius:var(--radius-8); display:flex; align-items:center; justify-content:center; font-weight:700; color:var(--primary); background:var(--surface); }
  .brand-name { font-size:28px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:320px; font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif; letter-spacing:1px; line-height:1.2; }
  .brand-text { display:flex; flex-direction:column; gap:2px; }
  .brand-slogan { font-size:13px; font-weight:500; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:320px; letter-spacing:0.5px; line-height:1.2; }
  @media (max-width: 767px) {
    .brand-name { font-size:18px; max-width:180px; }
    .brand-slogan { font-size:12px; max-width:160px; }
  }
  .site-header nav { 
  display:flex; 
  gap:16px; 
  margin-left:auto; 
  align-items:center;
}

.site-header .menu-toggle { 
  display:none; 
  align-items:center; 
  justify-content:center; 
  width:48px; 
  height:48px; 
  border:1px solid var(--border); 
  border-radius:var(--radius-8); 
  background:var(--surface); 
  color:var(--text);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.site-header .menu-toggle:hover { 
  border-color: var(--primary); 
  color: var(--primary);
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(232, 119, 34, 0.2);
}

.site-header .menu-toggle:active {
  transform: scale(0.95);
}

.nav-links { 
  display:flex; 
  gap:var(--space-12); 
  align-items:center;
}

.nav-actions { 
  display:flex; 
  gap:var(--space-8); 
  align-items:center;
}

.site-header a {
  text-decoration:none;
  color:var(--text);
  font-weight:600;
  font-family: inherit;
}

.site-header a:hover { 
  color: var(--primary);
}

.site-header nav a.active {
  color: var(--primary);
  position: relative;
}

.site-header nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
}

.site-header nav a, .site-header nav button {
  min-height:44px;
  display:flex;
  align-items:center;
  padding:0 12px;
  transition: all 0.3s ease;
}

/* Nav menu links: larger & bolder than body text (16px/400) for clear header hierarchy */
.site-header .nav-links > a { font-size: 20px; }

  /* --- Language Switcher (Modern Pill Style) --- */
  .lang-switch-box {
    position: relative;
    display: inline-flex;
    align-items: center; /* 关键：确保内部子元素在纵轴上居中 */
    background: rgba(0, 0, 0, 0.06);
    padding: 4px; /* 轨道内边距 */
    border-radius: 8px;
    height: 36px;
    box-sizing: border-box;
    vertical-align: middle;
    /* 防止内部元素撑破布局 */
    overflow: hidden; 
  }

  /* 语言选项文字 */
  .lang-switch-box .lang-opt {
    position: relative;
    z-index: 2; /* 保证文字在滑块上层 */
    flex: 1;          /* 关键：强制平分剩余空间 */
    flex-basis: 0;    /* 关键：忽略文字长度差异，严格等宽 */
    padding: 0;       /* 移除内边距，内容由 flex 居中 */
    width: 100%;      /* 确保填满分配的 flex 空间 */
    display: flex;
    align-items: center; /* 垂直居中核心 */
    justify-content: center; /* 水平居中核心 */
    height: 100%; /* 填满减去 padding 后的高度 (28px) */
    padding: 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted, #999); /* 备用颜色 */
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.3s ease;
    min-width: 32px;
    cursor: pointer;
    
    /* 修复对齐的关键属性 */
    user-select: none; /* 防止文字被选中导致视觉偏差 */
    line-height: normal; /* 移除 1，让 flexbox 决定基线 */
    text-align: center;
  }

  /* User Menu & Logout */
  .user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 16px;
    border-left: 1px solid var(--border);
    margin-left: 8px;
    height: 36px; /* Match other controls */
  }

  .user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    line-height: 1.1;
  }

  .user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
  }

  .user-role {
    font-size: 10px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .logout-form {
    display: flex;
    margin: 0;
  }

  .logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
  }

  .logout-btn:hover {
    background: rgba(211, 47, 47, 0.08);
    color: var(--danger);
    transform: scale(1.05);
  }

  /* .btn-login removed - using standard .btn */


  @media (max-width: 768px) {
    .user-menu {
      padding-left: 0;
      border-left: none;
      margin-left: 0;
    }
    .user-name { display: none; } /* Hide name on mobile to save space */
    .user-role { display: none; }
  }

  /* 激活状态文字颜色 */
  .lang-switch-box .lang-opt.active {
    color: var(--primary); /* 只有被选中时才显示品牌色 */
  }

  .lang-switch-box .lang-opt:hover {
    color: var(--text); /* 悬停深灰 */
  }

  /* --- 滑动背景块 (The Glider) --- */
  .lang-switch-box .glider {
    position: absolute;
    top: 4px;
    left: 0;
    height: calc(100% - 8px);
    width: calc(50% - 4px); 
    background: var(--surface); /* 白色背景 */
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    z-index: 1;
    /* 过渡动画由JavaScript控制，避免页面加载时播放 */
    pointer-events: none;
    opacity: 0; /* 初始化时先隐藏，JS计算好位置后再显示，防止闪烁 */
  }

  /* --- Dark Mode 适配 --- */
  :root[data-theme="dark"] .lang-switch-box {
    background: rgba(255, 255, 255, 0.12);
  }
  :root[data-theme="dark"] .lang-switch-box .glider {
    background: var(--surface);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  }

  /* Badge Styles */
  .badge { display:inline-block; padding:4px 8px; border-radius:999px; font-size:12px; background:var(--surface); border: 1px solid var(--border); color:var(--text); }
  .badge.primary { background:var(--primary); color:#111; border-color:var(--primary); }
  .badge.series { background:rgba(43, 138, 62, 0.1); color:#2b8a3e; border-color:transparent; }
  .badge.subcat { background:rgba(31, 95, 191, 0.1); color:#1f5fbf; border-color:transparent; }
  .card .badges { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin: 4px 0; }
  .card .badges .badge { font-size: clamp(11px, 1.2vw, 12px); padding: 3px 8px; }

  /* 多选下拉框样式 */
  .multiselect-dropdown {
    position: relative;
    min-width: 140px;
  }

  .multiselect-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
  }

  .multiselect-trigger:hover {
    border-color: #d1d5db;
    background: #f9fafb;
  }

  .multiselect-trigger.active {
    border-color: #E65D0F;
    box-shadow: 0 0 0 3px rgba(230, 93, 15, 0.1);
  }

  .multiselect-placeholder {
    color: #6b7280;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
  }

  .multiselect-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    animation: dropIn 0.2s ease;
  }

  .multiselect-options.show {
    display: block;
  }

  .multiselect-option {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.2s ease;
    margin: 2px;
    border-radius: 8px;
  }

  .multiselect-option:hover {
    background: #f3f4f6;
  }

  .multiselect-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    accent-color: #E65D0F;
    cursor: pointer;
  }

  .multiselect-option span {
    font-size: 14px;
    color: #374151;
    flex: 1;
  }

  /* 不同颜色的标签徽章 */
  .selected-row .tag {
    display: inline-flex;
    align-items: center;
    border-radius: 99px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid;
  }

  .selected-row .tag.category-tag {
    background: rgba(43, 138, 62, 0.1);
    color: #2b8a3e;
    border-color: rgba(43, 138, 62, 0.2);
  }

  .selected-row .tag.subcategory-tag {
    background: rgba(31, 95, 191, 0.1);
    color: #1f5fbf;
    border-color: rgba(31, 95, 191, 0.2);
  }

  .selected-row .tag.search-tag {
    background: rgba(230, 93, 15, 0.1);
    color: #E65D0F;
    border-color: rgba(230, 93, 15, 0.2);
  }

  .selected-row .tag.default-tag {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border-color: rgba(107, 114, 128, 0.2);
  }
  .cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-20);
    align-items: stretch;
  }

  @media (min-width: 640px) {
    .cards {
      grid-template-columns: repeat(2, 1fr);
      gap: 24px;
    }
  }

  @media (min-width: 1024px) {
    .cards {
      grid-template-columns: repeat(3, 1fr);
      gap: 28px;
    }
  }

  @media (min-width: 1280px) {
    .cards {
      grid-template-columns: repeat(4, 1fr);
      gap: 32px;
    }
  }
  .card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-2);
    transition: transform var(--motion-duration-300) var(--motion-ease),
                box-shadow var(--motion-duration-300) var(--motion-ease),
                border-color var(--motion-duration-300) var(--motion-ease);
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
  }
  .card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-4);
    border-color: rgba(232, 119, 34, 0.4);
  }
  .card h4 { margin:0 0 var(--space-8); }
  .card h4 a { color:inherit; text-decoration:none; }
  .card .model-code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-weight: 700; font-size: 18px; letter-spacing: 0.2px; color: var(--text); }
  .card .meta { margin:0 0 var(--space-8); }
  .card p { margin:0 0 var(--space-12); color:var(--muted); }
  .product-image { width:100%; aspect-ratio: 4/3; object-fit: contain; border-radius:12px; background: linear-gradient(135deg, #f8f9fa, #e9ecef); }

  .meta { display:flex; justify-content:space-between; align-items:center; color:var(--muted); font-size:13px; }
  .actions { margin-top:auto; display:flex; gap:var(--space-8); align-items:center; justify-content:flex-end; }
  .btn { display:inline-flex; align-items:center; justify-content:center; padding:8px 16px; min-height:36px; font-size:14px; border-radius:var(--radius-8); text-decoration:none; font-weight:600; border:1px solid var(--border); color:var(--text); background:var(--surface); transition: background-color var(--motion-duration-300) var(--motion-ease), color var(--motion-duration-300) var(--motion-ease), border-color var(--motion-duration-300) var(--motion-ease), opacity var(--motion-duration-300) var(--motion-ease); }
  .btn:hover { border-color: var(--primary); color: var(--primary); opacity:0.9; }
  .btn-primary { 
    background: var(--primary); 
    color: #fff; 
    border-color: var(--primary); 
    box-shadow: 0 2px 4px rgba(232,119,34,0.2);
  }
  .btn-primary:hover { 
    background: #d66612; 
    border-color: #d66612;
    color: #fff; 
    opacity: 1;
    box-shadow: 0 4px 8px rgba(232,119,34,0.3);
  }
  .btn:active { transform: translateY(1px); }
  .btn:focus-visible { outline:none; box-shadow: 0 0 0 3px rgba(232,119,34,0.28); }
  .site-header a:focus-visible, .site-header nav button:focus-visible, .lang-switch .seg:focus-visible { outline:none; box-shadow: 0 0 0 3px rgba(232,119,34,0.28); border-color: var(--primary); }
  .table { width:100%; border-collapse: collapse; }
  .table th, .table td { border:1px solid var(--border); padding:10px; text-align:left; vertical-align:middle; }
  .error { color: var(--danger); }
  footer.site-footer { 
    margin-top: 60px; 
    padding: 48px 0 24px; 
    background: linear-gradient(135deg, #E87722 0%, #FF8A3B 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -4px 20px rgba(232, 119, 34, 0.15);
  }
  footer.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
  }
  footer.site-footer::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
  }
  @keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
  }
  .footer-grid { 
    display: grid; 
    grid-template-columns: 1.2fr 1fr 1fr; 
    gap: 32px; 
    align-items: start;
    position: relative;
    z-index: 1;
  }
  .footer-title { 
    font-weight: 700; 
    margin-bottom: 16px; 
    font-size: 18px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .footer-text { 
    color: rgba(255, 255, 255, 0.9); 
    font-size: 14px; 
    line-height: 1.8; 
    margin-bottom: 8px;
  }
  .footer-copy { 
    margin-top: 24px; 
    color: rgba(255, 255, 255, 0.7); 
    font-size: 13px;
    text-align: center;
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 16px;
  }
  .footer-col a { 
    color: rgba(255, 255, 255, 0.9); 
    text-decoration: none; 
    transition: all 0.3s ease;
    position: relative;
  }
  .footer-col a:hover { 
    color: #ffffff; 
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  }
  .footer-col a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #ffffff;
    transition: width 0.3s ease;
  }
  .footer-social {
    display: flex;
    gap: 16px;
    margin-top: 16px;
  }
  .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  .social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  /* auth layout */
  .auth-wrap { display:flex; justify-content:center; padding:40px 0; min-height: calc(100vh - 380px); }
  .auth-card { width:100%; max-width:420px; }
  .auth-card h2 { margin:0 0 12px; }
  .form-group { display:flex; flex-direction:column; gap:6px; margin-bottom:12px; }
.form-group label { color:var(--muted); font-size:13px; }
.form-group input { padding:10px; border:1px solid var(--border); border-radius:var(--radius-8); font-size:14px; background:var(--surface); width:100%; box-sizing:border-box; }

/* Admin form specific styles to prevent overlapping */
.admin-content .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.admin-content .form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.admin-content .form-row .form-group.half {
  flex: 1;
  min-width: 280px;
  width: 100%;
  box-sizing: border-box;
}

/* Ensure textarea elements have proper sizing */
.admin-content textarea {
  min-height: 100px;
  resize: vertical;
}

/* Additional specific fix for summary textareas */
.form-row .form-group.half textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-8);
  background: var(--surface);
  color: var(--text);
}

/* Ensure all form elements use box-sizing to prevent overflow */
.admin-content input,
.admin-content select,
.admin-content textarea {
  box-sizing: border-box;
  width: 100%;
}

/* Admin pages: wider desktop container without touching public pages. */
main.admin-page-main {
  width: 100%;
  max-width: 1440px !important;
  margin: 0 auto;
  padding: 24px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .admin-page-main {
    padding: 12px;
  }

  .admin-content .form-grid {
    grid-template-columns: 1fr;
  }
  
  .admin-content .form-row {
    flex-direction: column;
  }
  
  .admin-content .form-row .form-group.half {
    min-width: 100%;
  }
}
  .form-group input:focus { outline:none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,119,34,0.18); }
  /* product detail layout */
  .product-detail { display:grid; grid-template-columns: 1.2fr 1fr; gap:32px; align-items:start; }
  .product-detail .product-main { min-width:0; }
  .detail-title { margin:0 0 16px; line-height:1.25; }
  .detail-section { margin-top:24px; }
  .section-title { font-size:18px; margin:0 0 12px; }
  .detail-text { line-height:1.6; color:var(--muted); max-width: 60ch; }
  .detail-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-8); padding:20px; box-shadow: var(--shadow-2); }
  .specs { display:grid; grid-template-columns: 1fr 1fr; gap:16px; }
  .specs-item { display:grid; grid-template-columns: 0.9fr 1.1fr; align-items:center; gap:10px; }
  .specs-label { color:var(--muted); font-size:13px; }
  .specs-value { color:var(--text); font-size:14px; line-height:1.6; }
  .detail-actions { margin-top:16px; display:flex; justify-content:flex-end; }
  .spec-table-title { display:grid; grid-template-columns: 1fr 1fr; align-items:center; }
  .spec-title-left { background: var(--primary); color:#fff; padding:8px 12px; border-top-left-radius: var(--radius-8); border-bottom-left-radius: var(--radius-8); font-weight:700; }
  .spec-title-right { background: #f0f0f0; color:#222; padding:8px 12px; border-top-right-radius: var(--radius-8); border-bottom-right-radius: var(--radius-8); text-align:right; font-weight:700; }
  .spec-table-wrap { margin-top:8px; border:1px solid var(--border); border-radius: var(--radius-8); overflow:hidden; background:var(--surface); }
  .spec-table { width:100%; border-collapse: collapse; }
  .spec-table { font-size:14px; line-height:1.6; }
  .spec-table th { width: 280px; text-align:left; background:#fafafa; color:#333; padding:10px 12px; border-bottom:1px solid var(--border); }
  .spec-table td { text-align:center; color:#333; padding:10px 12px; border-bottom:1px solid var(--border); }
  .spec-table td:not(:last-child), .spec-table th:not(:last-child) { border-right:1px solid var(--border); }
  .spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
  .spec-table td code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
  .spec-table-wrap { overflow-x:auto; }
  .spec-table.multi thead th { background: var(--primary); color:#fff; border-right:1px solid rgba(255,255,255,0.35); }
  .spec-table.multi thead th.left { text-align:left; }
  .spec-table.multi thead th:last-child { border-right:none; }
  .spec-table.multi tbody th { background:#fafafa; text-align:left; }
  /* accessibility sizing */
  .site-header nav a, .site-header nav button, .lang-switch .seg, .btn { min-width:44px; min-height:44px; }
/* breakpoints */
@media (max-width: 767px) {
  .container { padding: 0 12px; }
  .cards { grid-template-columns: 1fr; gap:14px; }
  .card { padding:12px; }
  .product-detail { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .spec-table th { width: 220px; }
  .site-header nav { gap:8px; }
  
  .nav-links { 
    display:flex; 
    flex-direction:column; 
    position:absolute; 
    left:0; 
    right:0; 
    top:64px; 
    background:var(--surface);
    max-height: 0;
    overflow: hidden;
    padding: 0 16px;
    border-bottom: 0 solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    box-shadow: var(--shadow-3);
  }
  
  .nav-links.open { 
    max-height: 500px;
    padding: 16px;
    border-bottom-width: 1px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .nav-links a {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
  }
  
  .nav-links a::before {
    display: none;
  }
  
  .nav-links a:hover {
    background: rgba(232, 119, 34, 0.08);
    transform: translateX(4px);
  }
  
  .site-header .menu-toggle { display:inline-flex; margin-left:auto; }
  
  .nav-actions {
    flex-direction: column;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
  }
  
  .footer-grid { 
    grid-template-columns: 1fr; 
    gap: 24px;
  }
  
  footer.site-footer {
    padding: 32px 0 20px;
    margin-top: 40px;
  }
  
  .footer-title {
    font-size: 16px;
    margin-bottom: 12px;
  }
  
  .footer-text {
    font-size: 13px;
    line-height: 1.6;
  }

  .hero-cards { grid-template-columns: 1fr; }
  .section-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .contact-sticky { right:12px; left:12px; bottom:12px; }
  .home-hero { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .card-row { grid-template-columns: 1fr 1fr; }
  
  /* Resources Mobile */
  .document-grid { grid-template-columns: 1fr; gap: 16px; }
}

  @media (min-width: 768px) and (max-width: 1023px) {
    /* Removed hardcoded grid columns to let auto-fill work */
  }

  @media (min-width: 1024px) and (max-width: 1439px) {
    .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  }

  @media (min-width: 1440px) {
    .container { max-width: 1280px; }
    .kpi-grid { grid-template-columns: repeat(4, 1fr); }
  }

  @media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation-duration: 0.001ms !important; }
  }



  .hoverable { transition: transform var(--motion-duration-300) var(--motion-ease), box-shadow var(--motion-duration-300) var(--motion-ease); }
  .hoverable:hover { box-shadow: var(--shadow-3); }

  .section-grid { display:grid; grid-template-columns: 1fr 1fr; gap:24px; }
  .card-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:24px; }



  .fade-in { animation: fadeInUp var(--motion-duration-300) var(--motion-ease); }
  @keyframes fadeInUp { from { opacity:0; transform: translateY(6px); } to { opacity:1; transform: translateY(0); } }


  /* --- Product Params Table (Layout Fix: Anti-Squash) --- */
  .product-params-content {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
  }

  .product-params-content table {
    width: 100%;
    border-collapse: collapse;
    /* 关键：虽然是 auto，但配合 min-width 可以防止挤压 */
    table-layout: auto;
    font-size: 14px;
  }

  /* 单元格通用样式 */
  .product-params-content th,
  .product-params-content td {
    border: 1px solid var(--border) !important;
    padding: 12px 16px !important; /* 增加左右内边距，增加呼吸感 */
    
    /* 关键修复：防止文字被暴力截断 */
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    
    /* 关键修复：垂直居中，避免参差不齐 */
    vertical-align: middle !important;
    box-sizing: border-box;
  }

  /* 1. 数据单元格 (TD) 保底设置 */
  .product-params-content td {
    /* 保留原颜色逻辑 (如果没有特定颜色则透明) */
    color: var(--text);
    text-align: center;
    
    /* 核心修复：给数据列一个最小宽度，绝对禁止挤成一条线 */
    min-width: 120px;
  }

  /* 2. 表头 (Thead) 样式 */
  .product-params-content thead th {
    /* 颜色保持不变 */
    background: var(--primary) !important;
    color: #fff !important;
    
    font-weight: 700;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.35) !important;
    
    /* 表头也需要保底宽度 */
    min-width: 120px;
  }
  .product-params-content thead th:last-child {
    border-right: none !important;
  }

  /* 3. 侧边属性名列 (Tbody Th) 样式 */
  .product-params-content tbody th {
    /* 颜色保持不变 */
    background: #fafafa !important;
    color: #333 !important;
    
    text-align: left !important;
    font-weight: 600;
    line-height: 1.4;
    
    /* 核心修复：属性列通常文字较多，给更宽的空间 */
    min-width: 140px;
    max-width: 300px; /* 防止过宽 */
  }

  /* 桌面端加宽属性列 */
  @media (min-width: 768px) {
    .product-params-content tbody th {
      min-width: 220px;
    }
  }

  /* 跨列标题修复 */
  .product-params-content td[colspan],
  .product-params-content th[colspan] {
    text-align: center !important;
    font-weight: 700;
    white-space: nowrap !important; /* 标题通常不允许换行，除非太长 */
  }

  /* 修复第二行特殊表头 */
  .product-params-content thead tr:nth-child(2) th:first-child {
    background: #fafafa !important;
    color: #333 !important;
    text-align: left !important;
  }
  /* Component Synchronization */
  .btn, .search-btn, .download-btn, .selectbox .trigger, .search-input, .filter-group select {
    min-height: 48px;
    font-size: 15px;
  }

  /* --- Products Page Styles --- */

  /* Filter Bar - Floating Capsule Design */
  .filter-bar { 
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
  }

  .filter-row { 
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-end;
  }

  .filter-group { 
    flex: 1;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .filter-group strong, .filter-group label { 
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0;
  }

  .filter-actions {
    display: flex;
    align-items: center;
    padding-bottom: 1px; /* Optical alignment */
  }

  /* Custom Selectbox Styling */
  .selectbox { 
    position: relative; 
    width: 100%; 
  }

  .selectbox .trigger { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    width: 100%; 
    padding: 0 16px; 
    border: 1px solid var(--border); 
    border-radius: var(--radius-8); 
    background: var(--surface); 
    color: var(--text); 
    transition: all 0.2s ease; 
    cursor: pointer;
  }

  .selectbox .trigger:hover {
    border-color: var(--muted);
  }

  .selectbox.open .trigger {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232,119,34,0.1);
  }

  .selectbox .chev { 
    color: var(--muted); 
    font-size: 12px;
    transition: transform 0.2s ease;
  }

  .selectbox.open .chev {
    transform: rotate(180deg);
  }

  .selectbox .dropdown { 
    position: absolute; 
    z-index: 20; 
    top: calc(100% + 4px); 
    left: 0; 
    right: 0; 
    background: var(--surface); 
    border: 1px solid var(--border); 
    border-radius: var(--radius-8); 
    box-shadow: var(--shadow-3); 
    padding: 8px; 
    display: none; 
    max-height: 300px; 
    overflow-y: auto; 
  }

  .selectbox.open .dropdown { 
    display: block; 
    animation: dropIn 0.2s cubic-bezier(0.2, 0, 0, 1); 
  }

  .option { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    padding: 8px 12px; 
    border-radius: 6px; 
    cursor: pointer; 
    transition: background-color 0.2s; 
  }

  .option:hover { 
    background-color: var(--bg); 
  }

  .option input[type="checkbox"] { 
    accent-color: var(--primary); 
    width: 16px; 
    height: 16px; 
    cursor: pointer;
  }

  .option .label { 
    flex: 1; 
    font-size: 14px; 
    color: var(--text); 
  }

  .option .count { 
    color: var(--muted); 
    font-size: 12px; 
    background: var(--bg);
    padding: 2px 6px;
    border-radius: 99px;
  }

  /* Selected Tags & Count */
  .selected-row { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
    min-height: 0; /* Prevent collapse */
  }

  .count-row { 
    color: var(--muted); 
    font-size: 14px; 
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-top: 4px;
  }

  /* Clear Filters Button */
  .clear-filters-btn {
    appearance: none;
    padding: 12px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-height: 44px;
  }

  .clear-filters-btn:hover {
    background: var(--bg);
    border-color: var(--primary);
    color: var(--primary);
  }

  .clear-filters-btn:active {
    transform: scale(0.98);
  }

  /* Cards Animation */
  #cards { transition: opacity 0.2s ease; }
  #cards.fade { opacity: 0.5; pointer-events: none; }

  @media (max-width: 768px) {
    .filter-bar { padding: 16px; gap: 16px; }
    .filter-row { flex-direction: column; align-items: stretch; gap: 16px; }
    .filter-group { min-width: 0; }
    .filter-actions { margin-top: 4px; }
    .selectbox .trigger { min-width: 0; }
  }

  @keyframes dropIn { 
    from { opacity: 0; transform: translateY(-8px); } 
    to { opacity: 1; transform: translateY(0); } 
  }
  .product-params-content th { font-weight: 700; }

  /* --- Skeleton Loader --- */
  .card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--radius-8);
    background: var(--surface);
  }

  .card-image-wrapper .product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
  }

  .card-image-wrapper .product-image.loaded {
    opacity: 1;
  }

  .skeleton-loader {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #e2e8f0;
  }

  [data-theme="dark"] .skeleton-loader {
    background: #1e293b;
  }
  
  [data-theme="dark"] .skeleton-loader.shimmer::after {
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.05), rgba(255,255,255,0));
  }
  .product-params-content td[colspan], .product-params-content th[colspan] { text-align: center !important; font-weight: 700;}
  .product-params-content table thead th { 
      background: var(--primary) !important;
      color: #fff !important;
      border-right: 1px solid rgba(255,255,255,0.35) !important; 
      text-align: center;        /* 默认居中 */
  }
  /* 保持第一列向左对齐 */
  .product-params-content table thead th.left {
      text-align: left;
  }
  .product-params-content table thead th:last-child { border-right: none !important; }
  .product-params-content table td:not(:last-child), .product-params-content table th:not(:last-child) { border-right: 1px solid var(--border) !important; }
  .product-params-content table thead tr:first-child th:first-child { text-align: left !important; }
  .product-params-content table thead tr:nth-child(2) th:first-child { width: 280px; text-align:left !important; background: #fafafa !important; color: #333 !important; }
  .product-params-content table tbody th { background:#fafafa !important; text-align:left !important; }
  @media (max-width: 767px) {
    .product-params-content td, .product-params-content th { padding: 10px !important; }
  }
  .media-gallery { display:flex; flex-direction:column; gap:16px; }
  .media-main { position:relative; width:100%; aspect-ratio: 4/3; border-radius:8px; background: #f2f2f2; overflow:hidden; }
  .media-main .stage { position:relative; width:100%; height:100%; }
  .media-main img, .media-main video { width:100%; height:100%; object-fit: contain; display:block; }
  .media-thumbs { display:flex; gap:12px; overflow-x:auto; padding-bottom:12px; }
  .thumb { position:relative; width:80px; height:60px; border:2px solid transparent; border-radius:6px; overflow:hidden; flex:0 0 auto; background:#eee; }
  .thumb.selected { border-color: var(--primary); }
  .thumb-img { width:100%; height:100%; object-fit: cover; display:block; }
  .thumb-video { width:100%; height:100%; background-size: cover; background-position: center; }
  .thumb-play { position:absolute; right:6px; bottom:6px; width:22px; height:22px; border-radius:999px; background: rgba(0,0,0,0.6); }
  .media-grid { display:grid; grid-template-columns: repeat(auto-fill, 120px); gap:8px; justify-content: start; }
  .media-card { border:1px solid var(--border); border-radius:8px; padding:8px; background:var(--surface); box-shadow: var(--shadow-1); display:flex; flex-direction:column; gap:8px; cursor: grab; }
  .media-card:active { cursor: grabbing; }
  .media-card .preview { position:relative; width:100%; height:90px; background:#f2f2f2; border-radius:6px; overflow:hidden; }
  .media-card .preview img, .media-card .preview video { width:100%; height:100%; object-fit: cover; display:block; }
  .media-card .play-badge { position:absolute; right:6px; bottom:6px; width:22px; height:22px; border-radius:999px; background: rgba(0,0,0,0.6); }
  .media-card .status-badge { position:absolute; left:6px; top:6px; padding:2px 6px; border-radius:999px; font-size:11px; background: rgba(0,0,0,0.6); color:#fff; }
  .media-card .progress { position:absolute; left:0; bottom:0; height:6px; width:100%; background: rgba(0,0,0,0.1); }
  .media-card .progress .bar { height:100%; width:0%; background: var(--primary); }
  .media-card .media-caption { padding:8px; border:1px solid var(--border); border-radius:6px; }

  /* --- Page Hero (Shared for Products & Resources) --- */
  .page-hero {
    text-align: center;
    padding: 48px 0 40px;
    margin: 0 auto 40px;
  }

  .page-hero h1 {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
    line-height: 1.2;
  }

  .page-hero p {
    font-size: 18px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
  }

  @media (max-width: 768px) {
    .page-hero { padding: 32px 0; margin-bottom: 24px; }
    .page-hero h1 { font-size: 28px; }
    .page-hero p { font-size: 16px; }
  }

  /* --- Resources Page Styles --- */
  main.resources-page-body-main.container,
  .resources-page-body-main.container {
    max-width: 1440px !important;
    padding: 0 48px;
    width: 100%;
    box-sizing: border-box;
  }
  @media (max-width: 1440px) {
    main.resources-page-body-main.container,
    .resources-page-body-main.container {
      padding: 0 32px;
    }
  }
  @media (max-width: 1024px) {
    main.resources-page-body-main.container,
    .resources-page-body-main.container {
      max-width: 100% !important;
      padding: 0 24px;
    }
  }
  @media (max-width: 768px) {
    main.resources-page-body-main.container,
    .resources-page-body-main.container {
      padding: 0 16px;
    }
  }

  .resources-page { padding-bottom: 60px; width: 100%; }

  /* Search & Filter Section */
  .search-filter-section { 
    padding: 0;
    margin-bottom: 32px;
  }

  .search-filter-inner {
    width: 100%;
    margin: 0 auto;
  }

  .search-bar-container {
    background: var(--surface);
    padding: 12px;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
  }

  /* 搜索输入区域 */
  .search-input-wrapper {
    position: relative;
    flex-grow: 1;
    width: 100%;
    min-height: 44px;
  }

  .search-icon-wrapper {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    padding-left: 16px;
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 1;
  }

  .search-icon {
    width: 20px;
    height: 20px;
    color: #9ca3af;
    transition: color 0.3s ease;
    flex-shrink: 0;
  }

  .search-input-wrapper:focus-within .search-icon {
    color: #E65D0F;
  }

  .search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: #f9fafb;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    color: #374151;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
  }

  .search-input:focus {
    background: #ffffff;
    border-color: transparent;
    box-shadow: 0 0 0 2px rgba(230, 93, 15, 0.1);
  }

  .search-input::placeholder {
    color: #9ca3af;
  }

  /* 竖向分割线 */
  .divider-line {
    display: none;
    width: 1px;
    height: 32px;
    background: #e5e7eb;
    margin: 0 8px;
  }

  /* 筛选下拉菜单组 */
  .filter-dropdowns {
    display: flex;
    width: 100%;
    gap: 8px;
  }

  .filter-dropdown {
    position: relative;
    width: 50%;
    min-height: 44px;
  }

  .filter-select {
    appearance: none;
    width: 100%;
    padding: 12px 32px 12px 12px;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    min-height: 44px;
    box-sizing: border-box;
  }

  .filter-select:hover {
    background: #f9fafb;
  }

  .filter-select:focus {
    box-shadow: 0 0 0 2px rgba(230, 93, 15, 0.1);
  }

  .dropdown-arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    padding-right: 12px;
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 1;
  }

  .dropdown-arrow svg {
    width: 16px;
    height: 16px;
    color: #6b7280;
    flex-shrink: 0;
  }

  /* 搜索按钮 */
  .search-btn {
    width: 100%;
    background: #E65D0F;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 12px 32px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(230, 93, 15, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
  }

  .search-btn:hover {
    background: #d5500a;
    box-shadow: 0 6px 8px -1px rgba(230, 93, 15, 0.15);
  }

  .search-btn:active {
    transform: scale(0.98);
  }

  /* 桌面端响应式布局 */
  @media (min-width: 768px) {
    .search-bar-container {
      flex-direction: row;
      align-items: center;
      gap: 20px;
      padding: 8px 12px;
    }

    .search-input-wrapper {
      flex: 1 1 300px;
      min-width: 200px;
    }

    .search-input {
      background: transparent;
      border-color: transparent;
      font-size: 15px;
    }

    .search-input:focus {
      background: var(--bg);
    }

    .divider-line {
      display: block;
      height: 40px;
    }

    .filter-dropdowns {
      display: flex;
      gap: 12px;
      flex-shrink: 0;
    }

    .filter-dropdown {
      width: 160px;
    }

    .filter-select {
      background: transparent;
      border-color: transparent;
      font-size: 14px;
    }

    .filter-select:hover {
      background: var(--bg);
    }

    .search-btn {
      width: auto;
      flex-shrink: 0;
    }

    .clear-filters-btn {
      flex-shrink: 0;
    }
  }

  @media (min-width: 1200px) {
    .filter-dropdown {
      width: 200px;
    }
  }

  /* Results Toolbar */
  .results-toolbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 24px; 
    flex-wrap: wrap;
    gap: 16px;
  }
  .results-count { 
    color: var(--muted); 
    font-size: 15px; 
    font-weight: 500;
  }
  .results-right { 
    display: flex; 
    gap: 12px; 
    align-items: center; 
  }
  .sort-select { 
    padding: 8px 32px 8px 12px; 
    border: 1px solid var(--border); 
    border-radius: var(--radius-8); 
    background: var(--surface); 
    color: var(--text); 
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
  }
  .view-toggle { 
    display: flex; 
    gap: 2px; 
    background: var(--bg);
    padding: 3px;
    border-radius: 8px;
    border: 1px solid var(--border);
  }
  .view-btn { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 36px; 
    height: 32px; 
    border: none; 
    background: transparent; 
    border-radius: 6px; 
    cursor: pointer; 
    color: var(--muted); 
    transition: all 0.2s;
    font-size: 16px;
  }
  .view-btn:hover { 
    color: var(--text);
    background: var(--surface);
  }
  .view-btn.active { 
    background: var(--surface); 
    color: var(--primary); 
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-weight: 700;
  }

  /* Document Grid - Default is Grid View */
  .document-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 48px;
  }

  @media (min-width: 640px) {
    .document-grid { 
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (min-width: 1024px) {
    .document-grid { 
      grid-template-columns: repeat(3, 1fr);
    }
  }

  @media (min-width: 1280px) {
    .document-grid { 
      gap: 24px;
    }
  }

  /* Grid View Card Style (Default) */
  .document-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-1);
    transition: transform var(--motion-duration-300) var(--motion-ease),
                box-shadow var(--motion-duration-300) var(--motion-ease),
                border-color var(--motion-duration-300) var(--motion-ease);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
    text-align: center;
    min-height: 300px;
  }
  .document-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), rgba(255, 138, 59, 0.8));
    opacity: 0;
    transition: opacity 0.3s;
  }
  .document-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-3);
    border-color: rgba(232, 119, 34, 0.25);
  }
  .document-card:hover::before {
    opacity: 1;
  }
  .document-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(232, 119, 34, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 16px;
    transition: transform 0.3s;
  }
  .document-card:hover .document-icon {
    transform: scale(1.08);
  }
  .document-info { 
    flex: 1; 
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .document-title {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 16px;
    color: var(--text);
    line-height: 1.4;
    letter-spacing: 0.1px;
  }
  .document-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
    width: 100%;
    background: linear-gradient(135deg, rgba(232, 119, 34, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(232, 119, 34, 0.08);
  }
  .meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }
  .meta-label {
    color: var(--muted);
    font-weight: 500;
  }
  .meta-value {
    color: var(--text);
    font-weight: 600;
  }
  .document-actions {
    display: flex;
    justify-content: center;
    margin-top: auto;
    width: 100%;
  }
  .download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, #d66612 100%);
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all var(--motion-duration-300) var(--motion-ease);
    box-shadow: 0 4px 12px rgba(232,119,34,0.25);
    white-space: nowrap;
  }
  .download-btn:hover {
    background: linear-gradient(135deg, #d66612 0%, #c55a10 100%);
    box-shadow: 0 6px 20px rgba(232,119,34,0.35);
    transform: translateY(-2px);
  }

  /* List View Overrides */
  .list-view .document-grid { 
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .list-view .document-card { 
    flex-direction: row;
    align-items: center;
    padding: 20px 24px;
    text-align: left;
    min-height: auto;
    gap: 20px;
  }

  .list-view .document-card::before {
    width: 4px;
    height: 100%;
  }

  .list-view .document-card:hover {
    transform: none;
    box-shadow: var(--shadow-2);
  }

  .list-view .document-icon { 
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }

  .list-view .document-info {
    align-items: flex-start;
    flex: 1;
  }

  .list-view .document-title { 
    margin-bottom: 8px;
    font-size: 16px;
    text-align: left;
  }

  .list-view .document-meta { 
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px 24px;
    background: transparent;
    padding: 0;
    border: none;
  }

  .list-view .meta-item { 
    justify-content: flex-start;
    gap: 6px;
  }

  .list-view .document-actions { 
    justify-content: flex-end;
    width: auto;
    margin-top: 0;
  }

  .list-view .download-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  /* Pagination */
  .pagination { 
    display: flex; 
    justify-content: center; 
    gap: 8px; 
    margin-top: 48px; 
  }
  .pagination-btn,
  .pagination button { 
    min-width: 40px; 
    height: 40px; 
    padding: 0 12px; 
    border: 1px solid var(--border); 
    background: var(--surface); 
    border-radius: var(--radius-8); 
    cursor: pointer; 
    color: var(--text); 
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
  }
  .pagination-btn.active,
  .pagination button.active { 
    background: var(--primary); 
    color: #fff; 
    border-color: var(--primary); 
    pointer-events: none;
  }
  .pagination-btn:hover:not(.active),
  .pagination button:hover:not(.active) { 
    background: var(--bg); 
    border-color: var(--muted);
  }
  .pagination-ellipsis {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 14px;
  }

  /* No Results & Contact */
  .no-results { 
    text-align: center; 
    padding: 80px 20px; 
    color: var(--muted); 
  }
  .no-results-icon { 
    margin-bottom: 24px; 
    color: var(--border); 
  }
  .no-results h3 { 
    font-size: 24px; 
    margin-bottom: 12px; 
    color: var(--text); 
  }
  .contact-support { 
    background: linear-gradient(135deg, rgba(232, 119, 34, 0.04) 0%, var(--surface) 100%); 
    border: 1px solid rgba(232, 119, 34, 0.15); 
    border-radius: 20px; 
    padding: 48px; 
    text-align: center; 
    margin-top: 64px; 
  }
  .cta-content h3 { 
    font-size: 24px; 
    margin-bottom: 12px; 
    color: var(--text); 
    font-weight: 700;
  }
  .cta-content p { 
    font-size: 16px; 
    color: var(--muted); 
    margin-bottom: 20px; 
    max-width: 500px; 
    margin-left: auto; 
    margin-right: auto; 
  }
  .contact-info {
    margin-bottom: 24px;
  }
  .phone-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
  }
  .contact-btn { 
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    background: linear-gradient(135deg, var(--primary) 0%, #d66612 100%); 
    color: #fff; 
    border: none; 
    padding: 14px 32px; 
    border-radius: 12px; 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 16px; 
    transition: all var(--motion-duration-300) var(--motion-ease);
    box-shadow: 0 4px 12px rgba(232,119,34,0.25);
  }
  .contact-btn:hover { 
    box-shadow: 0 6px 20px rgba(232,119,34,0.35);
    transform: translateY(-2px);
  }

  /* Responsive adjustments */
  @media (max-width: 768px) {
    .page-hero {
      padding: 32px 0 24px;
    }
    .page-hero h1 {
      font-size: 24px;
    }
    .page-hero p {
      font-size: 15px;
    }
    .search-filter-section {
      margin-bottom: 24px;
    }
    .search-bar-container {
      padding: 12px;
    }
    .results-toolbar { 
      flex-direction: column; 
      align-items: stretch; 
      gap: 12px;
    }
    .results-right { 
      width: 100%; 
      justify-content: space-between; 
    }
    .sort-select { flex: 1; }
    
    /* Mobile: Grid view becomes single column */
    .document-grid {
      grid-template-columns: 1fr;
      gap: 16px;
    }
    
    /* Mobile: List view card adjustments */
    .list-view .document-card { 
      flex-direction: column; 
      gap: 16px; 
      text-align: center; 
      padding: 24px; 
    }
    .list-view .document-icon { 
      justify-content: center;
      width: 72px;
      height: 72px;
    }
    .list-view .document-info {
      align-items: center;
    }
    .list-view .document-title {
      text-align: center;
    }
    .list-view .document-meta { 
      justify-content: center;
      flex-direction: column;
      gap: 8px;
      width: 100%;
    }
    .list-view .document-actions { 
      width: 100%; 
      justify-content: center; 
    }
    
    .contact-support {
      padding: 32px 24px;
      margin-top: 48px;
    }
    .phone-number {
      font-size: 22px;
    }
  }

  @media (max-width: 480px) {
    .document-card {
      padding: 20px;
    }
    .document-icon {
      width: 64px;
      height: 64px;
    }
    .document-title {
      font-size: 16px;
    }
    .download-btn {
      padding: 10px 20px;
      font-size: 13px;
    }
  }

  .page-indicator {
    font-size: 0.7em;
    font-weight: 500;
    color: var(--muted);
  }

  .resources-doc-types {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
  }

  .resources-doc-types h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 24px;
  }

  .doc-types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .doc-type-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .doc-type-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  }

  .doc-type-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232, 119, 34, 0.08);
    border-radius: 12px;
    color: var(--primary);
  }

  .doc-type-item h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
  }

  .doc-type-item p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
  }

  .resources-faq {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
  }

  .resources-faq h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 24px;
  }

  .faq-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
  }

  .faq-item h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 10px;
  }

  .faq-item p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
  }

  @media (max-width: 768px) {
    .doc-types-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .faq-list {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 480px) {
    .doc-types-grid {
      grid-template-columns: 1fr;
    }
  }

  .products-content-section {
    margin-top: 64px;
    padding: 48px 0;
    border-top: 1px solid var(--border);
  }

  .products-content-section .content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .products-content-section .content-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 24px;
  }

  .products-content-section .content-block h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px;
  }

  .products-content-section .content-block p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
  }

  @media (max-width: 768px) {
    .products-content-section .content-grid {
      grid-template-columns: 1fr;
      gap: 16px;
    }
    .products-content-section {
      margin-top: 40px;
      padding: 32px 0;
    }
  }

  /* Breadcrumbs */
  .breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 24px 0 16px;
    margin-bottom: 0;
    font-size: 14px;
    color: var(--muted);
  }

  .breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
  }

  .breadcrumbs a:hover {
    color: var(--primary);
  }

  .breadcrumbs .sep {
    color: var(--border);
    font-size: 12px;
    margin: 0 4px;
  }

  .breadcrumbs .current {
    color: var(--text);
    font-weight: 600;
    cursor: default;
    max-width: 400px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  @media (max-width: 768px) {
    .breadcrumbs {
       padding: 16px 0 12px;
       font-size: 13px;
    }
    .breadcrumbs .current {
       max-width: 200px;
    }
  }

/* ========================================
   Login Page - Modern Design
   ======================================== */

body.login-page-body {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8edf2 50%, #f0f4f8 100%);
}

:root[data-theme="dark"] body.login-page-body {
  background: linear-gradient(135deg, #1a1a1a 0%, #121212 100%);
}

body.login-page-body > .container,
.login-page-body-main {
  max-width: none;
  padding: 0;
  margin: 0;
  overflow: visible;
  flex: 1;
}

.login-page-body-footer {
  margin-top: 0;
}

.login-page {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: calc(100vh - 280px);
  padding: 60px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8edf2 50%, #f0f4f8 100%);
}

:root[data-theme="dark"] .login-page {
  background: linear-gradient(135deg, #1a1a1a 0%, #121212 100%);
}

/* Background Decorative Shapes */
.login-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.login-bg-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 20s ease-in-out infinite;
}

.login-bg-shape-1 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.login-bg-shape-2 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  bottom: -50px;
  left: -50px;
  animation-delay: 5s;
}

.login-bg-shape-3 {
  width: 200px;
  height: 200px;
  background: var(--primary);
  top: 50%;
  left: 50%;
  animation-delay: 10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Login Container */
.login-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Login Card */
.login-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(224, 224, 224, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

:root[data-theme="dark"] .login-card {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
  border-color: rgba(48, 48, 48, 0.5);
}

.login-card:hover {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}

/* Login Header */
.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary), #ff8a3b);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(232, 119, 34, 0.3);
  transition: transform 0.3s ease;
}

.login-logo:hover {
  transform: rotate(5deg) scale(1.05);
}

.login-logo img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.login-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
  background: linear-gradient(135deg, var(--text), var(--muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* Login Error */
.login-error {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.1), rgba(211, 47, 47, 0.05));
  border: 1px solid rgba(211, 47, 47, 0.3);
  border-radius: 12px;
  color: var(--danger);
  margin-bottom: 24px;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.login-error svg {
  flex-shrink: 0;
}

.login-error span {
  font-size: 14px;
  font-weight: 500;
}

/* Login Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.login-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-input-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.login-input-group label svg {
  color: var(--primary);
}

.login-input-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  background: var(--surface);
  color: var(--text);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.login-input-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(232, 119, 34, 0.1);
  transform: translateY(-2px);
}

.login-input-group input::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

/* Password Input Wrapper */
.password-input-wrapper {
  position: relative;
}

.password-input-wrapper input {
  padding-right: 50px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--muted);
  transition: all 0.2s ease;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-password:hover {
  color: var(--primary);
  background: rgba(232, 119, 34, 0.1);
}

/* Login Button */
.login-btn {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.login-btn:hover::before {
  left: 100%;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 119, 34, 0.4);
}

.login-btn:active {
  transform: translateY(0);
}

.login-btn svg {
  transition: transform 0.3s ease;
}

.login-btn:hover svg {
  transform: translateX(4px);
}

/* Login Footer */
.login-footer {
  margin-top: 24px;
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.back-link:hover {
  color: var(--primary);
  background: rgba(232, 119, 34, 0.08);
  transform: translateX(-4px);
}

.back-link svg {
  transition: transform 0.3s ease;
}

.back-link:hover svg {
  transform: translateX(-4px);
}

/* Login Info Panel */
.login-info {
  padding: 40px;
  animation: slideInRight 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.login-info h2 {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text);
  line-height: 1.2;
}

.login-info > p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 32px;
}

.login-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(224, 224, 224, 0.4);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}

.feature-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

.feature-item span {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .login-container {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 600px;
  }

  .login-info {
    display: none;
  }

  .login-card {
    padding: 36px;
  }
}

@media (max-width: 768px) {
  .login-page {
    padding: 40px 0;
    min-height: calc(100vh - 260px);
  }

  .login-container {
    padding: 0 16px;
  }

  .login-card {
    padding: 28px;
    border-radius: 16px;
  }

  .login-logo {
    width: 70px;
    height: 70px;
    border-radius: 18px;
  }

  .login-logo img {
    width: 45px;
    height: 45px;
  }

  .login-header h1 {
    font-size: 24px;
  }

  .login-subtitle {
    font-size: 13px;
  }

  .login-input-group input {
    padding: 12px 14px;
    font-size: 14px;
  }

  .login-btn {
    padding: 14px 20px;
    font-size: 15px;
  }

  .login-bg-shape-1 {
    width: 300px;
    height: 300px;
  }

  .login-bg-shape-2 {
    width: 200px;
    height: 200px;
  }

  .login-bg-shape-3 {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 24px 20px;
  }

  .login-header h1 {
    font-size: 22px;
  }

  .login-features {
    gap: 12px;
  }

  .feature-item {
    padding: 14px 16px;
  }
}
