/* 
 * index.css - SRCAtlas 主页样式
 * 简约现代设计版 - 优化版：紧凑布局
 */

/* ==================== 基础重置和全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f0f0f;
    color: #f0f0f0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ==================== 渐变背景 ==================== */
.background-gradient {
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 200, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 100, 0, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0a 0%, #151515 100%);
    z-index: 0;
}

/* ==================== 容器布局 ==================== */
.container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== 头部导航栏 - 缩小 ==================== */
.header {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0; /* 减小内边距 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 10px; /* 减小下边距 */
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px; /* 减小间距 */
    text-decoration: none;
}

.logo-icon {
    width: 32px; /* 缩小 */
    height: 32px; /* 缩小 */
    background: linear-gradient(135deg, #ffc107, #ff6b00);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
}

.logo-shield {
    width: 18px; /* 缩小 */
    height: 18px; /* 缩小 */
    color: #000;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo-text {
    font-size: 20px; /* 缩小 */
    font-weight: 700;
    background: linear-gradient(135deg, #ffc107, #ff6b00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.btn-login {
    padding: 8px 20px; /* 缩小 */
    background: transparent;
    color: #ffc107;
    border: 1.5px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    font-weight: 500;
    font-size: 13px; /* 缩小 */
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-login:hover {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.5);
    transform: translateY(-1px);
}

/* ==================== 主内容区域 - 紧凑布局 ==================== */
.main-content {
    min-height: calc(100vh - 300px); /* 减小高度 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* 从上开始 */
    text-align: center;
    padding: 20px 0; /* 减小内边距 */
}

.title-section {
    margin-bottom: 32px; /* 减小下边距 */
    max-width: 800px;
}

.main-title {
    font-size: 40px; /* 缩小 */
    font-weight: 700;
    margin-bottom: 12px; /* 减小下边距 */
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.title-gradient {
    background: linear-gradient(135deg, #ffc107 0%, #ff6b00 50%, #ffc107 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: gradient 3s ease-in-out infinite;
}

@keyframes gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.subtitle {
    color: #a0a0a0;
    font-size: 16px; /* 缩小 */
    margin: 8px 0; /* 减小间距 */
    line-height: 1.5;
}

.stats {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px; /* 缩小 */
    background: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
    margin-top: 12px; /* 减小上边距 */
    font-size: 13px; /* 缩小 */
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

/* ==================== 搜索区域 - 紧凑 ==================== */
.search-section {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px; /* 减小下边距 */
}

.tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px; /* 减小下边距 */
}

.tab-btn {
    padding: 10px 24px; /* 缩小 */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px; /* 缩小 */
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    color: #a0a0a0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 107, 0, 0.2));
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.3);
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.1);
}

.tab-btn:not(.active):hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.search-container {
    width: 100%;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 16px 130px 16px 20px; /* 减小内边距 */
    font-size: 15px; /* 缩小 */
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: #666;
}

.search-input:focus {
    border-color: rgba(255, 193, 7, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(255, 193, 7, 0.1);
}

.search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    padding: 12px 28px; /* 缩小 */
    background: linear-gradient(135deg, #ffc107, #ff6b00);
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 14px; /* 缩小 */
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.2);
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.02);
    box-shadow: 0 6px 24px rgba(255, 193, 7, 0.3);
}

.search-btn:active {
    transform: translateY(-50%) scale(0.98);
}

.search-btn svg {
    width: 16px; /* 缩小 */
    height: 16px; /* 缩小 */
}

/* ==================== 功能区域样式 - 紧凑 ==================== */
.features {
    margin-top: 40px; /* 减小上边距 */
    width: 100%;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* 减小最小宽度 */
    gap: 20px; /* 减小间距 */
    max-width: 800px;
    margin: 0 auto;
}

.feature-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px; /* 减小内边距 */
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 193, 7, 0.2);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 28px; /* 缩小 */
    margin-bottom: 12px; /* 减小下边距 */
}

.feature-item h3 {
    font-size: 16px; /* 缩小 */
    margin-bottom: 8px;
    color: #ffc107;
}

.feature-item p {
    color: #a0a0a0;
    font-size: 13px; /* 缩小 */
    line-height: 1.4;
}

/* ==================== 底部版权区域 - 向上移动 ==================== */
.footer {
    position: relative;
    z-index: 20;
    padding: 30px 0 20px; /* 减小内边距 */
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 30px; /* 减小上边距 */
}

.footer-brand {
    margin-bottom: 16px; /* 减小下边距 */
}

.footer-title {
    font-size: 18px; /* 缩小 */
    font-weight: 600;
    background: linear-gradient(135deg, #ffc107, #ff6b00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 6px; /* 减小下边距 */
    letter-spacing: 1px;
}

.footer-subtitle {
    color: #a0a0a0;
    font-size: 13px; /* 缩小 */
    font-style: italic;
    margin-bottom: 16px; /* 减小下边距 */
}

.footer-copyright {
    color: #666;
    font-size: 12px; /* 缩小 */
    line-height: 1.4;
    margin-top: 16px; /* 减小上边距 */
}

.footer-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.5), transparent);
    margin: 16px auto; /* 减小外边距 */
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header {
        padding: 12px 0; /* 更小 */
        margin-bottom: 30px; /* 更小 */
    }
    
    .main-title {
        font-size: 32px; /* 更小 */
    }
    
    .subtitle {
        font-size: 14px; /* 更小 */
    }
    
    .search-input {
        padding: 14px 110px 14px 16px; /* 更小 */
        font-size: 14px; /* 更小 */
    }
    
    .search-btn {
        padding: 10px 20px; /* 更小 */
        font-size: 13px; /* 更小 */
    }
    
    .tab-btn {
        padding: 8px 16px; /* 更小 */
        font-size: 12px; /* 更小 */
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 12px; /* 更小 */
    }
    
    .footer {
        padding: 20px 0 16px; /* 更小 */
        margin-top: 20px; /* 更小 */
    }
    
    .main-content {
        min-height: calc(100vh - 180px); /* 更小 */
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 28px; /* 更小 */
    }
    
    .logo-text {
        font-size: 18px; /* 更小 */
    }
    
    .logo-icon {
        width: 28px; /* 更小 */
        height: 28px; /* 更小 */
    }
    
    .logo-shield {
        width: 16px; /* 更小 */
        height: 16px; /* 更小 */
    }
    
    .btn-login {
        padding: 6px 14px; /* 更小 */
        font-size: 12px; /* 更小 */
    }
    
    .search-input {
        padding: 12px 90px 12px 14px; /* 更小 */
        font-size: 13px; /* 更小 */
    }
    
    .search-btn {
        padding: 8px 16px; /* 更小 */
        font-size: 12px; /* 更小 */
    }
    
    .tabs {
        flex-wrap: wrap;
        gap: 4px; /* 更小 */
    }
    
    .footer-title {
        font-size: 16px; /* 更小 */
    }
    
    .main-content {
        padding: 16px 0; /* 更小 */
    }
}

@media (min-width: 1200px) {
    .main-title {
        font-size: 48px; /* 调整 */
    }
    
    .search-container {
        max-width: 900px;
    }
}
