* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f7fa; color: #333; padding-bottom: 80px; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.header { background: transparent; color: #667eea; padding: 20px; border-radius: 10px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.header h1 { font-size: 24px; color: #667eea; }
.header .header-right { display: flex; align-items: center; gap: 15px; }
.header .points { background: rgba(102, 126, 234, 0.1); color: #667eea; padding: 8px 16px; border-radius: 20px; font-weight: bold; }
.btn { padding: 8px 16px; border: none; border-radius: 5px; cursor: pointer; transition: all 0.3s; }
.btn-primary { background: #667eea; color: white; }
.btn-success { background: #10b981; color: white; }
.btn-danger { background: #ef4444; color: white; }
.btn:hover { opacity: 0.8; }

/* 积分记录搜索框样式 */
.points-search-input {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    width: 160px;
    transition: all 0.2s ease;
}

.points-search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.points-search-input::placeholder {
    color: #9ca3af;
}

.card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.card-title-row h2 {
    margin: 0;
}

/* 移动端搜索框适配 */
@media (max-width: 768px) {
    .points-search-input {
        width: 100%;
    }

    .card-title-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .card-title-row .btn-add {
        flex-shrink: 0;
        padding: 6px 12px;
        font-size: 12px;
    }

    .card-title-row .btn-add svg {
        width: 12px;
        height: 12px;
    }
}

/* 按钮图标样式 */
.btn-icon-only {
    padding: 3px 6px;
    font-size: 12px;
    background: white;
    border: 1px solid #667eea;
    color: #667eea;
}

.btn-icon-only:hover {
    background: #f0f0f0;
    border-color: #5568d3;
    color: #5568d3;
}

.btn-danger.btn-icon-only {
    border-color: #ef4444;
    color: #ef4444;
}

.btn-danger.btn-icon-only:hover {
    background: #fee2e2;
    border-color: #dc2626;
    color: #dc2626;
}

/* 添加按钮样式 */
.btn-add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add:hover {
    background: #5568d3;
    transform: translateY(-1px);
}

.btn-add:active {
    transform: translateY(0);
}

.btn-add svg {
    width: 16px;
    height: 16px;
}

/* 卡片标题行样式 */
.card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-top: 5px;
}

.card-title-row h2 {
    margin: 0;
    margin-top: 3px;
}

/* 移动端隐藏/显示控制 */
.desktop-only {
    display: inline-block;
}

.mobile-only {
    display: none;
}
.nav { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.nav-item { padding: 10px 20px; background: white; border-radius: 5px; cursor: pointer; transition: all 0.3s; border: 2px solid transparent; }
.nav-item.active { border-color: #667eea; background: #f0e6ff; }
.nav-item:hover { background: #f0f0f0; }
.card { background: white; border-radius: 10px; padding: 20px; margin-bottom: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.card h2 { margin-bottom: 15px; color: #667eea; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; color: #333; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fafafa;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: flex; gap: 15px; }
.form-row .form-group { flex: 1; }
.table { width: 100%; border-collapse: collapse; margin-top: 15px; }
.table th, .table td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; }
.table th { background: #f8f9fa; font-weight: 600; }
.table tr:hover { background: #f8f9fa; }
.actions { display: flex; gap: 5px; }
.actions button { padding: 5px 10px; font-size: 12px; }
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); z-index: 1000; justify-content: center; align-items: center; }
.modal.active { display: flex; }
.modal-content { background: white; padding: 20px; border-radius: 12px; width: 85%; max-width: 450px; max-height: 70vh; overflow-y: auto; transform: scale(0.9); animation: modalIn 0.2s ease forwards; }
@keyframes modalIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-close { font-size: 24px; cursor: pointer; background: none; border: none; }
.loading { text-align: center; padding: 40px; color: #999; }
.empty-state { text-align: center; padding: 40px; color: #999; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 10px; font-size: 12px; font-weight: 500; }
.badge-reading { background: #dbeafe; color: #1e40af; }
.badge-completed { background: #dcfce7; color: #166534; }
.badge-paused { background: #fef3c7; color: #92400e; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-completed-status { background: #dcfce7; color: #166534; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }
.login-container { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.login-box { background: white; padding: 40px; border-radius: 10px; width: 90%; max-width: 400px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.login-box h2 { text-align: center; margin-bottom: 30px; color: #667eea; }
.hidden { display: none; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 20px; }
.stat-card { background: white; padding: 20px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.stat-card h3 { font-size: 14px; color: #666; margin-bottom: 5px; }
.stat-card .value { font-size: 28px; font-weight: bold; color: #667eea; }

/* 日历视图样式 */
.calendar-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.date-detail {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #667eea;
}

.date-detail-title {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 10px;
    font-size: 16px;
}

.date-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.date-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.2s;
}

.date-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.date-item.positive {
    border-left: 3px solid #10b981;
}

.date-item.negative {
    border-left: 3px solid #ef4444;
}

.item-icon {
    font-size: 20px;
    margin-right: 10px;
}

.date-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.item-content {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.item-points {
    font-weight: 600;
    font-size: 11px;
    color: #10b981;
}

.date-item.negative .item-points {
    color: #ef4444;
}

.detail-item-points {
    font-weight: 600;
    font-size: 14px;
}

.detail-item-points.positive {
    color: #10b981;
}

.detail-item-points.negative {
    color: #ef4444;
}

/* 月历视图样式 */
.calendar-month {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.calendar-header h3 {
    color: #667eea;
    font-size: 20px;
    margin: 0;
    flex: 1;
    text-align: center;
}

.calendar-nav-btn {
    background: #f0f0f0;
    color: #667eea;
    border: none;
    border-radius: 50%;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav-btn:hover {
    background: #667eea;
    color: white;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-weekday {
    text-align: center;
    padding: 10px;
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.calendar-day {
    background: #fafafa;
    border-radius: 8px;
    padding: 10px;
    min-height: 70px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    border: 1px solid #e0e0e0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.calendar-day:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

.calendar-day.disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: default;
}

.calendar-day.disabled:hover {
    transform: none;
}

.calendar-day.today {
    background: #e6e6ff;
    border-color: #667eea;
    font-weight: 600;
}

.calendar-day.has-data {
    background: #f0f9ff;
    border-color: #bae6fd;
    cursor: pointer;
}

.day-number {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: block;
    width: 100%;
    white-space: nowrap;
}

.calendar-day.disabled .day-number {
    color: #ccc;
}

.day-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5px;
    position: relative;
    width: 100%;
    min-height: 20px;
}

.indicator-dot {
    border-radius: 50%;
    position: relative;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    width: 6px;
    height: 6px;
    margin: 0 1px;
}

/* 基础样式 - 实心圆点 */
.indicator-dot.reading {
    background: #667eea;
}

.indicator-dot.exercise {
    background: #10b981;
}

.indicator-dot.homework {
    background: #f59e0b;
}

.indicator-dot.points {
    background: #ef4444;
}

/* 调整 day-indicators 的布局 */
.day-indicators {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid;
}

.legend-dot.reading {
    background: #dbeafe;
    border-color: #667eea;
}

.legend-dot.exercise {
    background: #dcfce7;
    border-color: #10b981;
}

.legend-dot.homework {
    background: #fef3c7;
    border-color: #f59e0b;
}

.legend-dot.points {
    background: #fee2e2;
    border-color: #ef4444;
}

/* 日期详情页样式 */
.date-details h3 {
    color: #667eea;
    font-size: 16px;
    margin-bottom: 12px;
    text-align: center;
}

.details-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-item {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
    border-left: 3px solid #667eea;
}

.detail-item.reading {
    border-left-color: #667eea;
}

.detail-item.exercise {
    border-left-color: #10b981;
}

.detail-item.homework {
    border-left-color: #f59e0b;
}

.detail-item.positive {
    border-left-color: #10b981 !important;
}

.detail-item.negative {
    border-left-color: #ef4444 !important;
}

.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.detail-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-icon {
    font-size: 16px;
    margin-right: 8px;
}

.detail-type {
    font-weight: 600;
    font-size: 14px;
}

.detail-points {
    font-weight: bold;
    font-size: 11px;
}

.detail-points.positive {
    color: #10b981;
}

.detail-points.negative {
    color: #ef4444;
}

/* 弹窗详情项边框颜色 */
.date-item.reading {
    border-left: 3px solid #667eea !important;
}

.date-item.exercise {
    border-left: 3px solid #10b981 !important;
}

.date-item.homework {
    border-left: 3px solid #f59e0b !important;
}

.date-item.positive {
    border-left: 3px solid #10b981 !important;
}

.date-item.negative {
    border-left: 3px solid #ef4444 !important;
}

/* 积分管理模块化样式 */
.points-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.points-action-card {
    background: white;
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.points-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.points-action-card.reward {
    border-color: #10b981;
}

.points-action-card.penalty {
    border-color: #ef4444;
}

.points-action-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.points-action-icon {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.points-action-card h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.points-action-card.reward .points-action-header {
    border-bottom-color: #10b981;
}

.points-action-card.penalty .points-action-header {
    border-bottom-color: #ef4444;
}

.points-action-card .btn {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    margin-top: 8px;
}

/* 礼品网格样式 */
.gifts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.gift-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    background: white;
    transition: all 0.3s;
}

.gift-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* 积分兑换页面头部 */
.redemption-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.redemption-header h2 {
    color: #667eea;
    margin: 0;
}

.gift-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.gift-no-image {
    width: 100%;
    height: 150px;
    background: #f0f0f0;
    border-radius: 5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.gift-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.gift-description {
    color: #666;
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.5;
}

.gift-points {
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
    font-size: 14px;
}

.gift-stock {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.gift-card .btn {
    width: 100%;
}

/* 底部固定导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 1000;
    border-top: 1px solid #e0e0e0;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px 15px;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
    text-decoration: none;
    min-width: 60px;
}

.bottom-nav-item:hover {
    color: #667eea;
    background: #f0f0f0;
}

.bottom-nav-item.active {
    color: #667eea;
    background: #f0e6ff;
    border-radius: 8px;
}

.bottom-nav-icon {
    margin-bottom: 4px;
}

.bottom-nav-icon svg {
    width: 16px !important;
    height: 16px !important;
    display: block;
}

/* SVG 图标通用样式 */
svg.icon {
    display: inline-block;
    vertical-align: middle;
    width: 24px;
    height: 24px;
}

svg.icon-sm {
    width: 16px;
    height: 16px;
}

svg.icon-lg {
    width: 32px;
    height: 32px;
}

.bottom-nav-text {
    font-size: 12px;
    font-weight: 500;
}

/* 顶部快捷功能模块 */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.quick-action-item {
    background: white;
    color: #333;
    padding: 35px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    border: 5px solid transparent;
}

/* 四个模块使用不同的边框颜色 */
.quick-action-item[data-tab="reading"] {
    border-color: #667eea;
}

.quick-action-item[data-tab="exercise"] {
    border-color: #10b981;
}

.quick-action-item[data-tab="homework"] {
    border-color: #f59e0b;
}

.quick-action-item[data-tab="points"] {
    border-color: #ef4444;
}

.quick-action-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.quick-action-item.active {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    font-weight: 600;
}

/* 激活状态使用对应的背景色 */
.quick-action-item[data-tab="reading"].active {
    background: #f0e6ff;
    border-color: #667eea;
}

.quick-action-item[data-tab="exercise"].active {
    background: #dcfce7;
    border-color: #10b981;
}

.quick-action-item[data-tab="homework"].active {
    background: #fef3c7;
    border-color: #f59e0b;
}

.quick-action-item[data-tab="points"].active {
    background: #fee2e2;
    border-color: #ef4444;
}

.quick-action-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.quick-action-title {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.quick-action-count {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 5px;
    display: block;
    color: #666;
}

/* 隐藏顶部导航 */
.nav {
    display: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card {
        padding: 15px;
    }

    .stat-card h3 {
        font-size: 12px;
    }

    .stat-card .value {
        font-size: 20px;
    }

    .form-row {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .form-row .form-group {
        flex: 1;
        min-width: 120px;
    }

    /* 移动端输入框紧凑样式 */
    .form-group {
        margin-bottom: 8px;
    }

    .form-group label {
        font-size: 13px;
        margin-bottom: 4px;
        color: #555;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px 10px;
        font-size: 14px;
        border-radius: 6px;
        background: #f9f9f9;
    }

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        background: #fff;
        box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.15);
    }

    .form-group textarea {
        min-height: 50px;
        resize: vertical;
    }

    .card {
        padding: 12px;
        margin-bottom: 12px;
    }

    .card h2 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .form-row {
        gap: 8px;
    }

    .table {
        font-size: 12px;
    }

    .table th, .table td {
        padding: 8px 4px;
    }
    
    .bottom-nav-item {
        padding: 5px 10px;
        min-width: 50px;
    }
    
    .bottom-nav-text {
        font-size: 11px;
    }
    
    /* 快捷操作移动端适配 - 保持一行4个 */
    .quick-actions {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .quick-action-item {
        padding: 20px 8px;
        min-height: 150px;
        border-width: 4px;
        border-radius: 15px;
    }
    
    .quick-action-icon {
        font-size: 24px;
        margin-bottom: 5px;
    }
    
    .quick-action-title {
        font-size: 12px;
        line-height: 1.2;
    }
    
    .quick-action-count {
        font-size: 10px;
        margin-top: 3px;
    }

    /* 日历移动端适配 */
    .calendar-month {
        padding: 10px;
        overflow: hidden;
    }

    .calendar-header h3 {
        font-size: 16px;
    }

    .calendar-nav-btn {
        padding: 5px 10px;
        font-size: 14px;
    }

    .calendar-grid {
        gap: 2px;
    }

    .calendar-weekday {
        padding: 5px 2px;
        font-size: 12px;
    }

    .calendar-day {
        padding: 5px 2px;
        min-height: 50px;
    }

    .day-number {
        font-size: 14px;
    }

    .day-indicators {
        min-height: 16px;
    }

    /* 移动端圆点大小统一 */
    .indicator-dot {
        width: 6px;
        height: 6px;
    }

    .calendar-legend {
        gap: 10px;
        margin-top: 10px;
        padding-top: 10px;
    }

    .legend-item {
        font-size: 12px;
    }

    .legend-dot {
        width: 12px;
        height: 12px;
    }

    /* 积分管理移动端适配 */
    .points-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .points-action-card {
        padding: 12px;
        border-width: 2px;
    }

    .points-action-icon {
        font-size: 20px;
    }

    .points-action-card h3 {
        font-size: 14px;
    }

    .points-action-header {
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .points-action-card .form-group {
        margin-bottom: 8px;
    }

    .points-action-card .form-group label {
        font-size: 12px;
        margin-bottom: 3px;
    }

    .points-action-card .form-group input,
    .points-action-card .form-group select,
    .points-action-card .form-group textarea {
        padding: 8px 10px;
        font-size: 13px;
    }

    .points-action-card .form-group textarea {
        min-height: 50px;
    }

    .points-action-card .btn {
        padding: 8px 12px;
        font-size: 13px;
        margin-top: 8px;
    }
    
    /* 移动端图标按钮显示 */
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: inline-block;
    }
    
    .btn-icon-only {
        padding: 6px 10px;
        font-size: 18px;
    }
    
    .btn-icon-only {
        background: white !important;
    }
    
    /* 移动端礼品网格 */
    .gifts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .gift-card {
        padding: 10px;
    }
    
    .gift-image,
    .gift-no-image {
        height: 120px;
    }
    
    .gift-name {
        font-size: 14px;
    }
    
    .gift-description {
        font-size: 12px;
        margin: 8px 0;
    }
    
    .gift-points,
    .gift-stock {
        font-size: 12px;
    }
    
    .gift-card .btn {
        padding: 8px;
        font-size: 14px;
    }
}

/* 统计页面样式 */
.statistics-page {
    padding: 10px;
}

.statistics-page h2 {
    color: #667eea;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.stats-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stats-section h3 {
    color: #667eea;
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-card {
    background: transparent;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stat-card.highlight {
    background: #667eea;
    color: white;
}

.stat-card.highlight h4 {
    color: white;
}

.stat-card h4 {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-card.highlight .stat-value {
    color: white;
}

.stat-points {
    font-size: 12px;
    color: #888;
}

.stat-card.highlight .stat-points {
    color: rgba(255, 255, 255, 0.9);
}

.loading {
    text-align: center;
    color: #666;
    padding: 50px 20px;
}

.error {
    text-align: center;
    color: #ef4444;
    padding: 50px 20px;
}

/* 统计页面移动端适配 */
@media (max-width: 768px) {
    .statistics-page {
        padding: 5px;
    }

    .statistics-page h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .stats-section {
        padding: 15px;
        margin-bottom: 15px;
    }

    .stats-section h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 10px;
    }

    .stat-card h4 {
        font-size: 12px;
    }

    .stat-value {
        font-size: 20px;
    }

    .stat-points {
        font-size: 10px;
    }
}


/* 今日打卡模块样式 */
.today-checkins {
    margin-top: 20px;
}

.today-checkins h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: #667eea;
}

.today-summary {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #667eea;
    border-radius: 10px;
}

.summary-item {
    flex: 1;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.summary-item.highlight {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 8px;
}

.summary-count {
    display: block;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.summary-label {
    font-size: 14px;
    opacity: 0.9;
}

.today-checkin-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.today-checkin-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s;
}

.today-checkin-item:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

.checkin-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

.today-checkin-item.reading .checkin-icon {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.today-checkin-item.exercise .checkin-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.today-checkin-item.homework .checkin-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.checkin-info {
    flex: 1;
    min-width: 0;
}

.checkin-type {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: #333;
}

.checkin-details {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkin-points {
    font-weight: bold;
    font-size: 14px;
    color: #10b981;
    flex-shrink: 0;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .today-summary {
        padding: 12px;
    }
    
    .summary-count {
        font-size: 24px;
    }
    
    .summary-label {
        font-size: 12px;
    }
    
    .checkin-icon {
        width: 36px;
        height: 36px;
    }
    
    .checkin-type {
        font-size: 13px;
    }
    
    .checkin-details {
        font-size: 12px;
        max-width: 120px;
    }
    
    .checkin-points {
        font-size: 12px;
    }
}


/* 书架网格样式 */
.bookshelf-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.book-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.book-image {
    width: 100%;
    height: 160px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-no-image {
    color: #999;
    font-size: 14px;
}

.book-status-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
    line-height: 1.5;
    height: 22px;
    display: flex;
    align-items: center;
}

.book-status-badge .badge-reading {
    background: rgba(102, 126, 234, 0.9);
    color: white;
}

.book-status-badge .badge-completed {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.book-status-badge .badge-paused {
    background: rgba(245, 158, 11, 0.9);
    color: white;
}

.book-progress-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
    line-height: 1.5;
    height: 22px;
    display: flex;
    align-items: center;
}

.book-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.book-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.book-actions .btn {
    flex: 1;
    padding: 6px;
    font-size: 12px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .bookshelf-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .book-image {
        aspect-ratio: 1 / 1.414;
    }

    .book-info {
        padding: 10px;
    }

    .book-title {
        font-size: 13px;
    }

    .book-progress {
        font-size: 11px;
    }
}


/* 分页样式 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-pagination {
    padding: 6px 12px;
    font-size: 13px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-pagination:hover:not(:disabled) {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.btn-pagination:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* 移动端分页适配 */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        gap: 8px;
    }

    .btn-pagination {
        padding: 5px 10px;
        font-size: 12px;
    }

    .pagination-info {
        font-size: 12px;
        width: 100%;
        text-align: center;
        order: -1;
        margin-bottom: 5px;
    }
}

/* 统计页面横向布局样式 */
.detail-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-group {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 4px;
    border-left: 3px solid #667eea;
    transition: all 0.2s ease;
}

.detail-group:hover {
    background: #f0f4ff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.detail-group.reading {
    border-left-color: #667eea;
}

.detail-group.exercise {
    border-left-color: #10b981;
}

.detail-group.homework {
    border-left-color: #f59e0b;
}

.detail-group.points.positive {
    border-left-color: #10b981;
}

.detail-group.points.negative {
    border-left-color: #ef4444;
}

.detail-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.date-text {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
}

.detail-group.points.positive .date-text {
    color: #10b981;
}

.detail-group.points.negative .date-text {
    color: #ef4444;
}

.total-count {
    font-size: 12px;
    color: #888;
    background: #e0e0e0;
    padding: 3px 8px;
    border-radius: 10px;
}

.detail-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-item {
    background: white;
    border-radius: 6px;
    padding: 1px 3px;
    border: 1px solid #e8e8e8;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 3px;
}

.detail-item .detail-icon {
    align-self: center;
}

.detail-item:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    border-color: #667eea;
}

.detail-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 4px;
    flex-shrink: 0;
}

.detail-icon svg {
    width: 14px;
    height: 14px;
}

.detail-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
}

.detail-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.detail-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    display: block;
    white-space: normal;
    word-break: break-word;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.detail-title .title-text,
.detail-title .detail-points-inline {
    display: inline;
}

.detail-points {
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.detail-points.positive {
    color: #10b981;
}

.detail-points.negative {
    color: #ef4444;
}

.detail-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    font-size: 11px;
    color: #666;
    align-items: center;
    margin-top: -8px;
    line-height: 1;
    padding: 0;
}

.detail-info-tag {
    display: flex;
    align-items: center;
    gap: 2px;
    background: #f9fafb;
    padding: 0 4px;
    border-radius: 3px;
    font-size: 10px;
    line-height: 1.3;
}

.detail-info-tag svg {
    width: 14px;
    height: 14px;
}

.detail-info-tag.pages {
    color: #667eea;
    background: #eef2ff;
}

.detail-info-tag.time {
    color: #f59e0b;
    background: #fff7ed;
}

.detail-info-tag.distance {
    color: #10b981;
    background: #ecfdf5;
}

.detail-info-tag.calories {
    color: #ef4444;
    background: #fef2f2;
}

.detail-info-tag.status {
    color: #888;
    background: #f3f4f6;
}

.detail-info-tag.status.completed {
    color: #10b981;
    background: #ecfdf5;
}

.detail-info-tag.status.partial {
    color: #f59e0b;
    background: #fffbeb;
}

.detail-info-tag.status.not-completed {
    color: #ef4444;
    background: #fef2f2;
}

.detail-notes {
    margin-top: 6px;
    padding: 6px 10px;
    background: #fff9e6;
    border-radius: 4px;
    font-size: 11px;
    color: #666;
    line-height: 1.5;
    border-left: 2px solid #f59e0b;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.no-data svg {
    width: 40px;
    height: 40px;
    color: #ccc;
}

/* 摘要徽章样式 */
.summary-badge {
    display: flex;
    gap: 6px;
    align-items: center;
}

.badge-summary,
.badge-points {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
}

.badge-summary {
    background: #667eea;
    color: white;
}

.badge-points {
    background: #10b981;
    color: white;
}

/* 移动端适配 - 保持横向布局但调整间距 */
@media (max-width: 768px) {
    .detail-group {
        padding: 10px 12px;
        margin-bottom: 6px;
    }

    .detail-date {
        margin-bottom: 8px;
        padding-bottom: 6px;
    }

    .date-text {
        font-size: 13px;
    }

    .total-count {
        font-size: 11px;
        padding: 2px 6px;
    }

    .detail-item {
        padding: 8px 10px;
        gap: 8px;
    }

    .detail-icon {
        width: 28px;
        height: 28px;
    }

    .detail-icon svg {
        width: 16px;
        height: 16px;
    }

    .detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .detail-title {
        font-size: 13px;
        width: 100%;
    }

    .detail-points {
        font-size: 12px;
    }

    .detail-info {
        gap: 6px;
    }

    .detail-info-tag {
        font-size: 10px;
        padding: 2px 6px;
    }

    .detail-info-tag svg {
        width: 12px;
        height: 12px;
    }

    .detail-notes {
        font-size: 10px;
        padding: 5px 8px;
        margin-top: 4px;
    }

    .no-data {
        padding: 30px 15px;
        font-size: 13px;
    }

    .no-data svg {
        width: 32px;
        height: 32px;
    }

    .summary-badge {
        gap: 4px;
    }

    .badge-summary,
    .badge-points {
        font-size: 11px;
        padding: 4px 8px;
    }
}
/* 周选择器容器 */
.week-selector-container {
    width: 100%;
    margin-bottom: 16px;
    position: relative;
}

.week-selector-wrapper {
    position: relative;
    width: 100%;
}

.week-selector-input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.week-selector-input:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.week-selector-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.week-selector-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #667eea;
    transition: transform 0.3s ease;
    width: 16px;
    height: 16px;
}

.week-selector-wrapper.open .week-selector-icon {
    transform: translateY(-50%) rotate(180deg);
}

.week-selector-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.week-selector-wrapper.open .week-selector-dropdown {
    display: block;
}

.week-selector-option {
    padding: 10px 16px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.week-selector-option:last-child {
    border-bottom: none;
}

.week-selector-option:hover {
    background: #f0f4ff;
    color: #667eea;
}

.week-selector-option.selected {
    background: #667eea;
    color: white;
    font-weight: 600;
}

.week-selector-option.selected:hover {
    background: #5568d3;
}

.week-option-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.week-option-badge {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.week-selector-dropdown::-webkit-scrollbar {
    width: 6px;
}

.week-selector-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.week-selector-dropdown::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.week-selector-dropdown::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 统计概览样式 */
.statistics-overview {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.statistics-overview .week-selector-container {
    margin-bottom: 16px;
}

.statistics-overview .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.statistics-overview .stat-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    border: 1px solid #e8ecff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.statistics-overview .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.statistics-overview .stat-icon {
    width: 40px;
    height: 40px;
    color: #667eea;
}

.statistics-overview .stat-icon path,
.statistics-overview .stat-icon circle,
.statistics-overview .stat-icon polyline,
.statistics-overview .stat-icon line {
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.statistics-overview .stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.statistics-overview .stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
}

.statistics-overview .stat-label {
    font-size: 12px;
    color: #888;
}

/* 时长统计样式 */
.time-summary {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.time-summary-title {
    font-size: 16px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.time-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.time-summary-card {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ffe8e8;
    transition: all 0.3s ease;
}

.time-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.time-summary-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.time-summary-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.time-summary-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.time-summary-card:first-child {
    background: linear-gradient(135deg, #f0f4ff 0%, #fff 100%);
    border-color: #e8ecff;
}

.time-summary-card:first-child .time-summary-value {
    color: #667eea;
}

.time-summary-card:nth-child(2) {
    background: linear-gradient(135deg, #f0fff4 0%, #fff 100%);
    border-color: #e8ffe8;
}

.time-summary-card:nth-child(2) .time-summary-value {
    color: #10b981;
}

.time-summary-card:nth-child(3) {
    background: linear-gradient(135deg, #fff9f0 0%, #fff 100%);
    border-color: #ffe8e0;
}

.time-summary-card:nth-child(3) .time-summary-value {
    color: #f59e0b;
}

/* 详细列表样式 */
.detail-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.detail-title {
    font-size: 18px;
    color: #667eea;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.detail-title .title-text {
    flex: 1;
}

.detail-title .detail-points-inline {
    flex-shrink: 0;
}

.detail-title svg {
    width: 24px;
    height: 24px;
    color: #667eea;
}

.detail-title svg path,
.detail-title svg circle,
.detail-title svg polyline,
.detail-title svg line {
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .statistics-overview {
        position: relative;
        padding-bottom: 30px;
    }

    .statistics-overview .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        position: relative;
        gap: 10px;
    }

    /* 总积分圆形浮层 */
    .statistics-overview .stat-card:first-child {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 10;
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
        width: 120px;
        height: 120px;
        padding: 0;
        border-radius: 50%;
        background: #fff;
        border: 2px solid #667eea;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .statistics-overview .stat-card:first-child .stat-icon {
        display: none;
    }

    .statistics-overview .stat-card:first-child .stat-info {
        color: #667eea;
    }

    .statistics-overview .stat-value {
        font-size: 20px;
    }

    .statistics-overview .stat-card:first-child .stat-value {
        font-size: 24px;
        color: #667eea;
        line-height: 1.2;
    }

    .statistics-overview .stat-card:first-child .stat-label {
        font-size: 14px;
        color: #667eea;
    }

    .time-summary {
        padding: 15px;
        margin-top: 15px;
    }

    .time-summary-title {
        font-size: 14px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .time-summary-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .time-summary-card {
        padding: 12px;
        gap: 8px;
    }

    .time-summary-label {
        font-size: 12px;
    }

    .time-summary-value {
        font-size: 16px;
    }
}
/* 内联积分样式 */
.detail-points-inline {
    font-size: 13px;
    font-weight: 600;
    color: #10b981;
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
}

.detail-points-inline.positive {
    color: #10b981;
}

.detail-points-inline.negative {
    color: #ef4444;
}
/* 卡片标题支持SVG图标 */
.card-title-row h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
}

.card-title-row h2 svg {
    flex-shrink: 0;
}

.card-title-row h2 .use {
    width: 24px;
    height: 24px;
}

/* 年份分组样式 */
.year-group {
    border-bottom: 1px solid #f3f4f6;
}

.year-group:last-child {
    border-bottom: none;
}

.year-header {
    padding: 12px 16px;
    background: #f8f9ff;
    font-weight: 600;
    color: #667eea;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.year-header:hover {
    background: #f0f4ff;
}

.year-header::after {
    content: '▼';
    font-size: 10px;
    transition: transform 0.3s ease;
    margin-left: 8px;
}

.year-group.collapsed .year-header::after {
    transform: rotate(-90deg);
}

.year-weeks {
    transition: all 0.3s ease;
}

.week-item {
    padding: 10px 16px;
    padding-left: 32px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.week-item:last-child {
    border-bottom: none;
}

.week-item:hover {
    background: #f0f4ff;
    color: #667eea;
}

.week-item.selected {
    background: #667eea;
    color: white;
    font-weight: 600;
}

.week-item.selected:hover {
    background: #5568d3;
}

.week-item-badge {
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
    padding: 2px 8px;
    border-radius: 12px;
    background: #e8ecff;
    color: #667eea;
}

.week-item.selected .week-item-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* 作业记录样式 */
.table td .homework-info-wrapper {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.homework-assignment {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
    line-height: 1.4;
}

.homework-subject {
    font-size: 12px;
    color: #666;
    font-weight: normal;
    line-height: 1.2;
}

/* 打印按钮样式 */
.print-actions {
    text-align: right;
    margin: 20px 0;
}

.print-btn {
    background: #667eea;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.print-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.print-btn:active {
    transform: translateY(0);
}

/* 标题行样式 - 用于显示标题和打印按钮 */
.detail-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.detail-header-row h2 {
    flex: 1;
    margin: 0;
}

/* 小打印按钮样式 */
.print-small-btn {
    background: #667eea;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.print-small-btn:hover {
    transform: translateY(-1px);
}

/* 运动记录打印按钮 - 绿色 */
.print-section-exercise .print-small-btn {
    background: #10b981;
}
.print-section-exercise .print-small-btn:hover {
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* 阅读记录打印按钮 - 紫色 */
.print-section-reading .print-small-btn {
    background: #667eea;
}
.print-section-reading .print-small-btn:hover {
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 作业记录打印按钮 - 橙色 */
.print-section-homework .print-small-btn {
    background: #f97316;
}
.print-section-homework .print-small-btn:hover {
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

/* 奖惩记录打印按钮 - 绿色 */
.print-section-points .print-small-btn {
    background: #10b981;
}
.print-section-points .print-small-btn:hover {
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* 运动记录样式 - 绿色 */
.exercise-item .detail-icon svg {
    color: #10b981;
}

.exercise-item .title-text {
    color: #10b981 !important;
    font-size: 12px;
}

.exercise-points {
    color: #10b981 !important;
}

.exercise-item:hover {
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.05);
}

/* 运动记录日期颜色 */
.print-section-exercise .detail-item .detail-info {
    color: #10b981 !important;
}

/* 运动记录分组日期颜色 */
.print-section-exercise .detail-date .date-text {
    color: #10b981 !important;
}

.print-section-exercise .detail-date .total-count {
    color: #10b981 !important;
}

/* 运动记录分组边框 */
.print-section-exercise .detail-group {
    border-left-color: #10b981;
}

/* 运动记录打印背景色 */
.print-section-exercise .detail-group {
    background: rgba(16, 185, 129, 0.1);
}

/* 阅读记录样式 - 紫色 */
.print-section-reading .detail-item .detail-icon svg {
    color: #667eea;
}

.print-section-reading .detail-item .title-text {
    color: #667eea !important;
    font-size: 12px !important;
}

.print-section-reading .detail-item .detail-points-inline {
    color: #667eea !important;
}

.print-section-reading .detail-item:hover {
    border-color: #667eea !important;
    background: rgba(102, 126, 234, 0.05);
}

/* 阅读记录日期颜色 */
.print-section-reading .detail-item .detail-info {
    color: #667eea !important;
}

/* 阅读记录分组日期颜色 */
.print-section-reading .detail-date .date-text {
    color: #667eea !important;
}

.print-section-reading .detail-date .total-count {
    color: #667eea !important;
}

/* 阅读记录分组边框 */
.print-section-reading .detail-group {
    border-left-color: #667eea;
}

/* 阅读记录打印背景色 */
.print-section-reading .detail-group {
    background: rgba(102, 126, 234, 0.1);
}

/* 作业记录样式 - 橙色 */
.homework-item .detail-icon svg {
    color: #f97316;
}

.homework-item .title-text {
    color: #f97316 !important;
    font-size: 12px;
}

.homework-points {
    color: #f97316 !important;
}

.homework-item:hover {
    border-color: #f97316 !important;
    background: rgba(249, 115, 22, 0.05);
}

/* 作业记录日期颜色 */
.print-section-homework .detail-item .detail-info {
    color: #f97316 !important;
}

/* 作业记录分组日期颜色 */
.print-section-homework .detail-date .date-text {
    color: #f97316 !important;
}

.print-section-homework .detail-date .total-count {
    color: #f97316 !important;
}

/* 作业记录分组边框 */
.print-section-homework .detail-group {
    border-left-color: #f97316;
}

/* 作业记录打印背景色 */
.print-section-homework .detail-group {
    background: rgba(249, 115, 22, 0.1);
}

/* 奖励记录样式 - 绿色 */
.print-section-points .points-item.positive .detail-icon svg {
    color: #10b981 !important;
}

.print-section-points .points-item.positive .title-text {
    color: #10b981 !important;
    font-size: 12px !important;
}

.print-section-points .points-item.positive .detail-points-inline.positive {
    color: #10b981 !important;
}

.print-section-points .points-item.positive:hover {
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.05);
}

/* 奖励记录日期颜色 */
.print-section-points .points-item.positive .detail-info {
    color: #10b981 !important;
}

/* 奖惩记录分组日期颜色 - 奖励绿色，惩罚红色 */
.print-section-points .detail-group.positive .date-text {
    color: #10b981 !important;
}

.print-section-points .detail-group.negative .date-text {
    color: #ef4444 !important;
}

.print-section-points .detail-group.positive .total-count {
    color: #10b981 !important;
}

.print-section-points .detail-group.negative .total-count {
    color: #ef4444 !important;
}

/* 奖惩记录分组边框 */
.print-section-points .detail-group.positive {
    border-left-color: #10b981;
}

.print-section-points .detail-group.negative {
    border-left-color: #ef4444;
}

/* 奖惩记录打印背景色 */
.print-section-points .detail-group.positive {
    background: rgba(16, 185, 129, 0.1);
}

.print-section-points .detail-group.negative {
    background: rgba(239, 68, 68, 0.1);
}

/* 惩罚记录样式 - 红色 */
.print-section-points .points-item.negative .detail-icon svg {
    color: #ef4444 !important;
}

.print-section-points .points-item.negative .title-text {
    color: #ef4444 !important;
    font-size: 12px !important;
}

.print-section-points .points-item.negative .detail-points-inline.negative {
    color: #ef4444 !important;
}

.print-section-points .points-item.negative:hover {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.05);
}

/* 惩罚记录日期颜色 */
.print-section-points .points-item.negative .detail-info {
    color: #ef4444 !important;
}

/* 记录标题颜色 */
.print-section-exercise .detail-header-row h2 {
    color: #10b981 !important;
}

.print-section-exercise .detail-header-row {
    border-bottom-color: #10b981 !important;
}

.print-section-homework .detail-header-row h2 {
    color: #f97316 !important;
}

.print-section-homework .detail-header-row {
    border-bottom-color: #f97316 !important;
}

/* 阅读记录打印样式 */
.print-section-reading .detail-header-row h2 {
    color: #667eea !important;
}

.print-section-reading .detail-header-row {
    border-bottom-color: #667eea !important;
}

/* 奖惩记录打印样式 */
.print-section-points .detail-header-row h2 {
    color: #10b981 !important;
}

.print-section-points .detail-header-row {
    border-bottom-color: #10b981 !important;
}




