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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f1419;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 150, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #0f1419 0%, #1a1f2e 50%, #0f1419 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==================== Header 样式 ==================== */
.header {
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.15) 0%, rgba(138, 43, 226, 0.15) 100%);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 2px solid rgba(0, 150, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

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

.logo {
    height: 48px;
    max-width: 170px;
    filter: drop-shadow(0 0 10px rgba(0, 150, 255, 0.5));
}

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

a:hover .logo {
    opacity: 0.9;
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(0, 150, 255, 0.7));
}

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

/* ==================== 按钮样式 ==================== */
.btn {
    padding: 11px 20px;
    border: 2px solid;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-login {
    background: transparent;
    color: #00a8ff;
    border-color: #00a8ff;
    animation: glow-blue 2s ease-in-out infinite;
}

.btn-register {
    background: linear-gradient(135deg, #00a8ff 0%, #8a2be2 100%);
    color: white;
    border-color: transparent;
    animation: glow-purple 2s ease-in-out infinite;
}

@keyframes glow-blue {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 168, 255, 0.5), 0 0 20px rgba(0, 168, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 168, 255, 0.8), 0 0 40px rgba(0, 168, 255, 0.5);
    }
}

@keyframes glow-purple {
    0%, 100% {
        box-shadow: 0 0 15px rgba(138, 43, 226, 0.6), 0 0 30px rgba(138, 43, 226, 0.4);
    }
    50% {
        box-shadow: 0 0 25px rgba(138, 43, 226, 0.9), 0 0 50px rgba(138, 43, 226, 0.6);
    }
}

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

.btn-login:hover {
    background: rgba(0, 168, 255, 0.2);
    box-shadow: 0 0 25px rgba(0, 168, 255, 0.8);
}

.btn-register:hover {
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.8);
}

/* ==================== 导航样式 ==================== */
.nav {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px;
    border: 1px solid rgba(0, 150, 255, 0.2);
}

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

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

.nav-link {
    color: #00a8ff;
    text-decoration: none;
    padding: 9px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
    display: block;
    white-space: nowrap;
    background: rgba(0, 168, 255, 0.1);
    border: 1px solid rgba(0, 168, 255, 0.3);
}

.nav-link:hover {
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.3) 0%, rgba(138, 43, 226, 0.3) 100%);
    color: #fff;
    border-color: #00a8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 168, 255, 0.4);
}

/* ==================== Footer 样式 ==================== */
.footer {
    background: rgba(15, 20, 25, 0.8);
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(0, 150, 255, 0.2);
}

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

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

.footer-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #00a8ff;
}

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

.footer-info strong {
    color: #00a8ff;
}

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

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

.footer-links a {
    color: #d0d0d0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #00a8ff;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 150, 255, 0.2);
    color: #999;
    font-size: 13px;
}

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

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

.footer-article-item {
    margin-bottom: 10px;
    padding-left: 0;
    position: relative;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 150, 255, 0.1);
}

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

.footer-article-item::before {
    content: "▶";
    color: #0096ff;
    margin-right: 8px;
    font-size: 12px;
    display: inline-block;
    vertical-align: middle;
}

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

.footer-article-item a:hover {
    color: #0096ff;
    text-decoration: underline;
    transform: translateX(3px);
}

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

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

