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

:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --text-dark: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text-body);
    line-height: 1.7;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 32px;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    color: var(--primary);
}

header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.logo:hover {
    color: var(--text-dark);
}

.logo span {
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav ul li a {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary);
}

.search-box {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
}

.search-box input {
    border: none;
    padding: 10px 16px;
    width: 200px;
    font-size: 14px;
    outline: none;
    background: transparent;
}

.search-box button {
    border: none;
    background: transparent;
    padding: 10px 14px;
    cursor: pointer;
}

.search-box button svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-muted);
}

.main {
    padding: 40px 0 60px;
}

.news-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    margin-bottom: 48px;
}

.main-col {
    min-width: 0;
}

.featured-news {
    margin-bottom: 24px;
}

.featured-image {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--border-light);
    color: var(--text-light);
    font-size: 14px;
}

.news-card-image .no-thumb {
    width: 100%;
    height: 140px;
    min-height: auto;
}

.featured-image .no-thumb {
    height: 380px;
}

.recommend-thumb .no-thumb {
    width: 88px;
    height: 66px;
    border-radius: 8px;
    flex-shrink: 0;
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 48px 32px 32px;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: #fff;
}

.featured-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 14px;
}

.featured-overlay h1 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
}

.featured-overlay:hover h1 {
    color: var(--primary-light);
}

.featured-overlay p {
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.6;
}

.article-list {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
}

.article-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
}

.article-item:first-child {
    padding-top: 0;
}

.article-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.article-thumb {
    width: 180px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-channel {
    display: inline-block;
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 8px;
}

.article-info h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.45;
    margin-bottom: 8px;
}

.article-info h3 a:hover {
    color: var(--primary);
}

.article-info p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    font-size: 13px;
    color: var(--text-light);
}

.side-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
}

.sidebar-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.hot-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hot-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}

.hot-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hot-num {
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hot-item:nth-child(n+4) .hot-num {
    background: var(--text-light);
}

.hot-title {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-item:hover .hot-title {
    color: var(--primary);
}

.recommend-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recommend-item {
    display: flex;
    gap: 14px;
}

.recommend-thumb {
    width: 88px;
    height: 66px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.recommend-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommend-info {
    flex: 1;
}

.recommend-info h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.45;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommend-info span {
    font-size: 12px;
    color: var(--text-light);
}

.recommend-item:hover .recommend-info h4 {
    color: var(--primary);
}

.section-block {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 2px;
}

.more-link {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.more-link:hover {
    color: var(--primary);
}

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

.news-card {
    display: block;
}

.news-card-image {
    width: 100%;
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
    background: var(--border-light);
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card h3 {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card:hover h3 {
    color: var(--primary);
}

.news-card-meta {
    font-size: 13px;
    color: var(--text-light);
}

.page-header {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 32px;
}

.breadcrumb {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

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

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a {
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s;
    text-align: center;
    white-space: nowrap;
}

.pagination a:hover,
.pagination a.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pagination a.disabled {
    color: var(--text-light);
    cursor: not-allowed;
}

.pagination a.disabled:hover {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text-light);
}

.article-header {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 40px 48px;
    margin-bottom: 32px;
}

.article-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.article-header .article-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
    color: var(--text-light);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.article-header .article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.content-wrapper {
    display: flex;
    gap: 32px;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.article-cover {
    width: 100%;
    height: 420px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 32px;
    background: var(--border-light);
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 40px 48px;
    margin-bottom: 32px;
}

.article-body p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-body);
    margin-bottom: 20px;
}

.article-body h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 36px 0 16px;
}

.article-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    background: var(--bg);
    margin: 28px 0;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.75;
    border-radius: 0 8px 8px 0;
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.tag {
    padding: 6px 16px;
    background: var(--bg);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-muted);
    transition: all 0.2s;
}

.tag:hover {
    background: var(--primary);
    color: #fff;
}

.share-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.share-label {
    font-size: 14px;
    color: var(--text-light);
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s;
}

.share-btn:hover {
    opacity: 0.85;
}

.share-btn svg {
    width: 16px;
    height: 16px;
}

.share-btn.weibo { background: #e6162d; }
.share-btn.wechat { background: #07c160; }
.share-btn.link { background: var(--text-muted); }

.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
}

.article-nav-item {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px 24px;
    transition: background 0.2s;
}

.article-nav-item:hover {
    background: var(--bg);
}

.article-nav-item span {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.article-nav-item h4 {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.45;
}

.article-nav-item.disabled {
    cursor: default;
}

.article-nav-item.disabled:hover {
    background: var(--bg-card);
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.related-item {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.related-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-thumb {
    width: 76px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--border-light);
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-info h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-item:hover .related-info h4 {
    color: var(--primary);
}

.no-content {
    text-align: center;
    padding: 80px 0;
    color: var(--text-light);
}

.no-content a {
    color: var(--primary);
    margin-top: 16px;
    display: inline-block;
}

footer {
    background: var(--text-dark);
    color: var(--text-light);
    padding: 56px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-about h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 16px;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.8;
}

.footer-links h5 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 18px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-light);
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 28px;
    border-top: 1px solid #334155;
    font-size: 14px;
}

@media (max-width: 960px) {
    .news-layout {
        grid-template-columns: 1fr;
    }

    .side-col {
        flex-direction: row;
    }

    .sidebar-card {
        flex: 1;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .article-nav {
        grid-template-columns: 1fr;
    }

    .featured-image img {
        height: 320px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }

    nav ul {
        display: none;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .article-thumb {
        width: 140px;
        height: 100px;
    }

    .side-col {
        flex-direction: column;
    }

    .article-header {
        padding: 28px;
    }

    .article-header h1 {
        font-size: 24px;
    }

    .article-body {
        padding: 28px;
    }

    .section-block {
        padding: 24px;
    }
}
