/* 闁稿繈鍔嶉弻濠囧几娴ｈ櫣鏆嗛梺鏉跨Х婢瑰﹪寮憴鍕垫敵 */
:root {
    --primary: #2E7D32; /* 缂備浇鍎绘竟濠冪▔婵犳凹鏆柨娑樻湰濞插潡寮伴幘缁橆潐閻犲浄鎷� */
    --primary-dark: #1B5E20;
    --primary-light: #4CAF50;
    --secondary: #37474F;
    --accent: #FF5722; /* 婵鐟ㄦ竟濠傤嚕妤﹁法娈堕柤鐧告嫹 */
    --accent-light: #FF8A65;
    --light: #FAFAFA;
    --dark: #263238;
    --text: #37474F;
    --text-light: #78909C;
    --border: #CFD8DC;
    --card-bg: #FFFFFF;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.08);
    --radius: 6px;
    --radius-lg: 12px;
}


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


body {
    font-family: 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.7; /* 闁哄洦娼欓妶浠嬫儍閸曨偄璁查悹鍥╃帛閳ь剨鎷� */
    color: var(--text);
    background-color: var(--light);
    font-size: 16px; /* 闁哄秴娲ら崳顖溾偓娑欍仦缂嶅寰勮閻剟鏁嶅畝鍐╃闁炬梹绋戝鍛婄附閿燂拷 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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


.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}


.hidden { display: none !important; }
.text-center { text-align: center; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 18px; }
.mb-4 { margin-bottom: 24px; }
.mb-5 { margin-bottom: 32px; }
.py-4 { padding: 20px 0; }
.py-5 { padding: 30px 0; }


.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    z-index: 1001;
    width: 0%;
}


.header {
    background-color: #111;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 1.4rem;
    color: white;
    white-space: nowrap;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav a {
    color: white;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

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

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

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

.header-search {
    display: flex;
    align-items: center;
    width: 210px;
    height: 38px;
    overflow: hidden;
    background-color: #252525;
    border: 1px solid #3d3d3d;
    border-radius: 20px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search:focus-within {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.16);
}

.header-search input {
    min-width: 0;
    flex: 1;
    height: 100%;
    padding: 0 4px 0 15px;
    color: white;
    background: transparent;
    border: 0;
    outline: 0;
    font: inherit;
    font-size: 0.86rem;
}

.header-search input::placeholder {
    color: #aaa;
}

.header-search button {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    color: #ddd;
    background: transparent;
    border: 0;
    cursor: default;
    font-size: 1.15rem;
}

.account-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-button {
    min-width: 54px;
    height: 36px;
    padding: 0 13px;
    border-radius: 18px;
    cursor: default;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;
}

.account-login {
    color: white;
    background: transparent;
    border: 1px solid #666;
}

.account-register {
    color: white;
    background: var(--primary);
    border: 1px solid var(--primary);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
}


.mobile-nav {
    background-color: #111;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-nav .nav {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    gap: 0;
}

.mobile-nav .nav a {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 1050px) {
    .header-inner {
        gap: 18px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        margin-right: 8px;
    }

    .nav {
        gap: 14px;
    }

    .header-search {
        display: none;
    }
}


.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-light);
    padding: 15px 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

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

.breadcrumb span {
    color: var(--text);
    font-weight: 500;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: var(--border);
}


.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    margin-bottom: 50px;
}

@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}


.main-content {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}


.article-header {
    padding: 30px;
    border-bottom: 1px solid var(--border);
}

.article-tag {
    display: inline-block;
    background-color: rgba(46, 125, 50, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.article-title {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--dark);
    font-weight: 700;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.article-meta-item {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    line-height: 1.4;
    white-space: nowrap;
}

.article-meta-label {
    color: var(--text);
    font-weight: 500;
}

.author {
    gap: 10px;
}

.author img {
    display: block;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}


.article-body {
    padding: 30px;
}

.article-excerpt {
    background-color: rgba(255, 87, 34, 0.05);
    border-left: 4px solid var(--accent);
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.article-excerpt h2 {
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 1.2rem;
}


.article-content h2 {
    font-size: 1.6rem;
    margin: 28px 0 18px;
    color: var(--dark);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.article-content h3 {
    font-size: 1.3rem;
    margin: 24px 0 15px;
    color: var(--secondary);
}

.article-content p {
    margin-bottom: 18px;
    line-height: 1.8;
}

.article-content ul, .article-content ol {
    margin: 20px 0;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 20px 0;
    display: block;
}

.image-container {
    margin: 25px 0;
    text-align: center;
}

.image-container img {
    box-shadow: var(--shadow);
}

.highlight-box {
    background-color: rgba(46, 125, 50, 0.05);
    border-radius: var(--radius);
    padding: 20px;
    margin: 25px 0;
    border-left: 4px solid var(--primary);
}

.highlight-box h2 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.article-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.article-keyword {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 20px;
    border-radius: 999px;
    background-color: #f1f1f1;
    color: #555;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1;
}

.article-keyword:hover {
    background-color: rgba(46, 125, 50, 0.12);
    color: var(--primary);
}


.article-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
    overflow: hidden;
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.article-navigation-item {
    position: relative;
    display: flex;
    min-height: 110px;
    padding: 20px 56px;
    flex-direction: column;
    justify-content: center;
    color: var(--dark);
    transition: background-color 0.2s ease;
}

.article-navigation-item:hover {
    background-color: rgba(46, 125, 50, 0.04);
}

.article-navigation-item::before,
.article-navigation-item::after {
    position: absolute;
    top: 50%;
    color: rgba(33, 33, 33, 0.1);
    font-size: 2.8rem;
    line-height: 1;
    transform: translateY(-50%);
}

.article-navigation-prev {
    border-right: 1px solid var(--border);
}

.article-navigation-prev::before {
    left: 18px;
    content: "«";
}

.article-navigation-next {
    align-items: flex-end;
    text-align: right;
}

.article-navigation-next::after {
    right: 18px;
    content: "»";
}

.article-navigation-label {
    margin-bottom: 3px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.article-navigation-title {
    display: -webkit-box;
    overflow: hidden;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}


.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.sidebar-title {
    font-size: 1.1rem;
    margin-bottom: 18px;
    color: var(--dark);
    display: flex;
    align-items: center;
    font-weight: 600;
}

.sidebar-title i {
    margin-right: 10px;
    color: var(--primary);
}


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

.toc-list li {
    margin-bottom: 12px;
    padding-left: 0;
}

.toc-list a {
    color: var(--text);
    font-size: 0.95rem;
    display: block;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
}

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

.ranking-list li {
    margin-bottom: 8px;
}

.ranking-list a {
    padding: 6px 0;
    font-size: 0.88rem;
    line-height: 1.35;
}

.ranking-list li:last-child {
    margin-bottom: 0;
}

.ranking-list li:last-child a {
    border-bottom: 0;
}

.sidebar-title-accent {
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.sidebar-title-accent::before {
    color: var(--primary);
    content: "//";
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 800;
    letter-spacing: -4px;
}

.hot-article-list {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hot-article-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}

.hot-article-image {
    width: 104px;
    height: 76px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.hot-article-content {
    min-width: 0;
}

.hot-article-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--dark);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

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

.hot-article-date {
    display: block;
    margin-top: 4px;
    color: #999;
    font-size: 0.78rem;
    line-height: 1.2;
}


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

.related-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--dark);
    font-weight: 700;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.article-item {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    height: 100%;
}

.article-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

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

.article-item-content {
    padding: 20px;
}

.article-item-category {
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
}

.article-item-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--dark);
    font-weight: 600;
}

.article-item-meta {
    font-size: 0.85rem;
    color: var(--text-light);
}


.footer {
    background-color: var(--dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 24px 0;
    margin-top: 60px;
}

.footer-simple {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.88rem;
    line-height: 1.65;
    text-align: center;
}

.footer-simple p {
    margin: 0;
}

.footer-simple p + p {
    margin-top: 5px;
}

.footer-simple a {
    color: rgba(255, 255, 255, 0.85);
}

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

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-col h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

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

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

.footer-col a {
    color: rgba(255, 255, 255, 0.75);
}

.footer-col a:hover {
    color: white;
    padding-left: 5px;
}

.footer-description {
    margin-bottom: 10px;
    line-height: 1.6;
}

.copyright {
    text-align: center;
    padding-top: 25px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* 闁搞儳鍋涢崺灞俱亜閸洖鍔ラ柟绋款樀閹革拷 */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 48px;
    height: 48px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    border: none;
    font-size: 1.2rem;
}

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

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* 闁告繂绉寸花鎻掝嚕韫囨凹鍟庨悹渚婃嫹 */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .article-title {
        font-size: 1.6rem;
    }

    .article-meta {
        align-items: flex-start;
        gap: 8px 16px;
    }

    .header-inner {
        height: 60px;
    }

    .breadcrumb {
        align-items: flex-start;
        line-height: 1.55;
    }

    .breadcrumb > a {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .breadcrumb > a:first-child {
        flex-basis: 2rem;
    }

    .breadcrumb > a:nth-of-type(2) {
        flex-basis: 4rem;
    }

    .breadcrumb > .breadcrumb-separator {
        flex: 0 0 0.7rem;
        margin: 0 0.35rem;
        text-align: center;
    }

    .breadcrumb > span:last-child:not(.breadcrumb-separator) {
        min-width: 0;
        flex: 1 1 0;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

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

    .article-header, .article-body {
        padding: 20px;
    }

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

    .article-navigation-item {
        min-height: 90px;
        padding: 16px 45px;
    }

    .article-navigation-prev {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }
}

/* SEO濞村吋锚鐎垫煡鎮ч悷鎵毎闁哄秴鍢茬槐锟� */
.structured-data {
    display: none;
}

.article-content-image {
    display: block;
    width: 100%;
    max-width: 700px;
    height: auto;
    aspect-ratio: 7 / 5;
    margin: 0 auto 20px;
    object-fit: cover;
    border-radius: 4px;
}
