﻿:root {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --primary: #1e3c72;
    --primary-light: #2a4b8c;
    --text: #1e293b;
    --text-light: #475569;
    --bg: #ffffff;
    --border: #e2e8f0;
    --card-bg: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.03), 0 2px 6px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 20px 30px -10px rgba(0, 20, 40, 0.15);
    --transition: 0.2s ease;
    --header-bg: rgba(255, 255, 255, 0.98);
    --header-scrolled-bg: rgba(255, 255, 255, 0.95);
}

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

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

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

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

ul,
li {
    list-style: none;
}

.line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.line-clamp-4 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}


.site-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(4px);
    transition: background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
    background: var(--header-scrolled-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

.logo a {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--primary);
}

.logo span {
    font-weight: 300;
    color: #64748b;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-list a {
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}

.nav-list a:hover,
.nav-list a.active {
    border-bottom-color: var(--primary);
    color: var(--primary);
}

.header-tools {
    display: flex;
    gap: 1rem;
}

.menu-toggle,
.search-toggle {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text);
    display: none;

}



@media (min-width: 769px) {
    .nav-list {
        display: flex !important;
    }
}


.breaking-bar {
    background: #fef9c3;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.breaking-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.badge {
    background: #dc2626;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
}


.card-hover {
    border-radius: 10px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

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

.card-img {
    overflow: hidden;
    border-radius: 12px;
    background: #f1f5f9;
    flex: 0 0 40%;
}

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

.card-hover:hover .card-img img {
    transform: scale(1.05);
}

.card-horizontal .card-img{
    flex: 0 0 20%;
}

.img-4x3 {
    aspect-ratio: 4/3;
}

.card-content {
    padding: 15px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.tag {
    display: inline-block;
    background: #eef2ff;
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-right: 0.5rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tag.politics {
    background: #fee2e2;
    color: #b91c1c;
}

.tag.tech {
    background: #e0f2fe;
    color: #0369a1;
}

.tag.finance {
    background: #dcfce7;
    color: #166534;
}

.tag.culture {
    background: #f3e8ff;
    color: #6b21a8;
}

.tag.health {
    background: #fff1f2;
    color: #9f1239;
}

.card-meta {
    font-size: 1rem;
    color: #64748b;
    display: flex;
    gap: 1rem;
}


.featured-section {
    padding: 40px 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.featured-main .card-title {
    font-size: 1.8rem;
    -webkit-line-clamp: 3;
}

.featured-sub {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-horizontal .card-link.horizontal {
    display: flex;
    gap: 16px;
}



.card-horizontal .card-content {
    padding: 0;
}

.card-horizontal .card-title {
    margin: 0 0 4px;
}

@media (max-width: 800px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
}

.category-block {
    margin: 50px 0;
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
}

.block-title {
    font-size: 1.8rem;
    font-weight: 400;
    border-left: 6px solid var(--primary);
    padding-left: 15px;
}

.view-all {
    font-weight: 500;
    color: var(--primary);
}

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

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

.horizontal-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


@media (max-width: 1000px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 600px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

.special-reports {
    padding: 40px 0;
    background: #f8fafc;
}

.special-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.special-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.special-card .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 20px;
}

.special-card .tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.special-card .card-meta {
    color: #ddd;
}

@media (max-width: 700px) {
    .special-grid {
        grid-template-columns: 1fr;
    }
}

.trending-tags {
    padding: 30px 0;
    text-align: center;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.tag-item {
    background: #f1f5f9;
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: 0.2s;
    cursor: default;
}

.tag-item:hover {
    background: #e2e8f0;
}

.newsletter-section {
    background: #f1f4f9;
    padding: 50px 0;
    margin-top: 30px;
}

.newsletter-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin: 20px 0 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    padding: 12px 16px;
    width: 280px;
    border: 1px solid var(--border);
    border-radius: 40px;
    font-size: 1rem;
}

.newsletter-form button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.newsletter-form button:hover {
    background: var(--primary-light);
}

.form-note {
    font-size: 0.8rem;
    color: #64748b;
}


.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 20px 0;
}

.site-footer p {
    text-align: center;
    margin: 0;
}

.site-footer a {
    color: #cbd5e1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
}

.footer-logo span {
    color: #94a3b8;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a:hover {
    color: white;
}

@media (max-width: 800px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 500px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}


.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: opacity 0.2s, visibility 0.2s, background 0.2s;
    opacity: 0;
    visibility: hidden;
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-light);
}


.breadcrumb {
    padding: 20px 0 10px;
    color: #64748b;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumb li {
    font-size: 0.95rem;
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 0.5rem;
    color: #cbd5e1;
}

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

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
    font-weight: 600;
    color: var(--text);
}


.two-column {
    display: grid;
    grid-template-columns: 70% 28%;
    gap: 2%;
    margin: 30px 0;
}

@media (max-width: 900px) {
    .two-column {
        grid-template-columns: 100%;
    }
}


.sidebar-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 24px 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
    padding-left: 12px;
}


