/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    position: relative;
    padding-bottom: 100px;
}

/* 颜色变量 */
:root {
    --primary-color: #0066cc;
    --secondary-color: #004080;
    --accent-color: #ff6600;
    --text-color: #333333;
    --light-text: #666666;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

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

/* 头部样式 */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logo h1 {
    font-size: 28px;
    font-weight: bold;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-item i {
    font-size: 18px;
}

.contact-item a {
    color: white;
    text-decoration: none;
}

/* 导航样式 */
nav {
    background-color: var(--secondary-color);
    border-radius: 5px;
    padding: 0 20px;
}

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

.nav-list li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    white-space: nowrap;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-list li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 搜索框样式 */
.search-container {
    margin: 20px 0;
    text-align: center;
}

.search-box {
    display: inline-flex;
    max-width: 600px;
    width: 100%;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--primary-color);
    border-radius: 5px 0 0 5px;
    font-size: 16px;
}

.search-button {
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: var(--secondary-color);
}

.search-suggestions {
    margin-top: 10px;
    font-size: 14px;
    color: var(--light-text);
}

/* 侧边栏样式 */
#sidebar-container {
    display: block;
}

/* 左侧导航菜单 */
.sidebar-nav {
    position: fixed;
    left: 20px;
    top: 200px;
    width: 200px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.sidebar-title {
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px 8px 0 0;
}

.sidebar-title h3 {
    margin: 0;
    font-size: 16px;
}

.sidebar-content {
    padding: 10px 0;
}

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

.sidebar-list li {
    border-bottom: 1px solid var(--border-color);
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list li a {
    display: block;
    padding: 12px 15px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-list li a:hover {
    background-color: var(--primary-color);
    color: white;
    padding-left: 20px;
}

/* 导航栏样式 */
.nav-breadcrumb {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 0;
    margin-bottom: 20px;
}

.nav-breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.nav-breadcrumb a {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-breadcrumb a:hover {
    color: #003d82;
    text-decoration: underline;
}

.nav-breadcrumb > div > *:last-child {
    color: #6c757d;
    font-weight: 500;
}

/* 固定联系方式和侧栏功能样式 - 美化版 */
.fixed-contact-sidebar {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-item {
    position: relative;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: none;
    font-size: 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* 电话按钮样式 */
.phone-link {
    background: linear-gradient(135deg, #28a745, #218838);
}

.phone-link:hover {
    background: linear-gradient(135deg, #218838, #28a745);
}

/* 微信按钮样式 */
.wechat-link {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.wechat-link:hover {
    background: linear-gradient(135deg, #128c7e, #25d366);
}

/* 复制成功时的按钮动画效果 */
.wechat-link.copied {
    animation: copiedEffect 1s ease-in-out;
}

@keyframes copiedEffect {
    0% { transform: scale(1); }
    50% { transform: scale(1.2) rotate(10deg); }
    100% { transform: scale(1); }
}

/* 首页按钮样式 */
.home-link {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.home-link:hover {
    background: linear-gradient(135deg, #138496, #17a2b8);
}

/* 联系我们按钮样式 */
.card-link {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.card-link:hover {
    background: linear-gradient(135deg, #e0a800, #ffc107);
}

/* 回到顶部按钮样式 */
.scroll-top {
    background: linear-gradient(135deg, #6c757d, #5a6268);
}

.scroll-top:hover {
    background: linear-gradient(135deg, #5a6268, #6c757d);
}

/* 通用悬停效果 */
.sidebar-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.sidebar-link i {
    transition: transform 0.3s ease;
    z-index: 2;
}

.sidebar-link:hover i {
    transform: scale(1.2);
}

/* 添加悬停时的波纹效果 */
.sidebar-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 1;
}

.sidebar-link:hover::after {
    width: 120%;
    height: 120%;
}

/* 回到顶部按钮的透明度过渡 */
.scroll-top {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 联系我们弹出按钮 */
.contact-toggle-btn {
    position: fixed;
    top: 200px;
    left: 0;
    width: 50px;
    height: 50px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 8px rgba(0, 123, 255, 0.3);
}

.contact-toggle-btn:hover {
    background-color: #0056b3;
    transform: translateX(5px);
}

.contact-toggle-btn i {
    transition: transform 0.3s ease;
}

/* 联系方式弹出卡片 */
.contact-float-card {
    position: fixed;
    top: 200px;
    left: -300px;
    background-color: white;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
    width: 280px;
    z-index: 9998;
    border: 1px solid #e0e0e0;
    transition: left 0.3s ease;
}

.contact-float-card.active {
    left: 0;
}

.contact-float-card h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.contact-item i {
    color: #007bff;
    font-size: 16px;
    min-width: 20px;
    text-align: center;
    margin-top: 2px;
}

/* 关闭按钮 */
.contact-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background-color: #f8f9fa;
    color: #6c757d;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-close-btn:hover {
    background-color: #e9ecef;
    color: #495057;
}

/* 主内容样式 */
main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
}

/* 卡片样式 */
.card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 100%;
}

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

.card-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.card-content {
    color: var(--text-color);
}

/* 分类网格样式 */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.category-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text-color);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: var(--primary-color);
    color: white;
}

.category-card i {
    font-size: 40px;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* 产品列表样式 */
.products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text-color);
}

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

.product-card h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* 右侧浮动工具栏 */
.float-toolbar {
    position: fixed;
    right: 20px;
    top: 200px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.toolbar-items {
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.toolbar-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    background-color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.toolbar-item:last-child {
    margin-bottom: 0;
}

.toolbar-item:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.toolbar-item:hover i {
    color: white;
}

.toolbar-item i {
    font-size: 18px;
    color: var(--primary-color);
    transition: color 0.3s;
}

.toolbar-item .tooltip {
    position: absolute;
    right: 100%;
    margin-right: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.toolbar-item:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* 回到顶部按钮 */
.scroll-top {
    position: fixed;
    right: 20px;
    bottom: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 100;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--hover-color);
    transform: translateY(-3px);
}

.scroll-top i {
    font-size: 18px;
}

/* FAQ 样式 */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.faq-question {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    color: var(--text-color);
    padding-left: 20px;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* 右侧浮动工具栏 */
.float-toolbar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

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

.toolbar-item {
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.toolbar-item:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.toolbar-item i {
    font-size: 20px;
}

.toolbar-item .tooltip {
    position: absolute;
    right: 60px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.toolbar-item:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

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

/* HTML和body基础样式 */
html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: block; /* 使用block而不是flex，避免布局问题 */
    position: relative;
}

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

/* 主要内容区域 */
main {
    padding-bottom: 100px; /* 适度增加底部空间，确保页脚不会挡住内容 */
    position: relative;
    z-index: 1;
}

/* 常见问题部分底部间距 */
.faq-section {
    margin-bottom: 50px;
    padding-bottom: 30px;
    position: relative;
    z-index: 10;
}

/* 页脚样式 - 横向排列版 */
footer {
    background: #0056b3;
    color: white;
    padding: 30px 0;
    margin-top: 30px;
    position: relative;
    clear: both;
    width: 100%;
    box-sizing: border-box;
    z-index: 5;
}

/* 页脚容器样式 - 横向排列 */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

/* 页脚各部分 - 横向排列 */
.footer-section {
    margin: 0 15px 15px 15px;
    text-align: center;
    flex: 1;
    min-width: 150px;
}

/* 页脚两列分类布局 */
.footer-categories {
    display: flex;
    gap: 30px;
}

.footer-categories ul {
    flex: 1;
    margin: 0;
}

/* 响应式页脚分类布局 */
@media (max-width: 768px) {
    .footer-categories {
        flex-direction: column;
        gap: 10px;
    }
}

/* 常见问题区域样式 */
.faq-container {
    width: 100%;
    max-width: none;
    margin: 0;
}

.faq-item {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
}

/* 问题样式 */
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: #f8f8f8;
    font-weight: bold;
    color: #333;
    font-size: 15px;
    cursor: pointer; /* 明确设置为可点击 */
    transition: background-color 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.faq-question:hover {
    background-color: #f0f0f0;
}

/* 箭头图标 */
.faq-question i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* 答案样式 - 默认隐藏 */
.faq-answer {
    display: none;
    padding: 12px 15px;
    line-height: 1.6;
    color: #666;
    background-color: #fff;
    border-top: 1px solid #eee;
    overflow: hidden;
}

/* 平板设备优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .container {
        padding: 20px;
        max-width: 100%;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .faq-question {
        background-color: #2a2a2a;
        color: #e0e0e0;
    }
    
    .faq-question:hover {
        background-color: #333;
    }
    
    .faq-answer {
        background-color: #222;
        color: #ccc;
        border-top-color: #444;
    }
    
    .faq-item {
        border-color: #444;
    }
    
    /* 导航深色模式 */
    .nav-menu {
        background-color: #222;
        color: #e0e0e0;
    }
    
    .nav-link {
        color: #e0e0e0;
        border-bottom-color: #444;
    }
    
    .nav-link:hover {
        background-color: #333;
        color: #fff;
    }
    
    .nav-close {
        color: #e0e0e0;
    }
    
    /* 页脚深色模式 */
    footer {
        background-color: #1a1a1a;
        color: #ccc;
    }
    
    .footer-section h3 {
        color: #e0e0e0;
    }
    
    .footer-link {
        color: #999;
    }
    
    .footer-link:hover {
        color: #fff;
    }
}

/* 页脚标题样式 */
.footer-section h3 {
    color: #ffc107;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
    display: inline-block;
}

/* 页脚文本样式 */
.footer-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 5px 0;
    line-height: 1.5;
}

/* 页脚列表样式 */
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin: 5px 0;
}

/* 页脚链接样式 */
.footer-section ul li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: #ffc107;
}

/* 页脚底部样式 */
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    background-color: rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* FAQ样式增强 - 确保始终完全可见 */
.faq-answer {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    visibility: visible !important;
    position: static !important;
}

.faq-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.faq-question {
    cursor: default;
    user-select: none;
    padding: 10px 0;
    font-weight: 500;
    color: #0056b3;
}

.faq-question i {
    pointer-events: none;
    margin-left: 10px;
    transition: none !important;
}

/* 确保没有底部白色空间 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: block;
    min-height: 100vh;
}

/* 日期显示样式 */
.date-display {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 常见问题响应式 */
    .faq-question {
        padding: 10px 12px;
        font-size: 14px;
        flex-wrap: wrap;
    }
    
    .faq-question span {
        flex: 1;
        padding-right: 15px;
        word-wrap: break-word;
    }
    
    .faq-question i {
        flex-shrink: 0;
        margin-top: 2px;
    }
    
    .faq-answer {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    /* 容器响应式 */
    .container {
        padding: 10px 15px;
        max-width: 100%;
    }
    
    /* 分类卡片响应式 */
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .category-card {
        padding: 15px 10px;
    }
    
    .category-card h3 {
        font-size: 14px;
    }
    
    .category-card p {
        font-size: 12px;
        display: none;
    }
    
    /* 悬浮按钮响应式 */
    .fixed-contact-sidebar {
        right: 5px;
        bottom: 5px;
    }
    
    .sidebar-link {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    /* 页脚响应式 */
    .footer-container {
        flex-direction: column;
        padding: 15px;
    }
    
    .footer-section {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .footer-categories {
        flex-direction: column;
    }
    
    /* 移动端导航样式 */
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: #fff;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        transition: 0.3s;
        z-index: 1000;
        padding-top: 60px;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        display: block;
        margin: 0;
    }
    
    .nav-link {
        display: block;
        padding: 15px 20px;
        color: #333;
        border-bottom: 1px solid #eee;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background-color: #f8f8f8;
        color: #007bff;
        padding-left: 25px;
    }
    
    .nav-close {
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 20px;
        color: #333;
        cursor: pointer;
    }
    
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }
    
    .nav-overlay.active {
        display: block;
    }
    
    /* 原有响应式样式 */
    .header-top {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .categories-grid,
    .products-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .float-toolbar {
        right: 10px;
    }
    
    .toolbar-item {
        width: 45px;
        height: 45px;
    }
    
    .toolbar-item i {
        font-size: 18px;
    }
    
    .date-display {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 20px;
        display: inline-block;
    }
}

@media (max-width: 480px) {
    .categories-grid,
    .products-list {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 15px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* 右侧悬浮按钮 */
.fixed-contact-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-item {
    position: relative;
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    font-size: 20px;
}

.sidebar-link:hover {
    background-color: var(--secondary-color);
    transform: translateX(-5px);
}

/* 滚动到顶部按钮 */
.scroll-top {
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    border: none;
    font-size: 20px;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

.form-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.form-submit:hover {
    background-color: var(--secondary-color);
}

/* 提示框样式 */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* 标签样式 */
.tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.tag:hover {
    background-color: var(--secondary-color);
}