/* ========================================
   一人江湖 - 古风主题样式
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "STSong", "SimSun", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "KaiTi", "楷体", "Microsoft YaHei", serif;
    color: #3d3226;
    background: #f7f3eb;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

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

/* ---------- 导航栏 ---------- */
.jianghu-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(30, 25, 20, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #8b6914;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d4af37;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.brand-icon {
    font-size: 26px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link {
    color: #c5b8a0;
    padding: 8px 16px;
    font-size: 15px;
    letter-spacing: 2px;
    border-radius: 3px;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.08);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #d4af37;
}

.nav-member {
    margin-left: 10px;
    border: 1px solid #8b6914;
    border-radius: 3px;
    color: #d4af37;
}

.nav-member:hover {
    background: #8b6914;
    color: #fff;
}

/* ---------- 英雄区 Hero ---------- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1410 0%, #2d2418 30%, #3d2e1e 60%, #1a1410 100%);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(139, 105, 20, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(139, 105, 20, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(139, 105, 20, 0.08) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L35 25 L55 30 L35 35 L30 55 L25 35 L5 30 L25 25 Z' fill='rgba(139,105,20,0.03)'/%3E%3C/svg%3E");
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.deco-line {
    display: block;
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, #d4af37, transparent);
}

.deco-diamond {
    color: #d4af37;
    font-size: 14px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.hero-title {
    font-size: 72px;
    font-weight: bold;
    letter-spacing: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.title-char {
    display: inline-block;
    background: linear-gradient(180deg, #d4af37 0%, #f0d68a 30%, #c9a84c 60%, #8b6914 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.4));
    animation: charGlow 2s ease-in-out infinite alternate;
}

.title-char:nth-child(1) { animation-delay: 0s; }
.title-char:nth-child(2) { animation-delay: 0.2s; }
.title-char:nth-child(3) { animation-delay: 0.4s; }
.title-char:nth-child(4) { animation-delay: 0.6s; }

@keyframes charGlow {
    from { filter: drop-shadow(0 2px 6px rgba(212, 175, 55, 0.3)); }
    to { filter: drop-shadow(0 2px 18px rgba(212, 175, 55, 0.7)); }
}

.hero-subtitle {
    font-size: 22px;
    color: #c5b8a0;
    letter-spacing: 6px;
    margin-bottom: 12px;
    font-style: italic;
}

.hero-desc {
    font-size: 16px;
    color: #8c7e6b;
    letter-spacing: 4px;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounceDown 2s infinite;
}

.scroll-icon {
    font-size: 20px;
    color: rgba(212, 175, 55, 0.6);
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(12px); }
}

/* ---------- 分类导航条 ---------- */
.category-bar {
    background: #fff;
    border-bottom: 1px solid #e8ddd0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 60px;
    z-index: 99;
}

.cat-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 0;
}

.cat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 15px 24px;
    color: #6b5e4f;
    font-size: 15px;
    letter-spacing: 1px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.cat-item:hover {
    color: #8b6914;
    background: #fdf8f0;
}

.cat-item.active {
    color: #8b6914;
    border-bottom-color: #8b6914;
    background: #fdf8f0;
}

.cat-icon {
    font-size: 14px;
    color: #c04040;
}

/* ---------- 通用区块 ---------- */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 6px;
    color: #2c2416;
    margin-bottom: 12px;
}

.section-title.light {
    color: #fff;
}

.section-title .title-icon {
    display: inline-block;
    margin-right: 8px;
    font-size: 28px;
}

.section-desc {
    font-size: 15px;
    color: #8c7e6b;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-desc.light {
    color: rgba(255, 255, 255, 0.7);
}

.title-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.divider-line {
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, #8b6914, transparent);
}

.divider-line.light {
    background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.6), transparent);
}

.divider-symbol {
    color: #8b6914;
    font-size: 14px;
}

/* ---------- 文章板块 ---------- */
.article-section {
    padding: 80px 0;
    background: #fdfaf5;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.article-card {
    position: relative;
    background: #fff;
    border: 1px solid #e8ddd0;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: #c9a84c;
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    padding: 3px 10px;
    font-size: 12px;
    letter-spacing: 1px;
    border-radius: 2px;
    color: #fff;
}

.card-badge.top {
    background: #c04040;
}

.card-badge.recommend {
    background: #8b6914;
    left: auto;
    right: 12px;
}

.card-link {
    display: block;
    color: inherit;
}

.card-cover {
    height: 200px;
    overflow: hidden;
    background: #f0ebe0;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-card:hover .card-cover img {
    transform: scale(1.08);
}

.card-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8ddd0 0%, #dfd3c0 100%);
}

.placeholder-icon {
    font-size: 48px;
    opacity: 0.5;
}

.card-body {
    padding: 20px 22px;
}

.card-category {
    display: inline-block;
    font-size: 12px;
    color: #8b6914;
    letter-spacing: 2px;
    padding: 2px 10px;
    border: 1px solid #d4af37;
    border-radius: 2px;
    margin-bottom: 12px;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c2416;
    line-height: 1.5;
    margin-bottom: 10px;
    letter-spacing: 1px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-desc {
    font-size: 14px;
    color: #8c7e6b;
    line-height: 1.7;
    margin-bottom: 16px;
}

.card-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #b5a694;
    padding-top: 12px;
    border-top: 1px dashed #e8ddd0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 3px;
}

.section-more {
    text-align: center;
    margin-top: 50px;
}

.btn-more {
    display: inline-block;
    padding: 12px 40px;
    border: 1px solid #8b6914;
    color: #8b6914;
    font-size: 15px;
    letter-spacing: 3px;
    border-radius: 2px;
    transition: all 0.3s;
}

