:root {
    /* Colors from Design System */
    --primary: #004ac6;
    --primary-container: #2563eb;
    --on-primary: #ffffff;
    --secondary: #565e74;
    --background: #f8f9ff;
    --bg-main: #f6f8fb;
    --surface: #ffffff;
    --on-surface: #0b1c30;
    --on-surface-variant: #434655;
    --surface-container: #e5eeff;
    --surface-container-low: #eff4ff;
    --surface-container-high: #dce9ff;
    --surface-container-highest: #d3e4fe;
    --surface-container-lowest: #ffffff;
    --outline-variant: rgba(195, 198, 215, 0.5);
    --success-green: #10b981;
    --warning-amber: #f59e0b;
    --error: #ba1a1a;
    --tertiary-fixed: #ffdbcd;
    --on-tertiary-fixed-variant: #7d2d00;
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-display: 'Hanken Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing & Sizing */
    --gutter: 1.5rem;
    --margin-mobile: 1rem;
    --container-max: 1400px;
    --section-gap: 2rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;
}

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

body {
    background-color: var(--bg-main);
    color: var(--on-surface);
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: all 0.2s ease;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    vertical-align: middle;
}

/* Layout Helpers */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--margin-mobile);
    }
}

/* Top Navigation */
.header {
    height: 72px;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    background-color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--outline-variant);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

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

.logo-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-lg);
}

.main-nav {
    display: none;
    gap: 2rem;
    margin-left: 2rem;
    height: 100%;
}

@media (min-width: 1024px) {
    .main-nav {
        display: flex;
    }
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid #fff;
    color: var(--secondary);
    display: flex;
    align-items: center;
    border-bottom: 2px solid #fff;
    height: 100%;
}
.has-sub{
    display: flex;
    align-items: center;
}
.nav-link.active,.nav-link:hover {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.switcher-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: 0.5rem;
}

.switcher-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--secondary);
    font-size: 14px;
    font-weight: 500;
}

.btn-login {
    display: none;
    padding: 8px 16px;
    color: var(--primary);
    font-weight: 600;
    border-radius: var(--radius-lg);
}

@media (min-width: 768px) {
    .btn-login {
        display: block;
    }
}

.btn-register {
    padding: 8px 24px;
    background-color: var(--primary-container);
    color: var(--on-primary);
    font-weight: 600;
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

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

/* Hero Section */
.hero {
    background: radial-gradient(circle at top right, #e5eeff 0%, #f6f8fb 50%);
    padding-top: 3rem;
    padding-bottom: 3rem;
    text-align: center;
    border-bottom: 1px solid var(--outline-variant);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background-color: rgba(0, 74, 198, 0.05);
    border: 1px solid rgba(0, 74, 198, 0.1);
    color: var(--primary);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.125rem;
    color: var(--secondary);
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.search-container {
    max-width: 576px;
    margin: 0 auto 3rem;
    position: relative;
}

.search-input-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary);
}

.search-input {
    width: 100%;
    height: 56px;
    padding: 0 120px 0 3rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--outline-variant);
    background-color: var(--surface);
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 74, 198, 0.1);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 8px;
    bottom: 8px;
    padding: 0 24px;
    background-color: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 500;
}

.hero-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .hero-categories {
        grid-template-columns: repeat(6, 1fr);
    }
}

.hero-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-2xl);
    border: 1px solid transparent;
    transition: all 0.2s;
}

.hero-cat-item:hover {
    background-color: var(--surface);
    border-color: var(--outline-variant);
    transform: translateY(-2px);
}

.hero-cat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Main Content Layout */
.main-grid {
    display: flex;
    flex-direction: column;
    gap: var(--gutter);
    padding: var(--section-gap) 0;
}

@media (min-width: 1024px) {
    .main-grid {
        flex-direction: row;
    }
}

/* Sidebar */
.sidebar {
    width: 100%;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .sidebar {
        width: 288px;
    }
}

.side-card {
    background-color: var(--surface);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--outline-variant);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.side-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--outline-variant);
}

.side-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
}

.side-nav {
    padding: 0.5rem;
}

.side-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-xl);
    color: var(--on-surface-variant);
    transition: background 0.2s;
}

.side-link:hover {
    background-color: var(--surface-container-low);
}

.side-link.active {
    background-color: rgba(0, 74, 198, 0.1);
    color: var(--primary);
    font-weight: 600;
}

.side-link-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.count-badge {
    padding: 2px 8px;
    background-color: var(--surface-container-high);
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
}

.side-link.active .count-badge {
    background-color: rgba(0, 74, 198, 0.2);
    color: var(--primary);
}

.announcement-card {
    background-color: rgba(211, 228, 254, 0.2);
    border: 1px solid rgba(0, 74, 198, 0.1);
    padding: 1.5rem;
    border-radius: var(--radius-2xl);
}

.announcement-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 1rem;
}

/* Product Grid Area */
.content-area {
    flex: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    background-color: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--outline-variant);
    text-align: center;
}

.stat-label {
    font-size: 12px;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
}

/* Category Sections */
.category-section {
    margin-bottom: 2rem;
}

