/* ===== 豹猫星球WithFriends3650 读书分享报名 ===== */
:root {
    --primary: #D4842C;
    --primary-light: #E8B574;
    --primary-dark: #B06D1E;
    --primary-bg: #FBF3E8;
    --accent: #3D8B7E;
    --accent-light: #6BBFB0;
    --success: #5a9e3a;
    --success-bg: #f0f7ea;
    --danger: #c85a4a;
    --danger-bg: #fbf0ee;
    --warning: #d4940a;
    --bg: #FAF6F0;
    --card-bg: #ffffff;
    --text: #3a3128;
    --text-light: #9a8d7a;
    --border: #E8DCC8;
    --border-light: #F2EBDD;
    --shadow: 0 1px 3px rgba(58,49,40,0.06);
    --shadow-hover: 0 3px 10px rgba(58,49,40,0.1);
    --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    /* 纸张质感：极淡的交叉线纹理 */
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 39px,
            rgba(212,132,44,0.012) 39px,
            rgba(212,132,44,0.012) 40px
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 39px,
            rgba(212,132,44,0.012) 39px,
            rgba(212,132,44,0.012) 40px
        );
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 900px; margin: 0 auto; padding: 20px 16px; }

.hidden { display: none; }

/* ===== Month Tabs ===== */
.month-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    padding: 0 2px;
}
.month-tab {
    flex: 1;
    padding: 8px 4px;
    border: 1.5px solid var(--border);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    background: #fdfaf4;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    transition: background 0.15s, color 0.15s;
}
.month-tab:hover {
    background: var(--primary-bg);
    color: var(--primary-dark);
}
.month-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.tab-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    background: var(--danger);
    border-radius: 50%;
    margin-left: 3px;
    vertical-align: middle;
}
.month-tab.active .tab-dot { background: #fff; }

/* ===== Hero ===== */
.hero-section {
    background: var(--primary);
    border-bottom: 3px solid var(--primary-dark);
    padding: 0;
}
.hero-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    max-width: 900px;
    margin: 0 auto;
    padding: 14px 20px;
    position: relative;
}
.hero-mascot {
    width: 88px;
    height: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
    transform: rotate(-3deg);
}
.hero-mascot-right {
    width: 72px;
    height: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
    transform: rotate(2deg);
}
.hero-text {
    text-align: center;
    flex: 1;
    padding: 0 8px;
}
.hero-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.hero-subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 6px;
}
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    padding: 3px 12px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 500;
}

/* ===== Cards ===== */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

/* ===== Section Divider ===== */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 6px 0 14px;
}
.section-divider img {
    width: 32px;
    height: auto;
    opacity: 0.7;
}
.section-divider .divider-line {
    flex: 1;
    height: 1px;
    background: var(--border);
    max-width: 100px;
}
.section-divider .divider-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-dark);
    white-space: nowrap;
}

/* ===== Legend ===== */
.legend-card { padding: 12px 18px; }
.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text);
}
.legend-box {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1.5px solid var(--border);
}
.legend-box.available { background: var(--success-bg); border-color: var(--success); }
.legend-box.booked { background: var(--danger-bg); border-color: var(--danger); }
.legend-box.past { background: #f0f0f0; border-color: #ccc; }
.legend-box.weekend { background: #fffdf5; border-color: var(--warning); }
.legend-box.today { background: var(--primary-bg); border-color: var(--primary); }

/* ===== Stats Badge ===== */
.stats-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 14px;
    background: var(--primary-bg);
    border-radius: 4px;
    font-size: 13px;
    color: var(--text);
}
.stats-badge img { width: 20px; height: auto; }
.stats-badge strong { color: var(--primary); font-size: 15px; }

/* ===== Calendar Card ===== */
.calendar-card { padding: 16px; position: relative; }
.calendar-card::before {
    content: '';
    position: absolute;
    top: 0; left: 16px; right: 16px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 3px 3px;
}
.calendar-month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}
.month-label {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}
.month-label::before {
    content: '';
    width: 3px;
    height: 18px;
    background: var(--primary);
    border-radius: 1px;
}
.month-stats { font-size: 12px; color: var(--text-light); }