.btn-more:hover {
    background: #8b6914;
    color: #fff;
}

/* ---------- 广告板块 / 江湖百晓 ---------- */
.ad-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #2d2418 0%, #1a1410 50%, #3d2e1e 100%);
    background-image:
        radial-gradient(ellipse at 30% 20%, rgba(139, 105, 20, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(139, 105, 20, 0.08) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L35 25 L55 30 L35 35 L30 55 L25 35 L5 30 L25 25 Z' fill='rgba(212,175,55,0.02)'/%3E%3C/svg%3E");
    position: relative;
}

.ad-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.ad-card {
    perspective: 1000px;
}

.ad-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    text-align: center;
    color: #c5b8a0;
    transition: all 0.4s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.ad-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.ad-inner:hover {
    border-color: #d4af37;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: #f0d68a;
}

.ad-inner:hover::before {
    opacity: 1;
}

.ad-icon {
    font-size: 40px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.ad-inner h3 {
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: bold;
}

.ad-inner p {
    font-size: 13px;
    color: #8c7e6b;
    margin-bottom: 18px;
    letter-spacing: 1px;
}

.ad-btn {
    display: inline-block;
    padding: 6px 24px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #d4af37;
    font-size: 13px;
    letter-spacing: 2px;
    border-radius: 2px;
    transition: all 0.3s;
}

.ad-inner:hover .ad-btn {
    background: #8b6914;
    border-color: #8b6914;
    color: #fff;
}

/* ---------- 资讯板块 / 江湖风云 ---------- */
.news-section {
    padding: 80px 0;
    background: #fdfbf6;
}

.news-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
}

.news-item {
    background: #fff;
    border: 1px solid #e8ddd0;
    border-radius: 4px;
    margin-bottom: 20px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.news-item:hover {
    border-color: #c9a84c;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
}

.news-link {
    display: flex;
    color: inherit;
}

.news-thumb {
    width: 200px;
    min-height: 140px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f0ebe0;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-item:hover .news-thumb img {
    transform: scale(1.05);
}

.news-thumb-placeholder {
    width: 100%;
    height: 100%;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8ddd0, #dfd3c0);
    font-size: 36px;
    opacity: 0.4;
}

.news-info {
    padding: 20px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c2416;
    letter-spacing: 1px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.news-desc {
    font-size: 14px;
    color: #8c7e6b;
    line-height: 1.7;
    margin-bottom: 12px;
}

.news-meta {
    font-size: 12px;
    color: #b5a694;
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ---------- 侧边栏 ---------- */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-card {
    background: #fff;
    border: 1px solid #e8ddd0;
    border-radius: 4px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.sidebar-title {
    font-size: 16px;
    font-weight: bold;
    color: #2c2416;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.sidebar-divider {
    width: 30px;
    height: 2px;
    background: #8b6914;
    margin-bottom: 16px;
}

.sidebar-empty {
    font-size: 13px;
    color: #b5a694;
    padding: 15px 0;
}

.hot-list {
    list-style: none;
    padding: 0;
}

.hot-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #f0ebe0;
}

.hot-list li:last-child {
    border-bottom: none;
}

.hot-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #3d3226;
    transition: color 0.3s;
}

.hot-list a:hover {
    color: #8b6914;
}

.hot-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 2px;
    background: #f0ebe0;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.hot-rank.top {
    background: #c04040;
    color: #fff;
}

.hot-title {
    font-size: 14px;
    line-height: 1.5;
}

.link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.link-item {
    display: inline-block;
    padding: 5px 14px;
    font-size: 13px;
    color: #6b5e4f;
    background: #fdf8f0;
    border: 1px solid #e8ddd0;
    border-radius: 2px;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.link-item:hover {
    color: #8b6914;
    border-color: #8b6914;
    background: #fff;
}

/* ---------- 空状态 ---------- */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 60px;
    display: block;
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state p {
    font-size: 16px;
    color: #b5a694;
    letter-spacing: 2px;
}

/* ---------- 页脚 ---------- */
.jianghu-footer {
    background: #1a1410;
    border-top: 2px solid #8b6914;
}

.footer-top {
    padding: 40px 0;
    text-align: center;
}

.footer-tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #c5b8a0;
    font-size: 16px;
    letter-spacing: 4px;
    font-style: italic;
}

.tagline-deco {
    color: #8b6914;
    font-size: 12px;
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: #6b5e4f;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.footer-bottom .beian a {
    color: #5a4e3e;
    font-size: 12px;
}

.footer-bottom .beian a:hover {
    color: #8b6914;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ad-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-layout {
        grid-template-columns: 1fr;
    }

    .news-thumb {
        width: 160px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 42px;
        letter-spacing: 12px;
    }

    .hero-subtitle {
        font-size: 16px;
        letter-spacing: 3px;
    }

    .hero-desc {
        font-size: 13px;
        letter-spacing: 2px;
    }

    .article-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ad-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .section-title {
        font-size: 24px;
        letter-spacing: 4px;
    }

    .cat-list {
        padding: 5px 0;
    }

    .cat-item {
        padding: 10px 14px;
        font-size: 13px;
    }

    .article-section,
    .ad-section,
    .news-section {
        padding: 50px 0;
    }

    .news-link {
        flex-direction: column;
    }

    .news-thumb {
        width: 100%;
        height: 180px;
        min-height: auto;
    }

    .card-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .news-meta {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
        letter-spacing: 8px;
    }

    .hero-dec-line {
        width: 40px;
    }

    .footer-tagline {
        font-size: 13px;
        letter-spacing: 2px;
    }
}
