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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg, #0a0e27 0%, #1a1f3a 50%, #2d1b4e 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

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

/* ==================== Header 样式 ==================== */
.header {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(255, 215, 0, 0.4);
}

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

.logo {
    height: 50px;
    max-width: 180px;
}

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: 10px;
}

/* ==================== 按钮样式 ==================== */
.btn {
    padding: 12px 22px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-login {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.5);
}

.btn-register {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: #0a0e27;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.6);
}

.btn:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.7);
}

/* ==================== 导航样式 ==================== */
.nav {
    background: rgba(255, 215, 0, 0.15);
    border-radius: 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px;
}

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

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

.nav-link {
    color: #ffd700;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s;
    display: block;
    white-space: nowrap;
    background: rgba(255, 215, 0, 0.1);
}

.nav-link:hover {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: #0a0e27;
    transform: translateY(-2px);
}

/* ==================== Footer 样式 ==================== */
.footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 40px 20px 25px;
    margin-top: 50px;
    border-top: 3px solid rgba(255, 215, 0, 0.3);
}

.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: #ffd700;
}

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

.footer-info strong {
    color: #ffd700;
}

.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: #ffd700;
}

/* 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(255, 215, 0, 0.1);
}

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

.footer-article-item::before {
    content: "▶";
    color: #ffd700;
    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: #ffd700;
    text-decoration: underline;
    transform: translateX(3px);
}

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

/* ==================== 响应式设计 ==================== */
@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: 10px 16px;
        font-size: 12px;
        letter-spacing: 0.3px;
    }
    
    .nav {
        padding: 10px;
        margin-top: 5px;
    }
    
    .nav-link {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .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;
    }
}

