/* 全站古籍打包服务页面 + 详情页「获取本站所有古籍」按钮样式
   独立成文件，避免依赖主样式表 style.css 是否已同步到服务器 */

/* ==================== 全站古籍打包服务页面 ==================== */
.pack-page {
    padding: 40px 0;
}

.pack-header {
    text-align: center;
    margin-bottom: 40px;
}

.pack-header h1 {
    color: #8b4513;
    font-size: 3rem;
    margin-bottom: 15px;
}

.pack-subtitle {
    color: #a0522d;
    font-size: 1.3rem;
    font-style: italic;
}

.pack-section {
    background: rgba(244, 241, 232, 0.9);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.1);
}

.pack-section h2 {
    color: #8b4513;
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 3px solid #d2691e;
    padding-bottom: 10px;
}

.pack-section h3 {
    color: #8b4513;
    font-size: 1.3rem;
    margin: 25px 0 12px;
}

.pack-section p {
    color: #2c1810;
    line-height: 1.9;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

/* 价格方案卡片 */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.plan-card {
    background: rgba(232, 220, 192, 0.45);
    border: 2px solid #d2691e;
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(139, 69, 19, 0.2);
}

.plan-card.is-recommended {
    background: linear-gradient(135deg, rgba(210, 105, 30, 0.18), rgba(205, 133, 63, 0.18));
    border-width: 3px;
}

.plan-badge {
    display: inline-block;
    background: linear-gradient(135deg, #d2691e, #cd853f);
    color: #f4f1e8;
    font-size: 0.85rem;
    padding: 4px 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    align-self: center;
}

.plan-name {
    color: #8b4513;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.plan-desc {
    color: #8b7355;
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 18px;
    flex-grow: 1;
}

.plan-price {
    color: #d2691e;
    font-size: 2.4rem;
    font-weight: bold;
    margin-bottom: 6px;
}

.plan-price small {
    font-size: 1rem;
    color: #8b7355;
    font-weight: normal;
}

.plan-note {
    color: #8b7355;
    font-size: 0.9rem;
}

/* 附赠硬盘的京东参考价 */
.plan-drive {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(139, 69, 19, 0.3);
    color: #8b7355;
    font-size: 0.88rem;
    line-height: 1.7;
}

.plan-drive a {
    color: #d2691e;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px dashed rgba(210, 105, 30, 0.6);
    transition: color 0.3s ease;
}

.plan-drive a:hover {
    color: #a0522d;
    border-bottom-style: solid;
}

.plan-drive .cod-warning {
    display: block;
    margin-bottom: 3px;
    font-size: 1rem;
}

/* 拷贝数据清单入口 */
.pack-manifest {
    margin-top: 26px;
    padding: 26px;
    background: rgba(232, 220, 192, 0.5);
    border: 2px solid #cd853f;
    border-radius: 16px;
}

.pack-manifest .pm-title {
    color: #8b4513;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 12px;
}

.pack-manifest .pm-title i {
    color: #d2691e;
    margin-right: 6px;
}

.pack-manifest .pm-text {
    color: #2c1810;
    font-size: 1.02rem;
    line-height: 1.85;
    margin-bottom: 10px;
}

.pm-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    background: linear-gradient(135deg, #8b4513, #a0522d);
    color: #f4f1e8;
    padding: 13px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.pm-link:hover {
    background: linear-gradient(135deg, #a0522d, #8b4513);
    transform: translateY(-2px);
}

/* 到付警告：加粗红字 */
.cod-warning {
    color: #dc3545;
    font-weight: bold;
}

/* ==================== 详情页 SEO 内容增厚 ==================== */
.book-desc-block .desc-lead {
    color: #2c1810;
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 18px;
    padding: 14px 18px;
    background: rgba(232, 220, 192, 0.35);
    border-left: 4px solid #d2691e;
    border-radius: 0 10px 10px 0;
}

.desc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    font-size: 0.98rem;
    background: rgba(244, 241, 232, 0.6);
    border-radius: 10px;
    overflow: hidden;
}

.desc-table th,
.desc-table td {
    padding: 11px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(139, 69, 19, 0.15);
    vertical-align: top;
}

.desc-table tr:last-child th,
.desc-table tr:last-child td {
    border-bottom: none;
}

.desc-table th {
    color: #8b4513;
    font-weight: bold;
    white-space: nowrap;
    width: 110px;
    background: rgba(210, 105, 30, 0.08);
}

.desc-table td {
    color: #2c1810;
    line-height: 1.7;
    word-break: break-word;
}

.desc-cat-link {
    color: #d2691e;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px dashed rgba(210, 105, 30, 0.6);
}

.desc-cat-link:hover {
    color: #a0522d;
    border-bottom-style: solid;
}

.desc-note {
    color: #8b7355 !important;
    font-size: 0.92rem !important;
    line-height: 1.8 !important;
    margin-bottom: 0 !important;
    padding-top: 6px;
    border-top: 1px dashed rgba(139, 69, 19, 0.25);
}

/* FAQ 区块 */
.faq-list {
    margin-top: 12px;
}

.faq-item {
    margin-bottom: 16px;
    padding: 15px 18px;
    background: rgba(232, 220, 192, 0.28);
    border-radius: 10px;
    border-left: 3px solid #cd853f;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-q {
    color: #8b4513;
    font-size: 1.02rem;
    font-weight: bold;
    margin: 0 0 8px;
    line-height: 1.6;
}

.faq-a {
    color: #2c1810;
    font-size: 0.97rem;
    line-height: 1.85;
    margin: 0;
}

/* 同馆藏区块 */
.related-books .rb-sub {
    color: #8b7355;
    font-size: 0.85rem;
    text-align: center;
    margin: -12px 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(139, 69, 19, 0.15);
}

@media (max-width: 768px) {
    .desc-table th {
        width: 88px;
    }

    .desc-table th,
    .desc-table td {
        padding: 9px 11px;
        font-size: 0.9rem;
    }
}

/* 提示 / 警示区块 */
.pack-notice {
    border-left: 5px solid #d2691e;
    background: rgba(210, 105, 30, 0.08);
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    margin: 22px 0;
}

.pack-notice p {
    margin-bottom: 10px;
}

.pack-notice p:last-child {
    margin-bottom: 0;
}

/* 用途限制：加粗红字 */
.pack-usage-warning {
    text-align: center;
    margin: 28px 0;
    padding: 22px 20px;
    background: rgba(220, 53, 69, 0.07);
    border: 2px dashed rgba(220, 53, 69, 0.45);
    border-radius: 14px;
}

.pack-usage-warning strong {
    color: #dc3545;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.9;
}

/* 免费获取提醒 */
.pack-free-reminder {
    background: rgba(232, 220, 192, 0.55);
    border: 2px solid #cd853f;
    border-radius: 16px;
    padding: 26px;
    margin-top: 22px;
    text-align: center;
}

.pack-free-reminder .reminder-title {
    color: #8b4513;
    font-size: 1.35rem;
    font-weight: bold;
    margin-bottom: 12px;
}

.pack-free-reminder p {
    margin-bottom: 10px;
}

.pack-free-reminder .free-link {
    display: inline-block;
    margin-top: 12px;
    background: linear-gradient(135deg, #d2691e, #cd853f);
    color: #f4f1e8;
    padding: 12px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.pack-free-reminder .free-link:hover {
    background: linear-gradient(135deg, #cd853f, #d2691e);
    transform: translateY(-2px);
}

/* 联系方式 + 微信二维码 */
.pack-contact {
    text-align: center;
}

.pack-contact-qr {
    display: inline-block;
    background: #fff;
    padding: 14px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.18);
    margin: 18px 0;
}

.pack-contact-qr img {
    display: block;
    width: 240px;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.pack-contact-qr.is-empty {
    padding: 40px 30px;
    color: #8b7355;
    font-size: 0.95rem;
    line-height: 1.8;
    border: 2px dashed #cd853f;
}

.pack-contact-tip {
    color: #8b7355;
    font-size: 1rem;
    margin-top: 6px;
}

.pack-contact-email {
    color: #8b4513;
    font-size: 1.05rem;
    margin-top: 10px;
}

/* 详情页：获取全站古籍 按钮 */
.download-btn-all {
    background: linear-gradient(135deg, #8b4513, #a0522d);
    color: #f4f1e8;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.download-btn-all:hover {
    background: linear-gradient(135deg, #a0522d, #8b4513);
    transform: translateY(-2px);
}

.download-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.download-btn-group .download-btn,
.download-btn-group .download-btn-all {
    flex: 0 0 auto;
}

.download-content > p {
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .pack-header h1 {
        font-size: 2.1rem;
    }

    .pack-section {
        padding: 25px 20px;
    }

    .pack-section h2 {
        font-size: 1.6rem;
    }

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

    .download-btn-group {
        flex-direction: column;
        align-items: stretch;
    }

    .download-btn-group .download-btn,
    .download-btn-group .download-btn-all {
        justify-content: center;
        text-align: center;
    }
}
