/* 导航栏样式 */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* 顶部信息栏样式 */
.top-bar {
    background-color: #1a1a2e;
    color: white;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}



.login-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-btn:hover {
    color: #00ccff;
    text-decoration: none;
}

/* 主导航栏样式 */
.main-nav {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    color: #0066cc;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.nav-menu li {
    margin: 0 15px;
    position: relative;
}

.nav-menu a {
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 10px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #0066cc;
    text-decoration: none;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0066cc;
}

/* 搜索功能样式 */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

#search-toggle {
    background: none;
    border: none;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

#search-toggle:hover {
    background-color: #f5f7fa;
}

#search-box {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 10px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    padding: 10px;
    min-width: 300px;
    z-index: 1001;
    display: none;
}

#search-box input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.search-btn {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #0052a3;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    z-index: 1001;
    padding: 10px 0;
    margin-top: 5px;
}

.dropdown-menu li {
    margin: 0;
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: #333;
    font-size: 0.9rem;
    border-bottom: 1px solid #f5f5f5;
}

.dropdown-menu a:hover {
    background-color: #f5f7fa;
    color: #0066cc;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    background: none;
    border: none;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.menu-toggle:hover {
    background-color: #f5f7fa;
}

/* 统一页面头部样式 - 基于about-header样式 */
.header {
    /* 渐变背景增强 */
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.95) 0%, rgba(0, 51, 102, 0.95) 100%), url('../images/hero-bg.jpg') center/cover no-repeat;
    color: white;
    padding: 60px 0 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

/* 添加装饰性元素 */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #00ccff, #0066cc, #00ccff);
    animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 增加背景装饰元素 */
.header::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -5%;
    width: 110%;
    height: 100px;
    background: white;
    border-radius: 50% 50% 0 0;
    transform: scale(1.1);
    z-index: 1;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.05);
}

.header .container {
    position: relative;
    z-index: 2;
}

.header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
    color: white;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header h1 a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.header h1 a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ccff, #ffffff);
    transition: width 0.4s ease;
}

.header h1 a:hover::after {
    width: 80%;
}

.header p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.2s both;
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        padding: 80px 0;
    }
    
    .header h1 {
        font-size: 2.5rem;
    }
    
    .header p {
        font-size: 1.1rem;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 60px 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: white;
    padding: 40px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.footer-column i {
    margin-right: 10px;
    color: #0066cc;
}

.footer-column a {
    color: #ddd;
}

.footer-column a:hover {
    color: white;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    color: #aaa;
}

/* 通用部分样式 */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #0066cc;
}

/* 卡片通用样式 */
.card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card-img {
    height: 200px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.card-text {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* 网格布局 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* 表单元素通用样式 */
input, textarea, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #0066cc;
}

input[type="submit"] {
    background-color: #0066cc;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #0052a3;
}

/* 徽章样式 */
.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 5px;
    margin-bottom: 5px;
}

.badge-primary {
    background-color: #0066cc;
    color: white;
}