/* ===== Calendar Grid ===== */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}
.calendar-header {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    padding: 4px 0;
}
.calendar-header:nth-child(6),
.calendar-header:nth-child(7) { color: var(--accent); }
.calendar-body { margin-top: 4px; }

/* ===== Day Cells ===== */
.day-cell {
    aspect-ratio: 1;
    border: 1.5px solid var(--border-light);
    border-radius: 6px;
    padding: 3px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    position: relative;
    overflow: hidden;
    transition: border-color 0.15s, background 0.15s;
}
.day-cell.empty {
    border: 1.5px dashed #f0ebe0;
    background: transparent;
}
.day-cell.clickable { cursor: pointer; }
.day-cell.clickable:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
}
.day-cell.weekend { background: #fffdf8; }
.day-cell.today {
    border-color: var(--primary);
    border-width: 2px;
}
.day-cell.today .day-num { color: var(--primary); }
.day-cell.past {
    opacity: 0.3;
    background: #f5f3ef;
}
.day-cell.booked {
    background: linear-gradient(135deg, #fde8e8 0%, #fdf3e7 100%);
    border-color: var(--danger);
    cursor: default;
}
.day-cell.booked .booked-cat {
    position: absolute;
    top: 1px;
    left: 2px;
    width: 34%;
    max-width: 30px;
    min-width: 20px;
    height: auto;
    z-index: 1;
    filter: drop-shadow(0 1px 2px rgba(139,69,19,0.25));
    pointer-events: none;
}

.day-num {
    font-size: 15px;
    font-weight: 700;
    text-align: right;
    line-height: 1;
}
.day-cell.booked .day-num { color: var(--danger); }

.day-status {
    font-size: 10px;
    text-align: center;
    line-height: 1.3;
}
.available-status {
    background: var(--success-bg);
    color: var(--success);
    font-weight: 600;
    border-radius: 3px;
    padding: 1px 0;
}
.booked-status { color: var(--danger); }
.booked-name {
    font-size: 10px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.booked-book {
    font-size: 9px;
    opacity: 0.65;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.booked-time {
    font-size: 9px;
    color: var(--text-light);
    font-weight: 500;
}
.past-status { color: #bbb; font-size: 10px; }

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(58,49,40,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}
.modal-content {
    background: #fff;
    border-radius: 10px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    animation: modalIn 0.2s ease-out;
    overflow: hidden;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--primary);
    color: #fff;
}
.modal-header h2 {
    font-size: 16px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}
.modal-header h2 img { width: 24px; height: auto; }
.modal-close {
    font-size: 24px;
    cursor: pointer;
    color: rgba(255,255,255,0.7);
    line-height: 1;
    user-select: none;
}
.modal-close:hover { color: #fff; }
.modal-body { padding: 18px; }
.modal-date-info {
    background: var(--primary-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 14px;
    text-align: center;
}

/* ===== Form ===== */
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text);
}
.form-group label .required { color: var(--danger); }
.form-input, .form-select {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: var(--text);
    transition: border-color 0.15s;
}
.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
}
.form-input::placeholder { color: #c8bba8; }
.form-hint {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 3px;
}

/* ===== Upload Area ===== */
.upload-area {
    border: 1.5px dashed var(--border);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    background: #fdfaf4;
}
.upload-area:hover {
    border-color: var(--primary-light);
    background: var(--primary-bg);
}
.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.upload-icon { width: 40px; height: auto; opacity: 0.6; }
.upload-placeholder span { font-size: 13px; color: var(--text-light); }
.upload-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}
.upload-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1.5px solid var(--border);
}
.upload-change { font-size: 12px; color: var(--accent); }

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 10px 28px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    font-family: inherit;
    transition: background 0.15s;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #2d7569; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-block { display: block; width: 100%; }

/* ===== Alert ===== */
.alert {
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 13px;
    display: none;
    border: 1.5px solid;
}
.alert-success {
    background: var(--success-bg);
    border-color: var(--success);
    color: #3d7a28;
}
.alert-error {
    background: var(--danger-bg);
    border-color: var(--danger);
    color: #a04235;
}

/* ===== Admin: Stats ===== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 14px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    border-top: 3px solid var(--primary);
}
.stat-card .stat-value { font-size: 26px; font-weight: 700; color: var(--primary); }
.stat-card .stat-label { font-size: 12px; color: var(--text-light); margin-top: 2px; }

/* ===== Admin: Table ===== */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
    background: var(--primary-bg);
    color: var(--primary-dark);
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
}
.data-table td { padding: 8px 10px; border-bottom: 1px solid var(--border-light); }
.data-table tr:hover td { background: #fdfaf4; }

/* ===== Admin: Filter ===== */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.filter-bar select, .filter-bar input {
    padding: 6px 10px;
    border: 1.5px solid var(--border);
    border-radius: 5px;
    font-size: 13px;
}

/* ===== Badge ===== */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: #fff7e6; color: var(--warning); }
.badge-danger  { background: var(--danger-bg); color: var(--danger); }

/* ===== Calendar Slider Animation ===== */
.calendar-slider {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}
.month-panel {
    display: none;
    position: relative;
    width: 100%;
}
.month-panel.active {
    display: block;
    animation: none;
}
.month-panel.slide-out-left {
    display: block;
    animation: slideOutLeft 0.28s ease-in forwards;
}
.month-panel.slide-out-right {
    display: block;
    animation: slideOutRight 0.28s ease-in forwards;
}
.month-panel.slide-in-left {
    display: block;
    animation: slideInLeft 0.28s ease-out forwards;
}
.month-panel.slide-in-right {
    display: block;
    animation: slideInRight 0.28s ease-out forwards;
}
@keyframes slideOutLeft {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-30px); opacity: 0; }
}
@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(30px); opacity: 0; }
}
@keyframes slideInLeft {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideInRight {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ===== Month Picker ===== */
.month-picker-wrap {
    position: relative;
    margin-bottom: 14px;
    z-index: 50;
}
.month-picker-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(230,126,34,0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}
.month-picker-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(230,126,34,0.45);
}
.month-picker-btn img { border-radius: 50%; }
.month-picker-arrow {
    font-size: 14px;
    transition: transform 0.2s;
}
.month-picker-pop {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(58,49,40,0.22);
    border: 1.5px solid var(--border-light);
    padding: 14px 16px;
    min-width: 280px;
    max-width: 92vw;
    z-index: 100;
    animation: mpFadeIn 0.18s ease-out;
}
@keyframes mpFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.mp-year {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 8px 0 6px;
}
.mp-year:first-child { margin-top: 0; }
.mp-months {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}
.mp-month {
    position: relative;
    border: 1.5px solid var(--border-light);
    background: #fff;
    border-radius: 8px;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all 0.15s;
}
.mp-month:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
}
.mp-month.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    border-color: var(--primary);
}
.mp-dot {
    position: absolute;
    top: 3px;
    right: 5px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--danger);
}
.mp-month.active .mp-dot { background: #fff; }

/* ===== Share Modal ===== */
.share-modal-content {
    max-width: 480px;
}
.poster-preview {
    text-align: center;
    margin-bottom: 8px;
}
.poster-preview img {
    max-width: 190px;
    width: 55%;
    height: auto;
    display: inline-block;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.18);
    cursor: pointer;
    transition: transform 0.2s ease;
}
.poster-preview img:active {
    transform: scale(0.96);
}
.poster-preview-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
}

