* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      background: #f5f7fc;
      color: #121826;
      line-height: 1.4;
      -webkit-font-smoothing: antialiased;
    }
    .wd{
        width: 100%;
    }
    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0;
    }

    /* 紧凑风格变量 */
    :root {
      --primary: #0a2c5c;
      --primary-light: #1e4a7a;
      --accent: #e85d3a;
      --accent-soft: #fff3f0;
      --surface: #ffffff;
      --border-light: #e9edf4;
      --text-secondary: #5b677b;
      --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02);
      --radius-lg: 16px;
      --radius-md: 12px;
      --radius-sm: 8px;
    }

    button {
      background: none;
      border: none;
      cursor: pointer;
      font-family: inherit;
    }

    a {
      text-decoration: none;
      color: inherit;
    }
    .top-bar-wd{
        width: 100%;
        background-color: #fff;
    }
    /* 头部导航 - 紧凑双层 */
    .top-bar {
      background: var(--surface);
      border-bottom: 1px solid var(--border-light);
      padding: 6px 0;
      font-size: 12px;
      color: #5b677b;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .top-bar-left {
      display: flex;
      align-items: center;
      gap: 20px;
    }

    .top-bar-right {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .status-badge {
      display: flex;
      align-items: center;
      gap: 6px;
      background: #eef6ee;
      color: #1f7b4d;
      padding: 4px 10px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 600;
    }

    .status-dot {
      width: 6px;
      height: 6px;
      background: #1f7b4d;
      border-radius: 50%;
    }

    .main-header {
      background: var(--surface);
      padding: 12px 0;
      box-shadow: var(--shadow-card);
      position: sticky;
      top: 0;
      z-index: 50;
    }

    .header-content {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .logo-area {
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .logo-icon {
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 18px;
      font-family: 'Plus Jakarta Sans', sans-serif;
    }

    .logo-icon img{
      height: 32px;
    }
    .logo-text {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-weight: 700;
      font-size: 1.4rem;
      color: var(--primary);
      letter-spacing: -0.3px;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .nav-item {
      padding: 8px 14px;
      border-radius: 20px;
      font-size: 14px;
      font-weight: 500;
      color: #1e293b;
      transition: 0.2s;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .nav-item.active {
      background: #0a2c5c0d;
      color: var(--primary);
      font-weight: 600;
    }

    .nav-item:hover {
      background: #f1f4f9;
    }

    .action-btns {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .btn-outline {
      border: 1px solid #cdd5e0;
      padding: 8px 18px;
      border-radius: 24px;
      font-weight: 600;
      font-size: 14px;
      color: var(--primary);
      background: white;
    }

    .btn-primary {
      background: var(--accent);
      color: white;
      padding: 8px 20px;
      border-radius: 24px;
      font-weight: 600;
      font-size: 14px;
      box-shadow: 0 4px 10px rgba(232, 93, 58, 0.2);
      display: flex;
      align-items: center;
      gap: 4px;
    }

    /* 搜索紧凑栏 */
    .search-section {
      background: white;
      padding: 12px 0;
      border-bottom: 1px solid var(--border-light);
    }

    .search-box {
      display: flex;
      align-items: center;
      background: #f2f5f9;
      border-radius: 30px;
      padding: 4px 4px 4px 18px;
      max-width: 600px;
      margin: 0 auto;
    }

    .search-box input {
      border: none;
      background: transparent;
      flex: 1;
      padding: 10px 0;
      font-size: 14px;
      outline: none;
    }

    .search-btn {
      background: var(--primary);
      color: white;
      padding: 10px 24px;
      border-radius: 25px;
      font-weight: 600;
      font-size: 14px;
    }

    /* 核心指标条 */
    .stats-strip {
      background: var(--primary);
      color: white;
      padding: 14px 0;
    }

    .stats-grid {
      display: flex;
      justify-content: space-between;
      align-items: center;
      text-align: center;
    }

    .stat-value {
      font-size: 1.5rem;
      font-weight: 700;
      letter-spacing: -0.3px;
    }

    .stat-label {
      font-size: 12px;
      opacity: 0.8;
    }

    /* 主布局 */
    .main-grid {
      display: grid;
      grid-template-columns: 310px 1fr;
      gap: 20px;
      margin: 24px auto;
    }

    /* 侧边栏 */
    .sidebar {
      background: white;
      border-radius: var(--radius-lg);
      padding: 16px;
      box-shadow: var(--shadow-card);
      height: fit-content;
      position: sticky;
      top: 100px;
    }

    .category-title {
      font-weight: 700;
      font-size: 14px;
      margin-bottom: 14px;
      display: flex;
      justify-content: space-between;
    }

    .cat-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 12px;
      border-radius: 10px;
      margin-bottom: 4px;
      font-size: 14px;
      font-weight: 500;
      color: #334155;
    }

    .cat-item.active {
      background: #eef3ff;
      color: var(--primary);
      font-weight: 600;
    }
    .cat-item img{
        margin-right: 8px;
    }
    .cat-count {
      background: #f1f5f9;
      padding: 2px 8px;
      border-radius: 12px;
      font-size: 12px;
    }

    .vip-promo {
      background: linear-gradient(135deg, #0a2c5c, #1e4a7a);
      border-radius: 14px;
      padding: 16px;
      color: white;
      margin-top: 20px;
    }

    /* 内容卡片 */
    .section-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 16px;
      margin-top: 24px;
    }

    .section-header h2 {
      font-size: 1.2rem;
      font-weight: 700;
    }
    .section-header h2 img{
        margin-right: 8px;
    }
    .product-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
      gap: 16px;
    }

    .card {
      background: white;
      border-radius: var(--radius-md);
      padding: 14px;
      box-shadow: var(--shadow-card);
      transition: 0.2s;
      border: 1px solid transparent;
    }

    .card:hover {
      border-color: #cdd9f0;
    }

    .card-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      background: #eef6ee;
      color: #1f7b4d;
      font-size: 11px;
      font-weight: 600;
      padding: 3px 10px;
      border-radius: 20px;
      margin-bottom: 10px;
    }

    .card-title {
      font-weight: 700;
      font-size: 15px;
      margin: 8px 0 6px;
    }

    .card-desc {
      color: #64748b;
      font-size: 13px;
      margin-bottom: 16px;
    }

    .price-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }



/* ========== 语言/币种切换通用样式 ========== */
.currency-lang-switch {
    padding-right: 20px;
}

/****
.lang-switch:hover .lang-dropdown,
.currency-switch:hover .lang-dropdown {
    display: block;
    opacity: 1;
    visibility: visible;
}***/

.lang-switch,
.currency-switch {
    position: relative;
    display: inline-block;
}

.currency-switch .lang-dropdown {
    text-transform: uppercase;
}

/* 切换按钮 */
.lang-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    font-size: 12px;
    color: var(--color-text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.lang-toggle:hover {
    border-color: var(--color-primary);
}

.lang-toggle:active {
    transform: translateY(1px);
}


/* 下拉菜单 */
.lang-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--surface);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--outline-variant);
    border-radius: 0 0 8px 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    width: 155px;
}