.cat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--outline-variant);
    margin-bottom: 1rem;
}

.cat-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
}

.cat-header .view-all {
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
}

/* Tables */
.table-container {
    background-color: var(--surface);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--outline-variant);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 1rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th {
    background-color: var(--surface-container-low);
    padding: 1rem 1.5rem;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--on-surface-variant);
    font-weight: 600;
}

.data-table td {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(195, 198, 215, 0.2);
    transition: background 0.2s;
}

.data-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.5);
}

.product-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.price-text {
    color: var(--primary);
    font-weight: 700;
}

.stock-status {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.success { background-color: var(--success-green); }
.status-dot.warning { background-color: var(--warning-amber); }

.btn-buy {
    padding: 8px 16px;
    background-color: var(--primary);
    color: white;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 600;
}

/* News Section */
.news-section {
    background-color: var(--bg-main);
    padding: var(--section-gap) 0;
    border-top: 1px solid var(--outline-variant);
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.news-card {
    background-color: var(--surface);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--outline-variant);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.news-img {
    height: 128px;
    width: 100%;
    object-cover: cover;
    background-color: var(--surface-container);
}

.news-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background-color: rgba(0, 74, 198, 0.05);
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    width: fit-content;
}

.news-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.news-card p {
    font-size: 12px;
    color: var(--secondary);
    margin-bottom: 1rem;
    flex: 1;
}

.news-more {
    margin-top: auto;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Trust Section */
.trust-section {
    background-color: white;
    padding: var(--section-gap) 0;
    border-top: 1px solid var(--outline-variant);
    border-bottom: 1px solid var(--outline-variant);
    text-align: center;
}

.trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .trust-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.trust-card {
    padding: 2rem;
    background-color: var(--bg-main);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(195, 198, 215, 0.2);
}

.trust-icon-box {
    width: 64px;
    height: 64px;
    background-color: rgba(0, 74, 198, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
}

/* Reviews */
.reviews-section {
    background-color: var(--bg-main);
    padding: var(--section-gap) 0;
}

.reviews-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.reviews-scroll::-webkit-scrollbar { display: none; }

.review-card {
    background-color: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(195, 198, 215, 0.4);
    scroll-snap-align: center;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.stars {
    color: var(--warning-amber);
    font-size: 14px;
    letter-spacing: 2px;
}
.star-display {
    position: relative;
    display: inline-block;
    font-size: 20px;
    line-height: 1;
    color: rgb(221, 221, 221);
}
.star-display::before {
    content: "★★★★★";
    letter-spacing: 3px;
}
.stars-inner {
    position: absolute;
    top: 0px;
    left: 0px;
    color: rgb(255, 215, 0);
    white-space: nowrap;
    overflow: hidden;
}
.stars-inner::before {
    content: "★★★★★";
    letter-spacing: 3px;
}
/* Footer */
.footer {
    background-color: var(--surface-container-lowest);
    padding: 3rem 0;
    border-top: 1px solid var(--outline-variant);
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-top {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-brand {
    grid-column: span 2;
}

@media (min-width: 768px) {
    .footer-brand {
        grid-column: span 1;
    }
}

.footer-brand p {
    font-size: 14px;
    color: var(--on-surface-variant);
    margin: 1rem 0;
    max-width: 300px;
}

.footer h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav a {
    font-size: 14px;
    color: var(--on-surface-variant);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--outline-variant);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.copyright {
    font-size: 12px;
    color: var(--on-surface-variant);
}

/* Animation */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/**产品列表***/

.category-section {
    background: white;
    border: 1px solid #eef2ff;
    overflow-x: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    margin-bottom: 16px;
}
.category-section:last-child {
    border-bottom: 0;
}
.category-title {
    font-size: 1rem;
    font-weight: 700;
    padding: 12px 18px;
    background: #fafcff;
    color: #0f172a;
    border-bottom: 1px solid #eef2ff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.category-title a {
    text-decoration: none;
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 600;
}
.products-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    table-layout: fixed;
}
.products-table th {
    text-align: left;
    padding: 12px 16px;
    background: #ffffff;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 1px solid #eef2ff;
    white-space: nowrap;
    font-size: 0.78rem;
}
.products-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.products-table th:nth-child(1),
.products-table td:nth-child(1) {
    width: auto;
    text-align: left;
}
.products-table th:nth-child(2),
.products-table td:nth-child(2),
.products-table th:nth-child(3),
.products-table td:nth-child(3),
.products-table th:nth-child(4),
.products-table td:nth-child(4),
.products-table th:nth-child(5),
.products-table td:nth-child(5) {
    width: 118px;
    white-space: nowrap;
    text-align: center;
}
.product-row:hover {
    background: #fafcff;
}
.prod-icon-img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 8px;
    background: #eff6ff;
    display: block;
}
.prod-name {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    color: #0f172a;
}
.prod-name:hover {
    color: #2563eb;
}
.item-name-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    text-decoration: none;
}
.item-name-link:hover {
    color: #2563eb;
}
.item-icon {
    flex: 0 0 32px;
}
.item-name-text {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.45;
    font-weight: 600;
}
.price-col {
    color: #ea580c;
    font-weight: 700;
    font-size: 0.9rem;
}
.btn-buy-table {
    display: inline-flex;
    text-decoration: none;
    background: #2563eb;
    border: none;
    padding: 5px 14px;
    color: white;
    font-weight: 600;
    font-size: 0.7rem;
    transition: 0.2s;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.btn-buy-table:hover { background: #1d4ed8; transform: scale(0.96); }

.item-mobile-meta {
    display: none;
}

@media (max-width: 768px) {
    .btn-buy {
        padding: 8px 8px;
        font-size: 12px;
    }
    .advantages { grid-template-columns: 1fr; }
    .container { padding: 0 16px; }
    .trust-badges{ padding: 10px 0;  }
    .notice-card { flex-wrap: wrap; }
    .adv-card { padding: 10px 14px; }
    .adv-icon { font-size: 1.4rem; width: 32px; }
    .drawer {
        width: min(300px, 86vw);
        left: calc(-1 * min(300px, 86vw));
    }
    .products-table.item-table th:nth-child(3),
    .products-table.item-table td:nth-child(3),
    .products-table.item-table th:nth-child(4),
    .products-table.item-table td:nth-child(4) {
        display: none;
    }
    .products-table.item-table th:nth-child(1),
    .products-table.item-table td:nth-child(1) {
        width: 56%;
        text-align: left;
    }
    .products-table.item-table th:nth-child(2),
    .products-table.item-table td:nth-child(2) {
        width: 22%;
    }
    .products-table.item-table th:nth-child(5),
    .products-table.item-table td:nth-child(5) {
        width: 22%;
    }
    .products-table.item-table th,
    .products-table.item-table td {
        padding: 10px 14px;
        vertical-align: middle;
        font-size: 12px;
    }
    .products-table.item-table .item-name-link {
        gap: 6px;
        align-items: flex-start;
    }
    .products-table.item-table .item-icon {
        width: 18px;
        height: 18px;
        min-width: 18px;
        min-height: 18px;
        border-radius: 999px;
    }
    .products-table.item-table .item-name-text {
        white-space: normal;
        word-break: break-word;
    }
    .products-table.item-table .item-price,
    .products-table.item-table td:nth-child(n+2) {
        text-align: center;
        white-space: nowrap;
    }
    .item-mobile-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 4px;
        font-size: 11px;
        line-height: 1.4;
        color: #6b7280;
    }
    .more-txt{
        display: none;
    }
}
.has-sub{
    position: relative;
}

.sub-menu{
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 250px;
    box-shadow: 1px solid var(--outline-variant);
    border-radius: var(--radius-2xl);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    border: 1px solid var(--outline-variant);
}

.has-sub:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    position: relative;
    list-style: none;
}

.sub-menu li a {
    display: block;
    padding: 8px 15px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.cate-menu li a {
    padding: 8px 15px;
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cate-menu li:hover a,
.sub-menu li:hover a {
    color: var(--primary);
    background-color: rgba(0, 74, 198, 0.1);
}

.cate-menu li .icon {
    flex: 0 0 auto;
    margin-right: 10px;
}

.cate-menu li .name {
    flex: 1;
    text-align: left;
}

.cate-menu li .num {
    flex: 0 0 auto;
    margin-left: 10px;
}
.user-auth{
    max-width: 600px;
    margin: 0 auto;
}
.mtb20px {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}
.layui-card-header {
    border-bottom: none !important;
}

.auth-card {
    max-width: 520px;
    margin: 0 auto;
}

.i18n-vertical-form .layui-form-item {
    margin-bottom: 22px;
}

/* label 永远在上 */
.i18n-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    white-space: normal;
    word-break: break-word;
}

/* 输入框 */
.i18n-vertical-form .layui-input {
    width: 100%;
}

/* 验证码横排 */
.captcha-row {
    display: flex;
    gap: 10px;
}

.captcha-row input {
    flex: 1;
}

.captcha-row img {
    height: 38px;
    cursor: pointer;
    border-radius: 2px;
}

/* 主分页样式 — 完全基于 #004ac6 主色调，移动端优先 */
.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: #334155;
    cursor: pointer;
    user-select: none;
    font-family: inherit;
}

/* 普通可点击链接 */
.pagination li a {
    background: white;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    box-shadow: 0 1px 1px rgba(0,0,0,0.02);
}

/* 激活状态 (当前页码) — 主色调 #004ac6 填充 */
.pagination li.active span {
    background: #004ac6;
    border: 1px solid #004ac6;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 74, 198, 0.2);
}

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

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

/* 对于支持hover的桌面设备，增加平滑效果，不影响移动端 */
@media (hover: hover) {
    .pagination li:not(.disabled):not(.active) a:hover {
        background-color: #f8fafc;
        border-color: #cbd5e6;
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    }
}

/* 针对极小屏幕 (≤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;
    }
    .demo-container {
        padding: 16px 12px 20px;
    }
}


/* ========== 语言/币种切换通用样式 ========== */
.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;
    line-height: 64px;
    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);
}