/* 海报大图查看器 */
.poster-viewer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 3000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.poster-viewer img {
    max-width: 95%;
    max-height: 82vh;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.poster-viewer-tip {
    color: #fff;
    font-size: 14px;
    margin-top: 14px;
    opacity: 0.85;
}
.poster-actions {
    text-align: center;
    margin-bottom: 16px;
}
.poster-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.share-text-section {
    border-top: 1px solid var(--border-light);
    padding-top: 14px;
}
.share-text-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}
.share-text-box {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-all;
    margin-bottom: 12px;
    max-height: 260px;
    overflow-y: auto;
    user-select: all;
}
.site-footer {
    text-align: center;
    padding: 28px 16px 22px;
    color: var(--text-light);
    font-size: 12px;
}
.footer-mascot {
    width: 40px;
    height: auto;
    margin-bottom: 6px;
    opacity: 0.7;
}
.footer-brand {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 13px;
    margin-bottom: 3px;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .container { padding: 12px 8px; }
    .card { padding: 14px; }
    .hero-mascot { width: 64px; }
    .hero-mascot-right { width: 52px; }
    .hero-title { font-size: 16px; }
    .hero-subtitle { font-size: 11px; }
    .hero-badge { font-size: 10px; padding: 2px 8px; }
    .calendar-grid { gap: 2px; }
    .calendar-header { font-size: 10px; }
    .day-cell { padding: 2px; border-radius: 4px; }
    .day-num { font-size: 12px; }
    .day-status { font-size: 8px; }
    .booked-name { font-size: 8px; }
    .booked-book { font-size: 7px; }
    .booked-time { font-size: 7px; }
    .legend { gap: 8px; }
    .legend-item { font-size: 11px; }
    .legend-box { width: 14px; height: 14px; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .data-table { font-size: 11px; }
    .data-table th, .data-table td { padding: 5px 6px; }
    .section-divider img { width: 26px; }
    .section-divider .divider-text { font-size: 12px; }
    .modal-header h2 { font-size: 15px; }
    .modal-header h2 img { width: 20px; }
    .upload-preview img { width: 64px; height: 64px; }
    /* 月份选择器 */
    .month-picker-btn { font-size: 15px; padding: 9px 16px; }
    .month-picker-pop { min-width: 0; width: calc(100vw - 32px); padding: 12px; }
    .mp-months { grid-template-columns: repeat(4, 1fr); gap: 6px; }
    .mp-month { padding: 9px 0; font-size: 13px; }
    /* 已占位格子：猫头缩成左上角小角标，时间/昵称/书名全部可见 */
    .day-cell.booked .booked-cat {
        width: 15px;
        max-width: 15px;
        min-width: 0;
        top: 2px;
        left: 2px;
        transform: none;
        opacity: 0.9;
    }
    .day-cell.booked .day-num { font-size: 11px; }
    .day-cell.booked .booked-status {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        width: 100%;
        gap: 0;
        padding: 0 1px;
    }
    .day-cell.booked .booked-time {
        display: block;
        order: -1;
        font-size: 9px;
        font-weight: 700;
        color: var(--danger);
        line-height: 1.2;
        white-space: nowrap;
    }
    .day-cell.booked .booked-name {
        position: static;
        font-size: 8px;
        line-height: 1.2;
        text-align: center;
    }
    .day-cell.booked .booked-book {
        display: block;
        font-size: 7px;
        line-height: 1.2;
        opacity: 0.7;
    }

    /* 排行榜移动端 */
    .book-wall { grid-template-columns: 1fr; gap: 10px; }
    .podium-item { padding: 12px 6px; }
    .podium-avatar { width: 50px; height: 50px; }
    .podium-item.first .podium-avatar { width: 60px; height: 60px; }
    .podium-name { font-size: 12px; }
    .reader-row { padding: 8px 10px; gap: 8px; }
    .reader-avatar { width: 36px; height: 36px; }
    /* 批量操作移动端 */
    .batch-bar { gap: 6px; padding: 8px 10px; }
    .batch-btn { padding: 6px 10px; font-size: 12px; }
}

/* ===== 自助取消页 ===== */
.cancel-info {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 6px 16px;
}
.cancel-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--border-light);
    font-size: 14px;
}
.cancel-row:last-child { border-bottom: none; }
.cancel-row span { color: var(--text-light); flex-shrink: 0; }
.cancel-row b { color: var(--text); text-align: right; word-break: break-word; }

