/* ==================== 公共基础样式 - VN10 模板 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: 
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #1e293b 75%, #0f172a 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%;
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* 移除网格背景以提升性能 */

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

/* ==================== Header 样式 ==================== */
.header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.logo {
    height: 55px;
    max-width: 200px;
    object-fit: contain;
}

a .logo {
    display: block;
    transition: opacity 0.3s, transform 0.3s;
}

a:hover .logo {
    opacity: 0.9;
    transform: scale(1.05);
}

.auth-buttons {
    display: flex;
    gap: 12px;
}

/* ==================== 按钮样式 ==================== */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.btn-login {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    position: relative;
    animation: blink-fast 0.8s ease-in-out infinite;
    will-change: opacity, box-shadow;
}

.btn-register {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
    position: relative;
    animation: blink-fast-register 0.8s ease-in-out infinite 0.4s;
    will-change: opacity, box-shadow;
}

@keyframes blink-fast {
    0%, 100% { 
        opacity: 1;
        box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    }
    50% { 
        opacity: 0.75;
        box-shadow: 0 4px 25px rgba(139, 92, 246, 0.7);
    }
}

@keyframes blink-fast-register {
    0%, 100% { 
        opacity: 1;
        box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
    }
    50% { 
        opacity: 0.75;
        box-shadow: 0 4px 25px rgba(236, 72, 153, 0.7);
    }
}

.btn:hover {
    transform: translateY(-2px);
    animation: none;
    opacity: 1;
}

/* ==================== 导航样式 ==================== */
.nav {
    background: rgba(30, 41, 59, 0.6);
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
    min-width: max-content;
    justify-content: center;
}

.nav-item {
    flex-shrink: 0;
}

.nav-link {
    color: #e2e8f0;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    display: block;
    white-space: nowrap;
    background: rgba(139, 92, 246, 0.1);
}

.nav-link:hover {
    background: rgba(139, 92, 246, 0.3);
    color: white;
    transform: translateY(-2px);
}

/* ==================== Footer 样式 ==================== */
.footer {
    background: rgba(15, 23, 42, 0.95);
    padding: 50px 20px 30px;
    margin-top: 60px;
    border-top: 3px solid rgba(139, 92, 246, 0.3);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 35px;
}

.footer-section {
    margin-bottom: 0;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.footer-info {
    font-size: 14px;
    line-height: 1.8;
    color: #cbd5e1;
}

.footer-info strong {
    color: #60a5fa;
}

.footer-info a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-info a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.footer-links {
    list-style: none;
    margin-top: 15px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: #60a5fa;
    transform: translateX(5px);
}

/* Footer 资讯列表样式 */
.footer-articles {
    margin-top: 15px;
    min-height: 150px;
}

.footer-articles-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-article-item {
    margin-bottom: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
}

.footer-article-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.footer-article-item::before {
    content: "▶";
    color: #60a5fa;
    margin-right: 10px;
    font-size: 12px;
    display: inline-block;
}

.footer-article-item a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.6;
    transition: all 0.3s;
    display: inline-block;
    width: calc(100% - 25px);
    word-wrap: break-word;
}

.footer-article-item a:hover {
    color: #60a5fa;
    text-decoration: underline;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    color: #94a3b8;
    font-size: 13px;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 767px) {
    .header {
        padding: 15px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .header-top {
        margin-bottom: 12px;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .logo {
        height: 45px;
        max-width: 160px;
    }
    
    .auth-buttons {
        gap: 8px;
        flex-shrink: 0;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 13px;
        letter-spacing: 0.5px;
    }
    
    .nav {
        padding: 10px;
        margin-top: 8px;
    }
    
    .nav-link {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-section {
        margin-bottom: 25px;
    }
    
    .footer-articles {
        min-height: auto;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 1200px;
    }
}

