/* style.css - 传奇996 完整样式 */

/* ===== 重置 & 基础 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #0a0a0f;
    color: #e8e8e8;
    line-height: 1.6;
}

a {
    color: #f5c842;
    text-decoration: none;
    transition: color 0.3s;
}
a:hover { color: #ffd866; }

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

img { max-width: 100%; height: auto; }

/* ===== 头部导航 ===== */
.header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-bottom: 2px solid #f5c842;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(245, 200, 66, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo img { height: 50px; width: auto; }
.logo-tag {
    background: #f5c842;
    color: #1a1a2e;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: bold;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
}
.nav ul li a {
    color: #ccc;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s;
}
.nav ul li a:hover,
.nav ul li a.active {
    color: #fff;
    background: rgba(245, 200, 66, 0.15);
}
.nav ul li a.active {
    color: #f5c842;
    border-bottom: 2px solid #f5c842;
}

.header-search form {
    display: flex;
    gap: 0;
}
.header-search input {
    padding: 8px 14px;
    border: 1px solid #333;
    border-radius: 6px 0 0 6px;
    background: #1a1a2e;
    color: #fff;
    width: 180px;
    font-size: 14px;
}
.header-search input:focus {
    outline: none;
    border-color: #f5c842;
}
.header-search button {
    padding: 8px 16px;
    background: #f5c842;
    color: #1a1a2e;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}
.header-search button:hover {
    background: #ffd866;
}

/* ===== 横幅 ===== */
.hero {
    padding: 60px 0 50px;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a3e 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 200, 66, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}
.hero .container {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}
.hero-content { flex: 1; }
.hero-content h1 {
    font-size: 42px;
    font-weight: 900;
    background: linear-gradient(135deg, #f5c842, #ffd866);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}
.hero-desc {
    font-size: 18px;
    color: #aaa;
    margin-bottom: 20px;
}
.hero-desc span {
    color: #f5c842;
    font-weight: bold;
}
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}
.hero-tags span {
    background: rgba(245, 200, 66, 0.12);
    color: #f5c842;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid rgba(245, 200, 66, 0.2);
}
.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.btn-primary {
    background: #f5c842;
    color: #1a1a2e;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s;
    display: inline-block;
}
.btn-primary:hover {
    background: #ffd866;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 200, 66, 0.3);
}
.btn-secondary {
    background: transparent;
    color: #f5c842;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: bold;
    border: 2px solid #f5c842;
    transition: all 0.3s;
    display: inline-block;
}
.btn-secondary:hover {
    background: rgba(245, 200, 66, 0.1);
    transform: translateY(-2px);
}
.hero-image {
    flex: 0 0 40%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.hero-image img {
    display: block;
    width: 100%;
    min-height: 280px;
    object-fit: cover;
    background: #1a1a2e;
}

/* ===== 通用板块标题 ===== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(245, 200, 66, 0.15);
}
.section-header h2 {
    font-size: 26px;
    color: #fff;
    font-weight: 700;
}
.more-link {
    color: #f5c842;
    font-size: 14px;
    transition: color 0.3s;
}
.more-link:hover { color: #ffd866; }

/* ===== 新闻网格 ===== */
.news-section {
    padding: 50px 0;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.news-card {
    background: #14141f;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255,255,255,0.04);
}
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    border-color: rgba(245, 200, 66, 0.15);
}
.news-card a { display: block; color: inherit; }
.news-img {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #1a1a2e;
}
.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.news-card:hover .news-img img {
    transform: scale(1.05);
}
.badge-hot {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: #fff;
    padding: 2px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}
.news-body {
    padding: 16px 18px 18px;
}
.news-body h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-body p {
    font-size: 14px;
    color: #999;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
}
.news-date { color: #888; }
.news-views { color: #666; }

/* ===== 热门推荐 ===== */
.hot-section {
    padding: 30px 0 50px;
    background: #0d0d16;
}
.hot-list {
    display: grid;
    gap: 10px;
}
.hot-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    background: #14141f;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}
.hot-item:hover {
    border-left-color: #f5c842;
    background: #1a1a2e;
}
.hot-item a {
    flex: 1;
    color: #ddd;
    font-size: 15px;
}
.hot-item a:hover { color: #f5c842; }
.hot-rank {
    font-weight: 900;
    font-size: 18px;
    color: #444;
    min-width: 30px;
}
.hot-item:first-child .hot-rank { color: #f5c842; }
.hot-item:nth-child(2) .hot-rank { color: #c0c0c0; }
.hot-item:nth-child(3) .hot-rank { color: #cd7f32; }
.hot-tag {
    background: rgba(245, 200, 66, 0.1);
    color: #f5c842;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 12px;
}

/* ===== FAQ板块 ===== */
.faq-section {
    padding: 50px 0;
    background: #0a0a0f;
}
.faq-list {
    display: grid;
    gap: 12px;
}
.faq-item {
    background: #14141f;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    transition: border-color 0.3s;
}
.faq-item:hover {
    border-color: rgba(245, 200, 66, 0.15);
}
.faq-question {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    color: #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
.faq-question:hover { color: #f5c842; }
.faq-toggle {
    font-size: 22px;
    color: #f5c842;
    transition: transform 0.3s;
    flex-shrink: 0;
}
.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 20px;
    color: #aaa;
    font-size: 15px;
    line-height: 1.8;
}
.faq-item.active .faq-answer {
    max-height: 400px;
    padding: 0 20px 20px;
}

/* ===== 友情链接 ===== */
.friend-links {
    padding: 30px 0;
    background: #0d0d16;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.friend-links h3 {
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
    font-weight: 400;
}
.friend-links .links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.friend-links .links a {
    color: #555;
    font-size: 13px;
    transition: color 0.3s;
}
.friend-links .links a:hover { color: #f5c842; }

/* ===== 页脚 ===== */
.footer {
    padding: 30px 0;
    background: #06060c;
    border-top: 1px solid rgba(255,255,255,0.03);
    text-align: center;
}
.footer p {
    color: #444;
    font-size: 13px;
    margin-bottom: 4px;
}
.footer a {
    color: #555;
}
.footer a:hover { color: #f5c842; }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .hero .container { flex-direction: column; }
    .hero-content h1 { font-size: 32px; }
    .hero-image { flex: 1; width: 100%; max-width: 500px; }
}

@media (max-width: 768px) {
    .header .container { flex-direction: column; gap: 12px; }
    .nav ul { flex-wrap: wrap; justify-content: center; }
    .nav ul li a { padding: 6px 14px; font-size: 14px; }
    .header-search input { width: 140px; }
    .news-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 26px; }
    .hero { padding: 30px 0; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 22px; }
    .hero-btns .btn-primary,
    .hero-btns .btn-secondary {
        padding: 10px 20px;
        font-size: 14px;
    }
    .section-header h2 { font-size: 20px; }
    .faq-question { font-size: 14px; padding: 14px 16px; }
}