/* ===== 后台批量操作 ===== */
.batch-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    background: var(--primary-bg);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
}
.batch-bar .batch-tip { font-size: 13px; color: var(--primary-dark); font-weight: 600; margin-right: auto; }
.batch-btn {
    padding: 6px 14px;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    color: #fff;
    transition: opacity 0.15s;
}
.batch-btn:hover { opacity: 0.88; }
.batch-btn.b-cancel { background: var(--warning); }
.batch-btn.b-restore { background: var(--success); }
.batch-btn.b-delete { background: var(--danger); }
.batch-btn.b-export { background: var(--accent); }
.data-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary);
    vertical-align: middle;
}

/* ===== 分享排行榜 ===== */
.cta-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 14px 0 4px;
}
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    font-family: inherit;
}
.cta-btn img { width: 20px; height: 20px; }
.cta-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(61,139,126,0.28);
}
.cta-primary:hover { background: #2d7569; }
.cta-ghost {
    background: #fff;
    color: var(--primary-dark);
    border: 1.5px solid var(--primary);
}
.cta-ghost:hover { background: var(--primary-bg); }

/* 领奖台 */
.podium {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 10px;
    align-items: end;
    margin: 6px 0 18px;
}
.podium-item {
    text-align: center;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 10px 10px 6px 6px;
    padding: 14px 8px 16px;
    position: relative;
}
.podium-item.first {
    border-color: var(--warning);
    background: #fffaf0;
    padding: 18px 8px 20px;
    border-bottom: 4px solid var(--warning);
}
.podium-item.second { border-bottom: 4px solid #b9c2cc; }
.podium-item.third { border-bottom: 4px solid #cd9b6b; }
.podium-medal { font-size: 24px; line-height: 1; }
.podium-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    margin: 8px auto 4px;
    border: 3px solid var(--primary-light);
    background: var(--primary-bg);
    display: block;
}
.podium-item.first .podium-avatar {
    width: 74px;
    height: 74px;
    border-color: var(--warning);
}
.podium-name {
    font-weight: 700;
    font-size: 13px;
    margin-top: 4px;
    word-break: break-all;
    color: var(--text);
}
.podium-count {
    font-size: 12px;
    color: var(--primary);
    font-weight: 700;
    margin-top: 3px;
}

/* 达人列表 */
.reader-list { display: flex; flex-direction: column; gap: 8px; }
.reader-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 10px 14px;
}
.reader-rank {
    width: 26px;
    text-align: center;
    font-weight: 800;
    color: var(--text-light);
    font-size: 15px;
    flex-shrink: 0;
}
.reader-rank.top { color: var(--warning); font-size: 17px; }
.reader-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    flex-shrink: 0;
    background: var(--primary-bg);
}
.reader-info { flex: 1; min-width: 0; }
.reader-name { font-weight: 700; font-size: 14px; color: var(--text); }
.reader-books {
    font-size: 12px;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}
