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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #171717;
    background-color: #fff;
    letter-spacing: 0.2px;
}

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

ul,
ol {
    list-style: none;
}

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


.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}


.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s, box-shadow 0.3s;
}

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

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

.logo a {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #000;
}

.logo span {
    color: #d32f2f;
}

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

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

.main-nav a:hover,
.main-nav a.active {
    color: #d32f2f;
    border-bottom-color: #d32f2f;
}

.header-utils {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-toggle,
.menu-toggle {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #333;
    padding: 0.25rem;
    line-height: 1;
}

.menu-toggle {
    display: none;
}

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

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

    .main-nav .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        display: block;
        padding: 0.8rem 2rem;
        border-bottom: none;
    }

    .menu-toggle {
        display: inline-block;
    }

    .header-utils {
        gap: 0.5rem;
    }
}


.breaking-ticker {
    background-color: #f8f8f8;
    padding: 0.6rem 0;
    border-bottom: 1px solid #eaeaea;
    font-size: 0.9rem;
}

.ticker-label {
    background-color: #d32f2f;
    color: #fff;
    padding: 0.2rem 0.8rem;
    font-weight: 600;
    margin-right: 1rem;
    text-transform: uppercase;
}

.ticker-text {
    font-weight: 500;
}


.breadcrumb {
    padding: 1.5rem 0 1rem;
    font-size: 0.9rem;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li::after {
    content: "›";
    margin-left: 0.5rem;
    color: #999;
}

.breadcrumb li:last-child::after {
    content: "";
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #d32f2f;
}

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


.card-img {
    overflow: hidden;
    border-radius: 4px;
}

.card-img img {
    transition: transform 0.3s;
    aspect-ratio: 4/3;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.card-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #d32f2f;
    margin-bottom: 0.4rem;
}

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

.card-title a:hover {
    color: #d32f2f;
}

.card-excerpt {
    font-size: 1rem;
    color: #555;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    font-size: 1rem;
    color: #777;
}


.card-vertical {
    background: #fff;
}

.card-vertical .card-img {
    margin-bottom: 0.8rem;
}


.card-horizontal {
    display: flex;
    gap: 1.2rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.card-horizontal .card-img {
    flex: 0 0 240px;
}

.card-horizontal .card-content {
    flex: 1;
}

@media (max-width: 640px) {
    .card-horizontal {
        flex-direction: column;
        gap: 0.8rem;
    }

    .card-horizontal .card-img {
        flex: 0 0 auto;
        width: 100%;
    }
}


.card-small-horizontal {
    display: flex;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.card-small-horizontal .card-img {
    flex: 0 0 80px;
}

.card-small-horizontal .card-title {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}


.card-featured {
    display: flex;
    flex-direction: column;
}

.card-featured .card-img {
    margin-bottom: 1rem;
}

.card-featured .card-title {
    font-size: 1.6rem;
    -webkit-line-clamp: 2;
}


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

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

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

.card-special .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
}

.card-special .card-overlay .card-excerpt{
    color: #fff;
}

.card-special .special-label {
    display: inline-block;
    background: #d32f2f;
    padding: 0.2rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.card-special h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.card-special h3 a:hover {
    text-decoration: underline;
}


.card-horizontal-mini {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.card-horizontal-mini img {
    width: 80px;
    height: 80px;
    border-radius: 4px;
}

.card-horizontal-mini h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.card-horizontal-mini .meta {
    font-size: 0.8rem;
    color: #777;
}


.card-grid {
    display: grid;
    gap: 2rem;
}

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

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

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

@media (max-width: 640px) {

    .grid-4,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.featured-side {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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


.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.pill {
    background: #f5f5f5;
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}

.pill:hover {
    background: #e0e0e0;
}

.pill span {
    color: #777;
    font-size: 0.8rem;
    margin-left: 0.3rem;
}


.category-modules {
    margin: 3rem 0;
}

.category-row {
    margin-bottom: 2.5rem;
}

.cat-heading {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
}

.cat-heading a:hover {
    color: #d32f2f;
}


.category-layout {
    display: grid;
    grid-template-columns: 70% 28%;
    gap: 20px;
    margin: 2rem auto;
}

.category-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.title-meta {
    font-size: 1rem;
    color: #777;
    font-weight: 400;
}


.sidebar-card {
    background: #fafafa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.5rem;
}

.author-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
}

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

.author-info h3 {
    border-bottom: none;
    margin-bottom: 0.2rem;
}

.author-role {
    color: #d32f2f;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.author-bio {
    font-size: 0.9rem;
    color: #555;
}


.related-list li {
    margin-bottom: 1rem;
}

.related-list a {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.related-list img {
    width: 60px;
    height: 60px;
    border-radius: 4px;
}

.related-list span {
    font-weight: 500;
    font-size: 0.95rem;
}


.update-list li {
    margin-bottom: 0.8rem;
    border-bottom: 1px dashed #eee;
    padding-bottom: 0.5rem;
}

.update-list a {
    display: block;
    font-weight: 500;
}

.update-list span {
    font-size: 0.8rem;
    color: #d32f2f;
}

.update-time {
    display: block;
    font-size: 0.7rem;
    color: #999;
    margin-top: 0.2rem;
}


.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    color: #333;
}

.category-list span {
    color: #999;
}

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

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


.detail-article {
    max-width: 100%;
}

.detail-title {
    font-size: 2.2rem;
    line-height: 1.3;
    margin: 0.5rem 0 0.5rem;
}

@media (max-width: 768px) {
    .special-grid{
        grid-template-columns: 100%;
    }
    .site-header {
        position: relative;
    }

    .header-container {
        height: 54px;
    }

    .detail-title {
        font-size: 1.4rem;

    }

    .detail-meta {
        gap: 0.5rem;
    }

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

.detail-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.author-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.meta-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
}

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

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

.detail-body p {
    margin-bottom: 1.5rem;
}

.detail-figure {
    margin: 2rem 0;
}

.detail-img {
    border-radius: 4px;
    aspect-ratio: 4/3;
}

figcaption {
    font-size: 0.85rem;
    color: #777;
    margin-top: 0.5rem;
    text-align: center;
}

.detail-body h2 {
    font-size: 1.6rem;
    margin: 2rem 0 1rem;
}

.detail-categories {
    margin: 2rem 0;
}

.post-cat {
    display: inline-block;
    background: #f0f0f0;
    padding: 0.2rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.post-cat:hover {
    background: #e0e0e0;
}

.detail-author-card {
    display: flex;
    gap: 1.5rem;
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.author-card-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

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

.author-card-info h3 {
    margin-bottom: 0.5rem;
}

.detail-share {
    margin: 2rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.share-btn {
    background: #f0f0f0;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}

.share-btn:hover {
    background: #d32f2f;
    color: #fff;
}


.detail-comments {
    margin: 3rem 0;
}

.comment-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.comment-content {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    margin-right: 0.8rem;
}

.comment-date {
    font-size: 0.8rem;
    color: #777;
}

.comment-form-static {
    margin-top: 1.5rem;
}

.comment-form-static textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
    margin-bottom: 0.5rem;
}

.comment-form-static button {
    background: #333;
    color: #fff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: not-allowed;
    opacity: 0.5;
}

.related-posts {
    margin-top: 3rem;
}


.author-profile {
    margin: 2rem 0;
}

.author-profile-header {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.author-avatar-large img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.author-role {
    color: #d32f2f;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.author-short-bio {
    font-size: 1rem;
    color: #555;
    max-width: 600px;
}

.author-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: background 0.2s;
}

.social-link:hover {
    background: #d32f2f;
    color: #fff;
}

.author-detailed-bio {
    max-width: 800px;
}

.author-detailed-bio h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
}

.author-detailed-bio h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem;
}

.author-detailed-bio ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.author-detailed-bio li {
    margin-bottom: 0.3rem;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.tag {
    background: #f0f0f0;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
}

.author-latest {
    margin: 4rem 0;
}

@media (max-width: 640px) {
    .author-profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

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


.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #eee;
    color: #333;
    font-weight: 500;
    transition: all 0.2s;
}

.page-link:hover:not(.active) {
    background: #f5f5f5;
    border-color: #ddd;
}

.page-link.active {
    background: #d32f2f;
    color: #fff;
    border-color: #d32f2f;
}

.page-dots {
    color: #999;
}


.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #333;
    color: #fff;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;

    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background 0.2s, opacity 0.2s;
    z-index: 99;
}

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

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


.site-footer {
    background-color: #1a1a1a;
    color: #aaa;
    padding: 1rem 0;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col.brand h4 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.footer-col h5 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #aaa;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
}

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

.copyright a {
    color: #aaa;
}

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

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


.section-title {
    font-size: 1.8rem;
    margin: 2rem 0 1.2rem;
    font-weight: 600;
}

.section-title span {
    color: #d32f2f;
}