/* ============================================
   style.css - 天龙八部攻略站样式
   ============================================ */

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

/* 头部样式 */
header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 5px;
    max-width: 600px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logo span {
    font-size: 14px;
    color: #666;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

/* 导航菜单 */
nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    white-space: nowrap;
    font-size: 15px;
}

nav a:hover {
    color: #667eea;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* 主要内容区 */
main {
    padding: 40px 0;
}

/* 英雄区 */
.hero {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 50px;
    margin-bottom: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.hero h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.4;
    word-break: break-word;
}

.keyword-highlight {
    color: #667eea;
    font-weight: bold;
}

.hero p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* 关键词标签 */
.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.keyword-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s;
}

.keyword-tag:hover {
    transform: translateY(-2px);
}

/* 章节标题 */
.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    position: relative;
    padding-left: 20px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 30px;
    background: white;
    border-radius: 5px;
}

/* AI内容区 */
.ai-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    white-space: pre-line;
}

.ai-content p {
    margin-bottom: 20px;
}

/* ============================================
   相关攻略推荐区块
   ============================================ */
.related-sites {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px 30px;
    margin: 40px 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.related-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.2);
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.related-card a {
    text-decoration: none;
    color: white;
    display: block;
    height: 100%;
}

.related-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: white;
    line-height: 1.4;
    position: relative;
    padding-bottom: 10px;
}

.related-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: rgba(255,255,255,0.5);
    border-radius: 3px;
}

.related-card p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
}

/* 底部样式 */
footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 40px 0;
    margin-top: 60px;
    backdrop-filter: blur(10px);
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.copyright {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    opacity: 0.7;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .logo h1 {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo h1 {
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }
    
    nav ul {
        gap: 12px;
        justify-content: center;
    }
    
    nav a {
        font-size: 14px;
    }
    
    .hero {
        padding: 30px 20px;
    }
    
    .hero h2 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .ai-content {
        padding: 20px;
    }
    
    /* 相关攻略移动端适配 */
    .related-sites {
        padding: 30px 20px;
        margin: 30px 0;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .related-card {
        padding: 20px 15px;
    }
    
    .related-card h3 {
        font-size: 18px;
    }
    
    .related-card p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    nav ul {
        gap: 8px;
    }
    
    nav a {
        font-size: 13px;
    }
    
    .keyword-tag {
        padding: 5px 12px;
        font-size: 12px;
    }
    
    .related-sites {
        padding: 20px 15px;
    }
    
    .related-card {
        padding: 15px;
    }
}