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

body {
    font-family: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    text-decoration: underline;
}

ul,
ol {
    list-style: none;
}

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

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

.site-header {
    background-color: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #eaeef2;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(4px);
    transition: background-color 0.2s, box-shadow 0.2s;
}

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

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

.logo a {
    font-size: 1.8rem;
    font-weight: 600;
    text-decoration: none;
    color: #0b1c2f;
    letter-spacing: -0.02em;
}

.logo span {
    color: #cc4e3f;
    font-weight: 400;
}

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

.nav-list a {
    text-decoration: none;
    color: #2c3e4e;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list a.active {
    color: #cc4e3f;
    border-bottom-color: #cc4e3f;
}

.hamburger {
    display: none;
    background: none;
    border: 1px solid #ccc;
    font-size: 2rem;
    cursor: pointer;
    padding: 0 12px;
    border-radius: 6px;
    color: #333;
}

@media (max-width: 768px) {
    .main-nav {
        position: absolute;
        top: 54px;
        left: 0;
        width: 100%;
        background: white;
        border-top: 1px solid #eee;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-nav.open {
        max-height: 400px;
    }

    .nav-list {
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1.2rem;
    }

    .hamburger {
        display: block;
    }
}

.breaking-strip {
    background-color: #f8fafd;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 0;
    font-size: 0.95rem;
}

.breaking-label {
    background: #cc4e3f;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    margin-right: 16px;
    display: inline-block;
}

.breaking-text {
    color: #1e2a36;
}

.section {
    padding: 48px 0;
    border-bottom: 1px solid #f0f3f7;
}

.section-title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 36px;
    letter-spacing: -0.01em;
    color: #0f1a28;
    border-left: 6px solid #cc4e3f;
    padding-left: 20px;
}

.section-title span {
    font-weight: 300;
    color: #5e6f7e;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

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

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

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

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

    .card-grid--6 {
        grid-template-columns: 1fr;
    }
}

.card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s, box-shadow 0.3s;
    border: 1px solid #edf2f7;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -8px rgba(0, 35, 65, 0.12);
}

.card-v {
    flex-direction: column;
}

.card-h {
    flex-direction: row;
    /* grid-column: span 2; */
}

.card-h .card__img {
    width: 40%;
    aspect-ratio: 4/3;
}

.card-h .card__content {
    width: 60%;
    padding: 20px 24px;
}

.card--light {
    background-color: #fafcff;
}

.card-textonly {
    background: #f5f8fe;
    justify-content: center;
}

.card-textonly .card__content {
    padding: 28px;
}

.card__img {
    overflow: hidden;
}

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

.card:hover .card__img img {
    transform: scale(1.03);
}

.ratio-4x3 {
    aspect-ratio: 4 / 3;
    width: 100%;
}

.card__content {
    padding: 20px 18px 24px;
    flex: 1;
}

.card__tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #cc4e3f;
    background: #fff1ed;
    padding: 4px 12px;
    border-radius: 30px;
    margin-bottom: 12px;
}

.card__title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #0f1e2e;
}

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

.card__title a:hover {
    color: #cc4e3f;
}

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

.card__excerpt {
    color: #3f4f5f;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

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

.card__meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: #687888;
}

.meta-author span {
    color: #2b3f54;
    font-weight: 500;
}

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

.special-card {
    background: white;
    border-radius: 28px;
    border: 1px solid #eef3f9;
    overflow: hidden;
    transition: all 0.2s;
}

.special-card:hover {
    box-shadow: 0 25px 35px -10px rgba(0, 55, 100, 0.15);
}

.special-card__content {
    padding: 28px 26px;
}

.special-card__title {
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.3;
    margin: 12px 0;
}

.special-card__excerpt {
    color: #3f4f5f;
    margin-bottom: 16px;
}

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

.category-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0;
}

.category-item {
    background: #f2f6fc;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 500;
    color: #1f3447;
    text-decoration: none;
    border: 1px solid #dbe4ed;
    transition: 0.15s;
}

.category-item:hover {
    background: #cc4e3f;
    color: white;
    border-color: #cc4e3f;
}

.site-footer {
    background: #11212e;
    color: #d1dde8;
    padding: 56px 0 40px;
    margin-top: 40px;
}

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

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

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

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

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

.footer-col a {
    color: #b0c5d4;
    text-decoration: none;
}

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

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

.footer-logo span {
    color: #e2725b;
}

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

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

.breadcrumb-wrap {
    margin-top: 20px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 12px 24px;
    background: #f8fafd;
    border-radius: 50px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #4b6377;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin: 0 12px;
    color: #b1c3d2;
    font-size: 1.2rem;
    line-height: 1;
}

