﻿/* 全局重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Times New Roman', serif;
    background: #fff;
    color: #000;
    line-height: 1.6;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 标题样式 - 修改1：标题用24px */
h1 {
    font-size: 24px;
    font-family: '方正黑体简体', 'SimHei', sans-serif;
    text-align: center;
    font-weight: bold;
    margin: 24px 0 12px 0;
    color: #000;
}
h2 {
    font-size: 20px;
    font-family: '方正楷体_GBK', 'KaiTi', serif;
    text-align: center;
    font-weight: normal;
    margin: 8px 0;
    line-height: 1.4;
    color: #000;
}
h3 {
    font-size: 18px;
    font-family: '方正书宋_GBK', 'SimSun', serif;
    font-weight: bold;
    margin: 24px 0 12px 0;
    color: #000;
    border-bottom: 1px solid #ccc;
    padding-bottom: 4px;
}
h4 {
    font-size: 16px;
    font-family: '黑体', 'SimHei', sans-serif;
    font-weight: bold;
    margin: 16px 0 8px 0;
    color: #000;
}
h5 {
    font-size: 14px;
    font-family: '黑体', 'SimHei', sans-serif;
    font-weight: bold;
    margin: 20px 0 8px 0;
    color: #000;
}

/* 段落与文字样式 */
p {
    font-size: 14px;
    font-family: '方正书宋_GBK', 'SimSun', serif;
    text-align: justify;
    text-indent: 2em;
    line-height: 1.8;
    margin: 0 0 6px 0;
}
p.no-indent {
    text-indent: 0;
}
.center {
    text-align: center;
}
.bold {
    font-weight: bold;
}
.italic {
    font-style: italic;
}
.small {
    font-size: 12px;
}
.tiny {
    font-size: 10px;
}

/* 作者机构 - 修改2：作者和单位都用14px */
.author-affil {
    text-align: center;
    font-size: 14px;
    font-family: '方正书宋_GBK', 'SimSun', serif;
    line-height: 1.6;
    margin: 4px 0;
}
.author-affil sup {
    font-size: 10px;
}

/* 摘要/关键词 - 14px；DOI、CSTR、数据可用性声明用18px */
.abstract, .keywords {
    font-size: 14px;
    font-family: '方正书宋_GBK', 'SimSun', serif;
    line-height: 1.8;
    text-indent: 0;
}
.doi, .data-availability {
    font-size: 18px;
    font-family: '方正书宋_GBK', 'SimSun', serif;
    line-height: 1.8;
    text-indent: 0;
}
.abstract strong, .keywords strong, .doi strong, .data-availability strong {
    font-family: '黑体', 'SimHei', sans-serif;
    font-weight: bold;
}
.doi a, .data-availability a {
    font-size: 18px;
}

/* 参考文献上标序号 - 可点击跳转 */
.ref-sup {
    font-size: 0.75em;
    vertical-align: super;
    line-height: 1;
    font-family: 'Times New Roman', serif;
    cursor: pointer;
    color: #0000ee;
    text-decoration: underline;
}
.ref-sup:hover {
    color: #ff6600;
}

/* 表格 */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    font-family: '方正书宋_GBK', 'SimSun', serif;
    margin: 12px 0;
}
th, td {
    border: 1px solid #000;
    padding: 6px 8px;
    text-align: center;
    vertical-align: middle;
}
th {
    background: #d9d9d9;
    font-weight: bold;
}
.table-caption {
    font-size: 14px;
    font-family: '黑体', 'SimHei', sans-serif;
    font-weight: bold;
    text-align: center;
    margin: 16px 0 8px 0;
}
.table-anchor {
    scroll-margin-top: 20px;
}

/* 图片容器 */
.figure {
    text-align: center;
    margin: 20px 0;
}
.figure a {
    display: inline-block;
}
.figure img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 图标题 + 下载按钮容器 */
.figure-caption-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    gap: 0;
    flex-wrap: wrap;
}

/* 图标题 */
.figure-caption {
    font-size: 14px;
    font-family: '方正书宋_GBK', 'SimSun', serif;
    text-align: center;
    margin: 0;
    text-indent: 0;
}
.figure-anchor {
    scroll-margin-top: 20px;
}

/* 图片下载按钮 */
.figure-download-btn {
    display: inline-block;
    margin-left: 12px;
    padding: 2px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff !important;
    text-decoration: none;
    font-size: 12px;
    font-family: 'Times New Roman', serif;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    line-height: 1.8;
    height: 26px;
    text-align: center;
    letter-spacing: 0.5px;
    font-weight: 500;
    box-sizing: border-box;
    flex-shrink: 0;
}
.figure-download-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b41a0 100%);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.6);
    transform: translateY(-1px);
    color: #fff !important;
}
.figure-download-btn:active {
    transform: translateY(0px);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

/* 公式样式 */
.formula {
    text-align: center;
    margin: 8px 0;
    line-height: 0;
}
.formula img {
    max-width: 100%;
    vertical-align: middle;
    display: inline-block;
}
.formula .formula-number {
    vertical-align: middle;
    font-size: 14px;
    font-family: 'Times New Roman', serif;
    line-height: 1.2;
    margin-left: 6px;
}

/* 参考文献 */
.ref-list {
    list-style: none;
    padding-left: 0;
    font-size: 13px;
    font-family: '方正书宋_GBK', 'SimSun', serif;
    line-height: 1.6;
}
.ref-list li {
    margin-bottom: 6px;
    padding-left: 2em;
    text-indent: -2em;
}
.ref-anchor {
    scroll-margin-top: 20px;
}

/* 数据可用性声明 */
.data-availability {
    font-size: 18px;
    font-family: '方正书宋_GBK', 'SimSun', serif;
    line-height: 1.6;
    margin: 8px 0;
}

/* 脚注 */
.footnote {
    font-size: 12px;
    font-family: '方正书宋_GBK', 'SimSun', serif;
    line-height: 1.5;
    border-top: 1px solid #ccc;
    padding-top: 12px;
    margin-top: 24px;
}

/* 列表 */
ul, ol {
    padding-left: 2.5em;
    font-size: 14px;
    font-family: '方正书宋_GBK', 'SimSun', serif;
    line-height: 1.8;
}

/* 链接 */
a {
    color: #0000ee;
    text-decoration: underline;
}
a:hover {
    color: #ff6600;
}

/* 特殊：DOI */
.doi {
    font-size: 18px;
    font-family: '方正书宋_GBK', 'SimSun', serif;
    text-align: left;
    margin: 8px 0;
}
.doi a {
    word-break: break-all;
    font-size: 18px;
}

/* 表内小字 */
.table-note {
    font-size: 12px;
    font-family: '方正书宋_GBK', 'SimSun', serif;
    text-indent: 2em;
    margin-top: 8px;
    line-height: 1.6;
}

/* 响应式 */
@media (max-width: 768px) {
    body { padding: 10px; }
    table { font-size: 11px; }
    th, td { padding: 4px 5px; }
    h1 { font-size: 20px; }
    h2 { font-size: 12px; }
    p { font-size: 13px; }
    .abstract, .keywords { font-size: 13px; }
    .doi, .data-availability { font-size: 15px; }
    .author-affil { font-size: 12px; }
    .figure-download-btn {
        font-size: 11px;
        padding: 1px 12px;
        height: 24px;
        line-height: 1.6;
    }
}