/* ========================================
   图书服务页面样式
   ======================================== */

/* 顶部搜索区域 */
.book-hero {
    padding: 24px 20px;
    text-align: center;
}
.book-hero-inner {
    max-width: 680px;
    margin: 0 auto;
}
.book-hero-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px;
}
.book-hero-desc {
    font-size: 14px;
    color: #888;
    margin: 0 0 20px;
    letter-spacing: 1px;
}

/* 搜索框 */
.book-search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #2563EB;
    border-radius: 8px;
    overflow: hidden;
    max-width: 560px;
    margin: 0 auto;
}
.book-search-icon {
    color: #999;
    font-size: 15px;
    padding: 0 12px;
    flex-shrink: 0;
}
.book-search-box input {
    flex: 1;
    height: 44px;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
    min-width: 0;
}
.book-search-box button {
    height: 44px;
    padding: 0 26px;
    background: #2563EB;
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}
.book-search-box button:hover {
    background: #1D4ED8;
}

/* 快捷分类标签 */
.book-quick-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.quick-tag {
    padding: 5px 16px;
    font-size: 13px;
    color: #666;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-user-select: none;
    user-select: none;
}
.quick-tag:hover {
    border-color: #2563EB;
    color: #2563EB;
}
.quick-tag.active {
    background: #2563EB;
    color: #fff;
    border-color: #2563EB;
}

/* 筛选栏 */
.book-filter-bar {
    padding: 16px 0 8px;
    border-bottom: 1px solid #f0f2f5;
}
.filter-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}
.filter-label {
    flex-shrink: 0;
    width: 40px;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    padding-top: 5px;
    text-align: right;
}
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ftag {
    padding: 4px 14px;
    font-size: 13px;
    color: #666;
    background: #f5f7fa;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
    -webkit-user-select: none;
    user-select: none;
}
.ftag:hover {
    color: #2563EB;
    background: #eff6ff;
}
.ftag.active {
    color: #2563EB;
    background: #eff6ff;
    border-color: #bfdbfe;
    font-weight: 500;
}
.ftag-hot {
    color: #dc2626;
}
.ftag-hot.active {
    color: #fff;
    background: #dc2626;
    border-color: #dc2626;
}

/* 管理入口栏 */
.book-admin-bar {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    margin-top: 16px;
    border-top: 1px solid #f0f2f5;
}
.book-admin-bar a {
    padding: 6px 16px;
    font-size: 13px;
    color: #2563EB;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.15s;
}
.book-admin-bar a:hover {
    background: #2563EB;
    color: #fff;
    border-color: #2563EB;
}
.book-admin-bar a i {
    margin-right: 4px;
}

/* 特惠标记 */
.special-badge {
    display: inline-block;
    padding: 1px 6px;
    font-size: 11px;
    color: #fff;
    background: #dc2626;
    border-radius: 3px;
    margin-right: 4px;
    vertical-align: middle;
}
.sign-badge {
    display: inline-block;
    padding: 1px 6px;
    font-size: 11px;
    color: #16a34a;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 3px;
    margin-left: 4px;
    vertical-align: middle;
}
.price-tag {
    font-size: 12px;
    color: #dc2626;
    font-weight: 600;
}
.row-special:hover {
    background: #f5f8ff;
}

/* 主内容区 */
.book-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 40px;
    background: #fff;
}

/* 底部说明内容 */
.bottom-notice-content p {
    margin: 0 0 4px;
    font-size: 12px;
    color: #999;
    line-height: 1.7;
}
.bottom-notice-content b {
    color: #666;
    font-weight: 500;
}

