/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px;
}

/* 顶部通知栏 */
.top-notice {
    background-color: #007bff;
    color: #fff;
    padding: 10px 0;
    position: relative;
    z-index: 1001;
    overflow: hidden;
}

.notice-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    padding-right: 40px;
}

.notice-icon {
    font-size: 18px;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.notice-scroll-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 24px;
}

.notice-scroll-content {
    display: flex;
    animation: scrollNotice 20s linear infinite;
    white-space: nowrap;
}

.notice-scroll-content:hover {
    animation-play-state: paused;
}

@keyframes scrollNotice {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.notice-item {
    flex-shrink: 0;
    padding-right: 50px;
}

.notice-item p {
    margin: 0;
    font-size: 14px;
    line-height: 24px;
    display: inline-block;
}

.close-notice {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    transition: background-color 0.3s;
    z-index: 10;
}

.close-notice:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 头部 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 15px;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.05);
}

/* 搜索框 */
.search-box {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input-wrap {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    outline: none;
    transition: all 0.3s ease;
    font-size: 14px;
    background-color: #f8f9fa;
}

.search-input:focus {
    border-color: #007bff;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.search-input:focus + .search-suggestions {
    display: block;
}

.search-btn {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.search-btn:hover {
    background-color: #0056b3;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

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

/* 右侧操作区 */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 用户操作区 */
.user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 用户按钮样式 */
.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

/* 登录按钮样式 */
.login-btn {
    color: #007bff;
    background-color: transparent;
    border-color: #007bff;
}

.login-btn:hover {
    color: #fff;
    background-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

/* 注册按钮样式 */
.register-btn {
    color: #fff;
    background-color: #28a745;
    border-color: #28a745;
}

.register-btn:hover {
    background-color: #218838;
    border-color: #1e7e34;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

/* 按钮图标 */
.btn-icon {
    font-size: 16px;
    line-height: 1;
}

/* 按钮文字 */
.btn-text {
    white-space: nowrap;
}

/* 用户下拉菜单 */
.user-dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* 用户信息显示 */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    border-radius: 20px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.user-info:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 用户头像 */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #007bff;
    transition: all 0.3s ease;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.user-avatar:hover img {
    transform: scale(1.1);
}

/* 用户名称 */
.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    transition: all 0.3s ease;
}

/* 下拉箭头 */
.dropdown-arrow {
    font-size: 12px;
    color: #666;
    transition: all 0.3s ease;
    line-height: 1;
}

.user-info:hover .dropdown-arrow {
    transform: rotate(180deg);
    color: #007bff;
}

/* 下拉菜单样式 */
.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

/* 下拉菜单显示 */
.user-dropdown:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 下拉菜单列表 */
.user-dropdown-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 下拉菜单项 */
.user-dropdown-menu li {
    margin: 0;
    transition: all 0.3s ease;
}

/* 下拉菜单项链接 */
.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

/* 下拉菜单项链接图标 */
.user-dropdown-menu a span {
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

/* 下拉菜单项hover效果 */
.user-dropdown-menu li:hover {
    background-color: #f0f7ff;
    transform: translateX(4px);
}

.user-dropdown-menu li:hover a {
    color: #007bff;
    border-left-color: #007bff;
}

/* 购物车按钮 */
.cart-btn {
    position: relative;
    transition: all 0.3s ease;
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
}

.cart-link:hover {
    background-color: #f0f0f0;
    color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

/* 购物车图标 */
.cart-icon {
    font-size: 20px;
    line-height: 1;
}

/* 购物车数量 */
.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #dc3545;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    transition: all 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 右侧操作区 */
    .header-right {
        gap: 10px;
    }
    
    /* 用户按钮 */
    .user-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* 按钮文字 */
    .btn-text {
        /* display: none; */
    }
    
    /* 用户名称 */
    .user-name {
        display: none;
    }
    
    /* 下拉箭头 */
    .dropdown-arrow {
        display: none;
    }
    
    /* 用户信息 */
    .user-info {
        padding: 6px 12px;
    }
    
    /* 用户头像 */
    .user-avatar {
        width: 28px;
        height: 28px;
    }
    
    /* 下拉菜单 */
    .user-dropdown-menu {
        min-width: 160px;
        right: -20px;
    }
    
    /* 购物车链接 */
    .cart-link {
        padding: 8px;
    }
    
    /* 购物车图标 */
    .cart-icon {
        font-size: 18px;
    }
    
    /* 购物车数量 */
    .cart-count {
        min-width: 16px;
        height: 16px;
        font-size: 11px;
        line-height: 16px;
    }
}

@media (max-width: 480px) {
    /* 右侧操作区 */
    .header-right {
        gap: 8px;
    }
    
    /* 用户按钮 */
    .user-btn {
        padding: 5px 10px;
    }
    
    /* 用户头像 */
    .user-avatar {
        width: 26px;
        height: 26px;
    }
    
    /* 购物车链接 */
    .cart-link {
        padding: 6px;
    }
    
    /* 购物车图标 */
    .cart-icon {
        font-size: 16px;
    }
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.login-btn {
    color: #007bff;
    background-color: transparent;
    border: 1px solid #007bff;
}

.login-btn:hover {
    color: #fff;
    background-color: #007bff;
}

.register-btn {
    color: #fff;
    background-color: #28a745;
    border: 1px solid #28a745;
}

.register-btn:hover {
    background-color: #218838;
    border-color: #1e7e34;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

/* 购物车按钮 */
.cart-btn {
    position: relative;
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
}

.cart-link:hover {
    background-color: #f0f0f0;
    color: #007bff;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #dc3545;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* 导航 */
.nav {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    border-radius: 0 0 8px 8px;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0 15px;
    flex-wrap: nowrap;
    position: relative;
    z-index: 10;
}

.nav-item {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 2px;
    border-radius: 8px 8px 0 0;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.nav-item:hover::before,
.nav-item.active::before {
    transform: scaleX(1);
}

.nav-item.active {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 3px 0 rgba(255, 215, 0, 0.8);
}

.nav-link {
    display: block;
    padding: 18px 25px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 导航下划线效果 */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    z-index: 3;
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-item.active .nav-link::after {
    width: 60%;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

/* 下拉菜单 */
.sub-nav {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    list-style: none;
    display: none;
    min-width: 240px;
    z-index: 999;
    border-radius: 0 8px 8px 8px;
    overflow: hidden;
    animation: subNavFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e9ecef;
    border-top: none;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

@keyframes subNavFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }
}

.nav-item:hover .sub-nav {
    display: block;
}

.sub-nav-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sub-nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #007bff, #0056b3);
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.sub-nav-item:hover {
    background-color: #fff;
    transform: translateX(8px);
    box-shadow: 0 2px 12px rgba(0, 123, 255, 0.15);
}

.sub-nav-item:hover::before {
    transform: scaleY(1);
}

.sub-nav-link {
    display: block;
    padding: 14px 25px 14px 30px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 500;
    position: relative;
    letter-spacing: 0.3px;
}

.sub-nav-link::before {
    content: '→';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    color: #007bff;
    font-size: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sub-nav-link:hover {
    color: #007bff;
    background-color: transparent;
    font-weight: 600;
}

.sub-nav-item:hover .sub-nav-link::before {
    transform: translateY(-50%) scale(1);
    left: 16px;
}

/* 子导航项激活状态 */
.sub-nav-item.active {
    background-color: #f0f7ff;
    box-shadow: inset 3px 0 0 #007bff;
}

.sub-nav-item.active .sub-nav-link {
    color: #007bff;
    font-weight: 600;
    background-color: transparent;
}

.sub-nav-item.active .sub-nav-link::before {
    content: '→';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%) scale(1);
    color: #007bff;
    font-size: 12px;
}

/* 导航分隔线 */
.nav-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    opacity: 0.6;
}

/* 相关文章样式 */
.related-article {
    margin: 40px 0;
    padding: 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.related-article:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.related-article h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #495057;
    position: relative;
    padding-bottom: 12px;
    border-bottom: 2px solid #007bff;
    display: inline-block;
}

.related-article h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transition: width 0.3s ease;
}

.related-article:hover h3::after {
    width: 100%;
}

.related-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.related-item {
    margin: 12px 0;
    padding: 12px 16px;
    background-color: #fff;
    border-radius: 8px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.related-item:hover {
    border-left-color: #007bff;
    background-color: #f0f7ff;
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.15);
}

.related-link {
    display: block;
    color: #495057;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 20px;
}

.related-link::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: #007bff;
    font-weight: bold;
    transition: all 0.3s ease;
    transform: scale(0);
}

.related-item:hover .related-link::before {
    transform: scale(1);
    left: -8px;
}

.related-link:hover {
    color: #007bff;
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .related-article {
        margin: 30px 0;
        padding: 16px;
    }
    
    .related-article h3 {
        font-size: 18px;
    }
    
    .related-link {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .related-article {
        margin: 20px 0;
        padding: 12px;
    }
    
    .related-article h3 {
        font-size: 16px;
    }
    
    .related-link {
        font-size: 13px;
    }
}

/* 图片查看器样式 */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

.image-viewer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.image-viewer-container {
    position: relative;
    z-index: 10000;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-viewer-content {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    background-color: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.image-viewer-content img {
    max-width: 90vw;
    max-height: 90vh;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    transition: transform 0.2s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.image-viewer-container {
    cursor: grab;
}

.image-viewer-container:active {
    cursor: grabbing;
}

.image-viewer-close {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 36px;
    height: 36px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.image-viewer-close:hover {
    background-color: #ff4444;
    transform: scale(1.1);
}

.image-viewer-prev,
.image-viewer-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.image-viewer-prev {
    left: -60px;
}

.image-viewer-next {
    right: -60px;
}

.image-viewer-prev:hover,
.image-viewer-next:hover {
    background-color: #007bff;
    transform: translateY(-50%) scale(1.1);
}

.image-viewer-pagination {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-size: 14px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    margin: 0 auto;
}

/* 缩放控制按钮 */
.image-viewer-controls {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    z-index: 10001;
}

.image-viewer-controls button {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.image-viewer-controls button:hover {
    background-color: #007bff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.image-viewer-controls button:active {
    transform: scale(0.95);
}

.image-viewer-controls .zoom-reset {
    font-size: 14px;
    font-weight: 500;
    width: 50px;
}

/* 缩略图点击效果 */
.thumb-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumb-item:hover {
    transform: scale(1.05);
}

.main-img {
    cursor: pointer;
    transition: all 0.3s ease;
}

.main-img:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* 移动端导航切换按钮 - 重新设计 */
.mobile-nav-toggle {
    display: none;
    background: #007bff;
    border: 2px solid #fff;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    position: absolute;
    right: 20px;
    top: -140px;
    transform: translateY(-50%);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 确保在移动端显示 */
@media (max-width: 992px) {
    .mobile-nav-toggle {
        display: flex;
    }
    
    /* 确保PC端导航在移动端隐藏 */
    .nav-list {
        display: none;
    }
}

/* 移动端样式优化 */
@media (max-width: 768px) {
    .mobile-nav-toggle {
        right: 30px;
        width: 45px;
        height: 45px;
        background: #0056b3;
        border-color: rgba(255, 255, 255, 0.8);
        font-size: 20px;
    }
}

/* 小屏幕移动端进一步优化 */
@media (max-width: 480px) {
    .mobile-nav-toggle {
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* 悬停效果 */
.mobile-nav-toggle:hover {
    background-color: #0056b3;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

/* 点击效果 */
.mobile-nav-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

/* 图标样式 */
.toggle-icon {
    display: inline-block;
    font-size: 24px;
    color: #fff;
    transition: all 0.3s ease;
    line-height: 1;
    font-weight: bold;
}

/* 打开状态下的图标变化 */
.mobile-nav-toggle.active .toggle-icon {
    transform: rotate(90deg);
    font-size: 28px;
}

/* 确保在移动端导航按钮显示正确 */
.nav {
    position: relative;
}

/* 移动端导航菜单美化 */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 90%;
    max-width: 360px;
    height: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateX(100%);
    visibility: visible;
    opacity: 1;
    border-radius: 16px 0 0 16px;
}

.mobile-nav.active {
    transform: translateX(0);
    right: 0;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.25);
}

/* 添加导航背景遮罩 */
.mobile-nav::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
}

.mobile-nav.active::before {
    opacity: 1;
    visibility: visible;
}

/* 移动端导航头部美化 */
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 20px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.4);
    position: relative;
    border-radius: 16px 0 0 0;
    overflow: hidden;
}

.mobile-nav-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: headerGlow 6s ease-in-out infinite;
}

@keyframes headerGlow {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(360deg) scale(1.2); }
}

.mobile-logo img {
    height: 50px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    position: relative;
    z-index: 2;
}

.mobile-logo img:hover {
    transform: scale(1.1) rotate(5deg);
}

/* 关闭按钮美化 */
.mobile-nav-close {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    padding: 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mobile-nav-close:hover {
    background-color: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.3);
}

.mobile-nav-close:active {
    transform: rotate(180deg) scale(0.95);
}

/* 移动端导航内容区 */
.mobile-nav-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

/* 导航列表美化 */
.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 导航项美化 */
.mobile-nav-item {
    margin-bottom: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.mobile-nav-item:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #eef2ff 100%);
    transform: translateX(8px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.15);
    border-color: #dbeafe;
}

.mobile-nav-item.active {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 5px solid #007bff;
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.2);
}

/* 导航项头部 */
.mobile-nav-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
}

/* 导航链接美化 */
.mobile-nav-link {
    color: #1f2937;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 12px 20px;
    border-radius: 12px;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.mobile-nav-link:hover {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.mobile-nav-link:hover::before {
    left: 100%;
}

/* 子导航切换按钮美化 */
.mobile-sub-nav-toggle {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 1px solid #d1d5db;
    color: #4b5563;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    padding: 8px 12px;
    transition: all 0.3s ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mobile-sub-nav-toggle:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #007bff;
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 123, 255, 0.2);
    border-color: #93c5fd;
}

.mobile-sub-nav-toggle:active {
    transform: rotate(180deg) scale(0.95);
}

/* 子导航美化 */
.mobile-sub-nav {
    list-style: none;
    margin: 0;
    padding: 0 0 16px 24px;
    display: none;
    animation: subNavSlideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes subNavSlideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

.mobile-sub-nav.active {
    display: block;
}

/* 子导航项美化 */
.mobile-sub-nav-item {
    margin: 6px 0;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.mobile-sub-nav-item:hover {
    transform: translateX(8px);
    background: rgba(0, 123, 255, 0.05);
}

/* 子导航链接美化 */
.mobile-sub-nav-link {
    color: #4b5563;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 16px;
    border-radius: 8px;
    display: block;
    position: relative;
    background: #fff;
    border: 1px solid #f0f0f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mobile-sub-nav-link::before {
    content: '✨';
    position: absolute;
    left: -24px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    transition: all 0.3s ease;
    color: #007bff;
    font-size: 14px;
}

.mobile-sub-nav-link:hover {
    color: #007bff;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding-left: 20px;
    border-color: #bae6fd;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
}

.mobile-sub-nav-link:hover::before {
    transform: translateY(-50%) scale(1);
    left: -20px;
    animation: sparkle 0.6s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: translateY(-50%) scale(1) rotate(0deg); }
    50% { transform: translateY(-50%) scale(1.2) rotate(180deg); }
}

/* 滚动条美化 */
.mobile-nav-content::-webkit-scrollbar {
    width: 8px;
}

.mobile-nav-content::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 4px;
    margin: 10px 0;
}

.mobile-nav-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%);
    border-radius: 4px;
    border: 2px solid #f1f5f9;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.2);
}

.mobile-nav-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

.mobile-nav-content::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #64748b 0%, #475569 100%);
}

/* 移动端导航链接点击效果 */
.mobile-nav-link, .mobile-sub-nav-link {
    transition: all 0.3s ease;
}

.mobile-nav-link:active, .mobile-sub-nav-link:active {
    transform: scale(0.95);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .mobile-nav {
        width: 95%;
        max-width: 100%;
        border-radius: 0;
    }
    
    .mobile-nav-header {
        border-radius: 0;
    }
    
    .mobile-nav-item {
        margin: 0;
    }
    
    .mobile-nav-item:hover {
        transform: translateX(6px);
    }
    
    .mobile-nav-link {
        font-size: 15px;
    }
    
    .mobile-sub-nav-link {
        font-size: 14px;
        padding: 8px 14px;
    }
}

/* 移动端导航样式已在上方增强，此处删除重复定义 */

/* 轮播广告 */
.banner {
    width: 100%;
    overflow: hidden;
    background-color: #fff;
}

.banner-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.banner-item {
    flex: 0 0 100%;
}

.banner-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* 主内容 */
.main {
    padding: 20px 0;
}

/* 区块标题 */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, #007bff 0%, #0056b3 100%);
    border-radius: 12px 0 0 12px;
}

.section-title h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
    padding-left: 10px;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.more-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    background-color: #fff;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.more-link:hover {
    text-decoration: none;
    color: #007bff;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

/* 商品列表 */
.goods-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* 商品卡片 */
.goods-item {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid #e9ecef;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

.goods-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #6610f2, #dc3545, #ffc107, #28a745);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.goods-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 123, 255, 0.15);
    border-color: #007bff;
}

.goods-item:hover::before {
    transform: scaleX(1);
}

/* 商品图片 */
.goods-img {
    height: 240px;
    overflow: hidden;
    position: relative;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(135deg, #f0f4f8 0%, #e9ecef 100%);
}

.goods-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, rgba(0, 86, 179, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.goods-item:hover .goods-img::after {
    opacity: 1;
}

.goods-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.goods-item:hover .goods-img img {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1.05) contrast(1.05);
}

/* 商品标签 */
.goods-item::after {
    content: attr(data-type);
    position: absolute;
    top: -1px;
    right: -20px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 24px;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    z-index: 10;
}

.recommend-section .goods-item::after {
    background: linear-gradient(135deg, #007bff, #0056b3);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    content: '推荐';
}

.new-section .goods-item::after {
    background: linear-gradient(135deg, #28a745, #218838);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    content: '新品';
}

.hot-section .goods-item::after {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
    content: '热门';
}

.goods-item:hover::after {
    opacity: 1;
}

/* 商品信息 */
.goods-info {
    padding: 22px;
    position: relative;
}

/* 商品标题 */
.goods-title {
    font-size: 18px;
    margin-bottom: 16px;
    line-height: 1.5;
    position: relative;
}

.goods-title a {
    color: #333;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.goods-title a:hover {
    color: #007bff;
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.2);
}

/* 商品价格 */
.goods-price {
    margin-bottom: 18px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.price {
    color: #dc3545;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(220, 53, 69, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.price::before {
    content: '';
    font-size: 16px;
    vertical-align: top;
    opacity: 0.8;
}

.free {
    color: #28a745;
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(40, 167, 69, 0.1);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #28a745, #20c997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.goods-item:hover .price,
.goods-item:hover .free {
    transform: scale(1.05);
}

/* 商品元数据 */
.goods-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #666;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.goods-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.goods-meta span::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #007bff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.goods-item:hover .goods-meta {
    color: #007bff;
    border-color: rgba(0, 123, 255, 0.2);
}

.goods-item:hover .goods-meta span::before {
    background: #007bff;
    transform: scale(1.5);
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.4);
}

/* 商品区块特有样式 */
.recommend-section,
.new-section,
.hot-section,
.article-section {
    margin-bottom: 30px;
    padding: 30px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.recommend-section:hover,
.new-section:hover,
.hot-section:hover,
.article-section:hover {
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.1);
}

/* 移除重复的响应式样式，统一在下面的响应式区块中管理 */

/* 文章列表 */
.article-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    overflow: hidden;
}

.article-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* 防止页面横向溢出 */
body {
    overflow-x: hidden;
}

main {
    overflow-x: hidden;
}

.article-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.article-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.article-title a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.article-title a:hover {
    color: #007bff;
}

.article-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.article-desc {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    width: 100%;
}

.read-more {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
}

.read-more:hover {
    text-decoration: underline;
}

/* 文章元数据修复 */
.article-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
    flex-wrap: wrap;
    width: 100%;
    word-break: break-word;
}

.article-meta span {
    display: inline-block;
    white-space: nowrap;
    word-break: break-word;
}

/* 修复移动端布局 */
@media (max-width: 768px) {
    .article-meta {
        gap: 10px;
        font-size: 11px;
    }
    
    .article-meta span {
        flex: 1;
        min-width: auto;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* 筛选栏 */
.filter-bar {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.filter-bar form {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-item select,
.filter-item input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s;
}

.filter-item select:focus,
.filter-item input:focus {
    border-color: #007bff;
}

.filter-btn {
    padding: 8px 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.filter-btn:hover {
    background-color: #0056b3;
}

/* 分页 */
.page-bar {
    margin-top: 30px;
    text-align: center;
}

.page-bar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.page-bar li {
    display: inline-block;
    margin: 0;
}

.page-bar a {
    display: inline-block;
    padding: 8px 16px;
    margin: 0;
    border: 1px solid #e9ecef;
    color: #6c757d;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #fff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.page-bar a:hover,
.page-bar .current,
.paginate_button.active a {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    transform: translateY(-1px);
}

.page-bar a.disabled,
.page-bar a.disabled:hover {
    background-color: #f8f9fa;
    color: #6c757d;
    border-color: #dee2e6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.page-bar li:first-child a,
.page-bar li:last-child a {
    font-weight: 600;
}

.page-bar li:nth-child(2) a,
.page-bar li:nth-last-child(2) a {
    font-weight: 600;
}

/* 最近订单列表 */
.recent-orders {
    padding: 10px 0;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
}

.orders-table thead {
    background-color: #007bff;
    color: #fff;
}

.orders-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0px;
    border-bottom: 0px solid #e9ecef;
}

.orders-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    color: #495057;
}

.orders-table tbody tr {
    transition: all 0.3s ease;
}

.orders-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.orders-table tbody tr:last-child td {
    border-bottom: none;
}

.orders-table .order-status {
    font-weight: 500;
}

.orders-table .order-status:contains('待付款') {
    color: #ffc107;
}

.orders-table .order-status:contains('已付款') {
    color: #28a745;
}

.orders-table .order-status:contains('已发货') {
    color: #17a2b8;
}

.orders-table .order-status:contains('已完成') {
    color: #6c757d;
}

.orders-table .order-status:contains('已取消') {
    color: #dc3545;
}

.orders-table .order-amount {
    font-weight: 600;
    color: #dc3545;
}

.orders-table .order-action {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.orders-table .order-action .btn {
    margin: 0;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.orders-table .order-action .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.orders-table .no-data {
    text-align: center;
}

/* 最近订单 - 响应式设计 */
@media (max-width: 768px) {
    .recent-orders {
        padding: 8px 0;
    }
    
    .orders-table {
        margin-bottom: 10px;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .orders-table th {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .orders-table .order-action {
        gap: 6px;
    }
    
    .orders-table .order-action .btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .view-more .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .orders-table {
        font-size: 12px;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .orders-table th {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    .orders-table .order-id {
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .orders-table .order-time {
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .orders-table .order-action {
        flex-direction: column;
        gap: 4px;
    }
    
    .orders-table .order-action .btn {
        padding: 4px 8px;
        font-size: 10px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .view-more {
        text-align: center;
    }
    
    .view-more .btn {
        padding: 5px 10px;
        font-size: 11px;
        width: 100%;
    }
}
    border-bottom: none;
}

.recent-orders .view-more {
    text-align: right;
}

.recent-orders .view-more .btn {
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.recent-orders .view-more .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* 滑出动画 */
@keyframes slideOut {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* 最近收藏列表 */
.recent-collects-container {
    padding: 10px 0;
}

.recent-collect-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recent-collect-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.recent-collect-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #007bff;
}

.recent-collect-img {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
    border: 1px solid #e9ecef;
}

.recent-collect-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recent-collect-item:hover .recent-collect-img img {
    transform: scale(1.05);
}

.recent-collect-info {
    flex: 1;
    min-width: 0;
}

.recent-collect-title {
    font-size: 14px;
    font-weight: 500;
    color: #343a40;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-collect-price {
    font-size: 16px;
    font-weight: 600;
    color: #dc3545;
    margin-bottom: 8px;
}

.recent-collect-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.recent-collect-actions .btn {
    margin: 0;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.recent-collect-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.recent-no-data {
    text-align: center;
    padding: 30px 0;
    color: #6c757d;
    font-style: italic;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.recent-view-more {
    text-align: right;
    margin-top: 15px;
}

.recent-view-more .btn {
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.recent-view-more .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* 订单详情页 */
.order-basic-info,
.order-goods-info,
.order-amount-info,
.order-actions {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.order-basic-info:hover,
.order-goods-info:hover,
.order-amount-info:hover,
.order-actions:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.order-basic-info h3,
.order-goods-info h3,
.order-amount-info h3,
.order-actions h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #343a40;
    padding-bottom: 8px;
    border-bottom: 2px solid #007bff;
    display: inline-block;
}

/* 订单信息网格 */
.order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.order-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.order-info-item:hover {
    background-color: #e3f2fd;
    border-color: #bbdefb;
}

.order-info-label {
    font-weight: 500;
    color: #6c757d;
    font-size: 14px;
}

.order-info-value {
    color: #343a40;
    font-weight: 500;
    font-size: 14px;
}

.order-info-value a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.order-info-value a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 订单商品信息 */
.order-goods-list {
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.order-goods-item {
    display: flex;
    align-items: center;
    padding: 12px;
    transition: all 0.3s ease;
}

.order-goods-item:hover {
    background-color: #f8f9fa;
}

.order-goods-img {
    width: 80px;
    height: 80px;
    margin-right: 15px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    flex-shrink: 0;
}

.order-goods-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.order-goods-img img:hover {
    transform: scale(1.05);
}

.order-goods-detail {
    flex: 1;
    min-width: 0;
}

.order-goods-title {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.order-goods-title a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.order-goods-title a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.order-goods-price {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #dc3545;
}

.order-goods-quantity {
    font-size: 14px;
    color: #6c757d;
}

/* 订单商品信息 - 响应式设计 */
@media (max-width: 768px) {
    .order-goods-info,
    .order-amount-info,
    .order-actions {
        margin-bottom: 15px;
        padding: 12px;
    }
    
    .order-goods-info h3,
    .order-amount-info h3,
    .order-actions h3 {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .order-goods-item {
        padding: 10px;
    }
    
    .order-goods-img {
        width: 70px;
        height: 70px;
        margin-right: 12px;
    }
    
    .order-goods-title {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .order-goods-price {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .order-goods-quantity {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .order-goods-info,
    .order-amount-info,
    .order-actions {
        margin-bottom: 12px;
        padding: 10px;
    }
    
    .order-goods-info h3,
    .order-amount-info h3,
    .order-actions h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .order-goods-item {
        padding: 8px;
    }
    
    .order-goods-img {
        width: 60px;
        height: 60px;
        margin-right: 10px;
    }
    
    .order-goods-title {
        font-size: 13px;
        margin-bottom: 5px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .order-goods-price {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .order-goods-quantity {
        font-size: 12px;
    }
    
    /* 确保商品详情区域不会溢出 */
    .order-goods-detail {
        max-width: calc(100% - 70px);
    }
}

/* 订单列表页面样式 */
.order-goods {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.order-goods .goods-item {
    display: flex;
    align-items: center;
    width: 100%;
}

.order-goods .goods-img {
    width: 60px;
    height: 60px;
    margin-right: 12px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.order-goods .goods-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-goods .goods-info {
    flex: 1;
    min-width: 0;
}

.order-goods .goods-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-goods .goods-title a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.order-goods .goods-title a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.order-goods .goods-price {
    font-size: 14px;
    font-weight: 600;
    color: #dc3545;
    margin-right: 12px;
}

.order-goods .goods-quantity {
    font-size: 13px;
    color: #6c757d;
}

/* 订单列表 - 移动端样式 */
@media (max-width: 480px) {
    .order-goods {
        padding: 8px 0;
    }
    
    .order-goods .goods-img {
        width: 50px;
        height: 50px;
        margin-right: 10px;
    }
    
    .order-goods .goods-info {
        display: none;
    }
    
    .order-goods .goods-price {
        font-size: 13px;
        margin-right: 8px;
    }
    
    .order-goods .goods-quantity {
        font-size: 12px;
    }
}

/* 订单金额信息 */
.order-amount-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #fff;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.order-amount-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.order-amount-item:hover {
    background-color: #f8f9fa;
}

.order-amount-item.total {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 2px solid #e9ecef;
    font-size: 16px;
    font-weight: 600;
}

.order-amount-label {
    font-weight: 500;
    color: #6c757d;
}

.order-amount-value {
    color: #343a40;
    font-weight: 500;
}

.order-amount-item.total .order-amount-value {
    color: #dc3545;
    font-size: 18px;
}

/* 订单操作按钮 */
.order-actions-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.order-actions-buttons .btn {
    margin: 0;
    transition: all 0.3s ease;
    padding: 8px 20px;
    font-weight: 500;
}

.order-actions-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* 商品详情 */
.goods-detail-page {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

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

.goods-gallery {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.main-img {
    height: 400px;
    overflow: hidden;
    margin-bottom: 10px;
}

.main-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumb-list {
    display: flex;
    gap: 10px;
    padding: 0 10px 10px;
    overflow-x: auto;
}

.thumb-item {
    flex: 0 0 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s;
}

.thumb-item:hover,
.thumb-item.active {
    border-color: #007bff;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.goods-info h1 {
    font-size: 24px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.goods-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #666;
    padding: 15px 15px 0px 15px;
    margin-bottom: 20px;
}

.goods-price-section {
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.price,
.cost {
    margin-bottom: 10px;
}

.price-label,
.cost-label {
    font-size: 16px;
    color: #666;
    margin-right: 10px;
    font-weight: 700;
}

.price-value {
    font-size: 28px;
    color: #dc3545;
    font-weight: 600;
}

.free-value {
    font-size: 24px;
    color: #28a745;
    font-weight: 600;
}

.cost-value {
    font-size: 18px;
    color: #ffc107;
    font-weight: 600;
}
.goods-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}
/* 自定义弹窗样式 */
.custom-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-alert.active {
    opacity: 1;
}

.custom-alert-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: overlayFadeIn 0.4s ease;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(4px);
    }
}

.custom-alert-content {
    position: relative;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 420px;
    animation: alertSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
    border: none;
    transform: perspective(1000px) rotateX(0deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-alert-content:hover {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
}

@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: perspective(1000px) rotateX(10deg) translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: perspective(1000px) rotateX(0deg) translateY(0) scale(1);
    }
}

.custom-alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.custom-alert-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: headerGlow 8s ease-in-out infinite;
}

@keyframes headerGlow {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(360deg) scale(1.5);
    }
}

.custom-alert-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 弹窗标题图标 */
.custom-alert-title::before {
    content: '';
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    vertical-align: middle;
}

.custom-alert.success .custom-alert-title::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'%3E%3C/path%3E%3Cpolyline points='22 4 12 14.01 9 11.01'%3E%3C/polyline%3E%3C/svg%3E");
}

.custom-alert.error .custom-alert-title::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='15' y1='9' x2='9' y2='15'%3E%3C/line%3E%3Cline x1='9' y1='9' x2='15' y2='15'%3E%3C/line%3E%3C/svg%3E");
}

.custom-alert.warning .custom-alert-title::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
}

.custom-alert.info .custom-alert-title::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='16' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'%3E%3C/line%3E%3C/svg%3E");
}

.custom-alert-close {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    font-weight: 300;
}

.custom-alert-close:hover {
    background-color: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.custom-alert-close:active {
    transform: rotate(90deg) scale(0.95);
}

.custom-alert-body {
    padding: 32px 28px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.custom-alert-message {
    margin: 0;
    font-size: 18px;
    color: #333;
    line-height: 1.6;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.custom-alert-footer {
    display: flex;
    justify-content: center;
    padding: 0 28px 28px;
    gap: 16px;
}

.custom-alert-btn {
    padding: 12px 36px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.custom-alert-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.custom-alert-btn:hover::before {
    left: 100%;
}

.custom-alert-confirm {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    border: 2px solid transparent;
}

.custom-alert-confirm:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.4);
    border-color: #0056b3;
}

.custom-alert-btn:active {
    transform: translateY(-1px);
}

.custom-alert-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* 弹窗成功样式 */
.custom-alert.success .custom-alert-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.custom-alert.success .custom-alert-confirm {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
}

.custom-alert.success .custom-alert-confirm:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    box-shadow: 0 8px 24px rgba(40, 167, 69, 0.4);
}

/* 弹窗错误样式 */
.custom-alert.error .custom-alert-header {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
}

.custom-alert.error .custom-alert-confirm {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.custom-alert.error .custom-alert-confirm:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71d2a 100%);
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.4);
}

/* 弹窗警告样式 */
.custom-alert.warning .custom-alert-header {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.custom-alert.warning .custom-alert-confirm {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
}

.custom-alert.warning .custom-alert-confirm:hover {
    background: linear-gradient(135deg, #e0a800 0%, #d39e00 100%);
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.4);
}

/* 弹窗信息样式 */
.custom-alert.info .custom-alert-header {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
}

.custom-alert.info .custom-alert-confirm {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.custom-alert.info .custom-alert-confirm:hover {
    background: linear-gradient(135deg, #138496 0%, #0c5460 100%);
    box-shadow: 0 8px 24px rgba(23, 162, 184, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .custom-alert-content {
        margin: 20px;
        max-width: calc(100% - 40px);
        border-radius: 12px;
    }
    
    .custom-alert-header {
        padding: 20px 24px;
    }
    
    .custom-alert-title {
        font-size: 18px;
    }
    
    .custom-alert-body {
        padding: 24px 20px;
    }
    
    .custom-alert-message {
        font-size: 16px;
    }
    
    .custom-alert-footer {
        padding: 0 20px 24px;
    }
    
    .custom-alert-btn {
        padding: 10px 28px;
        font-size: 14px;
    }
}

/* 商品详情页面 */
.goods-detail-page {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.down-btn,
.demo-btn,
.collect-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    gap: 8px;
}

.collect-btn {
    background-color: #fff;
    color: #ffc107;
    border: 2px solid #ffc107;
}

.collect-btn:hover {
    background-color: #ffc107;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.collect-btn.collected {
    background-color: #ffc107;
    color: #fff;
}

.collect-btn.collected:hover {
    background-color: #e0a800;
    border-color: #e0a800;
}

.collect-icon {
    font-size: 18px;
    line-height: 1;
    transition: all 0.3s;
}

.collect-btn:hover .collect-icon {
    transform: scale(1.2);
}

.collect-btn.collected .collect-icon {
    transform: scale(1.2);
}

.down-btn {
    background-color: #dc3545;
    color: #fff;
}

.down-btn:hover {
    background-color: #c82333;
}

.demo-btn {
    background-color: #28a745;
    color: #fff;
}

.demo-btn:hover {
    background-color: #218838;
}

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

.tag {
    padding: 5px 12px;
    background-color: #f0f0f0;
    color: #666;
    border-radius: 15px;
    font-size: 12px;
}

/* 详情标签页 */
.detail-tabs {
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

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

.tab-item {
    margin-right: 20px;
}

.tab-link {
    display: block;
    padding: 10px 0;
    color: #666;
    text-decoration: none;
    font-size: 16px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.tab-link:hover,
.tab-item.active .tab-link {
    color: #007bff;
    border-bottom-color: #007bff;
}

.tab-content {
    padding: 20px 0;
}

.tab-pane {
    display: none;
    padding-top: 280px; /* 导航栏高度 */
    margin-top: -280px; /* 抵消padding带来的影响 */
}

.tab-pane.active {
    display: block;
}

.detail-content {
    line-height: 1.8;
    color: #333;
}

.detail-content img {
    max-width: 100%;
    height: auto;
    margin: 0;
}

/* 相关商品 */
.related-goods {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.related-goods h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
    display: inline-block;
}

.related-goods-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
}

.related-goods-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

.related-goods-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 123, 255, 0.15);
    border-color: #007bff;
}

.related-goods-img {
    height: 180px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f0f4f8 0%, #e9ecef 100%);
}

.related-goods-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.related-goods-item:hover .related-goods-img img {
    transform: scale(1.1);
}

.related-goods-info {
    padding: 15px;
}

.related-goods-title {
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: 500;
}

.related-goods-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-goods-title a:hover {
    color: #007bff;
}

.related-goods-price {
    margin-bottom: 10px;
}

/* 相关商品响应式样式 */
@media (max-width: 768px) {
    .related-goods-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .related-goods-img {
        height: 140px;
    }
    
    .related-goods-info {
        padding: 12px;
    }
    
    .related-goods-title {
        font-size: 13px;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .related-goods-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .related-goods-img {
        height: 120px;
    }
    
    .related-goods-info {
        padding: 10px;
    }
    
    .related-goods-title {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .related-goods h3 {
        font-size: 18px;
    }
}

/* 文章详情 */
.article-detail-page {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

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

.article-body {
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}

.article-body p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    margin: 25px 0 15px;
    font-weight: 600;
    line-height: 1.3;
}

.article-body h1 {
    font-size: 28px;
    color: #2c3e50;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.article-body h2 {
    font-size: 24px;
    color: #34495e;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
}

.article-body h3 {
    font-size: 20px;
    color: #455a64;
}

.article-body h4 {
    font-size: 18px;
    color: #546e7a;
}

.article-body h5 {
    font-size: 16px;
    color: #607d8b;
}

.article-body h6 {
    font-size: 14px;
    color: #78909c;
}

.article-body img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-body a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-body a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.article-body ul,
.article-body ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.article-body li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.article-body ul li {
    list-style-type: disc;
}

.article-body ol li {
    list-style-type: decimal;
}

/* 代码块样式 */
.article-body pre {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
}

.article-body pre::before {
    content: '代码';
    position: absolute;
    top: 10px;
    right: 100px;
    font-size: 12px;
    color: #888;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

/* 复制按钮样式 */
.copy-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    padding: 4px 12px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.copy-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.copy-btn.copied {
    background-color: #4CAF50;
    color: white;
}

.copy-btn.copied::after {
    content: '已复制';
    position: absolute;
    top: -30px;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

.copy-btn.copied::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0, 0, 0, 0.8);
}

.article-body pre code {
    background-color: transparent;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
    border: none;
    display: block;
}

.article-body code {
    background-color: #f0f0f0;
    color: #e74c3c;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    white-space: nowrap;
}

/* 引用样式 */
.article-body blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #6c757d;
}

.article-body blockquote p {
    margin-bottom: 0;
}

/* 表格样式 */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.article-body th,
.article-body td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.article-body th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.article-body tr:last-child td {
    border-bottom: none;
}

.article-body tr:hover {
    background-color: #f8f9fa;
}

/* 代码块响应式样式 */
@media (max-width: 768px) {
    .article-body pre {
        padding: 15px;
        font-size: 13px;
    }
    
    .article-body pre::before {
        display: none;
    }
    
    .article-body code {
        font-size: 12px;
    }
    
    .article-body h1 {
        font-size: 24px;
    }
    
    .article-body h2 {
        font-size: 20px;
    }
    
    .article-body h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .article-body pre {
        padding: 12px;
        font-size: 12px;
    }
    
    .article-body p {
        font-size: 15px;
    }
    
    .article-body h1 {
        font-size: 22px;
    }
    
    .article-body h2 {
        font-size: 18px;
    }
    
    .article-body h3 {
        font-size: 16px;
    }
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.tag-item {
    display: inline-block;
    padding: 8px 15px;
    background-color: #e9ecef;
    color: #666;
    border-radius: 15px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 4px 6px 4px 0;
}

.tag-item:hover {
    background-color: #007bff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    text-decoration: none;
}

.tag-item:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

/* 评论区 */
.comments-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.no-comments {
    text-align: center;
    padding: 40px 0;
    color: #999;
    background-color: #f8f9fa;
    border-radius: 8px;
}

/* 无搜索结果样式 */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
}

.no-results:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #007bff;
}

.no-results::before {
    content: "🔍";
    display: block;
    font-size: 48px;
    margin-bottom: 20px;
    color: #6c757d;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.no-results p {
    margin: 10px 0;
    color: #495057;
    font-size: 16px;
    line-height: 1.6;
}

.no-results p:first-of-type {
    font-weight: 600;
    font-size: 18px;
    color: #343a40;
}

.no-results p:last-of-type {
    color: #6c757d;
    font-size: 14px;
}

/* 分类页面 */
.cate-page {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.page-title {
    margin-bottom: 30px;
    text-align: center;
}

.page-title h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.cate-desc {
    color: #666;
    font-size: 16px;
}

.cate-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.sub-cate {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.sub-cate h3 {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.sub-cate-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.sub-cate-item {
    margin-bottom: 0;
    flex: 0 0 auto;
}

.sub-cate-item a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 8px 16px;
    border-radius: 20px;
    background-color: #f0f0f0;
    font-size: 14px;
    border: 1px solid transparent;
}

.sub-cate-item a:hover {
    color: #007bff;
    background-color: #e9ecef;
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

/* 下载页面 */
.download-page {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px; */
    min-height: calc(100vh - 200px);
}

.download-page .container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.download-title {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.download-title h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 700;
}

.download-title p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.download-info-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    padding: 40px;
    background: #fff;
    align-items: start;
}

.download-info {
    background: linear-gradient(135deg, #f8f9ff 0%, #eef2ff 100%);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e0e7ff;
}

.download-goods-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
}

.download-goods-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.download-goods-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    background: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.download-goods-meta span:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.download-goods-price {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.download-goods-price .price-label {
    font-size: 16px;
    color: #666;
    font-weight: 500;
    margin-right: 15px;
}

.download-goods-price .price-value {
    font-size: 28px;
    color: #dc3545;
    font-weight: 700;
}

.download-goods-price .free-value {
    font-size: 24px;
    color: #28a745;
    font-weight: 700;
}

.download-goods-desc {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.download-goods-desc h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.download-goods-desc p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.download-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 280px;
}

.download-btn, .back-btn {
    display: inline-block;
    padding: 16px 32px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.download-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
    font-size: 18px;
    padding: 20px 32px;
}

.download-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.3);
    text-decoration: none;
    color: #fff;
}

.download-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.back-btn {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: #fff;
}

.back-btn:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(108, 117, 125, 0.3);
    text-decoration: none;
    color: #fff;
}

.back-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.2);
}

.download-notes {
    padding: 40px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.download-notes h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-notes h3::before {
    content: "📝";
    font-size: 24px;
}

.download-notes ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.download-notes li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #dcfce7;
    transition: all 0.3s ease;
}

.download-notes li:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #22c55e;
}

.download-notes li::before {
    content: "✅";
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    color: #22c55e;
}

.download-notes li p {
    margin: 0;
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

/* 相关商品 */
.related-goods {
    padding: 40px;
    background: #fff;
}

.related-goods h3 {
    font-size: 20px;
    margin-bottom: 25px;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-goods h3::before {
    content: "📦";
    font-size: 24px;
}

.related-goods-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.related-goods-item {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid #e9ecef;
}

.related-goods-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 123, 255, 0.15);
    border-color: #007bff;
}

.related-goods-img {
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f4f8 0%, #e9ecef 100%);
    position: relative;
}

.related-goods-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.related-goods-item:hover .related-goods-img img {
    transform: scale(1.1);
}

.related-goods-info {
    padding: 20px;
}

.related-goods-title {
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 500;
    line-height: 1.4;
    height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-goods-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-goods-title a:hover {
    color: #007bff;
}

.related-goods-price {
    font-size: 18px;
    font-weight: 700;
}

.related-goods-price .price {
    color: #dc3545;
}

.related-goods-price .free {
    color: #28a745;
    background: linear-gradient(135deg, #28a745, #20c997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .download-info-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px;
    }
    
    .download-actions {
        grid-column: 1;
    }
    
    .download-notes ul {
        grid-template-columns: 1fr;
    }
    
    .related-goods-list {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .download-page {
        padding: 20px 10px;
    }
    
    .download-title {
        padding: 30px 20px;
    }
    
    .download-title h1 {
        font-size: 24px;
    }
    
    .download-info-card {
        padding: 20px;
    }
    
    .download-info {
        padding: 20px;
    }
    
    .download-goods-title {
        font-size: 20px;
    }
    
    .download-goods-meta {
        gap: 12px;
    }
    
    .download-goods-meta span {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .download-actions {
        min-width: auto;
    }
    
    .download-btn, .back-btn {
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .download-notes, .related-goods {
        padding: 30px 20px;
    }
    
    .related-goods-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .download-title h1 {
        font-size: 20px;
    }
    
    .download-goods-title {
        font-size: 18px;
    }
    
    .download-btn {
        font-size: 14px;
    }
    
    .related-goods-list {
        grid-template-columns: 1fr;
    }
    
    .download-notes ul {
        gap: 10px;
    }
    
    .download-notes li {
        padding: 12px;
    }
}

/* 底部 */
.footer {
    background: linear-gradient(135deg, #343a40 0%, #212529 100%);
    color: #fff;
    padding: 40px 0;
    margin-top: 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 模板文件中的footer结构 */
.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #6610f2);
    border-radius: 2px;
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    display: inline-block;
    position: relative;
    padding-left: 10px;
}

.footer-col ul li a::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scale(0);
    transition: all 0.3s ease;
    color: #007bff;
    font-size: 12px;
}

.footer-col ul li a:hover {
    color: #007bff;
    padding-left: 15px;
}

.footer-col ul li a:hover::before {
    transform: translateY(-50%) scale(1);
    left: 5px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #adb5bd;
    font-size: 14px;
    margin-bottom: 10px;
}

.contact-list li::before {
    content: '📧';
    font-size: 16px;
}

.contact-list li:nth-child(2)::before {
    content: '📞';
}

.contact-list li:nth-child(3)::before {
    content: '📍';
}

/* Application/Home/View/Public/footer.html的结构 */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-info {
    grid-column: span 1;
}

.footer-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, #007bff 0%, #6610f2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-info p {
    color: #adb5bd;
    line-height: 1.6;
    font-size: 14px;
    margin: 0;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 600;
    position: relative;
    padding-bottom: 8px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #6610f2);
    border-radius: 1px;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    display: inline-block;
    position: relative;
    padding-left: 15px;
}

.footer-links ul li a::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #007bff;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: #007bff;
    transform: translateX(5px);
}

.footer-links ul li a:hover::before {
    transform: translateY(-50%) scale(1.2);
    color: #6610f2;
}

.footer-contact ul li {
    color: #adb5bd;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact ul li::before {
    content: '📧';
    font-size: 16px;
    color: #007bff;
}

.footer-contact ul li:nth-child(2)::before {
    content: '📞';
}

.footer-contact ul li:nth-child(3)::before {
    content: '📍';
}

/* 底部版权信息 */
.footer-bottom {
    border-top: 1px solid #495057;
    padding-top: 20px;
    text-align: center;
    color: #adb5bd;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
}

.copyright {
    margin-bottom: 10px;
}

.links a {
    color: #adb5bd;
    text-decoration: none;
    margin: 0 10px;
    transition: all 0.3s ease;
    font-size: 14px;
    position: relative;
}

.links a:hover {
    color: #007bff;
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .footer-info h3 {
        font-size: 20px;
    }
    
    .footer-links, .footer-contact {
        text-align: center;
    }
    
    .footer-links h4::after, .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links ul li a {
        padding-left: 0;
    }
    
    .footer-links ul li a::before {
        display: none;
    }
    
    .footer-contact ul li {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 15px;
    }
    
    .footer-content {
        gap: 20px;
    }
    
    .footer-info h3 {
        font-size: 18px;
    }
    
    .footer-links h4, .footer-contact h4 {
        font-size: 15px;
    }
    
    .footer-links ul li, .footer-contact ul li {
        margin-bottom: 8px;
        font-size: 13px;
    }
    
    .footer-info p {
        font-size: 13px;
    }
    
    .footer-bottom p {
        font-size: 13px;
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .search-box {
        max-width: 400px;
    }
    
    /* 商品列表 */
    .goods-list {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
    }
    
    .goods-img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    /* 顶部通知栏 */
    .notice-wrapper {
        gap: 10px;
        padding-right: 35px;
    }

    .notice-icon {
        font-size: 16px;
    }

    .notice-scroll-container {
        height: 22px;
    }

    .notice-item p {
        font-size: 12px;
        line-height: 22px;
    }

    .close-notice {
        font-size: 18px;
        width: 22px;
        height: 22px;
        line-height: 22px;
    }

    /* 头部布局 */
    .header-top {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 12px 15px;
    }
    
    /* 搜索框 */
    .search-box {
        margin: 0;
        max-width: 100%;
        width: 100%;
    }
    
    .search-form {
        width: 100%;
    }
    
    .search-input {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .search-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    /* 右侧操作区 */
    .header-right {
        gap: 15px;
    }
    
    .user-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .btn-text {
        /* display: none; */
    }
    
    .cart-icon {
        font-size: 18px;
    }
    
    /* 区块标题 */
    .section-title {
        padding: 12px 15px;
        margin-bottom: 20px;
    }
    
    .section-title h2 {
        font-size: 20px;
    }
    
    /* 商品区块 */
    .recommend-section,
    .new-section,
    .hot-section,
    .article-section {
        margin-bottom: 30px;
        padding: 20px;
    }
    
    /* 底部响应式设计 */
    .footer {
        padding: 30px 15px;
        margin-top: 20px;
    }
    
    .footer-top {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .footer-col h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .footer-col ul li {
        margin-bottom: 8px;
    }
    
    .footer-col ul li a {
        font-size: 13px;
    }
    
    .contact-list li {
        gap: 8px;
        font-size: 13px;
    }
    
    .footer-bottom {
        padding-top: 15px;
    }
    
    .copyright p {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .links a {
        margin: 0 6px;
        font-size: 12px;
        display: inline-block;
        margin-bottom: 8px;
    }
    
    /* 商品列表 */
    .goods-list {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 15px;
    }
    
    /* 商品卡片 */
    .goods-img {
        height: 180px;
    }
    
    .goods-info {
        padding: 18px;
    }
    
    .goods-title {
        font-size: 16px;
    }
    
    /* 商品价格 */
    .price {
        font-size: 20px;
    }
    
    .free {
        font-size: 18px;
    }
    
    /* 商品详情 */
    .goods-basic {
        grid-template-columns: 1fr;
    }
    
    /* 分类页面 */
    .cate-content {
        grid-template-columns: 1fr;
    }
    
    /* 筛选栏 */
    .filter-bar form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-item {
        justify-content: space-between;
    }
    
    /* 区块间距 */
    .article-section,
    .goods-section {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    /* 顶部通知栏 */
    .top-notice {
        padding: 8px 0;
    }

    .notice-wrapper {
        gap: 8px;
        padding-right: 30px;
    }

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

    .notice-scroll-container {
        height: 20px;
    }

    .notice-item p {
        font-size: 11px;
        line-height: 20px;
    }

    .close-notice {
        font-size: 16px;
        width: 20px;
        height: 20px;
        line-height: 20px;
    }

    /* 头部 */
    .header-top {
        padding: 10px 15px;
        gap: 10px;
    }
    
    .logo img {
        height: 40px;
    }
    
    /* 搜索框 */
    .search-btn .search-text {
        display: none;
    }
    
    .search-btn {
        padding: 10px 15px;
    }
    
    /* 商品区块 */
    .recommend-section,
    .new-section,
    .hot-section,
    .article-section {
        margin-bottom: 25px;
        padding: 15px;
    }
    
    /* 底部响应式设计 */
    .footer {
        padding: 25px 10px;
        margin-top: 15px;
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .footer-col h3 {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .footer-col ul li {
        margin-bottom: 6px;
    }
    
    .footer-col ul li a {
        font-size: 12px;
    }
    
    .contact-list li {
        gap: 6px;
        font-size: 12px;
        flex-wrap: wrap;
    }
    
    .footer-bottom {
        padding-top: 12px;
    }
    
    .copyright p {
        font-size: 11px;
        margin-bottom: 6px;
        line-height: 1.4;
    }
    
    .links a {
        margin: 0 4px 6px;
        font-size: 11px;
    }
    
    /* 商品列表 */
    .goods-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* 商品卡片 */
    .goods-img {
        height: 220px;
    }
    
    .goods-item::after {
        opacity: 1;
        right: -20px;
        padding: 3px 18px;
        font-size: 10px;
    }
    
    /* 商品信息 */
    .goods-info {
        padding: 15px;
    }
    
    .goods-title {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .price {
        font-size: 20px;
    }
    
    .free {
        font-size: 18px;
    }
    
    /* 商品操作按钮 */
    .goods-actions {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .down-btn,
    .demo-btn,
    .collect-btn {
        width: 100%;
    }
    
    /* 移动端导航 */
    .mobile-nav {
        width: 100%;
    }
    
    /* 文章列表 */
    .article-item {
        padding: 12px;
    }
    
    .article-title {
        font-size: 16px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

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

/* 评论区样式 */
.comments-section {
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.comments-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.comment-stats {
    display: flex;
    gap: 30px;
    align-items: center;
}

.avg-score,
.total-comments {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.score-value {
    font-size: 32px;
    font-weight: 700;
    color: #ffc107;
    text-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

.score-label,
.count-label {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

.count-value {
    font-size: 24px;
    font-weight: 700;
    color: #007bff;
}

/* 评论表单 */
.comment-form-container {
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef2ff 100%);
    border-radius: 10px;
    border: 1px solid #dbeafe;
}

.comment-form-container h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #007bff;
    display: inline-block;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    resize: vertical;
    outline: none;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* 评分星级 */
.star-rating {
    display: flex;
    gap: 5px;
    cursor: pointer;
}

.star-rating .star {
    font-size: 32px;
    color: #dee2e6;
    transition: all 0.2s ease;
    user-select: none;
}

.star-rating .star.active {
    color: #ffc107;
    text-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

.star-rating .star:hover {
    transform: scale(1.2);
}

/* 匿名评论复选框 */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #007bff;
}

.checkbox-label span {
    font-size: 14px;
    color: #495057;
}

/* 提交按钮 */
.btn-submit {
    padding: 12px 32px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    align-self: flex-start;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* 评论列表 */
.comments-list {
    margin-bottom: 20px;
}

.loading {
    text-align: center;
    padding: 40px 0;
    color: #6c757d;
    font-size: 14px;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.comment-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #007bff;
}

.comment-avatar {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.comment-nickname {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.comment-stars {
    display: flex;
    gap: 2px;
}

.comment-stars .star {
    font-size: 16px;
    color: #dee2e6;
}

.comment-stars .star.active {
    color: #ffc107;
}

.comment-time {
    font-size: 13px;
    color: #6c757d;
}

.comment-text {
    font-size: 14px;
    line-height: 1.6;
    color: #495057;
    word-wrap: break-word;
}

/* 评论分页 */
.comments-pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.page-link {
    padding: 8px 16px;
    border: 1px solid #e9ecef;
    background: #fff;
    color: #6c757d;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-link:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.page-link.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .comments-section {
        padding: 20px;
        margin-top: 20px;
    }

    .comments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .comments-header h3 {
        font-size: 20px;
    }

    .comment-stats {
        gap: 20px;
    }

    .score-value {
        font-size: 28px;
    }

    .count-value {
        font-size: 20px;
    }

    .comment-form-container {
        padding: 20px;
    }

    .comment-form-container h4 {
        font-size: 16px;
    }

    .comment-item {
        padding: 15px;
        gap: 12px;
    }

    .comment-avatar {
        width: 45px;
        height: 45px;
    }

    .comment-nickname {
        font-size: 14px;
    }

    .comment-text {
        font-size: 13px;
    }

    .btn-submit {
        width: 100%;
    }
}

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

    .comments-header h3 {
        font-size: 18px;
    }

    .comment-stats {
        gap: 15px;
    }

    .score-value {
        font-size: 24px;
    }

    .count-value {
        font-size: 18px;
    }

    .comment-form-container {
        padding: 15px;
    }

    .star-rating .star {
        font-size: 28px;
    }

    .comment-item {
        padding: 12px;
        gap: 10px;
    }

    .comment-avatar {
        width: 40px;
        height: 40px;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .comment-stars .star {
        font-size: 14px;
    }

    .page-link {
        padding: 8px 20px;
        font-size: 13px;
    }
}

/* 文章评论样式 */
.article-detail-page .comment-form-container {
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef2ff 100%);
    border-radius: 10px;
    border: 1px solid #dbeafe;
}

.article-detail-page .comment-form-container h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #007bff;
    display: inline-block;
}

.article-detail-page .comment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-detail-page .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-detail-page .form-label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.article-detail-page .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    resize: vertical;
    outline: none;
}

.article-detail-page .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.article-detail-page .btn-submit {
    padding: 12px 32px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    align-self: flex-start;
}

.article-detail-page .btn-submit:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.article-detail-page .btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.article-detail-page .comments-list {
    margin-bottom: 20px;
}

.article-detail-page .loading {
    text-align: center;
    padding: 40px 0;
    color: #6c757d;
    font-size: 14px;
}

.article-detail-page .comment-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.article-detail-page .comment-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #007bff;
}

.article-detail-page .comment-avatar {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.article-detail-page .comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-detail-page .comment-content {
    flex: 1;
    min-width: 0;
}

.article-detail-page .comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.article-detail-page .comment-nickname {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.article-detail-page .comment-time {
    font-size: 13px;
    color: #6c757d;
}

.article-detail-page .comment-text {
    font-size: 14px;
    line-height: 1.6;
    color: #495057;
    word-wrap: break-word;
}

.article-detail-page .comments-pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.article-detail-page .pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.article-detail-page .page-link {
    padding: 8px 16px;
    border: 1px solid #e9ecef;
    background: #fff;
    color: #6c757d;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.article-detail-page .page-link:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.article-detail-page .page-link.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-detail-page .comment-form-container {
        padding: 20px;
    }

    .article-detail-page .comment-form-container h4 {
        font-size: 16px;
    }

    .article-detail-page .comment-item {
        padding: 15px;
        gap: 12px;
    }

    .article-detail-page .comment-avatar {
        width: 45px;
        height: 45px;
    }

    .article-detail-page .comment-nickname {
        font-size: 14px;
    }

    .article-detail-page .comment-text {
        font-size: 13px;
    }

    .article-detail-page .btn-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .article-detail-page .comment-form-container {
        padding: 15px;
    }

    .article-detail-page .comment-form-container h4 {
        font-size: 15px;
    }

    .article-detail-page .comment-item {
        padding: 12px;
        gap: 10px;
    }

    .article-detail-page .comment-avatar {
        width: 40px;
        height: 40px;
    }

    .article-detail-page .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-detail-page .page-link {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* 登录提示样式 */
.login-required-notice {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border-radius: 10px;
    border: 2px dashed #ffc107;
}

.login-icon {
    font-size: 48px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.login-required-notice h5 {
    font-size: 20px;
    font-weight: 600;
    color: #856404;
    margin: 0 0 10px 0;
}

.login-required-notice p {
    font-size: 14px;
    color: #856404;
    margin: 0 0 25px 0;
}

.login-required-notice .btn-login,
.login-required-notice .btn-register {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 8px;
    cursor: pointer;
    border: none;
}

.login-required-notice .btn-login {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.login-required-notice .btn-login:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.login-required-notice .btn-register {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.login-required-notice .btn-register:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-required-notice {
        padding: 30px 20px;
    }

    .login-icon {
        font-size: 40px;
        margin-bottom: 15px;
    }

    .login-required-notice h5 {
        font-size: 18px;
    }

    .login-required-notice p {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .login-required-notice .btn-login,
    .login-required-notice .btn-register {
        padding: 10px 24px;
        font-size: 14px;
        margin: 5px;
        display: block;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .login-required-notice {
        padding: 25px 15px;
    }

    .login-icon {
        font-size: 36px;
        margin-bottom: 12px;
    }

    .login-required-notice h5 {
        font-size: 16px;
    }

    .login-required-notice p {
        font-size: 12px;
        margin-bottom: 15px;
    }

    .login-required-notice .btn-login,
    .login-required-notice .btn-register {
        padding: 8px 20px;
        font-size: 13px;
    }
}

/* 浮动客服样式 */
.floating-kefu {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
}

.floating-kefu .kefu-toggle {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    padding: 15px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.floating-kefu .kefu-toggle:hover {
    transform: translateX(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.floating-kefu .kefu-content {
    position: absolute;
    right: 100%;
    top: 0;
    margin-right: 10px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 20px;
    min-width: 380px;
    max-height: 265px;
    overflow-y: auto;
    overflow-x: hidden;
    display: none;
    border: 1px solid rgba(0, 123, 255, 0.1);
}

/* 自定义滚动条样式 */
.floating-kefu .kefu-content::-webkit-scrollbar {
    width: 6px;
}

.floating-kefu .kefu-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.floating-kefu .kefu-content::-webkit-scrollbar-thumb {
    background: rgba(0, 123, 255, 0.3);
    border-radius: 3px;
}

.floating-kefu .kefu-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 123, 255, 0.5);
}

/* 手机端客服弹窗头部 */
.floating-kefu .kefu-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin: -20px -20px 20px -20px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    border-radius: 12px 12px 0 0;
}

.floating-kefu .kefu-title {
    font-size: 18px;
    font-weight: 600;
}

.floating-kefu .kefu-close {
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0 5px;
    transition: transform 0.3s ease;
}

.floating-kefu .kefu-close:hover {
    transform: scale(1.1);
}

.floating-kefu .kefu-content > ul {
    margin-top: 0;
}

.floating-kefu .kefu-content.show {
    display: block;
}

.floating-kefu .kefu-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.floating-kefu .kefu-content > ul > li {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 20px;
}

.floating-kefu .kefu-content > ul > li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

/* 确保第一条客服数据可见 */
.floating-kefu .kefu-content > ul > li {
    min-height: 220px;
}

.floating-kefu .kefu-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.floating-kefu .kefu-contact {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex-wrap: wrap;
}

.floating-kefu .contact-item {
    flex: 1;
    min-width: 120px;
}

.floating-kefu .contact-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 150px;
}

.floating-kefu .contact-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.floating-kefu .kefu-qq {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #007bff;
    text-decoration: none;
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.08) 0%, rgba(0, 86, 179, 0.08) 100%);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.floating-kefu .kefu-qq:hover {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.floating-kefu .kefu-phone {
    display: inline-block;
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.08) 0%, rgba(33, 136, 56, 0.08) 100%);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.floating-kefu .kefu-wechat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.08) 0%, rgba(0, 150, 136, 0.08) 100%);
    border-radius: 10px;
    border: 1px solid rgba(0, 200, 83, 0.15);
}

.floating-kefu .wechat-img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    border: 2px solid #007bff;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.floating-kefu .wechat-img:hover {
    transform: scale(1.05);
}

.floating-kefu .wechat-tip {
    font-size: 12px;
    color: #666;
    text-align: center;
    padding: 4px 8px;
    background: rgba(0, 123, 255, 0.08);
    border-radius: 4px;
    font-weight: 500;
}

/* 响应式设计 - 浮动客服 */
@media (max-width: 768px) {
    .floating-kefu {
        right: 10px;
    }

    .floating-kefu .kefu-content {
        right: 100%;
        margin-right: 8px;
        min-width: 320px;
        max-width: 90vw;
        max-height: 380px;
        padding: 15px;
    }

    .floating-kefu .kefu-toggle {
        padding: 12px 10px;
        font-size: 13px;
    }

    .floating-kefu .kefu-contact {
        flex-direction: column;
    }

    .floating-kefu .contact-left,
    .floating-kefu .contact-right {
        width: 100%;
        min-width: auto;
    }

    .floating-kefu .wechat-img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .floating-kefu {
        right: 10px;
        bottom: 70px;
        top: auto;
        transform: none;
    }

    .floating-kefu .kefu-toggle {
        padding: 12px 15px;
        font-size: 13px;
        border-radius: 25px;
        background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    }

    .floating-kefu .kefu-toggle:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
    }

    .floating-kefu .kefu-content {
        position: fixed;
        right: 0;
        left: 0;
        bottom: 0;
        top: auto;
        width: 100%;
        max-width: 100%;
        margin: 0;
        max-height: 75vh;
        border-radius: 25px 25px 0 0;
        padding: 0;
        z-index: 99999;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
        background: #fff;
    }

    .floating-kefu .kefu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 25px;
        background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
        color: #fff;
        border-radius: 25px 25px 0 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .floating-kefu .kefu-title {
        font-size: 20px;
        font-weight: 700;
        letter-spacing: 0.5px;
    }

    .floating-kefu .kefu-close {
        font-size: 32px;
        line-height: 1;
        cursor: pointer;
        padding: 5px;
        transition: all 0.3s ease;
        opacity: 0.9;
    }

    .floating-kefu .kefu-close:hover {
        transform: rotate(90deg) scale(1.1);
        opacity: 1;
    }

    .floating-kefu .kefu-content > ul {
        padding: 20px 25px;
        margin-top: 0;
    }

    .floating-kefu .kefu-content > ul > li {
        margin-bottom: 25px;
        padding-bottom: 25px;
        border-bottom: 2px solid rgba(0, 123, 255, 0.1);
    }

    .floating-kefu .kefu-content > ul > li:last-child {
        margin-bottom: 0;
        padding-bottom: 10px;
        border-bottom: none;
    }

    .floating-kefu .kefu-name {
        font-size: 16px;
        font-weight: 700;
        color: #333;
        margin-bottom: 15px;
        padding-bottom: 12px;
        border-bottom: 3px solid #007bff;
        display: inline-block;
    }

    .floating-kefu .kefu-contact {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .floating-kefu .contact-left,
    .floating-kefu .contact-right {
        width: 100%;
        min-width: auto;
    }

    .floating-kefu .contact-item {
        margin-bottom: 0;
    }

    .floating-kefu .kefu-qq,
    .floating-kefu .kefu-phone {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 15px;
        padding: 12px 18px;
        font-weight: 600;
        border-radius: 12px;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .floating-kefu .kefu-qq {
        background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 86, 179, 0.1) 100%);
        color: #007bff;
        border: 2px solid rgba(0, 123, 255, 0.3);
    }

    .floating-kefu .kefu-qq:hover {
        background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    }

    .floating-kefu .kefu-phone {
        background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(33, 136, 56, 0.1) 100%);
        color: #28a745;
        border: 2px solid rgba(40, 167, 69, 0.3);
    }

    .floating-kefu .kefu-wechat {
        padding: 15px;
        background: linear-gradient(135deg, rgba(0, 200, 83, 0.08) 0%, rgba(0, 150, 136, 0.08) 100%);
        border-radius: 15px;
        border: 2px solid rgba(0, 200, 83, 0.2);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .floating-kefu .wechat-img {
        width: 110px;
        height: 110px;
        border-radius: 12px;
        border: 3px solid #007bff;
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
        transition: all 0.3s ease;
    }

    .floating-kefu .wechat-img:hover {
        transform: scale(1.08);
        box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
    }

    .floating-kefu .wechat-tip {
        font-size: 13px;
        color: #007bff;
        text-align: center;
        padding: 8px 15px;
        background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 86, 179, 0.1) 100%);
        border-radius: 20px;
        font-weight: 600;
        margin-top: 10px;
    }

    /* 自定义滚动条 */
    .floating-kefu .kefu-content::-webkit-scrollbar {
        width: 6px;
    }

    .floating-kefu .kefu-content::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
    }

    .floating-kefu .kefu-content::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #007bff 0%, #0056b3 100%);
        border-radius: 3px;
    }
}