@import "/css/public-7b3882c692b83def71b51c549f3f4343.css";

/* ================= 详情页：body 底色统一 ================= */
body {
    background: #fafafa;
}

.page-container {
    background: #fafafa;
}

/* ================= 详情页头部 ================= */
.detail-header {
    text-align: center;
    padding: 50px 0 0;
}

.detail-header h1 {
    max-width: var(--frame-width);
    margin: 0 auto 20px;
    padding: 0 40px;
    font-size: 30px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.5;
}

.detail-meta {
    font-size: 14px;
    color: #94a3b8;
    max-width: var(--frame-width);
    margin: 0 auto;
    padding: 0 40px;
}

.detail-meta span {
    margin: 0 12px;
}

/* ================= 分割线 ================= */
.detail-divider-inner {
    max-width: var(--frame-width);
    margin: 10px auto;
    height: 1px;
    background: #c8cdd6;
}

/* ================= 详情页主体 ================= */
.detail-body {
    padding: 0 0 80px;
}

.detail-container {
    max-width: var(--frame-width);
    margin: 0 auto;
    padding: 0 40px;
}

.detail-main {
    background: transparent;
    padding: 0 80px 60px;
    min-height: 400px;
    position: relative;
}

.detail-content {
    font-family: SimSun, "Noto Serif CJK SC", "Source Han Serif SC", serif;
    font-size: 17px;
    color: #333;
    line-height: 2;
    text-align: justify;
}

.detail-content h2 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9edf4;
}

.detail-content h2:first-child {
    margin-top: 0;
}

.detail-content h3 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 30px 0 14px;
}

.detail-content p {
    margin-bottom: 20px;
    text-indent: 2em;
}

.detail-content p:first-of-type {
    text-indent: 0;
}

.detail-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border: 1px solid #e9edf4;
}

.detail-content blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    background: #f8f9fc;
    border-left: 4px solid #667eea;
    color: #555;
    font-size: 15px;
    line-height: 1.8;
}

.detail-content ul,
.detail-content ol {
    margin: 16px 0;
    padding-left: 2em;
    line-height: 2;
}

.detail-content li {
    margin-bottom: 6px;
}

.detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
}

.detail-content table th,
.detail-content table td {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.detail-content table th {
    background: #f8f9fc;
    font-weight: 600;
    color: #1e293b;
}

.detail-content a {
    color: #667eea;
    text-decoration: underline;
}

/* ================= 加载动画 ================= */
.detail-main .loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    z-index: 2;
    transition: opacity 0.4s ease;
}

.detail-main .loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e8ecf4;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-text {
    margin-top: 20px;
    font-size: 15px;
    color: #999;
    letter-spacing: 2px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ================= 旧版页面兼容（不动） ================= */
.img-frm {
    width: 100%;
    min-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.img-frm.frm1 {
    height: 5797px;
    background: url("/images/p1-777a4533d0bce9d6e7ebb685dd231504.jpg") top center no-repeat;
}

.img-frm.frm1 .tools {
    padding-top: 540px;
    display: flex;
    gap: 20px;
}

.img-frm.frm1 .tools button {
    line-height: 65px;
    border: 0;
    margin: 0;
    padding: 0 35px;
    font-size: 16px;
    background-color: var(--color-white);
    color: var(--color-black);
    border-radius: 32px;
    font-weight: bold;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.img-frm.frm1 .tools button:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 10px 5px rgba(0,0,0,0.15);
}

.img-frm.frm1 .tools button.active {
    color: var(--color-white);
    background: var(--bg-linear-1);
}

.img-frm.frm2 {
    height: 5565px;
    background: url("/images/p1-2-3fa9b79c11f83779390e2e82e386c899.jpg") top center no-repeat;
}

.gbook-frm {
    height: 880px;
    padding: 60px 0;
    background: linear-gradient(180deg, #1c388c 0%, #0f1b35 100%);
}

.panel {
    margin: 0 auto;
    width: var(--frame-width);
}

.panel h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--color-white);
    text-align: center;
}

.panel .des {
    font-size: 1.2em;
    text-align: center;
    color: var(--color-light);
}

.gbook-panel {
    margin: 40px auto 0;
    padding: 30px;
    background-color: var(--color-light-1);
    border-radius: 20px;
    width: 890px;
}

/* ================= 移动端 ================= */
@media (max-width: 768px) {
    .detail-header { padding: 30px 16px 20px; }
    .detail-header h1 { padding: 0 !important; font-size: 22px; }

    .detail-body { padding: 0 0 40px; }
    .detail-container { padding: 0; }
    .detail-main { padding: 24px 20px 40px; }
    .detail-content { font-size: 16px; line-height: 1.9; }
    .detail-content h2 { font-size: 19px; }
    .detail-content h3 { font-size: 16px; }
    .detail-content p { text-indent: 2em; }
    .detail-content img { width: 100% !important; height: auto !important; margin: 20px 0; border: none; }

    .img-frm { min-width: auto; }
    .img-frm.frm1 { height: auto; min-height: 300px; background-size: contain; }
    .img-frm.frm1 .tools { padding-top: 20px; flex-wrap: wrap; justify-content: center; }
    .img-frm.frm1 .tools button { line-height: 40px; padding: 0 20px; font-size: 14px; }
    .img-frm.frm2 { height: auto; min-height: 300px; background-size: contain; }

    .gbook-frm { height: auto; padding: 40px 16px; }
    .panel { width: 100%; }
    .panel h1 { font-size: 28px; }
    .gbook-panel { width: 100%; padding: 20px; }
}