/* 工具栏 */
.book-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e8ecf1;
    padding: 0;
}
.book-tab-group {
    display: flex;
    gap: 0;
}
.book-tab-btn {
    padding: 14px 24px;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s;
    font-weight: 500;
}
.book-tab-btn:hover {
    color: #2563EB;
    background: #fafbff;
}
.book-tab-btn.active {
    color: #2563EB;
    font-weight: 600;
    border-bottom-color: #2563EB;
}
.book-export-btn {
    padding: 5px 14px;
    font-size: 13px;
    color: #2563EB;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}
.book-export-btn:hover {
    background: #2563EB;
    color: #fff;
    border-color: #2563EB;
}
.book-export-btn i { margin-right: 4px; }
.book-stats {
    font-size: 13px;
    color: #999;
    padding-right: 4px;
}

/* 表格 */
.book-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.book-table thead {
    background: #f8fafc;
}
.book-table th {
    padding: 11px 8px;
    font-weight: 600;
    color: #555;
    text-align: center;
    border-bottom: 2px solid #e8ecf1;
    white-space: nowrap;
    font-size: 13px;
}
.book-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #f0f2f5;
    color: #333;
}
.book-table tbody tr {
    cursor: pointer;
    transition: background 0.15s;
}
.book-table tbody tr:hover {
    background: #f5f8ff;
}
.col-chk { width: 24px; padding: 0 4px !important; }
.col-type { width: 64px; }
.col-name { text-align: left !important; font-weight: 500; color: #1a1a1a; }
.col-pub { width: 130px; color: #888; font-size: 12px; text-align: left !important; }
.pub-tag {
    display: inline-block;
    font-size: 10px;
    padding: 0 4px;
    background: #f0f7ff;
    color: #2563EB;
    border-radius: 2px;
    vertical-align: middle;
}
.col-editor { width: 78px; }
.col-sign { width: 100px; }

/* 主编状态 */
.ed-has {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 3px;
    font-size: 12px;
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}
.ed-open {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 3px;
    font-size: 12px;
    background: #eff6ff;
    color: #2563EB;
    border: 1px solid #bfdbfe;
}
.ed-none {
    color: #d1d5db;
}
.ed-recruit {
    display: inline-block;
    padding: 2px 14px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 500;
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* 分页 */
.book-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 18px 0;
}
.pg-info {
    color: #999;
    font-size: 13px;
    margin-right: 10px;
}
.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    background: #fff;
    transition: all 0.15s;
    text-decoration: none;
}
.pg-btn:hover {
    border-color: #2563EB;
    color: #2563EB;
}
.pg-btn.on {
    background: #2563EB;
    color: #fff;
    border-color: #2563EB;
}
.pg-dot {
    color: #ccc;
    padding: 0 4px;
    font-size: 13px;
}

/* 加载/空状态 */
.book-loading {
    text-align: center;
    padding: 50px;
    color: #999;
    font-size: 14px;
}
.book-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    color: #bbb;
    font-size: 14px;
}
.book-empty i {
    font-size: 40px;
    margin-bottom: 10px;
    color: #e0e0e0;
}

/* ========================================
   价格折叠面板
   ======================================== */
.book-collapse {
    margin-top: 28px;
    border: 1px solid #e8ecf1;
    border-radius: 6px;
    overflow: hidden;
}
.book-collapse-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #f8fafc;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    transition: background 0.15s;
    -webkit-user-select: none;
    user-select: none;
}
.book-collapse-header:hover {
    background: #f0f4f8;
}
.book-collapse-header i.fa-list-alt {
    color: #2563EB;
    margin-right: 6px;
}
.book-collapse-body {
    padding: 16px 18px;
    border-top: 1px solid #e8ecf1;
}

/* 价格Tab */
.price-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e8ecf1;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.price-tab {
    padding: 8px 18px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s;
    -webkit-user-select: none;
    user-select: none;
    white-space: nowrap;
}
.price-tab:hover { color: #2563EB; }
.price-tab.active {
    color: #2563EB;
    font-weight: 600;
    border-bottom-color: #2563EB;
}

/* 价格表格 */
.price-table-wrap {
    overflow-x: auto;
}
.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.price-table thead { background: #f0f7ff; }
.price-table th {
    padding: 9px 12px;
    font-weight: 600;
    color: #2563EB;
    text-align: center;
    border-bottom: 2px solid #bfdbfe;
    white-space: nowrap;
    font-size: 12px;
}
.price-table td {
    padding: 9px 12px;
    text-align: center;
    border-bottom: 1px solid #f0f2f5;
    color: #333;
    font-size: 12px;
}
.price-table tbody tr:hover { background: #f8faff; }
.price-val { color: #c2410c; font-weight: 600; }
.remark-val { text-align: left; color: #888; max-width: 360px; }

/* 底部说明 */
.book-footer-note {
    margin-top: 20px;
    padding: 10px 16px;
    font-size: 12px;
    color: #aaa;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}
.book-footer-note i {
    margin-right: 4px;
}

/* ========================================
   出版社管理页面复用样式
   ======================================== */
.book-page-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.book-page-title i { color: #2563EB; }
.book-search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.book-search-bar .book-search-input {
    height: 38px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}
.book-search-bar .book-search-input:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 2px rgba(37,99,235,0.1);
}
.book-search-bar .book-search-btn {
    height: 38px;
    padding: 0 20px;
    background: #2563EB;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: background 0.2s;
}
.book-search-bar .book-search-btn:hover { background: #1D4ED8; }
.book-page { max-width: 1400px; margin: 0 auto; padding: 0 20px 40px; background: #fff; }
.book-tips {
    margin-top: 24px;
    padding: 16px 20px;
    background: #fefce8;
    border: 1px solid #fde68a;
    border-radius: 6px;
    font-size: 13px;
    color: #854d0e;
    line-height: 2;
}
.book-tips-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: #a16207;
}

/* 响应式 */
@media (max-width: 768px) {
    .book-hero { padding: 24px 16px 20px; }
    .book-hero-title { font-size: 20px; }
    .book-main { padding: 0 10px 30px; }
    .book-table { font-size: 12px; }
    .book-table th, .book-table td { padding: 8px 5px; }
    .book-tab-btn { padding: 12px 16px; font-size: 14px; }
    .col-pub { display: none; }
}