.breadcrumb a {
    color: #cc4e3f;
    text-decoration: none;
    font-weight: 500;
}

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

.breadcrumb [aria-current="page"] {
    font-weight: 500;
    color: #1f3447;
}

.main-layout {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 40px;
    margin: 40px auto;
    align-items: start;
}

@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 100%;
        gap: 30px;
    }
}

.sidebar-widget {
    background: #ffffff;
    border: 1px solid #ecf2f8;
    border-radius: 24px;
    padding: 28px 24px;
    margin-bottom: 36px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.widget-title {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: #0f1e2e;
    border-left: 4px solid #cc4e3f;
    padding-left: 16px;
}

.author-card {
    text-align: center;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    border: 3px solid #f0f5fb;
}

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

.author-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1d2f40;
}

.author-bio {
    color: #506679;
    font-size: 0.95rem;
    margin-bottom: 18px;
    line-height: 1.6;
}

.author-social {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.author-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #edf4fa;
    border-radius: 50%;
    line-height: 40px;
    text-align: center;
    color: #1f3b4f;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.author-social a:hover {
    background: #cc4e3f;
    color: white;
}

.post-list {
    list-style: none;
}

.post-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid #eaf0f6;
}

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

.post-list a {
    color: #1f3a4f;
    text-decoration: none;
    font-weight: 500;
    flex: 1;
    margin-right: 12px;
}

.post-list a:hover {
    color: #cc4e3f;
}

.post-date {
    font-size: 0.8rem;
    color: #7f95aa;
    white-space: nowrap;
}

.category-list {
    list-style: none;
}

.category-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #dde5ef;
}

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

.category-list a {
    color: #1f3a4f;
    text-decoration: none;
    font-weight: 500;
}

.category-list a:hover {
    color: #cc4e3f;
}

.cat-count {
    background: #ecf3f9;
    padding: 3px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    color: #3c5a73;
}

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

.page-link {
    padding: 8px 15px;
    border: 1px solid #dce5ec;
    border-radius: 30px;
    color: #1f3447;
    text-decoration: none;
}

.page-link.active,
.page-link:hover {
    background: #cc4e3f;
    border-color: #cc4e3f;
    color: white;
}

.page-dots {
    padding: 8px 0;
}

.page-link.prev,
.page-link.next {
    background: #f0f6fd;
    border-color: transparent;
    font-weight: 500;
}

.page-link.prev:hover,
.page-link.next:hover {
    background: #cc4e3f;
    color: white;
}

.detail-article {
    max-width: 860px;
}

.detail-header {
    margin: 20px 0 30px;
}

.detail-category {
    color: #cc4e3f;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.detail-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    line-height: 1.2;
    font-weight: 500;
    margin: 16px 0 8px;
    color: #0f1e2e;
}

.detail-subhead {
    font-size: 1.3rem;
    font-weight: 300;
    color: #4a657a;
    margin: 8px 0 20px;
    line-height: 1.5;
    letter-spacing: 0.2px;
}

.detail-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin: 20px 0 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaf0f6;
}

.meta-author-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.meta-author {
    color: #2d4a66;
    font-size: 1rem;
}

.meta-author strong {
    font-weight: 600;
    color: #0f1e2e;
}

.meta-date,
.meta-views {
    color: #617e9a;
    font-size: 0.95rem;
}

.detail-img {
    margin: 40px 0 30px;
    border-radius: 24px;
    overflow: hidden;
}

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

.detail-content {
    font-size: 0.985rem;
    letter-spacing: 0.2px;
    color: #171717;
    line-height: 1.75;
    margin: 30px 0;
}

.detail-content img {
    margin: 0 auto;
}

.detail-content p {
    font-size: 1.085rem;
    letter-spacing: 0.2px;
    color: #171717;
    line-height: 1.7;
    margin-bottom: 1.8em;
}

.detail-content h2 {
    font-size: 1.8rem;
    font-weight: 500;
    margin: 2rem 0 1rem;
    color: #0f1e2e;
}

.detail-tags {
    margin: 48px 0 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.tag-label {
    font-weight: 500;
    color: #2c445b;
}

.tag-link {
    background: #edf3f8;
    padding: 6px 18px;
    border-radius: 40px;
    color: #1e3b4f;
    text-decoration: none;
}

.tag-link:hover {
    background: #cc4e3f;
    color: white;
}

.author-bio-card {
    display: flex;
    gap: 24px;
    background: #f5faff;
    border-radius: 28px;
    padding: 28px;
    margin: 40px 0;
    border: 1px solid #dde9f5;
}

.author-bio-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.author-bio-text h4 {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 12px;
    color: #1d2f40;
}

.author-bio-text p {
    color: #3c576b;
    line-height: 1.6;
    margin-bottom: 16px;
}

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

.author-bio-social a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: #e3eef9;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    color: #1f3b4f;
    text-decoration: none;
    transition: 0.2s;
}

