/* 传奇玩家社区 - 统一样式表 */

:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --dark-bg: #1a1a2e;
    --card-bg: #16213e;
    --text-light: #eee;
    --text-muted: #aaa;
    --accent-gold: #f1c40f;
    --gradient-start: #3498db;
    --gradient-end: #9b59b6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #0f0f23 100%);
    color: var(--text-light);
    min-height: 100vh;
    line-height: 1.7;
}

header {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    padding: 1.2rem 0;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.header-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }

.logo { font-size: 1.8rem; font-weight: bold; color: #fff; display: flex; align-items: center; gap: 0.5rem; }
.logo-icon { font-size: 2rem; }

nav ul { display: flex; list-style: none; gap: 1.2rem; flex-wrap: wrap; }

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

nav a:hover, nav a.active { background: rgba(255,255,255,0.2); }

.hero {
    padding: 3rem 0;
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.2));
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(90deg, var(--accent-gold), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
}

.search-box {
    display: flex;
    max-width: 550px;
    margin: 1.5rem auto 0;
    gap: 0.5rem;
}

.search-box input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    outline: none;
    background: rgba(255,255,255,0.9);
}

.search-box button {
    padding: 0.8rem 1.8rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.search-box button:hover { background: var(--secondary-color); }

.page-content, .content-section { padding: 2rem 0; }

.section-title {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 1.8rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    margin: 0.5rem auto;
    border-radius: 2px;
}

.page-header {
    padding: 2.5rem 0;
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.2));
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, var(--accent-gold), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p { color: var(--text-muted); }

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.article-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.15);
}

.article-card .category {
    display: inline-block;
    background: rgba(52, 152, 219, 0.2);
    color: var(--primary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
    width: fit-content;
}

.article-card h3 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.article-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.article-card .meta {
    color: #777;
    font-size: 0.8rem;
}

.article-card .btn {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 0.3rem;
    transition: color 0.3s ease;
}

.article-card .btn:hover { color: var(--accent-gold); }

.tips-section {
    padding: 2rem 0;
    background: rgba(0,0,0,0.15);
    margin: 2rem 0;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
}

.tip-card {
    background: var(--card-bg);
    padding: 1.2rem;
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
}

.tip-card h4 {
    color: var(--accent-gold);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.tip-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer {
    background: #0a0a15;
    padding: 1.5rem 0;
    text-align: center;
    margin-top: 2rem;
}

footer p { color: var(--text-muted); font-size: 0.85rem; }
footer a { color: var(--primary-color); text-decoration: none; }

/* 文章详情页样式 */
.article-list { display: grid; gap: 1.5rem; }

.article-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.article-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.article-item .category {
    display: inline-block;
    background: rgba(52, 152, 219, 0.2);
    color: var(--primary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    width: fit-content;
}

.article-item h3 {
    font-size: 1.2rem;
    color: var(--text-light);
}

.article-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.article-item .meta {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: flex;
    gap: 1rem;
}

.article-item a.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    width: fit-content;
}

.article-item a.btn:hover { transform: scale(1.05); }

/* 资讯页样式 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.news-card .category {
    display: inline-block;
    background: rgba(52, 152, 219, 0.2);
    color: var(--primary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    width: fit-content;
}

.news-card h3 {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.4;
}

.news-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.news-card .meta {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: flex;
    gap: 1rem;
}

.news-card a.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    width: fit-content;
}

.news-card a.btn:hover { transform: scale(1.05); }

/* 响应式 - 手机端适配 */
@media (max-width: 768px) {
    /* 头部 */
    .hero h1 { font-size: 1.6rem; }
    .header-content { flex-direction: column; text-align: center; }
    .search-box { flex-direction: column; width: 100%; }
    .search-box input { width: 100%; }
    
    /* 导航 */
    nav ul { 
        justify-content: center; 
        gap: 0.5rem;
        font-size: 0.8rem;
    }
    nav a { padding: 0.3rem 0.5rem; font-size: 0.85rem; }
    
    /* 卡片 */
    .article-grid { grid-template-columns: 1fr; }
    .article-card { padding: 1rem; }
    .article-card h3 { font-size: 1rem; }
    
    /* 列表 */
    .article-list { padding: 0.5rem; }
    .article-item { flex-direction: column; gap: 0.5rem; }
    .article-item .content { padding-right: 0; }
    
    /* 页面标题 */
    h1 { font-size: 1.4rem !important; }
    h2 { font-size: 1.2rem; }
    h3 { font-size: 1rem; }
    
    /* 间距 */
    .page-content { padding: 1rem 0.5rem; }
    .container { padding: 0 10px; }
    
    /* 表格 */
    table { font-size: 0.85rem; }
    th, td { padding: 0.5rem; }
    
    /* 页脚 */
    footer { padding: 1rem 0.5rem; text-align: center; }
    footer p { font-size: 0.8rem; }
}

/* 更小屏幕 */
@media (max-width: 480px) {
    .logo { font-size: 1.4rem; }
    .logo-icon { font-size: 1.6rem; }
    nav ul { gap: 0.3rem; }
    nav a { font-size: 0.75rem; padding: 0.2rem 0.4rem; }
    .hero p { font-size: 0.9rem; }
    .section-title { font-size: 1.1rem; }
    .category { font-size: 0.7rem; padding: 0.15rem 0.4rem; }
    .btn { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
}

/* 动画 */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.article-card, .tip-card, .article-item, .news-card { animation: fadeInUp 0.5s ease forwards; }