.author-card {
    display: flex;
    gap: 18px;
    align-items: center;
}

.author-avatar img{
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #e2e8f0;
}

.author-info{
    flex: 1;
}

.author-info h3 {
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.author-bio {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}


.related-list li {
    margin-bottom: 12px;
    border-bottom: 1px dashed var(--border);
    padding-bottom: 8px;
}

.related-list a {
    color: var(--primary);
    font-weight: 500;
    transition: 0.2s;
}

.related-list a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}


.recent-posts li {
    margin-bottom: 12px;
}

.recent-posts a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
    font-size: 0.95rem;
    transition: 0.2s;
}

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

.recent-posts .date {
    font-size: 0.8rem;
    color: #64748b;
    white-space: nowrap;
    margin-left: 10px;
}


.category-list li {
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    color: var(--text);
    font-weight: 500;
    transition: 0.2s;
}

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

.category-list .count {
    background: #e2e8f0;
    padding: 0.2rem 0.6rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 400;
}


.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.custom-select {
    position: relative;
    display: inline-block;
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 8px 16px;
    background: white;
    cursor: default;
}

.custom-select .selected {
    padding-right: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="6 9 12 15 18 9"/></svg>') no-repeat right;
}

.select-options {
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    list-style: none;
    padding: 8px 0;
    display: none;
    z-index: 10;
}

.custom-select:hover .select-options {
    display: block;
}

.select-options li {
    padding: 8px 16px;
}

.select-options li:hover {
    background: #f1f5f9;
}

.filter-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag-filter {
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: white;
    cursor: default;
}

.tag-filter.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}


.article-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.list-card .card-link.horizontal {
    display: flex;
    gap: 24px;
}


@media (max-width: 600px) {
    .list-card .card-link.horizontal {
        flex-direction: column;
    }

    .list-card .card-img {
        width: 100%;
    }
}


.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.page-link {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    transition: 0.2s;
}

.page-link:hover {
    background: #f1f5f9;
}

.page-link.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-link.disabled {
    opacity: 0.5;
    pointer-events: none;
}


.detail-article .article-header {
    margin-bottom: 20px;
}

.article-header h1 {
    font-size: 2.4rem;
    line-height: 1.2;
    margin-bottom: 10px;
    color: #0f172a;
}

@media (max-width: 700px) {
    .article-header h1 {
        font-size: 1.4rem;
    }
}

.subhead {
    font-size: 1.2rem;
    color: #475569;
    margin-bottom: 15px;
    font-weight: 400;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin: 15px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.meta-left {
    display: flex;
    gap: 20px;
    color: #64748b;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.author-mini {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-mini-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.author-mini-name {
    font-weight: 500;
    color: var(--primary);
}

.article-tags {
    margin: 10px 0 20px;
}

.article-body {
    margin: 0 auto;
    font-size: 0.985rem;
    letter-spacing: 0.2px;
    color: #171717;
    line-height: 1.75;
}

.article-body img {
    margin: 0 auto;
}

.article-body p {
    margin-bottom: 1.8em;
}

.article-body h2 {
    font-size: 1.8rem;
    margin: 1.8em 0 0.8em;
    color: #0f172a;
}

.author-bio-card {
    display: flex;
    gap: 24px;
    background: #f8fafc;
    border-radius: 20px;
    padding: 24px;
    margin: 40px 0 30px;
    border: 1px solid var(--border);
    align-items: center;
}

.author-bio-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-bio-text h4 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.author-bio-title {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 500;
}

.author-bio-text p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

@media (max-width: 550px) {
    .author-bio-card {
        flex-direction: column;
        text-align: center;
    }
}

.share-buttons {
    display: flex;
    gap: 10px;
    margin: 40px 0 30px;
    align-items: center;
    flex-wrap: wrap;
}

.share-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 30px;
    background: #e2e8f0;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.share-btn:hover {
    background: #cbd5e1;
}

