/* ===== 赛博朋克风格 - 全局样式 ===== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    background: #0a0a0f;
    color: #c0c0d0;
    line-height: 1.6;
    min-height: 100vh;
}

/* 背景网格 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

a {
    color: #00ffff;
    text-decoration: none;
    transition: all 0.3s;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

a:hover {
    color: #ff00ff;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

/* ===== 头部 - 赛博朋克 ===== */
.site-header {
    background: linear-gradient(180deg, #0d0d1a 0%, #1a0a2e 100%);
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, #ff00ff, #00ffff, #ff00ff) 1;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.2);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.logo a {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px;
    font-weight: 900;
    background: linear-gradient(90deg, #ff00ff, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    letter-spacing: 2px;
    animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(255, 0, 255, 0.5)); }
    50% { filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.8)); }
}

.main-nav {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
}

.main-nav a {
    color: #00ffff;
    padding: 8px 18px;
    border-radius: 0;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid transparent;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.main-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.main-nav a:hover::before {
    left: 100%;
}

.main-nav a:hover {
    border-color: #ff00ff;
    color: #ff00ff;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3), inset 0 0 15px rgba(255, 0, 255, 0.1);
}

.search-box form {
    display: flex;
    gap: 0;
    border: 1px solid #ff00ff;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.2);
}

.search-box input {
    padding: 8px 15px;
    border: none;
    background: rgba(0, 0, 0, 0.8);
    color: #00ffff;
    font-size: 14px;
    outline: none;
    width: 200px;
}

.search-box input::placeholder {
    color: rgba(0, 255, 255, 0.4);
}

.search-box button {
    padding: 8px 15px;
    background: linear-gradient(135deg, #ff00ff, #00ffff);
    color: #000;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
}

.search-box button:hover {
    background: linear-gradient(135deg, #00ffff, #ff00ff);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

/* ===== 页面标题 ===== */
.page-title {
    padding: 30px 0 20px;
    border-bottom: 1px solid rgba(255, 0, 255, 0.2);
    margin-bottom: 30px;
}

.page-title h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    background: linear-gradient(90deg, #ff00ff, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.page-title p {
    color: rgba(0, 255, 255, 0.6);
    margin-top: 5px;
    font-size: 14px;
}

/* ===== 栏目区块 ===== */
.category-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    margin-bottom: 20px;
}

.section-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    color: #00ffff;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.section-header .more-link {
    font-size: 13px;
    color: #ff00ff;
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.3);
}

/* ===== 商品网格 ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: linear-gradient(135deg, #0d0d1a, #1a0a2e);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 4px;
    background: linear-gradient(135deg, #ff00ff, #00ffff, #ff00ff);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.3), 0 0 60px rgba(0, 255, 255, 0.1);
    border-color: transparent;
}

.product-thumb {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0f, #1a0a2e);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumb .no-image {
    font-size: 48px;
    color: rgba(0, 255, 255, 0.3);
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    font-size: 14px;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-info h3 a {
    color: #c0c0d0;
    text-shadow: none;
}

.product-info h3 a:hover {
    color: #ff00ff;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.product-price {
    color: #ff00ff;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.3);
}

.product-price.free {
    color: #00ffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.product-downloads {
    color: rgba(0, 255, 255, 0.5);
}

/* ===== 商品详情页 ===== */
.product-detail {
    background: linear-gradient(135deg, #0d0d1a, #1a0a2e);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 4px;
    padding: 30px;
    margin: 20px 0;
    position: relative;
}

.product-detail::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 4px;
    background: linear-gradient(135deg, #ff00ff, #00ffff);
    opacity: 0.15;
    z-index: -1;
}

.product-detail-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.product-detail-thumb {
    width: 350px;
    height: 250px;
    overflow: hidden;
    border-radius: 4px;
    background: linear-gradient(135deg, #0a0a0f, #1a0a2e);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.product-detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-thumb .no-image {
    font-size: 64px;
    color: rgba(0, 255, 255, 0.3);
}

.product-detail-info {
    flex: 1;
    min-width: 280px;
}

.product-detail-info h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px;
    background: linear-gradient(90deg, #ff00ff, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.product-detail-info .price-big {
    font-size: 28px;
    color: #ff00ff;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
}

.product-detail-info .price-big.free {
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.product-detail-info .meta-list {
    list-style: none;
    margin-bottom: 20px;
}

.product-detail-info .meta-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(0, 255, 255, 0.6);
}

.product-detail-info .meta-list li span {
    color: #c0c0d0;
    font-weight: bold;
}

.download-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #ff00ff, #00ffff);
    color: #000;
    border: none;
    border-radius: 0;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: none;
}

.download-btn:hover {
    background: linear-gradient(135deg, #00ffff, #ff00ff);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.5), 0 0 60px rgba(0, 255, 255, 0.3);
    color: #000;
    transform: scale(1.02);
}

.product-detail-body {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 0, 255, 0.2);
}

.product-detail-body h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    color: #00ffff;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.product-detail-body .content {
    line-height: 1.8;
    color: #a0a0b0;
}

.product-detail-body .content img {
    max-width: 100%;
    height: auto;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

/* ===== 分类列表页 ===== */
.category-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.category-item {
    background: linear-gradient(135deg, #0d0d1a, #1a0a2e);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 4px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff00ff, #00ffff);
    opacity: 0;
    transition: opacity 0.3s;
}

.category-item:hover::before {
    opacity: 1;
}

.category-item:hover {
    transform: translateY(-3px);
    border-color: #ff00ff;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.2);
}

.category-item .cat-icon {
    font-size: 40px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.3));
}

.category-item h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    color: #00ffff;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.category-item p {
    font-size: 13px;
    color: rgba(0, 255, 255, 0.5);
    margin-bottom: 10px;
}

.category-item .cat-count {
    font-size: 12px;
    color: rgba(255, 0, 255, 0.5);
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 30px 0;
}

.pagination a, .pagination span {
    padding: 8px 15px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 0;
    font-size: 14px;
    transition: all 0.3s;
    color: #00ffff;
}

.pagination a:hover {
    background: linear-gradient(135deg, #ff00ff, #00ffff);
    color: #000;
    border-color: transparent;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
}

.pagination .current {
    background: linear-gradient(135deg, #ff00ff, #00ffff);
    color: #000;
    border-color: transparent;
    font-weight: bold;
}

/* ===== 底部 ===== */
.site-footer {
    background: linear-gradient(0deg, #0d0d1a, #1a0a2e);
    border-top: 1px solid rgba(0, 255, 255, 0.15);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 13px;
    color: rgba(0, 255, 255, 0.4);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .main-nav {
        justify-content: center;
    }
    
    .search-box form {
        width: 100%;
    }
    
    .search-box input {
        flex: 1;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .product-detail-header {
        flex-direction: column;
    }
    
    .product-detail-thumb {
        width: 100%;
        height: 200px;
    }
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff00ff, #00ffff);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00ffff, #ff00ff);
}

/* ===== 选中文本 ===== */
::selection {
    background: rgba(255, 0, 255, 0.3);
    color: #fff;
}
