/* 政务风格全局样式 - 海军蓝基调 (Navy Blue Theme) */

:root {
    --primary-color: #002878;
    /* 海军蓝 */
    --hover-color: #0042a5;
    --bg-light: #f5f8ff;
    --text-main: #333;
    --text-muted: #666;
    --border-color: #e1e7f0;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    color: var(--text-main);
    background: #fff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

/* 页眉 */
header {
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    padding-top: 116px;
    /* 36px top + 80px main */
}

.header-top {
    background: #f0f3f8;
    height: 36px;
    font-size: 13px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled .header-top {
    height: 0;
    border-bottom: none;
    opacity: 0;
}

.header-main {
    height: 80px;
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled .header-main {
    height: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 48px;
    margin-right: 18px;
}

.site-title {
    font-size: 26px;
    color: var(--primary-color);
    font-weight: 800;
    letter-spacing: 1px;
    font-family: "Georgia", serif;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

header.scrolled .site-title {
    font-size: 18px;
}

.main-nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-link {
    position: relative;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: 600;
    color: #444;
    transition: all 0.4s;
}

header.scrolled .nav-link {
    font-size: 14px;
    padding: 5px 12px;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* 顶部工具栏 (Header Tools) */
.lang-switcher {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
}

.lang-switcher span {
    cursor: pointer;
    padding: 2px 8px;
    transition: 0.3s;
    opacity: 0.6;
}

.lang-switcher span.active {
    opacity: 1;
    color: #fff;
    font-weight: 700;
}

.lang-switcher span:hover {
    opacity: 1;
}

.lang-switcher .split {
    opacity: 0.3;
    padding: 0;
    cursor: default;
}

.login-btn {
    background: var(--primary-color);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 0;
}

.login-btn:hover {
    background: var(--hover-color);
}

.more-link {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    transition: 0.3s;
    border: 1px solid var(--border-color);
    padding: 4px 12px;
}

.more-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: var(--bg-light);
}

.more-link::after {
    content: '→';
    margin-left: 6px;
    font-size: 16px;
    transition: transform 0.3s;
}

.more-link:hover::after {
    transform: translateX(4px);
}

/* 横幅区域 */
.banner {
    height: 400px;
    background: linear-gradient(rgba(0, 40, 120, 0.8), rgba(0, 40, 120, 0.6)), url('https://img.xiaoxi.ac.cn/spap-banner-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
}

.banner-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

/* 板块标题 */
.section-title {
    padding: 60px 0 30px;
    text-align: left;
}

.section-title h2 {
    font-size: 32px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

/* 最新一期特别展示 */
.issue-featured {
    display: flex;
    background: #fff;
    border: 1px solid var(--border-color);
    margin-bottom: 60px;
    height: 500px;
}

.issue-featured .featured-cover {
    flex: 0 0 360px;
    background: #f0f0f0;
}

.issue-featured .featured-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.issue-featured .featured-content {
    flex: 1;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* 防止外层容器出现滚动条 */
}

.issue-featured .featured-header {
    flex-shrink: 0;
    /* 禁止标题缩放 */
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.issue-featured .featured-toc {
    flex: 1;
    overflow-y: auto;
    /* 允许目次区域内部滚动 */
    padding-right: 10px;
}

/* 自定义滚动条样式，使其更细腻 */
.issue-featured .featured-toc::-webkit-scrollbar {
    width: 6px;
}

.issue-featured .featured-toc::-webkit-scrollbar-thumb {
    background: #ccc;
}

.issue-featured .featured-header h3 {
    font-size: 24px;
    color: var(--primary-color);
}

.issue-featured .featured-toc-item {
    display: block;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
}

.issue-featured .featured-toc-item:last-child {
    border-bottom: none;
}

.issue-featured .featured-toc-item .item-title {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    text-decoration: none;
}

.issue-featured .featured-toc-item .item-authors {
    color: #666;
    font-size: 14px;
    text-align: left;
}

/* 期刊网格 */
.issue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.issue-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0;
    overflow: hidden;
    transition: 0.3s;
}

.issue-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.issue-cover {
    width: 100%;
    height: 320px;
    object-fit: cover;
    background: #f0f0f0;
}

.issue-info {
    padding: 15px;
    text-align: center;
}

.issue-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

/* 文章列表预览 */
.article-list-mini {
    background: #fff;
    padding: 0 0 60px;
}

.mini-list {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.mini-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px dashed var(--border-color);
}

.mini-item:last-child {
    border-bottom: none;
}

.mini-item .title {
    font-weight: 500;
    flex: 1;
}

.mini-item .date {
    color: var(--text-muted);
    font-size: 14px;
    width: 100px;
    text-align: right;
}

/* 互动登录手风琴 */
.login-accordion {
    display: flex;
    height: 450px;
    width: 100%;
    overflow: hidden;
    margin: 40px 0 80px;
    border: 1px solid var(--border-color);
}

.accordion-item {
    position: relative;
    flex: 1;
    overflow: hidden;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* 改为顶部对齐，防止垂直跳跃 */
    padding-top: 145px;
    align-items: center;
    color: #fff;
    margin-left: -50px;
    /* 负边距与切角像素一致 */
}

.accordion-item:first-child {
    margin-left: 0;
}

.accordion-item.active {
    flex: 2.5;
}

.accordion-item .bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s;
    z-index: 1;
}

.accordion-item:hover .bg-overlay {
    transform: scale(1.05);
}

.accordion-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 40, 120, 0.7), rgba(0, 40, 120, 0.4));
    z-index: 2;
}

.accordion-item.active::before {
    background: linear-gradient(rgba(0, 40, 120, 0.5), rgba(0, 40, 120, 0.2));
}

/* 斜切效果 - 使用固定像素 (calc) 确保不同宽度下平行 */
.accordion-item {
    clip-path: polygon(50px 0, 100% 0, calc(100% - 50px) 100%, 0 100%);
}

.accordion-item:first-child {
    clip-path: polygon(0 0, 100% 0, calc(100% - 50px) 100%, 0 100%);
}

.accordion-item:last-child {
    clip-path: polygon(50px 0, 100% 0, 100% 100%, 0 100%);
}

.accordion-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 60px;
    opacity: 0.8;
    transition: opacity 0.4s, transform 0.4s;
}

.accordion-item.active .accordion-content {
    opacity: 1;
}

.accordion-content h3 {
    font-size: 32px;
    margin-bottom: 20px;
    letter-spacing: 2px;
    font-weight: 800;
}

.accordion-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 400px;
    display: none;
}

