/**
 * 主样式文件
 * 负责页面布局、产品卡片、响应式设计等核心样式
 */

/* 全局重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 页面基础样式 */
body {
    background: #000;
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 主容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* 页面头部样式 - 增加内边距为时间显示留空间 */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px 30px; /* 增加上内边距 */
    background: rgba(16, 18, 27, 0.7);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: visible; /* 改为visible让时间显示可以超出 */
    animation: headerGlow 4s infinite alternate;
}

/* 头部光晕动画 */
@keyframes headerGlow {
    0% { 
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); 
    }
    100% { 
        box-shadow: 0 10px 40px rgba(106, 17, 203, 0.4); 
    }
}

/* 头部顶部边框 */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6a11cb, #2575fc, #00b09b, #ff416c);
    animation: borderFlow 3s infinite linear;
}

/* 边框流动动画 */
@keyframes borderFlow {
    0% { 
        background-position: 0% 0%; 
    }
    100% { 
        background-position: 200% 0%; 
    }
}

/* 主标题样式 */
h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    font-weight: 700;
    background: linear-gradient(90deg, #6a11cb, #2575fc, #00b09b, #ff416c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(106, 17, 203, 0.5);
    animation: titlePulse 4s infinite alternate;
}

/* 标题脉冲动画 */
@keyframes titlePulse {
    0% { 
        text-shadow: 0 0 20px rgba(106, 17, 203, 0.5); 
    }
    100% { 
        text-shadow: 0 0 30px rgba(37, 117, 252, 0.8); 
    }
}

/* 副标题样式 */
.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    color: #c0c0e0;
    animation: subtitleFloat 6s infinite ease-in-out;
}

/* 副标题浮动动画 */
@keyframes subtitleFloat {
    0%, 100% { 
        transform: translateY(0); 
    }
    50% { 
        transform: translateY(-5px); 
    }
}

/* 搜索容器样式 */
.search-container {
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
}

/* 搜索框样式 */
.search-box {
    width: 100%;
    padding: 15px 20px;
    background: rgba(30, 33, 47, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 1rem;
    color: #fff;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

/* 搜索框聚焦样式 */
.search-box:focus {
    outline: none;
    border-color: rgba(106, 17, 203, 0.5);
    box-shadow: 0 0 0 2px rgba(106, 17, 203, 0.2);
    background: rgba(30, 33, 47, 0.9);
}

/* 搜索框占位符样式 */
.search-box::placeholder {
    color: #a0a0c0;
}

/* 搜索图标样式 */
.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #6a11cb;
    transition: color 0.3s ease;
}

.search-box:focus + .search-icon {
    color: #2575fc;
}

/* 导航分类区域网格布局 */
.nav-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* 其他样式保持不变... */












/* 单个导航分类样式 */
.nav-category {
    background: rgba(16, 18, 27, 0.7);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* 分类顶部装饰条 */
.nav-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

/* 分类悬停效果 */
.nav-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* 激活状态分类 */
.nav-category.active {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
    animation: categoryPulse 2s infinite;
}

/* 分类脉冲动画 */
@keyframes categoryPulse {
    0%, 100% { 
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4); 
    }
    50% { 
        box-shadow: 0 12px 30px rgba(106, 17, 203, 0.6); 
    }
}

/* 支付分类颜色 */
.payment-category::before {
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
}

/* 服务器分类颜色 */
.server-category::before {
    background: linear-gradient(90deg, #4A00E0, #8E2DE2);
}

/* 源码分类颜色 */
.source-category::before {
    background: linear-gradient(90deg, #00b09b, #96c93d);
}

/* 联系分类颜色 */
.contact-category::before {
    background: linear-gradient(90deg, #ff9a00, #ffcc00);
}

/* 分类图标容器 */
.category-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

/* 分类图标悬停效果 */
.nav-category:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

/* 支付图标样式 */
.payment-icon {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

/* 服务器图标样式 */
.server-icon {
    background: linear-gradient(135deg, #4A00E0, #8E2DE2);
}

/* 源码图标样式 */
.source-icon {
    background: linear-gradient(135deg, #00b09b, #96c93d);
}

/* 联系图标样式 */
.contact-icon {
    background: linear-gradient(135deg, #ff9a00, #ffcc00);
}

/* 分类标题样式 */
.category-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

/* 分类描述样式 */
.category-desc {
    color: #a0a0c0;
    font-size: 0.9rem;
}

/* 产品区域基础样式 */
.products-section {
    display: none;
    margin-bottom: 40px;
}

/* 激活的产品区域 */
.products-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* 淡入动画 */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* 区域标题样式 */
.section-title {
    font-size: 2rem;
    margin: 0 0 30px;
    color: #fff;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

/* 区域标题下划线 */
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    border-radius: 2px;
    animation: titleLine 2s infinite alternate;
}

/* 标题下划线动画 */
@keyframes titleLine {
    0% { 
        width: 80px; 
    }
    100% { 
        width: 120px; 
    }
}

/* 产品网格布局 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* 产品卡片样式 */
.product-card {
    background: rgba(16, 18, 27, 0.7);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* 产品卡片光效 */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.product-card:hover::before {
    left: 100%;
}

/* 产品卡片悬停效果 */
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* 产品图片区域 */
.product-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

/* 产品信息区域 */
.product-info {
    padding: 20px;
}

/* 产品名称样式 */
.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

/* 产品描述样式 */
.product-desc {
    color: #a0a0c0;
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 产品价格样式 */
.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffcc00;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
}

/* 产品特性区域 */
.product-features {
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #a0a0c0;
}

/* 特性列表样式 */
.product-features ul {
    padding-left: 20px;
}

.product-features li {
    margin-bottom: 5px;
}

/* 购买按钮样式 */
.btn-buy {
    background: linear-gradient(135deg, #00b09b, #96c93d);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

/* 购买按钮光效 */
.btn-buy::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;
}

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

/* 购买按钮悬停效果 */
.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 176, 155, 0.4);
}

/* 下载按钮样式 */
.btn-download {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

/* 下载按钮光效 */
.btn-download::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;
}

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

/* 下载按钮悬停效果 */
.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.4);
}

/* 跳转按钮样式 */
.btn-jump {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    width: 100%;
}
/* 跳转按钮悬停效果 */
.btn-jump:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-buy-jump {
    background: linear-gradient(135deg, #00b09b, #96c93d);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

/* 购买按钮光效 */
.btn-buy-jump::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;
}

.btn-buy-jump:hover::before {
    left: 100%;
}

/* 购买按钮悬停效果 */
.btn-buy-jump:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 176, 155, 0.4);
}


/* 页面底部样式 */
footer {
    text-align: center;
    margin-top: 60px;
    padding: 25px;
    color: #a0a0c0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* 平板设备响应式 */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    .time-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .time-display {
        font-size: 1.1rem;
        padding: 12px 20px;
        flex-direction: column;
        gap: 8px;
    }
    
    .fps-display {
        font-size: 1rem;
        padding: 10px 18px;
    }
    
    .nav-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* 手机设备响应式 */
@media (max-width: 480px) {
    .nav-categories {
        grid-template-columns: 1fr;
    }
    
    .time-display {
        font-size: 1rem;
        padding: 10px 16px;
    }
    
    .fps-display {
        font-size: 0.9rem;
        padding: 8px 14px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
}