.author-bio-social a:hover {
    background: #cc4e3f;
    color: white;
}

.share-bar {
    background: #f5f9ff;
    padding: 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.share-label {
    font-weight: 500;
    color: #1f3b4f;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.share-btn {
    background: white;
    border: 1px solid #d3dee9;
    border-radius: 40px;
    padding: 10px 24px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.share-btn:hover {
    background: #cc4e3f;
    color: white;
    border-color: #cc4e3f;
}

.comments-section {
    margin: 60px 0;
}

.comments-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.comment {
    border-bottom: 1px solid #e0eaf2;
    padding: 20px 0;
}

.comment-author {
    font-weight: 600;
    color: #1f3447;
}

.comment-date {
    font-size: 0.85rem;
    color: #6e869b;
}

.comment-text {
    margin: 10px 0;
}

.comment-form {
    background: #f8fbfe;
    padding: 30px;
    border-radius: 24px;
    margin-top: 40px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 18px;
    border: 1px solid #cedcea;
    border-radius: 40px;
    font-family: inherit;
}

.comment-form button {
    background: #cc4e3f;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
}

.comment-form button:hover {
    background: #b63e2f;
}

.related-articles {
    margin: 60px 0;
}

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

.related-card {
    text-decoration: none;
    color: inherit;
    border: 1px solid #ecf2f8;
    border-radius: 20px;
    padding: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -8px rgba(0, 35, 65, 0.1);
}

.related-img {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

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

.related-card h4 {
    font-weight: 500;
    font-size: 1rem;
    color: #1e2f3d;
    margin-bottom: 6px;
}

.related-meta {
    display: block;
    font-size: 0.8rem;
    color: #778faa;
}

.author-page {
    max-width: 1000px;
    margin: 0 auto 60px;
}

.author-profile-card {
    display: flex;
    gap: 40px;
    background: #ffffff;
    border-radius: 32px;
    padding: 40px;
    margin: 30px 0 40px;
    border: 1px solid #ecf2f8;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
}

.author-profile-avatar {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #f0f6fd;
}

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

.author-profile-info {
    flex: 1;
}

.author-profile-name {
    font-size: 2.6rem;
    font-weight: 500;
    color: #0f1e2e;
    margin-bottom: 8px;
    line-height: 1.2;
}

.author-profile-title {
    font-size: 1.2rem;
    color: #cc4e3f;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 0.2px;
}

.author-profile-bio p {
    color: #2d445b;
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.author-profile-social {
    display: flex;
    gap: 18px;
    margin-top: 24px;
}

.author-profile-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #edf4fa;
    border-radius: 50%;
    color: #1f3b4f;
    text-decoration: none;
    font-size: 1.4rem;
    transition: background 0.2s, color 0.2s;
}

.author-profile-social a:hover {
    background: #cc4e3f;
    color: white;
}

.author-detail-content {
    background: #f8fbfe;
    border-radius: 28px;
    padding: 40px;
    margin: 40px 0;
    border-left: 6px solid #cc4e3f;
}

.author-detail-content h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 24px;
    color: #1d3347;
}

.author-detail-content p {
    color: #2d445b;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.08rem;
    letter-spacing: 0.2px;
}

.author-latest-articles {
    margin-top: 50px;
}

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

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

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

@media (max-width: 768px) {
    .site-header {
        position: relative;
    }

    .header-container {
        height: 54px;
    }

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

    .detail-title {
        font-size: 1.4rem;
        margin-top: 0;
    }

    .detail-meta-bar {
        gap: 0.5rem;
    }

    .meta-author,
    .meta-date,
    .meta-views {
        font-size: 0.75rem;
    }

    .card-h {
        flex-direction: column;
    }

    .card-h .card__img,
    .card-h .card__content {
        width: 100%;
    }

    .author-profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
    }

    .author-profile-avatar {
        width: 140px;
        height: 140px;
    }

    .author-profile-name {
        font-size: 2rem;
    }

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

    .author-detail-content {
        padding: 30px 20px;
    }
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1e3347;
    color: white;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    z-index: 99;
    transition: 0.2s;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    background: #cc4e3f;
}