.reader-cnt {
    flex-shrink: 0;
    background: var(--primary-bg);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

/* 书单墙 */
.book-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
}
.book-card {
    background: #fff;
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.book-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-hover); }
.book-card.is-past { opacity: 0.7; }
.book-card-top {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    align-items: center;
    border-bottom: 1px dashed var(--border-light);
    background: #fdfaf4;
}
.book-card-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
    flex-shrink: 0;
    background: var(--primary-bg);
}
.book-card-meta { min-width: 0; flex: 1; }
.book-card-date { font-size: 13px; color: var(--primary-dark); font-weight: 700; }
.book-card-time { font-size: 12px; color: var(--text-light); margin-top: 1px; }
.book-card-name {
    font-size: 13px;
    font-weight: 700;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.book-card-body { padding: 12px 14px; flex: 1; }
.book-card-tag {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 8px;
    font-weight: 600;
}
.tag-upcoming { background: var(--success-bg); color: var(--success); }
.tag-done { background: #f0f0f0; color: #999; }
.book-card-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.4;
}
.book-card-hl {
    font-size: 12.5px;
    color: var(--text-light);
    line-height: 1.65;
    word-break: break-word;
}

.rank-empty { text-align: center; padding: 44px 20px; color: var(--text-light); }
.rank-empty img { width: 92px; opacity: 0.85; margin-bottom: 12px; }
.rank-empty p { font-size: 14px; line-height: 1.7; }

/* 报名成功弹窗里的取消链接区 */
.cancel-link-section {
    border-top: 1px solid var(--border-light);
    padding-top: 14px;
    margin-top: 4px;
}
.cancel-link-box {
    display: flex;
    gap: 8px;
    align-items: stretch;
    margin: 8px 0 6px;
}
.cancel-link-box input {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text);
    background: var(--bg);
    font-family: monospace;
}
.cancel-link-box .btn { padding: 8px 14px; font-size: 12px; white-space: nowrap; }
.cancel-link-note {
    font-size: 12px;
    color: var(--danger);
    line-height: 1.6;
    background: var(--danger-bg);
    border: 1px dashed var(--danger);
    border-radius: 6px;
    padding: 8px 10px;
}
