/* ===== 全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
    line-height: 1.8;
    min-height: 100vh;
}

/* ===== Header 导航栏 ===== */
header {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), url("../images/header.avif") center top / cover no-repeat;
    background-size: cover;
    background-position: center top;
    background-attachment: scroll;
    min-height: 250px;
    display: flex;
    align-items: center;
    color: #fff;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #ff6b35;
}

.nav-container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 15px 0;
}

.logo {
    display: inline-block;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 8px;
}

.logo img {
    height: 120px;
    width: auto;
    display: block;
}

.logo:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 0 15px rgba(255, 107, 53, 0.8));
}

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

.nav-links a {
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ff6b35;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
}

.nav-links a:hover::before {
    width: 80%;
}

/* ===== Tab导航样式 ===== */
.nav-tabs {
    display: flex;
    gap: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 10px;
}

.nav-tab {
    color: #fff;
    text-decoration: none;
    padding: 12px 18px;
    font-size: 14px;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    background: transparent;
}

.nav-tab:last-child {
    border-right: none;
}

.nav-tab:hover {
    background: rgba(255, 107, 53, 0.3);
    color: #ff6b35;
}

.nav-tab.active {
    background: linear-gradient(135deg, #ff6b35 0%, #ff416c 100%);
    color: #fff;
    font-weight: bold;
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #fff;
}

/* ===== 主容器 ===== */
.container {
    width: 95%;
    max-width: 1400px;
    margin: 40px auto;
}

/* ===== Banner 横幅 ===== */
.banner {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.9) 0%, rgba(255, 65, 108, 0.9) 100%);
    color: #fff;
    padding: 50px 30px;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.banner h1 {
    font-size: 36px;
    margin-bottom: 15px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.banner p {
    font-size: 18px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* ===== 内容卡片 ===== */
.card {
    background: linear-gradient(145deg, #1e1e2f 0%, #2a2a3d 100%);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #ff6b35, #ff416c);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.3);
}

.card h2 {
    color: #ff6b35;
    font-size: 26px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 107, 53, 0.3);
    position: relative;
}

.card h3 {
    color: #ff8c42;
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 12px;
}

.card p {
    margin-bottom: 15px;
    color: #d0d0d0;
    line-height: 1.9;
}

.card ul, .card ol {
    padding-left: 25px;
    margin-bottom: 20px;
}

.card li {
    margin-bottom: 10px;
    color: #d0d0d0;
    position: relative;
}

.card ul li::marker {
    color: #ff6b35;
}

.card a {
    color: #ff6b35;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px dotted #ff6b35;
}

.card a:hover {
    color: #ff8c42;
    border-bottom-style: solid;
}

/* ===== 标题样式 ===== */
h1, h2, h3 {
    margin-bottom: 15px;
    font-weight: 600;
}

h2 {
    color: #ff6b35;
    font-size: 28px;
    margin: 40px 0 20px 0;
    padding-left: 15px;
    border-left: 4px solid #ff6b35;
}

/* ===== 图片样式 ===== */
.page-img {
    width: 100%;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.page-img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 36px rgba(255, 107, 53, 0.3);
    border-color: #ff6b35;
}

.img-caption {
    font-size: 14px;
    color: #999;
    text-align: center;
    margin-bottom: 25px;
    font-style: italic;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

/* ===== 快速导航 ===== */
.quick-entry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

/* ===== Quick Navigation Tab样式 ===== */
.quick-nav-tabs {
    display: flex;
    gap: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    margin: 30px 0;
    flex-wrap: wrap;
}

.quick-tab {
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    font-size: 15px;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    background: transparent;
    flex: 1;
    min-width: 150px;
    text-align: center;
}

.quick-tab:last-child {
    border-right: none;
}

.quick-tab:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.4) 0%, rgba(255, 65, 108, 0.4) 100%);
    color: #fff;
    transform: translateY(-2px);
}

.quick-tab::before {
    content: '🏁 ';
    margin-right: 5px;
}

/* ===== 首页特殊样式 ===== */
.home-hero-image {
    text-align: center;
    margin: 30px 0;
}

.home-hero-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0 auto;
}

.entry-card {
    display: block;
    text-align: center;
    padding: 25px 20px;
    background: linear-gradient(145deg, #2a2a3d 0%, #1e1e2f 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 107, 53, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.entry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.2), transparent);
    transition: left 0.5s ease;
}

.entry-card:hover::before {
    left: 100%;
}

.entry-card:hover {
    background: linear-gradient(145deg, #ff6b35 0%, #ff416c 100%);
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.4);
    border-color: #ff6b35;
}

/* ===== 广告位 ===== */
.ad-block {
    background: linear-gradient(145deg, #2a2a3d 0%, #1e1e2f 100%);
    padding: 25px;
    text-align: center;
    border-radius: 10px;
    margin: 30px 0;
    border: 2px dashed rgba(255, 107, 53, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* ===== Footer 页脚 ===== */
footer {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(90deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: #fff;
    margin-top: 60px;
    border-top: 3px solid #ff6b35;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

footer p {
    margin-bottom: 10px;
    color: #ccc;
}

footer a {
    color: #ff6b35;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

footer a:hover {
    color: #ff8c42;
    background: rgba(255, 107, 53, 0.1);
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        justify-content: center;
    }
    
    .banner h1 {
        font-size: 28px;
    }
    
    .banner p {
        font-size: 16px;
    }
    
    .quick-entry {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .card {
        padding: 20px;
    }
}