.lang-switch.active .lang-dropdown,
.currency-switch.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 下拉菜单项 */
.lang-dropdown-item{
    padding: 10px 25px 10px 10px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    position: relative;
}

.lang-dropdown-item:hover{
    background-color: #f8f9fa;
    color: var(--color-text-main);
}

.lang-dropdown-item.active{
    color: var(--color-primary);
    font-weight: 600;
    background-color: var(--color-bg-item-active);
}

.lang-dropdown-item.active:after {
    content: "✓";
    position: absolute;
    right: 10px;
    font-weight: bold;
}

/* 国旗图标 */
.flag-icon {
    width: 20px;
    height: 15px;
    margin-right: 10px;
    border-radius: 2px;
    object-fit: cover;
}

/* ========== 当前URL显示 ========== */
.current-url {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #1e73be;
}

.current-url h4 {
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.url-path {
    font-family: 'Courier New', monospace;
    background: #fff;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    color: #333;
    word-break: break-all;
}

.url-components {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.url-component {
    background: #e8f4ff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--color-text-main);
}

/* 切换加载遮罩 */
.switching-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.switching-overlay.active {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 切换成功提示 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    color: var(--color-primary);
    padding: 12px 24px;
    z-index: 2001;
    transform: translateX(120%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

    .price {
      font-weight: 700;
      font-size: 1.2rem;
      color: #121826;
    }

    .buy-btn {
      background: var(--accent);
      color: white;
      padding: 8px 16px;
      border-radius: 20px;
      font-weight: 600;
      font-size: 13px;
      display: inline-block;
      white-space: nowrap;
      text-align: center;
    }

    /* 表格区 */
    .table-wrapper {
      background: white;
      border-radius: var(--radius-md);
      padding: 0;
      box-shadow: var(--shadow-card);
    }

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

    .table-wrapper th {
      text-align: left;
      padding: 14px 16px;
      font-size: 12px;
      color: #5b677b;
      font-weight: 600;
      background: #f8fafd;
    }

    .table-wrapper td {
      padding: 14px 16px;
      font-size: 14px;
      border-bottom: 1px solid #edf2f9;
      line-height: 1.4;
    }
    .table-wrapper td:nth-child(3) {
        color: #f50;
    }
    .stock-high {
      color: #1f7b4d;
      font-weight: 600;
    }

    .footer {
      background: white;
      margin-top: 40px;
      padding: 32px 0 20px;
      border-top: 1px solid var(--border-light);
      font-size: 13px;
      color: #475569;
    }

   
.footer .contact-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 15px;
}



/* ---------- 新增：图文资讯模块 ---------- */
.news-section {
  margin-top: 32px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.news-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: 0.2s;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

.news-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #e2e8f0;
  display: block;
}

.news-content {
  padding: 12px 14px;
}

.news-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-desc {
  font-size: 13px;
  color: #5b677b;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
  border-top: 1px solid #edf2f9;
  padding-top: 10px;
}

/* ---------- 用户评价滚动模块 ---------- */
.reviews-section {
  margin-top: 32px;
  overflow: hidden;
}

.reviews-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  margin-top: 8px;
}

.review-card {
  min-width: 280px;
  background: white;
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
  border: 1px solid #f1f4f9;
}

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

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #1e293b;
  font-size: 16px;
  background: linear-gradient(135deg, #d9e2ef, #b9c8e0);
}

.review-user {
  font-weight: 700;
  font-size: 15px;
}

.stars {
  color: #fbbf24;
  letter-spacing: 2px;
}

.review-text {
  font-size: 13px;
  color: #334155;
  margin-bottom: 8px;
  line-height: 1.5;
}

.review-time {
  font-size: 11px;
  color: #94a3b8;
}

@media (min-width: 769px) {
    .menu-toggle {
      display: none;
    }
}
 /* 移动端菜单按钮 */
.menu-toggle {
  background: none;
  border: none;
  color: #1e293b;
  cursor: pointer;
}

/* 抽屉侧边栏 */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}
.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}
.category-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 270px;
  background: white;
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 20px;
  box-shadow: 2px 0 15px rgba(0,0,0,0.1);
}
.category-drawer.open {
  transform: translateX(0);
}
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.search-section {
  background: white;
  padding: 12px 0;
}
.search-box {
  display: flex;
  background: #f2f5f9;
  border-radius: 30px;
  padding: 4px 4px 4px 18px;
  max-width: 600px;
  margin: 0 auto;
}
.search-box input {
  border: none;
  background: transparent;
  flex: 1;
  padding: 10px 0;
  outline: none;
}
.search-btn {
  background: var(--primary);
  color: white;
  padding: 10px 24px;
  border-radius: 25px;
}

