/* CSGO饰品市场分析平台 - 样式文件 */
/* 主题色：CSGO橙色 (#f7931e) + 深色背景 */

:root {
    --csgo-orange: #f7931e;
    --csgo-orange-light: #ffad42;
    --csgo-orange-dark: #d97c0a;
    --csgo-dark: #1a1a1a;
    --csgo-dark-light: #2d2d2d;
    --csgo-gray: #4a4a4a;
    --csgo-gray-light: #6b6b6b;
    --csgo-text: #ffffff;
    --csgo-text-secondary: #b0b0b0;
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
    --info: #2196f3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    color: var(--csgo-text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--csgo-orange);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--csgo-orange);
}

.logo i {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--csgo-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a:hover {
    color: var(--csgo-orange);
}

/* 主内容区 */
.hero {
    text-align: center;
    padding: 60px 0 40px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--csgo-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--csgo-text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.domain-display {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--csgo-dark-light);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--csgo-orange);
    font-family: 'Roboto Mono', monospace;
    font-size: 1.1rem;
}

.domain-display i {
    color: var(--csgo-orange);
}

/* 搜索区域 */
.search-section {
    margin-bottom: 50px;
}

.search-box {
    background: var(--csgo-dark-light);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid var(--csgo-gray);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.search-header {
    margin-bottom: 30px;
    text-align: center;
}

.search-header h2 {
    font-size: 1.8rem;
    color: var(--csgo-orange);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.search-header p {
    color: var(--csgo-text-secondary);
}

.search-input-group {
    max-width: 800px;
    margin: 0 auto;
}

.input-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.input-wrapper i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--csgo-orange);
    font-size: 1.2rem;
}

#itemSearch {
    width: 100%;
    padding: 18px 60px 18px 50px;
    font-size: 1.1rem;
    background: var(--csgo-dark);
    border: 2px solid var(--csgo-gray);
    border-radius: 10px;
    color: var(--csgo-text);
    transition: all 0.3s;
}

#itemSearch:focus {
    outline: none;
    border-color: var(--csgo-orange);
    box-shadow: 0 0 0 3px rgba(247, 147, 30, 0.2);
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--csgo-orange);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn:hover {
    background: var(--csgo-orange-light);
    transform: translateY(-50%) scale(1.05);
}

/* 磨损选择 */
.wear-selection {
    background: var(--csgo-dark);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid var(--csgo-gray);
}

.wear-selection h3 {
    margin-bottom: 15px;
    color: var(--csgo-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.wear-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wear-option {
    cursor: pointer;
}

.wear-option input {
    display: none;
}

.wear-badge {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.wear-option.active .wear-badge {
    border-color: var(--csgo-orange);
    box-shadow: 0 0 15px rgba(247, 147, 30, 0.3);
}

/* 磨损颜色 */
.factory-new {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
}

.minimal-wear {
    background: linear-gradient(135deg, #8bc34a, #689f38);
    color: white;
}

.field-tested {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

.well-worn {
    background: linear-gradient(135deg, #ff5722, #d84315);
    color: white;
}

.battle-scarred {
    background: linear-gradient(135deg, #795548, #5d4037);
    color: white;
}

/* 热门推荐 */
.recommendations {
    margin-bottom: 50px;
}

.recommendations h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--csgo-orange);
    display: flex;
    align-items: center;
    gap: 10px;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.recommendation-card {
    background: var(--csgo-dark-light);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid var(--csgo-gray);
    transition: all 0.3s;
    cursor: pointer;
}

.recommendation-card:hover {
    transform: translateY(-5px);
    border-color: var(--csgo-orange);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.card-header i {
    font-size: 1.8rem;
    color: var(--csgo-orange);
}

.card-header h3 {
    font-size: 1.3rem;
}

.card-desc {
    color: var(--csgo-text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.stat i {
    color: var(--csgo-orange);
}

.quick-search {
    width: 100%;
    padding: 12px;
    background: var(--csgo-orange);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-search:hover {
    background: var(--csgo-orange-light);
}

/* 分析结果区域 */
.result-section {
    background: var(--csgo-dark-light);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 50px;
    border: 1px solid var(--csgo-orange);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--csgo-gray);
}

.result-header h2 {
    font-size: 1.8rem;
    color: var(--csgo-orange);
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-btn {
    background: var(--csgo-gray);
    color: var(--csgo-text);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-btn:hover {
    background: var(--csgo-gray-light);
}

/* 网站特色 */
.features {
    margin-bottom: 50px;
}

.features h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--csgo-orange);
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature-card {
    background: var(--csgo-dark-light);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border: 1px solid var(--csgo-gray);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--csgo-orange);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--csgo-orange);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--csgo-text-secondary);
    font-size: 0.95rem;
}

/* 页脚 */
footer {
    background: var(--csgo-dark);
    border-top: 2px solid var(--csgo-orange);
    padding: 40px 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--csgo-orange);
}

.footer-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.footer-info p {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--csgo-text-secondary);
}

.footer-copyright {
    text-align: center;
    color: var(--csgo-text-secondary);
    font-size: 0.9rem;
}

.disclaimer {
    font-size: 0.8rem;
    color: var(--csgo-gray-light);
    margin-top: 10px;
    font-style: italic;
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.loading-content {
    text-align: center;
    background: var(--csgo-dark-light);
    padding: 40px;
    border-radius: 15px;
    border: 2px solid var(--csgo-orange);
    max-width: 400px;
    width: 90%;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--csgo-gray);
    border-top: 4px solid var(--csgo-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content p {
    color: var(--csgo-text);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.loading-detail {
    color: var(--csgo-text-secondary) !important;
    font-size: 0.9rem !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .wear-options {
        flex-direction: column;
    }
    
    .wear-badge {
        width: 100%;
        text-align: center;
    }
    
    .recommendation-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-info {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .search-box {
        padding: 20px;
    }
    
    .search-btn {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 15px;
        justify-content: center;
    }
    
    .input-wrapper i {
        left: 15px;
    }
    
    #itemSearch {
        padding-left: 45px;
    }
}