.comments-section {
    margin: 50px 0;
    border-top: 1px solid var(--border);
    padding-top: 30px;
}

.comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.comment-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 6px;
}

.comment-date {
    font-size: 0.85rem;
    color: #64748b;
}

.comment p {
    font-size: 0.985rem;
    color: #334155;
}

.comment-form {
    margin-top: 30px;
}

.comment-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    font-family: inherit;
    font-size: 0.985rem;
    resize: vertical;
}

.comment-form button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 30px;
    margin-top: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.comment-form button:hover {
    background: var(--primary-light);
}

.related-posts {
    margin: 50px 0;
}

.related-posts h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
    padding-left: 15px;
}

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

.card-vertical.small .card-title {
    font-size: 1rem;
}

.card-vertical.small .card-img {
    margin-bottom: 8px;
}

@media (max-width: 700px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

.article-featured-img {
    border-radius: 20px;
    overflow: hidden;
    margin: 25px 0;
}


.author-detail-page {
    padding-bottom: 50px;
}

.author-profile-full {
    max-width: 1000px;
    margin: 0 auto;
}

.author-profile-header {
    display: flex;
    gap: 40px;
    align-items: center;
    margin: 30px 0 40px;
    background: #f8fafc;
    border-radius: 32px;
    padding: 40px;
    border: 1px solid var(--border);
}

.author-avatar-large {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #e2e8f0;
    border: 4px solid white;
    box-shadow: var(--shadow);
}

.author-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info-large h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
    color: #0f172a;
}

.author-title {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 500;
}

.author-meta-detail {
    display: flex;
    gap: 30px;
    margin: 20px 0;
    color: #475569;
    font-size: 0.95rem;
}

.author-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e2e8f0;
    color: var(--primary);
    font-size: 1.3rem;
    transition: 0.2s;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.author-bio-full {
    background: white;
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}

.author-bio-full h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    border-left: 6px solid var(--primary);
    padding-left: 20px;
}

.author-bio-full p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #2d3a4f;
    margin-bottom: 1.5em;
}

.author-works h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    border-left: 6px solid var(--primary);
    padding-left: 20px;
}

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

.works-footer {
    margin-top: 30px;
    text-align: center;
}

.view-all-link {
    display: inline-block;
    padding: 10px 30px;
    background: #f1f5f9;
    border-radius: 40px;
    font-weight: 600;
    color: var(--primary);
    transition: 0.2s;
    border: 1px solid transparent;
}

.view-all-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

@media (max-width: 800px) {
    .author-profile-header {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .author-meta-detail {
        justify-content: center;
        flex-wrap: wrap;
    }

    .author-social {
        justify-content: center;
    }

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

@media (max-width: 768px) {
    .meta-row {
        gap: 0.5rem;
    }

    .meta-left {
        gap: 0.5rem;
        font-size: 0.75rem;
    }

    .author-mini-name {
        font-size: 0.75rem;
    }

    .site-header {
        position: relative;
    }

    .header-container {
        height: 54px;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        gap: 1rem;
        background: white;
        padding: 1rem;
        position: absolute;
        top: 54px;
        left: 0;
        right: 0;
        box-shadow: 0 10px 15px -5px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--border);
    }

    .nav-list.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}

@media (max-width: 500px) {
    .works-grid {
        grid-template-columns: 1fr;
    }

    .author-avatar-large {
        width: 150px;
        height: 150px;
    }
}