/* CSGO开箱网站 - 游戏化风格样式 */

:root {
    /* CSGO稀有度颜色 */
    --color-red: #eb4b4b;           /* 隐秘 */
    --color-pink: #d32ce6;          /* 保密 */
    --color-purple: #8847ff;        /* 受限 */
    --color-blue: #4b69ff;          /* 军规级 */
    --color-light-blue: #5e98d9;   /* 工业级 */
    --color-gold: #ffd700;          /* 金色 */
    
    /* 主题色 */
    --bg-dark: #0a0e27;
    --bg-darker: #060919;
    --bg-card: #141b2d;
    --bg-card-hover: #1a2235;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --border-color: #2d3748;
    --accent-color: #00d4ff;
    
    /* 霓虹效果 */
    --glow-blue: 0 0 10px rgba(0, 212, 255, 0.5);
    --glow-red: 0 0 10px rgba(235, 75, 75, 0.5);
    --glow-gold: 0 0 15px rgba(255, 215, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 背景动画 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(235, 75, 75, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: bgPulse 10s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
header {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: bold;
    text-shadow: var(--glow-blue);
}

.logo-icon {
    font-size: 32px;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
}

nav a:hover {
    color: var(--accent-color);
    text-shadow: var(--glow-blue);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* Hero区域 */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(235, 75, 75, 0.1) 100%);
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-color), var(--color-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5)); }
    50% { filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8)); }
}

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--color-red), var(--color-pink));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: var(--glow-red);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(235, 75, 75, 0.8);
}

/* 分类导航 */
.categories {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--color-pink));
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.category-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.category-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.category-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 网站卡片 */
.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    padding: 60px 0;
}

.site-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.site-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s;
}

.site-card:hover::before {
    left: 100%;
}

.site-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.site-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-featured {
    background: linear-gradient(135deg, var(--color-gold), #ffed4e);
    color: #000;
    box-shadow: var(--glow-gold);
}

.badge-domestic {
    background: var(--color-blue);
    color: white;
}

.badge-hot {
    background: var(--color-red);
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 15px;
}

.star {
    font-size: 20px;
}

.star-full {
    color: var(--color-gold);
    text-shadow: var(--glow-gold);
}

.star-half {
    color: var(--color-gold);
    opacity: 0.5;
}

.star-empty {
    color: var(--border-color);
}

.rating-number {
    margin-left: 8px;
    font-weight: bold;
    color: var(--color-gold);
}

.site-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.site-footer {
    display: flex;
    gap: 10px;
}

.btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-red), var(--color-pink));
    color: white;
    box-shadow: 0 4px 15px rgba(235, 75, 75, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 75, 75, 0.6);
}

.btn-secondary {
    background: var(--bg-darker);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* 稀有度边框 */
.rarity-red { border-color: var(--color-red); }
.rarity-pink { border-color: var(--color-pink); }
.rarity-purple { border-color: var(--color-purple); }
.rarity-blue { border-color: var(--color-blue); }
.rarity-light-blue { border-color: var(--color-light-blue); }

/* 面包屑 */
.breadcrumb {
    padding: 20px 0;
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    gap: 10px;
    flex-wrap: wrap;
}

.breadcrumb li {
    color: var(--text-secondary);
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 10px;
    color: var(--border-color);
}

.breadcrumb a {
    color: var(--accent-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 详情页 */
.site-detail {
    padding: 40px 0;
}

.detail-header {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
}

.detail-title {
    font-size: 42px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-color), var(--color-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detail-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meta-label {
    color: var(--text-secondary);
}

.meta-value {
    font-weight: bold;
    color: var(--text-primary);
}

.detail-content {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    line-height: 1.8;
}

.detail-content h2 {
    color: var(--accent-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 28px;
}

.detail-content h3 {
    color: var(--color-pink);
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 22px;
}

.detail-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.detail-content li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.pros-cons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.pros, .cons {
    background: var(--bg-darker);
    border-radius: 8px;
    padding: 20px;
}

.pros h3 {
    color: #4ade80;
    margin-bottom: 15px;
}

.cons h3 {
    color: #f87171;
    margin-bottom: 15px;
}

.pros ul, .cons ul {
    list-style: none;
    margin: 0;
}

.pros li::before {
    content: '✓ ';
    color: #4ade80;
    font-weight: bold;
    margin-right: 8px;
}

.cons li::before {
    content: '✗ ';
    color: #f87171;
    font-weight: bold;
    margin-right: 8px;
}

/* 相关推荐 */
.related-sites {
    padding: 60px 0;
}

/* Footer */
footer {
    background: var(--bg-darker);
    border-top: 2px solid var(--border-color);
    padding: 40px 0 20px;
    margin-top: 80px;
}

.footer-content {
    text-align: center;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.copyright {
    font-size: 14px;
    opacity: 0.7;
}

/* 响应式 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .sites-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .detail-title {
        font-size: 28px;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    white-space: nowrap;
    font-size: 14px;
    z-index: 1000;
}
