﻿body {
    font-family: 'Microsoft YaHei', sans-serif;
    margin: 0;
    background: #E1E2CD;
    color: #0F0F0F;
}

/* ================ 顶部信息栏 ================ */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 50px;
    background: #E1E2CD;
    border-bottom: 1px solid #DAD9D1;
}
/* 使用 Grid 实现三栏布局 */
.top-bar-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 800px; /* 对应 #previewArea 的 max-width */
    margin: 0 auto; /* 居中 */
    height: 100%;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #0F0F0F;
    white-space: nowrap;
}

.avatar {
    width: 22px;
    height: 22px;
    background: #C5C8CD;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.phoneNumber, .xiazaibiName {
    font-family: Microsoft YaHei;
    line-height: 18px;
}

.phoneNumber {
    font-size: 14px;
    color: #0F0F0F;
}

.xiazaibiName {
    font-size: 10px;
    color: #666;
}

.icon-text-group {
    display: flex;
    align-items: center; /* 垂直居中 */
    gap: 4px; /* 图标与前后内容的间距 */
}

    .icon-text-group img {
        width: 12px;
        height: 12px;
        object-fit: contain;
    }

.page-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    color: #0F0F0F;
    white-space: nowrap;
    margin: 0 auto; /* 自动外边距，使其居中 */
}

.currentPage {
    width: 40px;
    height: 34px;
    background: #FBFAF6;
    border: 1px solid #DAD9D1;
    text-align: center;
    line-height: 34px;
    font-size: 16px;
}

.totalPage {
    font-size: 16px;
    color: #0F0F0F;
}

.cost-info {
    font-size: 12px;
    color: #d9534f;
    white-space: nowrap;
    text-align: right;
}
/* ================ 设置区域 ================ */
.settings-row {
    position: sticky;
    top: 50px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    background: #FBFAF6;
    flex-wrap: wrap;
    gap: 40px;
}

.setting-label {
    font-size: 16px;
    color: #0F0F0F;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.wenzi {
    font-size: 16px;
    color: #0F0F0F;
}

.font-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.font-btn {
    width: 24px;
    height: 24px;
    background: #E9E8DC;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.font-value {
    width: 48px;
    height: 24px;
    background: #E9E8DC;
    text-align: center;
    line-height: 24px;
    font-size: 14px;
}
/* 复选框组：水平排列 */
.checkbox-group {
    display: flex;
    gap: 20px; /* 每个 label 之间间距 */
    align-items: center;
    flex-wrap: nowrap; /* 强制在一行 */
}
    /* 隐藏原 checkbox，用 label::before 替代 */
    .checkbox-group input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        width: 16px;
        height: 16px;
        opacity: 0;
        position: absolute;
        cursor: pointer;
    }

/* 设置项容器 */
.setting-item {
    display: flex;
    align-items: center;
    gap: 8px; /* 可调间距 */
}

    /* 自定义图标区域 */
    .setting-item label::before {
        content: '';
        display: block;
        width: 16px;
        height: 16px;
        background-image: url('../img/pdf/notChoose.png'); /* ❌ 未选中图 */
        background-size: 16px 16px;
        background-position: center;
        background-repeat: no-repeat;
        margin-right: 0px;
        flex-shrink: 0;
    }

    /* 当 input 被选中时，修改 label 的伪元素背景图 */
    .setting-item input[type="checkbox"]:checked ~ label::before {
        background-image: url('../img/pdf/choose.png'); /* ✅ 选中图 */
    }

    /* 文字样式 */
    .setting-item label {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 14px;
        color: #0F0F0F;
        cursor: pointer;
        user-select: none;
        white-space: nowrap;
    }

input[type="checkbox"]:disabled {
    filter: grayscale(100%) opacity(0.7);
    cursor: not-allowed;
}

.disabled-text {
    color: #aaaaaa !important;
    cursor: not-allowed;
    pointer-events: none;
    user-select: none;
}

.zihao {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #0F0F0F;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

/* 下载按钮 */
.pdf {
    width: 109px;
    height: 34px;
    background: #5D6146;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .pdf:hover {
        background-color: #555b3e;
    }

    .pdf img {
        width: 16px;
        height: 16px;
        margin-right: 4px;
    }

.wenzi2 {
    font-size: 16px;
    color: #FFFFFF;
    text-align: center;
}

.loading {
    text-align: center;
    padding: 500px 0;
    width: 816px;
    height: 1123px;
    background: #F0EFE2;
    margin: 0 auto;
}

.PDFshengchengzhong {
    font-family: Microsoft YaHei, Microsoft YaHei;
    font-weight: 400;
    font-size: 36px;
    color: #5D6146;
}

#previewArea {
    display: none;
    max-width: 800px;
    margin: 0px auto;
    background: white;
    min-height: 600px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    line-height: 1.8;
}
/* 字符对齐 */
.line-wrapper {
    text-align: left;

}

.word-pair {
    display: inline-block;
    width: 35px;
    text-align: center;
}

.pinyin-char {
    font-family: 'pinyin001', 'Microsoft YaHei';
    font-size: 10px;
    line-height: 1.2;
    height: 14px;
    overflow: hidden;
}

.hanzi-char {
    font-family: KaiTi;
    font-size: 20px;
    line-height: 1.0;
    margin-top: 2px;
    text-align: center;
    position: relative;
}

.char-with-sup {
    position: relative;
    display: inline-block;
    line-height: 1.0;
}

    .char-with-sup .sup {
        /*position: absolute;
        top: 0px;
        right: -4px;
        font-size: 10px;
        color: #202020;
        line-height: 1;*/
        position: absolute;
        top: 0px;
        right: -8px;
        font-size: 10px;
        color: #202020;
        /* 关键修改：用CSS的vertical-align实现上标，而非字符本身 */
        line-height: 1;
        vertical-align: super; /* 标准上标对齐 */
        display: inline-block; /* 确保所有数字基线一致 */
    }
/* 文本样式 */
.yiwen {
    font-family: Microsoft YaHei, Microsoft YaHei;
    font-size: 16px;
    line-height: 30px;
    text-align: left;
    word-wrap: break-word;
}

.notContent {
    font-size: 200px;
}

.cankao {
    font-family: Microsoft YaHei, Microsoft YaHei;
    font-weight: 400;
    color: rgba(32,32,32,0.5);
    font-size: 15px;
}
