﻿/* 鍏ㄥ眬鏍峰紡 */
/* 鍏ㄥ眬鍙橀噺 */

:root {
    --border-color: #eaecef;
    --header-height: 64px;
    --sidebar-width: 260px;
    --bg-color: #f5f6fa;
    --primary-color: #e5eef1;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --link-color: #4a6572;
    --hover-color: #344955;
    --accent-color: #7cb342;
    --color-gold: 255,46,135;
    --color-gold-inner-text: 255,255,255
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.75;
    background: var(--bg-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
}
li {
    list-style-type: none;
}
a {
    color: var(--link-color);
    text-decoration: none;
}
/*原css*/
.text-container {
    max-height: 100px; /* 初始高度 */
    overflow: hidden;
    transition: max-height 0.5s ease;
}

    .text-container.expanded {
        max-height: 1000px; /* 展开后的高度，根据实际内容调整 */
    }

.toggle-btn {
    cursor: pointer;
    color: blue;
    text-decoration: underline;
    margin-top: 5px;
    display: inline-block;
}
.footer{
   text-align:center;
  padding:10px;
}
.center{
    text-align:center;
}
.empt{
    clear:both;
    width:100%;
    display:block;
    height:10px;
    margin-bottom:20px;
}
.pagination {
    margin: 0;
    padding: 0px 0px;
    text-align: left;
    font-size: 12px;
    display: block;
}
    .pagination a:hover {
        background: darkgreen;
        color:white;
    }
.navActive {
    color: rgb(var(--color-gold-inner-text));
    --tw-bg-opacity: 1;
    background-color: rgba(var(--color-gold), var(--tw-bg-opacity));
    border-color: rgba(var(--color-gold), var(--tw-border-opacity));
}
.navNum {
    float: left;
    width: 60px;
    height:30px;
    font-weight: 500;
    --tw-border-opacity: 1;
    border: 1px solid gray;
    border-radius: .125rem;
    justify-content: center;
    align-items: center;
    display: flex;
    margin: 0.2rem;
    padding: 0 3px;
}

.backToTop {
    width: 40px;
    height: 40px;
    padding: 5px;
    margin-top: 24px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,.1);
    background-color: #fff;
    text-align: center;
}
    .backToTop img {
        display: block;
        width: 28px;
         opacity:.6; 
        -webkit-transition: opacity .3s ease-in-out;
        transition: opacity .3s ease-in-out
    }
.post_box {
    padding: 20px 20px 20px 232px;
    border-bottom: 1px solid #ddd;
    position: relative;
    overflow: hidden;
}
.post-img {
    margin-left: -214px;
    float: left;
    overflow: hidden;
    width: 200px;
    height: 150px;
}
    .post-img img {
        position: relative;
        max-width: none;
        width: calc(100% + 20px);
        height: 150px;
        -webkit-transition: opacity .35s,-webkit-transform .45s;
        transition: opacity .35s,transform .45s;
        -webkit-transform: translate3d(-20px,0,0);
        transform: translate3d(-20px,0,0);
        object-fit: cover;
    }
.hamburger {
    display: none;
    font-size: 1.5rem;
}

.logo img {
    width: auto;
    height: 52px;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 5%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    height: 56px;
    z-index: 99
}

.nav-links {
    display: flex;
    list-style: none;
    transition: 0.3s;
}

    .nav-links a {
        color: #333;
        text-decoration: none;
        font-size: 1.1rem;
        white-space: nowrap;
        padding: 0.5rem 1rem;
        border-radius: 4px;
        transition: background 0.3s;
    }

        .nav-links a:hover {
            background: #f5f5f5;
        }

.divSearchPanel form {
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
    text-align: center;
}

.divSearchPanel input[type="text"] {
    width: 90%;
    height: 30px;
    line-height: 29px;
    padding-left: 5px;
    border: 1px solid #ddd;
    margin-top: 5px;
}