.accordion-item.active .accordion-content p {
    display: block;
}

.accordion-btn {
    display: inline-block;
    padding: 12px 35px;
    background: #fff;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    border-radius: 0;
    transition: 0.3s;
    opacity: 0;
    visibility: hidden;
}

.accordion-item.active .accordion-btn {
    opacity: 1;
    visibility: visible;
}

.accordion-btn:hover {
    background: var(--bg-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 页脚 */
footer {
    background: #222;
    color: #bbb;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 100px;
    margin-bottom: 40px;
}

.footer-info h3,
.footer-links h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links a {
    display: block;
    margin-bottom: 10px;
}

.copyright {
    text-align: left;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 14px;
}

/* 全局加载遮罩 */
#global-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --- 文章详情页样式 (Article Detail) --- */
.article-header-area {
    padding: 50px 0 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.article-title-zh {
    font-size: 34px;
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 10px;
    font-weight: 800;
}

.article-title-en {
    font-size: 22px;
    color: #666;
    line-height: 1.3;
    margin-bottom: 30px;
    font-weight: 600;
}

.author-list-zh,
.author-list-en {
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

.author-list-en {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

.author-sup {
    font-size: 12px;
    color: var(--primary-color);
    vertical-align: super;
    margin-left: 2px;
}

.affiliation-list-zh,
.affiliation-list-en {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.affiliation-list-en {
    margin-bottom: 30px;
    font-style: italic;
}

.corresponding-info {
    font-size: 14px;
    color: #666;
    padding: 15px 0;
    margin-bottom: 30px;
    border-top: 1px dashed #eee;
}

.article-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
}

.section-header {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0 0 15px;
    display: flex;
    align-items: center;
}

.section-header::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--primary-color);
    margin-right: 12px;
}

.article-text {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    text-align: justify;
    margin-bottom: 20px;
}

.article-text-en {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 40px;
}

.keyword-tag {
    display: inline-block;
    margin-right: 12px;
    color: var(--primary-color);
}

.article-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.download-card {
    background: var(--bg-light);
    padding: 25px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.pdf-btn {
    display: block;
    background: var(--primary-color);
    color: #fff;
    padding: 12px;
    font-weight: 600;
    margin-top: 15px;
    text-align: center;
}

.pdf-btn:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
}

.close-pdf {
    position: absolute;
    top: 20px;
    right: 30px;
    cursor: pointer;
    font-size: 32px;
    color: #fff;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.toc-nav {
    margin-top: 40px;
    border-left: 1px solid var(--border-color);
    padding-left: 20px;
}

.toc-nav a {
    display: block;
    padding: 8px 0;
    font-size: 14px;
    color: #666;
}

/* --- 稿件查询页样式 (Articles Search) --- */
.search-area {
    padding: 20px 0 30px;
}

.search-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.filter-sidebar {
    background: #fff;
    border-right: 1px solid var(--border-color);
    padding-right: 20px;
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-list {
    list-style: none;
}

.filter-item {
    font-size: 14px;
    padding: 6px 0;
    cursor: pointer;
    color: #666;
    transition: 0.3s;
    display: flex;
    justify-content: space-between;
}

.filter-item:hover,
.filter-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.filter-item .count {
    font-size: 12px;
    color: #999;
}

@media (max-width: 992px) {
    .search-layout {
        grid-template-columns: 1fr;
    }

    .filter-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
}

.search-box {
    display: flex;
    width: 100%;
    max-width: 700px;
    border-bottom: 2px solid var(--primary-color);
    padding: 5px 0;
}

.search-input {
    flex: 1;
    border: none;
    padding: 12px 0;
    font-size: 20px;
    outline: none;
    background: transparent;
    font-weight: 300;
}

.search-btn {
    background: transparent;
    color: var(--primary-color);
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    padding: 0 10px;
    display: flex;
    align-items: center;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0 80px;
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: #fff;
    cursor: pointer;
    font-size: 14px;
}

.page-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* --- 期次详情页样式 (Issue Detail) --- */
.issue-detail-header {
    display: flex;
    gap: 50px;
    padding: 60px 0;
    border-bottom: 2px solid var(--primary-color);
    align-items: flex-start;
}

.issue-large-cover {
    width: 260px;
    height: 350px;
    object-fit: cover;
    box-shadow: 10px 10px 0px var(--bg-light);
    border: 1px solid var(--border-color);
}

.issue-meta h2 {
    color: var(--primary-color);
    font-size: 36px;
    margin-bottom: 25px;
    font-weight: 800;
}

.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-outline {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.toc-section {
    margin-top: 60px;
    margin-bottom: 100px;
}

.toc-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    transition: 0.2s;
}

.toc-item:hover {
    background: var(--bg-light);
}

.toc-item .title {
    font-size: 18px;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
    color: var(--primary-color);
}

/* --- 新闻详情页样式 (News View) --- */
.news-container {
    padding: 40px 20px;
}

.news-header {
    text-align: left;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.news-title {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.news-body {
    font-size: 16px;
    line-height: 2;
    color: #333;
    text-align: justify;
}

.news-body p {
    margin-bottom: 20px;
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0, 40, 100, 0.95);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 20px 30px;
    z-index: 100000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 4px;
    transition: 0.5s;
}

.cookie-content {
    flex: 1;
    margin-right: 40px;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-content p {
    margin: 0;
}

.cookie-content a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}

.cookie-actions {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 8px 24px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
    border-radius: 4px;
}

.cookie-btn-primary {
    background: #fff;
    color: var(--primary-color);
}

.cookie-btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 0;
    }

    .cookie-content {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* --- 往期回顾页样式 (Archive Page) --- */
.issue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 40px;
    padding: 20px 0 80px;
}

.issue-card {
    background: #fff;
    border: 1px solid var(--border-color);
    transition: 0.3s;
    text-align: center;
}

.issue-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.issue-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.issue-cover {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
    display: block;
}

.issue-info {
    padding: 15px;
}

.issue-info h3 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.issue-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 1024px) {
    .article-grid {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
        order: -1;
        margin-bottom: 40px;
    }

    .issue-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .links-marquee-container {
        animation-duration: 25s;
    }

    /* --- Mobile Header & Nav --- */
    body {
        padding-top: 60px !important;
    }

    .header-top {
        display: none !important;
    }

    .header-main {
        height: 60px !important;
        border-bottom: 2px solid var(--primary-color) !important;
    }

    header.scrolled .header-main {
        height: 60px !important;
    }

    .site-title {
        font-size: 18px !important;
    }

    .main-nav {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 60px);
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 0;
        transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1000;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        left: 0 !important;
    }

    .nav-link {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
        font-size: 16px;
    }

    /* Hamburger Toggle */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        cursor: pointer;
        padding: 10px;
        z-index: 1001;
        height: 40px;
        width: 40px;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background: var(--primary-color);
        margin: 3px 0;
        transition: 0.3s;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* --- Featured Issue (Home) --- */
    .banner {
        height: 160px !important;
    }

    .banner-content h2 {
        font-size: 22px !important;
    }

    .section-title {
        padding: 30px 0 15px !important;
    }

    .section-title h2 {
        font-size: 20px !important;
    }

    .issue-featured {
        flex-direction: column !important;
        height: auto !important;
        background: #fff !important;
        border: 1px solid var(--border-color) !important;
        margin-bottom: 40px !important;
    }

    .issue-featured .featured-cover {
        flex: 0 0 auto !important;
        width: 100% !important;
        height: auto !important;
        /* 让框跟随图片自动改 */
        padding: 0 !important;
        background: #f9f9f9 !important;
        display: block !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border-color) !important;
    }

    .issue-featured .featured-cover img {
        width: 100% !important;
        /* 直接百分之百显示 */
        height: auto !important;
        /* 框跟随图片改 */
        max-width: none !important;
        max-height: none !important;
        object-fit: contain !important;
        display: block !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .issue-featured .featured-content {
        padding: 20px !important;
        flex: none !important;
        width: 100% !important;
    }

    .featured-toc-item,
    .toc-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        padding: 16px 0 !important;
        border-bottom: 1px solid #f0f0f0 !important;
        width: 100% !important;
    }

    .item-title,
    .toc-item .title {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2;
        /* Standard property for compatibility */
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        font-size: 16px !important;
        line-height: 1.5 !important;
        margin-right: 0 !important;
        margin-bottom: 6px !important;
        width: 100% !important;
    }

    .item-authors,
    .toc-item .authors {
        text-align: left !important;
        width: 100% !important;
        min-width: 0 !important;
        color: var(--text-muted) !important;
        font-size: 13px !important;
        margin-top: 4px !important;
    }

    .article-list-mini .container {
        flex-direction: column !important;
    }

    .article-list-mini .container>div {
        margin-right: 0 !important;
        flex: none !important;
        width: 100% !important;
        margin-bottom: 35px !important;
    }

    .mini-item .title {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2;
        /* Standard property for compatibility */
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        font-size: 15px !important;
        margin-bottom: 8px !important;
    }

    /* 登录快捷入口：彻底平铺为高垂直卡片 (Flat Cards) */
    .login-accordion {
        flex-direction: column !important;
        height: auto !important;
        border: none !important;
        gap: 20px !important;
        margin: 30px 0 50px !important;
    }

    .accordion-item {
        flex: none !important;
        height: auto !important;
        min-height: 200px !important;
        margin-left: 0 !important;
        clip-path: none !important;
        /* 移除任何斜切效果 */
        padding: 40px 20px !important;
        opacity: 1 !important;
        transform: none !important;
        border-radius: 6px !important;
        display: block !important;
        overflow: hidden !important;
    }

    .accordion-item .bg-overlay {
        opacity: 0.65 !important;
    }

    .accordion-content {
        transform: none !important;
        opacity: 1 !important;
        text-align: center !important;
        padding: 0 !important;
    }

    .accordion-content h3 {
        font-size: 26px !important;
        margin-bottom: 15px !important;
        display: block !important;
        font-weight: 600 !important;
    }

    .accordion-content p {
        display: block !important;
        /* 移动端显示描述，增强交互感 */
        font-size: 14px !important;
        color: rgba(255, 255, 255, 0.95) !important;
        margin-bottom: 25px !important;
        line-height: 1.6 !important;
        max-width: none !important;
    }

    .accordion-btn {
        display: inline-block !important;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 12px 35px !important;
        font-size: 15px !important;
        border-radius: 4px !important;
        background: var(--primary-color) !important;
        color: #fff !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
    }

    /* Footer Mobile Adjustments */
    .footer-minimal {
        text-align: center !important;
        padding: 30px 0 !important;
    }

    .footer-minimal div {
        justify-content: center !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* 往期回顾与列表页像素级对齐 */
    .issue-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 18px !important;
    }

    .issue-cover {
        height: auto !important;
        /* 框跟随图片改 */
        width: 100% !important;
        object-fit: contain !important;
        background: #f7f7f7 !important;
        padding: 0 !important;
        border: 1px solid #eee !important;
        display: block !important;
    }

    .issue-detail-header {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .issue-large-cover {
        width: 100% !important;
        /* Maximize width */
        max-width: none !important;
        height: auto !important;
        /* Natural vertical expansion */
        margin-bottom: 25px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
        display: block !important;
    }

    .btn-group {
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .btn-group>* {
        width: 100% !important;
        margin-left: 0 !important;
        text-align: center !important;
        padding: 12px !important;
    }

    .search-box {
        max-width: 100% !important;
        margin-bottom: 30px !important;
    }

    .search-input {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .issue-grid {
        grid-template-columns: 1fr;
    }
}


/* --- Friendship Links Marquee --- */
.links-section {
    background: #fff;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    overflow: hidden;
}

.links-marquee-container {
    display: flex;
    align-items: center;
    width: max-content;
    animation: marqueeScroll 40s linear infinite;
}

.links-marquee-container:hover {
    animation-play-state: paused;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 40px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    transition: 0.3s;
}

.link-item:hover {
    color: var(--primary-color);
}

.link-item img {
    height: 20px;
    width: auto;
    filter: grayscale(1);
    opacity: 0.6;
    transition: 0.3s;
}

.link-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Citation Modal Styles */
.cite-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.cite-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 1001;
}

.cite-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cite-modal-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.cite-close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.cite-close:hover {
    color: #333;
}

.cite-formats {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.cite-format-btn {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    cursor: pointer;
    border-radius: 4px;
    white-space: nowrap;
}

.cite-format-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.cite-content-box {
    background: #f9f9f9;
    padding: 20px;
    border: 1px dashed #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-all;
    white-space: pre-wrap;
}

.copy-toast {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 1002;
}

@media (max-width: 768px) {
    .links-marquee-container {
        animation-duration: 25s;
    }
}