/* 基础样式重置和变量 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5aa0;
    --secondary-color: #1e3a8a;
    --accent-color: #3b82f6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --sidebar-width: 280px;
    --header-height: 70px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    height: var(--header-height);
    box-shadow: var(--shadow-lg);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 1rem 0 0;
    max-width: 1400px;
    margin: 0 auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.header-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.header-btn i {
    font-size: 1.1rem;
}

/* 移动端操作菜单按钮 */
.mobile-actions-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.mobile-actions-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-actions-btn.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent-color);
}

/* 移动端操作菜单 */
.mobile-actions-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
}

.mobile-actions-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.mobile-action-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.mobile-action-item:first-child {
    border-radius: 8px 8px 0 0;
}

.mobile-action-item:last-child {
    border-radius: 0 0 8px 8px;
    border-bottom: none;
}

.mobile-action-item:hover {
    background: var(--bg-secondary);
}

.mobile-action-item i {
    font-size: 1.1rem;
    color: var(--accent-color);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.language-selector-mobile {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
}

.language-selector-mobile i {
    margin-bottom: 0;
    font-size: 1.1rem;
    color: var(--accent-color);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.language-select-mobile {
    flex: 1;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    outline: none;
}

.language-select-mobile:focus {
    border-color: var(--accent-color);
}



.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
    margin-left: 5px;
}

.brand-logo i {
    color: #60a5fa;
    font-size: 1.5rem;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
}

.brand-text h1 {
    font-size: 1.8rem;
    margin: 0;
    line-height: 1.2;
}

.tagline {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
    text-align: left;
    line-height: 1;
}

.header-actions .btn-contact {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-actions .btn-contact:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 语言选择器样式 */
.language-selector {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-icon {
    color: white;
    font-size: 1.1rem;
    pointer-events: none;
}

.language-select {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
    min-width: 120px;
    backdrop-filter: blur(10px);
}

.language-select:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.language-select:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.language-select option {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 0.5rem;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Segoe UI Emoji", "Apple Color Emoji", Roboto, Helvetica, Arial, sans-serif;
}

/* 主要内容区域 */
.main-content {
    display: flex;
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    max-width: 1400px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    padding: 0 1rem;
}

/* 侧边栏样式 */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    min-height: calc(100vh - var(--header-height));
    position: absolute;
    left: 0;
    top: 0;
    z-index: 900;
    transform: translateX(0);
    transition: transform 0.3s ease;
}
 
.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
}

.sidebar-header h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

/* 分类列表 */
.category-list {
    padding: 1rem 0;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.7rem 2rem;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    color: var(--text-primary);
    font-size: 0.95rem;
    position: relative;
}

.category-item-content {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.category-item-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.category-item.has-children .category-item-right:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.category-item.has-children {
    font-weight: 500;
}

/* 添加主分类的悬停效果 */
.category-item.has-children:hover {
    transform: translateX(2px);
}

.category-item:hover {
    background: var(--bg-secondary);
    border-left-color: var(--accent-color);
}

.category-item.active {
    background: rgba(59, 130, 246, 0.1);
    border-left-color: var(--accent-color);
    color: var(--accent-color);
    font-weight: 600;
}

.category-item-content i {
    width: 24px;
    font-size: 1.1rem;
    text-align: center;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.category-item .count {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.category-item.active .count {
    background: var(--accent-color);
    color: white;
}

/* 展开/折叠图标 */
.category-item .expand-icon {
    width: 16px;
    height: 16px;
    font-size: 0.75rem;
    opacity: 0.5;
    transition: all 0.3s ease;
    flex-shrink: 0;
    transform: rotate(0deg);
}

.category-item.has-children .expand-icon {
    opacity: 0.6;
}

/* 展开状态 - 箭头旋转90度 */
.category-item.expanded .expand-icon {
    transform: rotate(90deg);
}

/* hover 状态增强箭头可见性 */
.category-item.has-children:hover .expand-icon {
    opacity: 0.8;
}

/* 占位符，用于对齐没有子分类的菜单 */
.expand-icon-placeholder {
    width: 16px;
    height: 16px;
    display: inline-block;
    flex-shrink: 0;
}

/* 子分类样式 */
.sub-category-list {
    background: rgba(0, 0, 0, 0.02);
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
    transform-origin: top;
}

/* 禁用动画（用于避免重新渲染时的抖动） */
.category-list.no-animation .sub-category-list {
    animation: none;
}

.category-list.no-animation .category-item.sub-category {
    animation: none;
}

.category-item.sub-category {
    padding-left: 3.5rem;
    font-size: 0.875rem;
    border-left-width: 2px;
    animation: fadeIn 0.3s ease-out;
}

.category-item.sub-category:hover {
    background: rgba(59, 130, 246, 0.05);
}

.category-item.sub-category.active {
    background: rgba(59, 130, 246, 0.15);
}

/* 展开动画 */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: scaleY(0.95);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: scaleY(1);
    }
}

/* 淡入动画（用于子分类项） */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 侧边栏筛选 */
.sidebar-filters {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.sidebar-filters h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group label {
    display: block;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.filter-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.filter-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.search-box {
    position: relative;
}

.search-clear {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: none;
}

.search-clear:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.search-clear.show {
    display: block;
}

.filter-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0 !important;
}

.filter-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    margin-right: 0.75rem;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: white;
    display: inline-block;
}

.filter-label input:checked + .checkmark {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.filter-label input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

.filter-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* 内容区域 */
.content-area {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 1.5rem 0 1.5rem 1.5rem;
    min-height: calc(100vh - var(--header-height));
    width: calc(100% - var(--sidebar-width));
    max-width: calc(100% - var(--sidebar-width));
    overflow-x: hidden;
}

/* 产品容器 */
.products-container {
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 2rem;
}

.products-header {
    margin-bottom: 1.5rem;
}

/* 公告跑马灯 */
.announcement-banner {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.announcement-banner:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.announcement-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.announcement-icon {
    margin-right: 1rem;
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

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

.announcement-content {
    flex: 1;
    overflow: hidden;
    height: 24px;
    position: relative;
}

.announcement-text {
    display: flex;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}

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

.announcement-item {
    margin-right: 3rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.announcement-close {
    margin-left: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 公告弹窗 */
.announcement-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.announcement-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-modal .modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease-out;
}

.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.announcement-notice {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.announcement-notice:hover {
    border-color: var(--accent-color);
    background: rgba(59, 130, 246, 0.02);
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.notice-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.notice-tag.hot {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
}

.notice-tag.sale {
    background: linear-gradient(45deg, #ffa726, #ff7043);
    color: white;
}

.notice-tag.info {
    background: linear-gradient(45deg, #42a5f5, #1e88e5);
    color: white;
}

.notice-tag.vip {
    background: linear-gradient(45deg, #ab47bc, #8e24aa);
    color: white;
}

.notice-tag.update {
    background: linear-gradient(45deg, #66bb6a, #43a047);
    color: white;
}

.notice-header h4 {
    flex: 1;
    color: var(--text-primary);
    margin: 0;
    font-size: 1.1rem;
}

.notice-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.announcement-notice p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.results-info {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* 产品卡片 */
.product-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), #60a5fa);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e74c3c !important;
    white-space: nowrap;
}

.product-price .currency {
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 3px;
}

.product-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.product-stock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-secondary);
    justify-content: flex-start;
}

.product-actions {
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

.btn-buy {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    max-width: 120px;
    white-space: nowrap;
    font-size: 0.85rem;
    line-height: 1;
}

.btn-buy:hover:not(.disabled) {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-buy.disabled {
    background: #6b7280;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-buy.disabled:hover {
    transform: none;
    box-shadow: none;
}

.product-footer .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
    white-space: nowrap;
}

.product-features {
    margin-bottom: 1rem;
}

.feature-tag {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin: 0.25rem 0.25rem 0.25rem 0;
    font-weight: 500;
}

.product-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e74c3c !important;
}

.product-stock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.stock-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.stock-badge.in-stock {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.stock-badge.out-of-stock {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.stock-badge.low-stock {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.product-actions {
    display: flex;
    gap: 0.75rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    flex: 1;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-primary:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: white;
}

/* 移动端遮罩 */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 850;
    backdrop-filter: blur(4px);
}

/* 联系客服弹窗 */
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.contact-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.contact-option:hover {
    border-color: var(--accent-color);
    background: rgba(59, 130, 246, 0.05);
}

.contact-option i {
    font-size: 1.5rem;
    color: var(--accent-color);
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}

.contact-option div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-option span {
    font-weight: 600;
    color: var(--text-primary);
}

.contact-option small {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.service-hours {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.service-hours p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.service-hours i {
    color: var(--accent-color);
}

/* 帮助文档弹窗 */
.help-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.help-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 大尺寸模态框 */
.help-modal-large {
    max-width: 1200px !important;
    width: 95% !important;
    max-height: 85vh !important;
    height: 700px;
}

/* 帮助文档模态框主体 */
.help-modal-body {
    display: flex;
    padding: 0 !important;
    height: calc(100% - 60px);
    overflow: hidden;
}

/* 左侧边栏 */
.help-sidebar {
    width: 320px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
}

.help-sidebar-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    background: white;
}

.help-sidebar-header i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* 帮助菜单 */
.help-menu {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.help-menu-item {
    padding: 0.875rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    border-bottom: 1px solid var(--border-color);
}

.help-menu-item:hover {
    background: rgba(59, 130, 246, 0.05);
    border-left-color: var(--accent-color);
}

.help-menu-item.active {
    background: rgba(59, 130, 246, 0.1);
    border-left-color: var(--accent-color);
    font-weight: 600;
    color: var(--accent-color);
}

.help-menu-item i {
    flex-shrink: 0;
    font-size: 1rem;
    color: var(--accent-color);
}

.help-menu-item span {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* 右侧内容区域 */
.help-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    overflow: hidden;
}

/* 占位符 */
.help-content-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    padding: 2rem;
}

.help-content-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
    color: var(--accent-color);
}

.help-content-placeholder p {
    font-size: 1.1rem;
    opacity: 0.7;
}

/* 详情内容 */
.help-content-detail {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.help-detail-title {
    padding: 1.5rem 2rem;
    margin: 0;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.help-detail-title::before {
    content: '\f059';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-color);
    font-size: 1.3rem;
}

.help-detail-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* 富文本内容样式 */
.help-detail-content h1,
.help-detail-content h2,
.help-detail-content h3,
.help-detail-content h4 {
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.help-detail-content h1 { font-size: 1.5rem; }
.help-detail-content h2 { font-size: 1.3rem; }
.help-detail-content h3 { font-size: 1.15rem; }
.help-detail-content h4 { font-size: 1rem; }

.help-detail-content p {
    margin-bottom: 1rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.help-detail-content ul,
.help-detail-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.help-detail-content li {
    margin-bottom: 0.5rem;
}

.help-detail-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.help-detail-content code {
    background: var(--bg-secondary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.help-detail-content pre {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.help-detail-content a {
    color: var(--accent-color);
    text-decoration: none;
}

.help-detail-content a:hover {
    text-decoration: underline;
}

/* 自定义滚动条 */
.help-menu::-webkit-scrollbar,
.help-detail-content::-webkit-scrollbar {
    width: 8px;
}

.help-menu::-webkit-scrollbar-track,
.help-detail-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.help-menu::-webkit-scrollbar-thumb,
.help-detail-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.help-menu::-webkit-scrollbar-thumb:hover,
.help-detail-content::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Header 按钮样式 */
.header-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(59, 130, 246, 0.05);
}

.header-btn i {
    font-size: 1rem;
}

/* 页脚 */
.footer {
    background: var(--text-primary);
    color: white;
    /* margin-top: 4rem; */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul li i {
    color: var(--accent-color);
    width: 16px;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding: 1rem 0;
    text-align: center;
    color: var(--text-secondary);
}

/* 响应式设计 */
@media (min-width: 1400px) {
    .main-content {
        padding: 0 2rem;
    }
    
    /* .content-area {
        padding: 1.5rem 2rem 1.5rem 1.5rem;
    } */

    .language-select {
        margin-right: 16px;
    }
}

@media (max-width: 1024px) {
    :root {
        --sidebar-width: 260px;
    }
    
    .main-content {
        padding: 0 0.5rem;
    }
    
    .content-area {
        padding: 1.5rem 0.5rem 1.5rem 1.5rem;
        width: calc(100% - var(--sidebar-width));
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    /* 移动端隐藏桌面版header按钮，显示移动菜单按钮 */
    .header-btn,
    .language-selector {
        display: none;
    }
    
    .mobile-actions-btn {
        display: block;
    }
    
    .mobile-actions-menu {
        display: block;
    }
    
    .main-content {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
    }
    
    .sidebar {
        position: fixed;
        top: var(--header-height);
        left: 0;
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
        height: calc(100vh - var(--header-height));
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-close {
        display: block;
    }
    
    .mobile-overlay.show {
        display: block;
    }
    
    .content-area {
        margin-left: 0;
        padding: 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    .header-content {
        padding: 0 1rem;
    }
    
    .brand-text h1 {
        font-size: 1.5rem;
    }
    
    .brand-logo {
        width: 2rem;
        height: 2rem;
    }
    
    .brand-logo i {
        font-size: 1.2rem;
    }
    
    .brand-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 4px;
    }
    
    .tagline {
        display: none;
    }
    
    /* 语言选择器在移动端的调整 */
    .language-select {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        min-width: 100px;
    }
    
    .products-container {
        padding: 1rem;
    }
    
    .products-header {
        margin-bottom: 1rem;
    }
    
    .announcement-banner {
        padding: 0.75rem;
    }
    
    .announcement-icon {
        margin-right: 0.75rem;
        font-size: 1rem;
    }
    
    .announcement-item {
        font-size: 0.9rem;
        margin-right: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-card {
        padding: 1rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .announcement-modal .modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .notice-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    /* 帮助文档移动端样式 */
    .help-modal-large {
        width: 100% !important;
        height: 100% !important;
        max-height: 100vh !important;
        border-radius: 0;
    }
    
    .help-modal-body {
        flex-direction: column;
    }
    
    .help-sidebar {
        width: 100%;
        max-height: 40%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .help-content-area {
        height: 60%;
    }
}

@media (max-width: 480px) {
    .content-area {
        padding: 0.5rem 0 0.5rem 0.5rem;
    }
    
    .products-container {
        padding: 0.75rem;
    }
    
    .products-header {
        margin-bottom: 0.75rem;
    }
    
    .announcement-banner {
        padding: 0.5rem;
    }
    
    .announcement-icon {
        margin-right: 0.5rem;
        font-size: 0.9rem;
    }
    
    .announcement-item {
        font-size: 0.85rem;
        margin-right: 1.5rem;
    }
    
    .product-card {
        padding: 0.75rem;
    }
    
    .header-content {
        padding: 0 0.75rem;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }
    
    .announcement-notice {
        padding: 1rem;
    }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--border-color);
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    grid-column: 1 / -1;
}

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

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

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

.sidebar::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* 动画增强 */
.category-item {
    position: relative;
    overflow: hidden;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-item:hover::before {
    left: 100%;
}

.product-card {
    position: relative;
    overflow: hidden;
}

.product-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-color), #60a5fa, var(--accent-color));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.product-card:hover::after {
    opacity: 0.1;
}

/* 成功/错误消息 */
.message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideInRight 0.3s ease-out;
}

.message.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 消息提示动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes scaleIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 打印样式 */
@media print {
    .sidebar,
    .mobile-menu-btn,
    .mobile-overlay,
    .header-actions {
        display: none !important;
    }
    
    .content-area {
        margin-left: 0 !important;
    }
    
    .product-card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
}