.divSearchPanel input[type="submit"] {
    margin-left: -60px;
    border: 1px solid gray;
    border-radius:3px;
    padding: 3px;    
    background: #fff;
    color: #c11e22;
    margin-top: 6px;
}

/*-================*/
/* 澶撮儴瀵艰埅 */
.content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 2rem auto;
    padding: 0.1rem;
}

.year-section {
    margin-bottom: 2rem;
}

.year-title {
    font-size: 1.3rem;
    color: var(--link-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.recipe-list, .issue-list {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none; /* 移除列表符号 */
    padding: 0; /* 移除默认的padding */
    margin: 0; /* 移除默认的margin */
    gap: 2px;
}
    .issue-list b {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2; /* 限制行数为2 */
        overflow: hidden;
    }
    .recipe-list li {
        border: 1px solid darkgray;
        border-radius: 4px;
        padding: 2px 6px;
        text-align: center;
        margin: 2px;
    }

        .recipe-list li:hover {
            background-color: #d5744f;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }




    .issue-list li {        
        border:1px solid darkgray;
        border-radius: 4px;
        padding: 2px;
        text-align: center;
        width: 180px;
        margin: 2px; /* 为图片添加一些间距 */
        box-sizing: border-box; /* 确保padding和border不会影响flex的基础尺寸 */
        
    }       
        .issue-list li:hover {
            background-color: #d0dde3;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

    .issue-list a {
        color: var(--link-color);
        text-decoration: none;
        font-weight: bold;
        transition: color 0.3s ease;
        display: block;
        width: 100%;
        height: 100%;
        font-size:16px;
    }
    .issue-list li a img {
        width: 100%; /* 使图片宽度自适应其容器 */
        height: auto; /* 保持图片的原始宽高比 */
        border-radius: 4px;
    }
        .issue-list a:hover {
            color: var(--hover-color);
        }

.site-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.top-nav {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 20px;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
}

/* 棣栭〉鏍峰紡 */
.magazine-info {
    margin-top: calc(var(--header-height) + 30px);
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    gap: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.magazine-cover {
    width: 180px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.magazine-meta {
    flex: 1;
    padding-top: 10px;
}

.magazine-title {
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.magazine-price {
    font-size: 22px;
    color: #e74c3c;
    font-weight: 500;
}

/* 鐩綍鍐呭 */
.catalog-container {
    margin: 30px 0;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.catalog-section {
    margin-bottom: 30px;
}

    .catalog-section:last-child {
        margin-bottom: 0;
    }

.catalog-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    padding-bottom: 12px;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #34495e; /* 淇濈暀鍒嗙被鏍囬鐨勬í绾� */
}

.article-list {
    list-style: none;
}

.article-item {
    padding: 4px 0; /* 鍑忓皬涓婁笅padding */
    margin: 2px 0; /* 鏈€灏忓寲闂磋窛 */
    border-bottom: none; /* 绉婚櫎鏂囩珷鏍囬涓嬫柟鐨勬í绾� */
}

    .article-item:last-child,
    .toc li:last-child {
        border-bottom: none;
    }

.article-title a {
    color: #555;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
    font-weight: normal;
    line-height: 1.4;
    padding-left: 1em; /* 娣诲姞缂╄繘 */
    display: block; /* 纭繚缂╄繘鐢熸晥 */
}

    .article-title a:hover {
        color: #e74c3c;
    }

/* 鏂囩珷椤甸潰鏍峰紡 */
.article-container {
    margin-top: var(--header-height);
    padding: 40px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
    gap: 40px;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px 20px;
}

.article-main {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.article-header {
    margin-bottom: 30px;
}

.article-title {
    font-size: 26px;
    font-weight: 500;
    color: var(--primary-color);
    line-height: 1.4;
    /* 绉婚櫎浜� margin-bottom: 20px */
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 12px; /* 璋冩暣涓庢爣棰樼殑闂磋窛 */
}

.category {
    color: #e74c3c;
    font-weight: 500;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #2c3e50;
}

    .article-content p {
        margin-bottom: 1.5em;
        text-indent: 2em;
    }

/* 瀵艰埅鎸夐挳鏍峰紡 */
.issue-nav {
    display: flex;
    gap: 10px;
}

.issue-nav-button {
    padding: 8px 16px;
    background: #0088cc;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

    .issue-nav-button:hover {
        background: #006699;
    }

/* 瀵艰埅鎸夐挳缁熶竴鏍峰紡 */
.nav-links a,
.issue-nav-button {
    padding: 8px 16px;
    background: #0088cc;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-block;
}

    .nav-links a:hover,
    .issue-nav-button:hover {
        background: #006699;
    }

/* 纭繚瀵艰埅瀹瑰櫒鏍峰紡姝ｇ‘ */
.nav-links,
.issue-nav {
    display: flex;
    gap: 10px;
}

/* 渚ц竟鏍忕洰褰� */
.toc {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    position: sticky;
    top: calc(var(--header-height) + 20px);
    max-height: calc(100vh - var(--header-height) - 40px);
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    scroll-behavior: smooth;
}

.toc-section {
    margin-bottom: 20px;
}

    .toc-section:last-child {
        margin-bottom: 0;
    }

.toc-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    padding-bottom: 8px;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #34495e; /* 淇濈暀鍒嗙被鏍囬鐨勬í绾� */
}

.toc ul {
    list-style: none;
}

.toc li {
    margin-bottom: 4px;
    line-height: 1.4;
}

.toc a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    display: block;
    padding: 3px 12px;
    border-radius: 6px;
    border-bottom: none; /* 绉婚櫎鏂囩珷鏍囬涓嬫柟鐨勬í绾� */
}

    .toc a:hover {
        color: #e74c3c;
        background: #f8f9fa;
    }

/* 涓轰簡鏇村ソ鐨勮瑙夋晥鏋滐紝鍙互娣诲姞涓€涓笎鍙樿儗鏅� */
.toc li.current {
    background: linear-gradient(90deg, #f8f9fa 0%, #fff 100%);
    border-radius: 4px;
    position: relative;
}

    .toc li.current::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background-color: #e74c3c;
        border-radius: 2px;
    }

    .toc li.current a {
        color: #e74c3c;
        background: #fff5f5;
    }

/* 杩斿洖鎸夐挳 */
.nav-button {
    display: inline-block;
    padding: 10px 24px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s;
    margin-top: 30px;
}

    .nav-button:hover {
        background: #e74c3c;
        color: #fff;
        border-color: #e74c3c;
    }

/* 婊氬姩鏉℃牱寮� */
.toc::-webkit-scrollbar {
    width: 4px;
}

.toc::-webkit-scrollbar-track {
    background: transparent;
}

.toc::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 2px;
}

/* 绉婚櫎鎵€鏈夋枃绔犻」鐨勮竟妗� */
.toc ul li {
    border-bottom: none;
}

    .toc ul li:last-child {
        border-bottom: none;
    }

/* 鏂囩珷瀛椾綋澶у皬鎺у埗鍣� */
.font-size-control {
    background: white;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #eaecef;
}

    .font-size-control:hover {
        opacity: 1;
    }

    .font-size-control button {
        padding: 3px 8px;
        border: 1px solid #ddd;
        border-radius: 4px;
        background: white;
        cursor: pointer;
        transition: all 0.2s;
        font-size: 14px;
        color: #666;
    }

        .font-size-control button:hover {
            background: #f5f5f5;
            color: #333;
        }

        .font-size-control button.active {
            background: #e74c3c;
            color: white;
            border-color: #e74c3c;
        }

/* 鏂囩珷鍐呭瀛椾綋澶у皬绫� */
.article-content.text-base {
    font-size: 17px;
    line-height: 1.8;
}

.article-content.text-lg {
    font-size: 19px;
    line-height: 1.9;
}

.article-content.text-xl {
    font-size: 21px;
    line-height: 2;
}

/* 鍝嶅簲寮忚璁� */
@media (max-width: 1024px) {
    .article-container {
        grid-template-columns: 1fr;
    }

    .toc,
    .article-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .article-main {
        padding: 20px 15px;
        width: 100%;
        max-width: 100%;
    }

    .article-title {
        font-size: 20px;
        line-height: 1.4;
    }
    .issue-list li {
        width: 110px;      
    }  
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 55px;
        left: -100%;
        flex-direction: column;
        width: 100%;
        height: 100%;
        background: white;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 2rem;
        gap: 1.5rem;
    }

        .nav-links.active {
            left: 0;
        }
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .container {
        padding: 0 15px;
    }

    .top-nav {
        height: auto;
        min-height: 50px;
        padding: 10px 0;
        flex-wrap: wrap;
        gap: 10px;
    }

    .magazine-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 15px;
        margin-top: calc(var(--header-height) + 10px);
    }

    .magazine-cover {
        width: 140px;
    }

    .article-container {
        padding: 20px 10px;
        margin-top: 60px;
    }

    .article-main {
        padding: 20px 15px;
    }

    .article-title {
        font-size: 20px;
        line-height: 1.4;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .font-size-control {
        width: 100%;
        justify-content: flex-start;
    }

    .article-content {
        font-size: 16px;
    }

        .article-content p {
            margin-bottom: 1.2em;
        }

    .nav-links a,
    .issue-nav-button {
        padding: 6px 12px;
        font-size: 13px;
    }

    .catalog-container {
        padding: 15px;
    }

    .catalog-section-title {
        font-size: 18px;
    }

    .article-title a {
        font-size: 15px;
        padding-left: 0.5em;
    }
}

/* 灏忓睆鎵嬫満 */
@media (max-width: 480px) {
    .article-title {
        font-size: 18px;
    }

    .article-main {
        padding: 15px 12px;
    }

    .article-content {
        font-size: 15px;
        line-height: 1.8;
    }

    .magazine-title {
        font-size: 22px;
    }
}



/* 鍩虹鏍峰紡 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.75;
    background: var(--bg-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    font-size: 16px; /* 澧炲姞鍩虹瀛椾綋澶у皬 */
}

/* 澶撮儴瀵艰埅 */
.site-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
}

.top-nav {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 20px;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
}

/* 棣栭〉鏍峰紡 */
.magazine-info {
    margin-top: calc(var(--header-height) + 30px);
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    gap: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.magazine-cover {
    width: 180px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.magazine-meta {
    flex: 1;
    padding-top: 10px;
}

.magazine-title {
    font-size: 30px; /* 鍘熸潵鏄� 26px */
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.magazine-price {
    font-size: 22px;
    color: #e74c3c;
    font-weight: 500;
}

/* 鐩綍鍐呭 */
.catalog-container {
    margin: 10px 0;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.catalog-section {
    margin-bottom: 30px;
}

    .catalog-section:last-child {
        margin-bottom: 0;
    }

/* 鍒嗙被鏍囬璋冩暣 */
.catalog-section-title {
    font-size: 22px; /* 鍘熸潵鏄� 20px */
    font-weight: 600;
    color: #1a1a1a;
    padding-bottom: 12px;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #34495e;
}

.article-list {
    list-style: none;
}

.article-item {
    padding: 4px 0; /* 鍑忓皬涓婁笅padding */
    margin: 2px 0; /* 鏈€灏忓寲闂磋窛 */
    border-bottom: none; /* 绉婚櫎鏂囩珷鏍囬涓嬫柟鐨勬í绾� */
}

    .article-item:last-child,
    .toc li:last-child {
        border-bottom: none;
    }

.article-title a {
    color: #555;
    text-decoration: none;
    font-size: 16px; /* 鍘熸潵鏄� 15px */
    transition: color 0.2s;
    font-weight: normal;
    line-height: 1.5;
    padding-left: 1em;
    display: block;
    border-bottom: 1px solid #e0d1d1;
}


    .article-title a:hover {
        color: #e74c3c;
    }

/* 鏂囩珷椤甸潰鏍峰紡 */
.article-container {
    margin-top: var(--header-height);
    padding: 10px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
    gap: 10px;
    max-width: 1200px; /* 鍘熸潵鏄� 1140px锛屽鍔犳暣浣撳搴� */
    margin-left: auto;
    margin-right: auto;   
}

.article-main {
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.article-header {
    margin-bottom: 30px;
}

/* 鏂囩珷鏍囬璋冩暣 */
.article-title {
    font-size: 30px; /* 鍘熸潵鏄� 26px */
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    justify-content: space-between; /* 涓ょ瀵归綈 */
    align-items: center;
    margin-top: 12px;
}

.left-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.category {
    color: #e74c3c;
    font-weight: 500;
}

/* 鏂囩珷鍐呭璋冩暣 */
.article-content {
    font-size: 17px; /* 鍘熸潵鏄� 16px */
    line-height: 1.8;
    color: #2c3e50;
}

    .article-content p {
        margin-bottom: 1.5em;
        text-indent: 2em;
    }

/* 瀵艰埅鎸夐挳鏍峰紡 */
.issue-nav {
    display: flex;
    gap: 10px;
}

.issue-nav-button {
    padding: 8px 16px;
    background: #0088cc;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

    .issue-nav-button:hover {
        background: #006699;
    }

/* 瀵艰埅鎸夐挳缁熶竴鏍峰紡 */
.nav-links a,
.issue-nav-button {
    padding: 8px 16px;
    background: #0088cc;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-block;
}

    .nav-links a:hover,
    .issue-nav-button:hover {
        background: #006699;
    }

/* 纭繚瀵艰埅瀹瑰櫒鏍峰紡姝ｇ‘ */
.nav-links,
.issue-nav {
    display: flex;
    gap: 10px;
}

/* 渚ц竟鏍忕洰褰� */
.toc {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    position: sticky;
    top: calc(var(--header-height) + 20px);
    max-height: calc(100vh - var(--header-height) - 40px);
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    width: 280px;
}

.toc-section {
    margin-bottom: 20px;
}

    .toc-section:last-child {
        margin-bottom: 0;
    }

.toc-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    padding-bottom: 8px;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #34495e; /* 淇濈暀鍒嗙被鏍囬鐨勬í绾� */
}

.toc ul {
    list-style: none;
}

.toc li {
    margin-bottom: 4px;
    line-height: 1.4;
}

/* 鐩綍瀛椾綋璋冩暣 */
.toc a {
    color: #555;
    text-decoration: none;
    font-size: 15px; /* 鍘熸潵鏄� 14px */
    transition: color 0.2s;
    display: block;
    padding: 3px 12px;
    border-radius: 6px;
}

    .toc a:hover {
        color: #e74c3c;
        background: #f8f9fa;
    }

.toc li.current a {
    color: #e74c3c;
    background: #fff5f5;
}

/* 杩斿洖鎸夐挳 */
.nav-button {
    display: inline-block;
    padding: 10px 24px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s;
    margin-top: 30px;
}

    .nav-button:hover {
        background: #e74c3c;
        color: #fff;
        border-color: #e74c3c;
    }

/* 婊氬姩鏉℃牱寮� */
.toc::-webkit-scrollbar {
    width: 4px;
}

.toc::-webkit-scrollbar-track {
    background: transparent;
}

.toc::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 2px;
}

/* 绉婚櫎鎵€鏈夋枃绔犻」鐨勮竟妗� */
.toc ul li {
    border-bottom: none;
}

    .toc ul li:last-child {
        border-bottom: none;
    }

/* 鍝嶅簲寮忚璁� */
@media (max-width: 1024px) {
    .article-container {
        grid-template-columns: 1fr;
    }

    .toc,
    .article-sidebar {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .issue-list a {        
        font-size: 12px;
    }
    .navNum {       
        width: 40px;
        height: 20px;       
    }
    .post_box {
        padding: 10px 5px 5px 136px;
    }
    .post-img {
        margin-left: -121px;
        width: 110px;
        height: 82px;
    }
        .post-img img {
            height: 82px;
        }
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }

    * {
        box-sizing: border-box;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    .container {
        padding: 0 5px;
        max-width: 100%;
    }

    .top-nav {
        height: auto;
        min-height: 50px;
        padding: 10px 0;
        flex-wrap: wrap;
        gap: 10px;
    }

    .magazine-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 15px;
        margin-top: calc(var(--header-height) + 10px);
    }

    .magazine-cover {
        width: 140px;
    }

    .article-container {
        padding: 5px;
        margin-top: 60px;
        display: block;
        max-width: 100%;
    }

    .article-main {
        padding: 5px;
        width: 100%;
        max-width: 100%;
    }

    .article-title {
        font-size: 20px;
        line-height: 1.4;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .left-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .font-size-control {
        width: 100%;
        justify-content: flex-start;
    }

    .article-content {
        font-size: 16px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

        .article-content p {
            margin-bottom: 1.2em;
        }

    .nav-links a,
    .issue-nav-button {
        padding: 6px 12px;
        font-size: 13px;
    }

    .catalog-container {
        padding: 5px;
    }

    .catalog-section-title {
        font-size: 18px;
    }

    .article-title a {
        font-size: 15px;
        padding-left: 0.5em;
    }

    .article-sidebar {
        display: none !important;
    }
}

/* 灏忓睆鎵嬫満 */
@media (max-width: 480px) {
    .article-title {
        font-size: 18px;
    }

    .article-main {
        padding: 3px;
    }

    .article-content {
        font-size: 15px;
        line-height: 1.8;
    }

    .magazine-title {
        font-size: 22px;
    }
}
/* ========== 绉诲姩绔诞鍔ㄧ洰褰曟寜閽� ========== */
.mobile-toc-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

    .mobile-toc-btn:hover {
        background: #c0392b;
    }

/* 绉诲姩绔洰褰曞脊绐楅伄缃� */
.mobile-toc-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
}

    .mobile-toc-overlay.active {
        display: block;
    }

/* 绉诲姩绔洰褰曢潰鏉� */
.mobile-toc-panel {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    max-width: 80%;
    height: 100%;
    background: white;
    z-index: 1002;
    overflow-y: auto;
    transition: right 0.3s ease;
    padding: 20px 15px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.2);
}

    .mobile-toc-panel.active {
        right: 0;
    }

.mobile-toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #e74c3c;
    margin-bottom: 15px;
}

    .mobile-toc-header h3 {
        margin: 0;
        font-size: 18px;
        color: #2c3e50;
    }

.mobile-toc-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

.mobile-toc-content .toc-section {
    margin-bottom: 15px;
}

.mobile-toc-content .toc-section-title {
    font-size: 14px;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.mobile-toc-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-toc-content li {
    margin-bottom: 8px;
}

    .mobile-toc-content li a {
        color: #555;
        text-decoration: none;
        font-size: 14px;
        display: block;
        padding: 5px 0;
    }

    .mobile-toc-content li.current a {
        color: #e74c3c;
        font-weight: bold;
    }

/* 鍦ㄥ钩鏉垮拰鎵嬫満涓婃樉绀虹洰褰曟寜閽� */
@media (max-width: 1024px) {
    .mobile-toc-btn {
        display: flex;
    }
}