.stats-strip {
  background: var(--primary);
  color: white;
  padding: 14px 0;
}
.stats-grid {
  display: flex;
  justify-content: space-between;
  text-align: center;
}

.reviews-scroll {
        display: flex;
        gap: 16px;
        overflow: hidden;
        scroll-behavior: smooth;
        will-change: transform;
        transition: transform 0.45s ease;
      }
      .reviews-scroll .review-card {
        flex: 0 0 calc((100% - 48px) / 4);
        min-width: calc((100% - 48px) / 4);
      }
      @media (max-width: 1199px) {
        .reviews-scroll .review-card {
          flex-basis: calc((100% - 32px) / 3);
          min-width: calc((100% - 32px) / 3);
        }
      }
      @media (max-width: 767px) {
        .reviews-scroll .review-card {
          flex-basis: calc((100% - 16px) / 2);
          min-width: calc((100% - 16px) / 2);
        }
      }
      @media (max-width: 575px) {
        .reviews-scroll .review-card {
          flex-basis: 100%;
          min-width: 100%;
        }
      }

 @media (max-width: 768px) {
      .main-grid {
        grid-template-columns: 1fr;
        margin: 0 auto 20px;
      }
      .sidebar{
          display: none;
      }
      .nav-links, .top-bar {
        display: none;
      }
      .stats-grid {
        flex-wrap: wrap;
        justify-content: space-around;
      }
      .menu-toggle {
        display: block;
      }
      .menu-toggle .material-symbols-outlined{
          line-height: 32px;
      }
      .container{
         padding: 0 12px; 
      }
      
    .btn-outline {
      padding: 4px 8px;
      border-radius: 14px;
      font-size: 12px;
    }

    .btn-primary {
      color: white;
      padding: 4px 8px;
      border-radius: 14px;
      font-size: 12px;
    }
    .main-header{
        padding: 8px 0;
    }
    .search-box {
      display: flex;
      background: #f2f5f9;
      border-radius: 30px;
      padding: 4px 4px 4px 18px;
      max-width: 600px;
      margin: 0 auto;
    }
    .search-box input {
      border: none;
      background: transparent;
      flex: 1;
      padding: 6px 0;
      outline: none;
    }
    .search-btn {
      background: var(--primary);
      color: white;
      padding: 6px 12px;
      border-radius: 25px;
    }
    
    .stats-strip {
      background: var(--primary);
      color: white;
      padding: 8px 0;
    }
    .stat-value{
        font-size: 1.2rem;
        font-weight: 500;
    }  
    .table-wrapper td {
        padding: 6px 8px;
    }
    .table-wrapper td:nth-child(4) {
        white-space: nowrap;
    }
    .buy-btn {
        padding: 6px 10px;
        font-size: 14px;
    }
    .section-header{
        
    }
}