.badge-secondary {
    background-color: #f1f1f1;
    color: #333;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-info {
    background-color: #17a2b8;
    color: white;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px 0;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0066cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式组件调整 */
@media (max-width: 992px) {
    .top-bar .container,
    .main-nav .container {
        padding: 0 15px;
    }
    
    .nav-menu li {
        margin: 0 10px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* 顶部信息栏响应式 */
    .top-bar-right {
        gap: 10px;
    }
    
    .login-btn {
        font-size: 0.8rem;
    }
    
    /* 主导航栏响应式 */
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        max-height: 500px;
    }
    
    .nav-menu li {
        width: 100%;
        margin: 0;
        text-align: center;
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border-top: 1px solid #f0f0f0;
    }
    
    .dropdown-menu a {
        text-align: center;
        border-bottom: 1px solid #f5f5f5;
    }
    
    /* 搜索功能响应式 */
    #search-box {
        min-width: 250px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 30px 0;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    /* 顶部信息栏响应式 */
    .top-bar {
        padding: 8px 0;
    }
    
    .top-bar-left .logo img {
        max-height: 30px;
    }
    
    .top-bar-right {
        gap: 8px;
    }
    
    /* 主导航栏响应式 */
    .main-nav {
        padding: 10px 0;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    /* 搜索功能响应式 */
    #search-box {
        min-width: 200px;
    }
    
    .section {
        padding: 20px 0;
    }
    
    .card {
        margin-bottom: 20px;
    }
}

        /* 文档部分样式 */
        .documents-section {
            padding: 80px 0;
            background-color: #f5f7fa;
        }
        
        .documents-section h2 {
            text-align: center;
            margin-bottom: 40px;
            color: #333;
            font-size: 2.2rem;
        }
        
        .documents-box {
            background: white;
            padding: 40px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            max-width: 800px;
            margin: 0 auto;
        }
        
        .documents-box h3 {
            color: #333;
            margin-bottom: 25px;
            font-size: 1.5rem;
        }
        
        .documents-list {
            list-style: none;
            padding: 0;
        }
        
        .documents-list li {
            margin-bottom: 15px;
            padding: 15px;
            background-color: #f9f9f9;
            border-radius: 8px;
            transition: background-color 0.3s ease;
        }
        
        .documents-list li:hover {
            background-color: #f0f0f0;
        }
        
        .documents-list i {
            color: #e74c3c;
            margin-right: 15px;
            font-size: 1.2rem;
        }
        
        .documents-list a {
            color: #333;
            text-decoration: none;
            font-size: 1.1rem;
            transition: color 0.3s ease;
        }
        
        .documents-list a:hover {
            color: #0066cc;
            text-decoration: underline;
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .product-detail-header, 
            .product-detail-content,
            .application-scenarios,
            .contact-section,
            .documents-section {
                padding: 50px 0;
            }
            
            .product-detail-header h1 {
                font-size: 2.5rem;
            }
            
            .product-info h2 {
                font-size: 1.8rem;
            }
            
            .product-showcase {
                flex-direction: column;
            }
            
            .product-info h2 {
                font-size: 1.6rem;
                text-align: center;
            }
            
            .specs-list li {
                flex-direction: column;
            }
            
            .specs-list .spec-label {
                width: 100%;
                margin-bottom: 5px;
            }
            
            .contact-section h3,
            .documents-section h3 {
                font-size: 1.5rem;
            }
            
            .documents-box {
                padding: 20px;
            }
            
            .carousel-container {
                height: 300px;
            }
            
            .carousel-prev,
            .carousel-next {
                width: 35px;
                height: 35px;
                font-size: 16px;
            }
        }
    
        @media (max-width: 576px) {
            .product-detail-header h1 {
                font-size: 1.8rem;
            }
            
            .product-info h2,
            .documents-section h2 {
                font-size: 1.4rem;
            }
            
            .product-specs h3,
            .product-features h3,
            .application-scenarios h3,
            .documents-box h3 {
                font-size: 1.3rem;
            }
        
            .feature-card,
            .scenario-card {
                padding: 15px;
            }
        
            .contact-section h3 {
                font-size: 1.3rem;
            }
        
            .btn-primary {
                padding: 10px 20px;
                font-size: 0.9rem;
            }
            
            .documents-list a {
                font-size: 0.9rem;
            }
            
            .carousel-container {
                height: 250px;
            }
            
            .carousel-prev,
            .carousel-next {
                width: 30px;
                height: 30px;
                font-size: 14px;
            }
        }

/* 管理员按钮样式 */
.admin-btn {
    background-color: #4CAF50;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.admin-btn:hover {
    background-color: #45a049;
    color: white;
}

/* 管理员登录模态框 */
.admin-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.admin-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.admin-modal-header {
    margin-bottom: 20px;
    text-align: center;
}

.admin-modal-header h2 {
    margin: 0;
    color: #333;
}

.admin-form-group {
    margin-bottom: 15px;
}

.admin-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.admin-form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.admin-modal-footer {
    margin-top: 20px;
    text-align: center;
}

.admin-btn-primary {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.admin-btn-primary:hover {
    background-color: #45a049;
}

.admin-btn-secondary {
    background-color: #f1f1f1;
    color: #333;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

.admin-btn-secondary:hover {
    background-color: #e0e0e0;
}

.admin-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.admin-close:hover,
.admin-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* 管理员操作按钮 */
.admin-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.admin-action-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.admin-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 主要操作按钮 */
.admin-action-btn:not(.admin-action-btn-secondary) {
    background-color: #4CAF50;
    color: white;
}

.admin-action-btn:not(.admin-action-btn-secondary):hover {
    background-color: #45a049;
}

/* 次要操作按钮 */
.admin-action-btn-secondary {
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ddd;
}

.admin-action-btn-secondary:hover {
    background-color: #e5e5e5;
}

/* 危险操作按钮 */
.admin-action-btn-danger {
    background-color: #f44336;
    color: white;
}

.admin-action-btn-danger:hover {
    background-color: #da190b;
}

/* 资源项操作按钮 */
.resource-item-actions {
    margin-top: 10px;
    display: flex;
    gap: 5px;
}

.resource-action-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.resource-action-btn.edit {
    background-color: #2196F3;
    color: white;
}

.resource-action-btn.edit:hover {
    background-color: #0b7dda;
}

.resource-action-btn.delete {
    background-color: #f44336;
    color: white;
}

.resource-action-btn.delete:hover {
    background-color: #da190b;
}

/* 上传表单 */
.upload-form {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #ddd;
}

.upload-form h3 {
    margin-top: 0;
    color: #333;
    margin-bottom: 15px;
}

.upload-form-group {
    margin-bottom: 15px;
}

.upload-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.upload-form-group input[type="text"],
.upload-form-group textarea,
.upload-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.upload-form-group input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.upload-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.upload-form-actions {
    margin-top: 20px;
    text-align: center;
}

/* 上传模态框 */
.upload-modal-content {
    width: 400px;
    margin: 10% auto;
}

.upload-modal-content .admin-form-group textarea {
    resize: vertical;
    min-height: 100px;
}