/* =====================================================
   主题变量定义（Theme Variables）
   使用方式：
   <html class="theme-light"> 或 <html class="theme-dark">
===================================================== */

/* ===== 明亮主题（默认） ===== */
:root{
    --color-bg-main: #ffffff;
    --color-bg-soft: #f8f9fa;
    --color-bg-submenu: #ffffff;
    --color-bg-hover: #f8f9fa;

    --color-text-main: #333333;
    --color-text-muted: #555555;
    --color-text-light: #666666;

    --color-border: #eaeaea;
    --color-border-light: #f0f0f0;

    --color-primary: #20c180;
    --color-primary-hover: #20c180;
    --color-primary-bg: #f2fdf9;
    --color-primary-active: #119d64;
    --price-color: #f50;

    --color-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --color-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --color-shadow-lg: 0 5px 20px rgba(0, 0, 0, 0.1);

    --color-overlay: rgba(0, 0, 0, 0.5);
        --secondary-color: #6c757d;
        --success-color: #28a745;
        --danger-color: #ff6b6b;
        --sales-color: #28a745;
        --warning-color: #ffc107;
        --light-bg: #f8f9fa;
        --dark-color: #2c3e50;
        --border-color: #eef1f8;
        --shadow-light: rgba(149, 157, 165, 0.1);
        --shadow-medium: rgba(149, 157, 165, 0.2);
}
.layui-layer-loading-2:after {
    border-color: transparent transparent transparent var(--color-primary)!important;
}
.tc{
    text-align: center;
}
/* ========== 主Header容器 ========== */
.site-header {
    background-color: var(--color-bg-main);
    box-shadow: var(--color-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: var(--color-shadow-md);
}

/* ========== 顶部工具条 ========== */
.header-top-bar {
    background-color: var(--color-bg-soft);
    border-bottom: 1px solid var(--color-border);
    padding: 8px 0;
    font-size: 13px;
    display: none;
}

.header-top-bar .container {
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-bar .user-links a {
    color: var(--color-text-light);
    text-decoration: none;
    margin-left: 15px;
    transition: color 0.2s ease;
}

.header-top-bar .user-links a:hover {
    color: var(--color-primary);
}

.header-top-bar .user-links a:first-child {
    margin-left: 0;
}


.user-btn {
    height: 30px;
    width: auto;
    line-height: 30px;
    background-color: rgba(66, 70, 77, .5);
    border-radius: 3px;
    overflow: hidden;
    text-align: center;
    display: flex;
    position: relative;
}

.user-btn a {
    padding: 0 8px;
    color: #fff;
    height: 100%;
    font-size: 14px;
    text-decoration: none;
}

.user-btn .register {
    background-color: var(--color-primary);
}


/* ========== 主Header区域 ========== */
.desktop-header,
.main-header {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ========== Logo区域 ========== */
.header-logo {
    flex-shrink: 0;
    margin-right: 40px;
}

.header-logo i {
    font-size: 44px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 24px;
    color: var(--color-primary);
    transition: opacity 0.2s ease;
}

.logo-link:hover {
    opacity: 0.9;
}

.logo-text {
    margin-left: 8px;
}

/* ========== 主导航 ========== */
.primary-nav {
    flex: 1;
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu>li {
    position: relative;
}

.nav-menu>li>a {
    display: block;
    padding: 0 12px;
    line-height: 64px;
    color: var(--color-text-main);
    font-weight: 400;
    font-size: 14px;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-menu>li>a:hover,
.nav-menu>li.active>a {
    color: var(--color-primary);
}

/* 当前页指示器
.nav-menu > li > a:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 3px 3px 0 0;
    transition: width 0.3s ease;
    display: none;
}

.nav-menu > li.active > a:after,
.nav-menu > li > a:hover:after {
    width: 60%;
}
 */
/* ========== 下拉菜单 ========== */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-bg-submenu);
    min-width: 250px;
    box-shadow: var(--color-shadow-lg);
    border-radius: 0 0 8px 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

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

.sub-menu li {
    position: relative;
}

.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(--color-text-muted);
    background-color: var(--color-bg-hover);
    border-left-color: var(--color-primary);
}

.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;
}
.mobile-drawer .cate-menu li .num {
  background-color: #3498db;
    color: white;margin-left: 8px;
    padding: 3px 8px;
    font-size: 12px;
    background-color: #f0f0f0;
    color: #666;
    border-radius: 12px;
    min-width: 28px;
    text-align: center;
    font-weight: 500;
}
.mobile-drawer .sub-menu li {
    padding: 0 12px;
    border-bottom: 1px solid #ececec;
}
.mobile-drawer .sub-menu li:last-child {
    border-bottom: none;
}
.mobile-drawer .cate-menu{
    margin-bottom: 10px;
}
/* ========== 右侧操作区 ========== */
.header-actions {
    display: flex;
    align-items: center;
    margin-left: 30px;
}

/* 用户操作按钮 */
.user-actions {
    display: flex;
    gap: 10px;
}

.btn-login,
.btn-register {
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.btn-login:hover {
    background-color: rgba(30, 115, 190, 0.05);
}

.theme-dark .btn-login:hover {
    background-color: rgba(77, 163, 255, 0.12);
}

.btn-register {
    background-color: var(--color-primary);
    color: #fff;
    border: 1px solid var(--color-primary);
}

.btn-register:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

/* ========== 移动端样式 ========== */
.mobile-header {
    display: none;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
    padding: 0;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-text-main);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* 移动端抽屉菜单 */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 80%;
    min-width: 200px;
    height: 100%;
    background-color: var(--color-bg-main);
    box-shadow: var(--color-shadow-lg);
    z-index: 1001;
    padding: 80px 20px 30px;
    overflow-y: auto;
    transition: right 0.4s ease;
}

.mobile-drawer.open {
    right: 0;
}

.mobile-drawer .nav-menu {
    flex-direction: column;
}

.mobile-drawer .nav-menu>li>a {
    line-height: 50px;
    padding: 0;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-drawer .has-sub>a:after {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.mobile-drawer .has-sub.open>a:after {
    transform: rotate(90deg);
}

.mobile-drawer .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: var(--color-bg-soft);
    padding: 0;
    margin-left: 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-drawer .has-sub.open .sub-menu {
    max-height: 500px;
}

.mobile-drawer .sub-menu li a {
    padding: 12px 0 12px 15px;
    font-size: 15px;
}

.mobile-drawer .sub-sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: var(--color-bg-hover);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-drawer .sub-menu .has-sub.open .sub-sub-menu {
    max-height: 300px;
}

/* 移动端用户操作区域 */
.mobile-user-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border-light);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-user-actions .btn-login,
.mobile-user-actions .btn-register {
    width: 100%;
    text-align: center;
    padding: 12px;
}

/* 遮罩层 */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-overlay);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* ========== 响应式断点 ========== */
@media (max-width: 1024px) {
    .main-header {
        padding: 0 15px;
    }

    .nav-menu>li>a {
        padding: 0 12px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .main-header {
        height: 60px;
        padding: 0 15px;
    }
    .desktop-header {
        display: none;
    }

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

    .mobile-toggle {
        display: block;
    }

    .mobile-logo .logo-link {
        font-size: 20px;
    }

    .header-actions {
        margin-left: 0;
    }
}

/* ========== Mega Menu 样式（可选） ========== */
.mega-menu {
    width: 800px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.mega-menu-column {
    display: flex;
    flex-direction: column;
}

.mega-menu-title {
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 15px;
    font-size: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-border-light);
}

.mega-menu-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mega-menu-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mega-menu-item:hover {
    color: var(--color-primary);
}

.mega-menu-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

@media (max-width: 900px) {
    .mega-menu {
        width: 600px;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .mega-menu {
        width: auto;
        grid-template-columns: 1fr;
        left: 0;
        transform: translateY(10px);
        position: static;
        max-height: 0;
    }
}

/* 分类菜单*/


.has-sub>a::after {
    width: 18px;
    display: inline-block;
    margin-left: 4px;
    content: '\e621';
    font-weight: 400;
    font-family: "iconfont" !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 10px;
}

.has-sub:hover>a::after {
    content: '\e98e';
}

/* ========== 语言币种切换容器 ========== */
.currency-lang-switch {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== 语言/币种切换通用样式 ========== */
.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-toggle:after {
    content: "\e621";
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.3s ease;
    font-family: "iconfont" !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 下拉菜单激活状态 */
.lang-switch.active .lang-toggle:after,
.currency-switch.active .lang-toggle:after {
    transform: rotate(180deg);
}

/* 下拉菜单 */
.lang-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-bg-submenu);
    box-shadow: var(--color-shadow-lg);
    border-radius: 0 0 8px 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.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);
}

.mobile-lang-switch {
    margin-top: 20px;
    border-top: 1px solid var(--color-border-light);
}

.mobile-lang-switch .lang-toggle {
    line-height: 30px;
    width: 100%;
    justify-content: center;
    border: 1px solid var(--color-border-light);
}

.mobile-lang-switch .currency-lang-switch {
    padding-right: 0;
}

/* 移动端语言切换容器样式 */
.mobile-lang-switch .currency-lang-switch {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.mobile-lang-switch .lang-switch,
.mobile-lang-switch .currency-switch {
    width: 100%;
}

.mobile-lang-switch .lang-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0 12px;
}

.mobile-lang-switch .lang-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0;
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-lang-switch .lang-switch.active .lang-dropdown,
.mobile-lang-switch .currency-switch.active .lang-dropdown {
    max-height: 200px;
}



/* 容器布局 */
.page-container {
    max-width: 1296px;
    margin: 0 auto;
    padding: 0;
}

/* 主内容区域 */
.content-area {
    display: flex;
    margin-top: 20px;
    margin-bottom: 30px;
    gap: 30px;
}

/* 左侧推荐栏 */
.recommendation-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.sidebar-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.sidebar-title {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.recommended-item {
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.recommended-item:last-child {
    border-bottom: none;
}

.recommended-link {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
    display: block;
}

.recommended-link:hover {
    color: var(--color-primary-hover);
    ;
}

.recommended-title {
    font-weight: 500;
    margin-bottom: 5px;
    line-height: 1.4;
}

.recommended-date {
    font-size: 0.85rem;
    color: #888;
}

/* 右侧新闻列表 */
.news-main {
    flex: 1;
}

.section-header {
    margin-bottom: 25px;
}

.section-title {
    font-size: 1.8rem;
    color: #2c3e50;
    font-weight: 600;
}

.section-description {
    color: #777;
    margin-top: 5px;
}

.new-news-list {
    list-style: none;
}

.page-news-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
}

.page-news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.news-image-container {
    width: 250px;
    flex-shrink: 0;
}

.news-image-link {
    display: block;
    height: 100%;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.page-news-item:hover .news-image {
    transform: scale(1.05);
}

.page-news-item .news-content {
    padding: 20px;
    flex: 1;
}

.page-news-item .news-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.page-news-item .news-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news-item .news-title a:hover {
    color: var(--color-primary-hover);
}

.page-news-item .news-summary {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.page-news-item .news-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.9rem;
}

.page-news-item .news-date,
.page-news-item .news-views {
    display: flex;
    align-items: center;
    font-size: 12px;
}

.page-news-item .meta-icon {
    margin-right: 5px;
    color: #bbb;
}

/* 响应式设计 */
@media (max-width: 900px) {
    .content-area {
        flex-direction: column;
    }

    .recommendation-sidebar {
        width: 100%;
    }

    .sidebar-card {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .recommended-item {
        width: 48%;
    }
}

@media (max-width: 900px) {
/**响应式下主体部分**/
    .page-container{
        padding: 0 12px;
    }
    .content-area{
        gap: 0;
    }
}
@media (max-width: 768px) {
    
    .page-news-item {
        flex-direction: column;
    }

    .news-image-container {
        width: 100%;
        height: 200px;
    }

    .footer-section {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .sidebar-card {
        flex-direction: column;
    }

    .recommended-item {
        width: 100%;
    }

    .news-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-views {
        margin-top: 5px;
    }
}

/**内容页**/

/* 右侧文章内容 */
.article-main {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.article-header {
    padding: 30px;
    border-bottom: 1px solid #eee;
}

.article-category {
    display: inline-block;
    background-color: var(--color-primary);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 15px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.article-category:hover {
    background-color: var(--color-primary-hover);
}

.article-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    color: #888;
    font-size: 0.9rem;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.meta-item {
    display: flex;
    align-items: center;
    margin-right: 20px;
    margin-bottom: 5px;
}

.meta-icon {
    margin-right: 8px;
    color: #bbb;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
}

.article-featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.article-content {
    padding: 30px;
}

.article-content img {
    max-width: 100%;
}

.article-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.article-paragraph {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #444;
}

.article-image {
    width: 100%;
    border-radius: 6px;
    margin: 20px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.image-caption {
    text-align: center;
    font-size: 0.9rem;
    color: #777;
    margin-top: 5px;
    margin-bottom: 25px;
}

.article-quote {
    background-color: #f8f9fa;
    border-left: 4px solid var(--color-primary);
    padding: 20px;
    margin: 25px 0;
    font-style: italic;
    color: #555;
    line-height: 1.7;
}

.quote-author {
    text-align: right;
    margin-top: 10px;
    color: #777;
    font-weight: 500;
}

.article-list {
    margin-left: 25px;
    margin-bottom: 20px;
}

.article-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* 标签区域 */
.article-tags {
    padding: 0 30px 30px;
}

.tags-title {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
    font-weight: 500;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    background-color: #f1f8ff;
    color: var(--color-primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background-color: var(--color-primary);
    color: white;
}


.social-link {
    color: #777;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--color-primary);
}

























/*页面底部*/
.footer {
    background: #f9f9f9;
    padding: 30px 20px 20px;
    color: #666;
    font-size: 14px;
}

.footer a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #333;
}


/* PC端样式 */
/* 暗色系Footer样式 - 只使用14px和12px */
.footer {
    background: #1a1a1a;
    padding: 30px 20px 20px;
    color: #e0e0e0;
    font-size: 14px;
}

.footer a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ffffff;
}

/* PC端样式 */
.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 20px;
}

.footer-brand {
    flex: 1 1 30%;
    min-width: 250px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 39px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-brand .contact h4 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.footer-brand .contact-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-brand .contact-links a {
    display: inline-block;
    line-height: 0;
    transition: transform 0.3s ease;
}

.footer-brand .contact-links a:hover {
    transform: translateY(-2px);
}

.footer-brand .contact-links img {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.footer-links {
    flex: 2 1 60%;
    display: flex;
    gap: 30px;
    justify-content: space-between;
}

.footer-column {
    flex: 1;
    min-width: 160px;
}

.footer-column h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #ffffff;
    position: relative;
    padding-bottom: 8px;
}

.footer-column h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--main-color);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 6px;
}

.footer-column li a {
    display: inline-block;
    padding: 2px 0;
    color: #b0b0b0;
}

.footer-column li a:hover {
    color: #ffffff;
    padding-left: 4px;
    transition: all 0.3s ease;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    font-size: 12px;
    color: #999999;
}

.copyright {
    color: #999999;
}

.copyright a {
    color: #cccccc;
    text-decoration: underline;
}

.copyright a:hover {
    color: #ffffff;
}

.footer-payments img {
    width: auto;
    filter: brightness(0.8) contrast(1.2);
}

/* 平板端适配 (768px-992px) */
@media screen and (max-width: 992px) {
    .footer {
        padding: 25px 15px 15px;
    }
    
    .footer-top {
        gap: 30px;
    }
    
    .footer-links {
        gap: 20px;
    }
    
    .footer-column {
        min-width: 140px;
    }
}

/* 移动端适配 (768px以下) */
@media screen and (max-width: 768px) {
    .footer {
        padding: 25px 15px 15px;
        background: #1a1a1a;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 25px;
    }
    
    .footer-brand {
        width: 100%;
        text-align: center;
    }
    
    .footer-brand .logo {
        margin-bottom: 15px;
    }
    
    .footer-brand .logo img {
        margin: 0 auto;
    }
    
    .footer-brand .contact h4 {
        font-size: 14px;
    }
    
    .footer-brand .contact-links {
        justify-content: center;
        gap: 10px;
    }
    
    .footer-brand .contact-links img {
        width: 28px;
        height: 28px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 25px;
    }
    
    .footer-column {
        width: 100%;
    }
    
    .footer-column h5 {
        font-size: 14px;
        margin-bottom: 10px;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-column h5::after {
        display: none;
    }
    
    .footer-column ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .footer-column li {
        margin-bottom: 0;
    }
    
    .footer-column li a {
        padding: 4px 0;
        font-size: 14px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        font-size: 12px;
    }
    
    .footer-payments img {
        height: 25px;
    }
}

/* 小屏幕移动端适配 (480px以下) */
@media screen and (max-width: 480px) {
    .footer {
        padding: 20px 12px 12px;
        font-size: 14px;
    }
    
    .footer-brand .logo img {
        max-height: 35px;
    }
    
    .footer-brand .contact h4 {
        font-size: 14px;
    }
    
    .footer-brand .contact-links {
        gap: 8px;
    }
    
    .footer-brand .contact-links img {
        width: 26px;
        height: 26px;
    }
    
    .footer-column h5 {
        font-size: 14px;
    }
    
    .footer-column ul {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .footer-column li a {
        font-size: 14px;
    }
    
    .footer-bottom {
        font-size: 12px;
    }
    
    .footer-payments img {
        height: 22px;
    }
}

/* 超小屏幕适配 (360px以下) */
@media screen and (max-width: 360px) {
    .footer {
        padding: 15px 10px 10px;
    }
    
    .footer-brand .logo img {
        max-height: 32px;
    }
    
    .footer-brand .contact-links {
        gap: 6px;
    }
    
    .footer-brand .contact-links img {
        width: 24px;
        height: 24px;
    }
    
    .footer-bottom {
        font-size: 12px;
    }
}

/* 打印样式 */
@media print {
    .footer {
        display: none;
    }
}

/* 暗色系增强效果 */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #222222 100%);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
}

.footer-brand .contact-links img {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.footer-brand .contact-links a:hover img {
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
    border-color: rgba(74, 158, 255, 0.3);
}

.footer-column li a {
    position: relative;
}

.footer-column li a::before {
    content: '›';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--color-primary);
}

.footer-column li a:hover::before {
    left: -10px;
    opacity: 1;
}


    /* ===============================
   国际化纵向表单（核心）
   =============================== */
.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;
}

/* 移动端无需额外处理，天然适配 */



    .products-section {
        width: 100%;
        background-color: #fff;
        margin: 0 auto;
        padding: 30px 0;
    }

    /* 产品网格布局 */
    .products-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }

    /* 产品卡片 */
    .product-card {
        background-color: #fff;
        border-radius: 8px;
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        position: relative;
    }

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }

    /* 角标容器 */
    .badge-container {
        position: absolute;
        top: 15px;
        left: 15px;
        z-index: 10;
        flex-direction: column;
        gap: 8px;
        display: none;
    }

    .product-card:hover .badge-container {
        display: flex;
    }

    .delivery-badge {
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 4px 10px;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .delivery-badge.auto {
        background: linear-gradient(135deg, var(--success-color), #20c997);
    }

    .delivery-badge.manual {
        background: linear-gradient(135deg, var(--warning-color), #fd7e14);
    }

    .stock-badge {
        background: rgba(255, 255, 255, 0.9);
        color: var(--dark-color);
        padding: 4px 10px;
        border-radius: 15px;
        font-size: 0.7rem;
        font-weight: 600;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .stock-badge.low {
        color: var(--danger-color);
        background: rgba(255, 107, 107, 0.1);
    }

    /* 产品图片区域 */
    .product-image {
        position: relative;
        height: 200px;
        overflow: hidden;
        background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    }

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.8s ease;
    }

    .product-card:hover .product-image img {
        transform: scale(1.08);
    }

    /* 产品内容区域 */
    .product-content {
        padding: 15px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .product-title {
        margin-bottom: 10px;
    }

    .product-name {
        font-size: 18px;
        font-weight: 600;
        color: var(--dark-color);
        line-height: 1;
        display: -webkit-box;
    }

    .product-description {
        font-size: 12px;
        color: var(--secondary-color);
        margin-bottom: 15px;
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 2.5em;
        flex-grow: 1;
    }

    /* 产品信息区域 */
    .product-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 10px;
        border-top: 1px dashed var(--border-color);
    }

    .sales-info {
        display: flex;
        align-items: center;
        gap: 2px;
        font-size: 12px;
        color: var(--secondary-color);
    }

    .sales-count {
        color: var(--sales-color);
        font-weight: 600;
    }

    .sales-icon {
        color: var(--sales-color);
    }

    .price-info {
        text-align: right;
    }

    .price-label {
        font-size: 12px;
        color: var(--secondary-color);
        margin-bottom: 2px;
    }

    .product-price {
        font-size: 20px;
        font-weight: 700;
        color: var(--price-color);
        line-height: 1;
    }

    .price-currency {
        font-size: 12px;
        margin-right: 2px;
    }

    /* 购买按钮 */
    .action-area {
        margin-top: auto;
    }

    .buy-button {
        display: block;
        width: 100%;
        background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
        color: white;
        border: none;
        padding: 12px 20px;
        border-radius: 10px;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
        text-align: center;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .buy-button:hover {
        background: linear-gradient(135deg, var(--color-primary-hover), var(--color-primary));
        box-shadow: 0 5px 15px rgba(74, 108, 247, 0.3);
        transform: translateY(-2px);
    }

    .buy-button:active {
        transform: translateY(0);
    }

    .button-icon {
        font-size: 14px;
    }


    /* 响应式设计 */
    @media (max-width: 1300px) {
        .products-grid {
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
        }
    }

    @media (max-width: 980px) {
        .products-grid {
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }
    }

    @media (max-width: 729px) {
        .products-section {
            padding: 15px;
        }

        .products-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
        }

        .product-image {
            height: 180px;
        }
    }

    @media (max-width: 576px) {
        .products-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }

        .products-section {
            padding: 10px;
        }

        .product-image {
            height: 160px;
        }

        .product-content {
            padding: 15px;
        }

        .product-price {
            font-size: 16px;
        }
    }

    @media (max-width: 320px) {
        .products-grid {
            grid-template-columns: 1fr;
            max-width: 400px;
            margin: 0 auto;
        }

        .products-section {
            padding: 0;
        }

        .section-header {
            margin-bottom: 30px;
        }

        .product-image {
            height: 180px;
        }

        .product-name {
            font-size: 18px;
        }

        .buy-button {
            padding: 10px 15px;
            font-size: 12px;
        }
    }

    @media (max-width: 375px) {
        .products-section {
            padding: 15px 10px;
        }

        .product-image {
            height: 160px;
        }
    }

    /* 动画效果 */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .products-right-grid{
        grid-template-columns: repeat(1, 1fr);
    }
    .products-right-grid .product-image{
        height: 100px;
    }

    