/* 主分页样式 — 基于自定义颜色变量，移动端优先 */
.pagination-wrapper {
    margin-top: 8px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    flex-wrap: wrap;           /* 极端窄屏下换行，依然美观 */
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 4px 0;
}

/* 通用按钮样式 (包括数字链接、前后箭头) */
.pagination li {
    display: inline-flex;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;          /* 符合移动端触控区域 ≥44px 建议 */
    height: 44px;
    padding: 0 6px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    border-radius: 44px;       /* 大圆角胶囊风格，更现代 */
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    background-color: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
    font-family: inherit;
}

/* 普通可点击链接 */
.pagination li a {
    background: var(--surface);
    border: 1px solid var(--border-light);
    color: var(--primary);
    box-shadow: var(--shadow-card);
}

/* 激活状态 (当前页码) — 使用主色调填充 */
.pagination li.active span {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(10, 44, 92, 0.15);
}

/* 禁用状态 (上一页/下一页不可用) */
.pagination li.disabled span {
    background: var(--accent-soft);
    border: 1px solid var(--border-light);
    color: #a0afc0;
    cursor: default;
    box-shadow: none;
    opacity: 0.7;
}

/* 可悬停/点击的链接交互 (移动端也有触摸反馈) */
.pagination li:not(.disabled):not(.active) a:active {
    transform: scale(0.96);
    background-color: var(--accent-soft);
    border-color: var(--accent);
    transition: 0.05s;
}

/* 对于支持hover的桌面设备，增加平滑效果 */
@media (hover: hover) {
    .pagination li:not(.disabled):not(.active) a:hover {
        background-color: var(--accent-soft);
        border-color: var(--accent);
        color: var(--accent);
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(232, 93, 58, 0.1);
    }
}

/* 针对极小屏幕 (≤380px) 间距微调，并允许换行 */
@media (max-width: 380px) {
    .pagination {
        gap: 6px;
    }
    .pagination li a,
    .pagination li span {
        min-width: 40px;
        height: 40px;
        font-size: 15px;
        padding: 0 4px;
    }
}