/* 戒烟打卡页面样式 - 基于主题布局 */

.quit-smoking-page .quit-smoking-container {
    margin: 2rem auto;
    max-width: 100%;
    width: 100%;
}

.quit-smoking-page .stats-section,
.quit-smoking-page .admin-section,
.quit-smoking-page .settings-section,
.quit-smoking-page .records-section {
    margin-bottom: 3rem;
    width: 100%;
}

.quit-smoking-page .stats-section h2,
.quit-smoking-page .admin-section h2,
.quit-smoking-page .settings-section h2,
.quit-smoking-page .records-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    border-bottom: 2px solid currentColor;
    border-bottom-color: rgba(0, 0, 0, 0.1);
    padding-bottom: 0.75rem;
}

/* 统计卡片网格布局 */
.quit-smoking-page .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 0 auto 2rem;
    width: 100%;
}

.quit-smoking-page .stat-card {
    padding: 1.5rem;
    border: 1px solid currentColor;
    border-color: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
    background: rgba(0, 0, 0, 0.02);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.quit-smoking-page .stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.quit-smoking-page .stat-label {
    font-size: 0.9rem;
    opacity: 0.7;
    font-weight: 500;
}

/* 统计信息 */
.quit-smoking-page .stats-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    border: 1px solid currentColor;
    border-color: rgba(0, 0, 0, 0.1);
    width: 100%;
}

.quit-smoking-page .info-item {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.quit-smoking-page .info-label {
    font-weight: 600;
    opacity: 0.8;
}

.quit-smoking-page .info-value {
    opacity: 0.9;
}

.quit-smoking-page .stats-table,
.quit-smoking-page .status-table,
.quit-smoking-page .records-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem auto 0;
}

.quit-smoking-page .stats-table th,
.quit-smoking-page .stats-table td,
.quit-smoking-page .status-table th,
.quit-smoking-page .status-table td,
.quit-smoking-page .records-table th,
.quit-smoking-page .records-table td {
    padding: 1rem;
    border: 1px solid currentColor;
    border-color: rgba(0, 0, 0, 0.1);
    text-align: left;
}

.quit-smoking-page .stats-table th,
.quit-smoking-page .status-table th,
.quit-smoking-page .records-table th {
    background: rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

.quit-smoking-page .status-table th {
    width: 30%;
}

.quit-smoking-page .admin-section {
    background: rgba(255, 249, 196, 0.2);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.quit-smoking-page .checked-status {
    padding: 1.5rem;
}

.quit-smoking-page .checked-title {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.quit-smoking-page .checkin-form,
.quit-smoking-page .settings-form {
    max-width: 600px;
    margin: 0 auto;
}

.quit-smoking-page .form-group {
    margin-bottom: 1rem;
}

.quit-smoking-page .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.quit-smoking-page .form-group input,
.quit-smoking-page .form-group select,
.quit-smoking-page .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid currentColor;
    border-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: transparent;
}

.quit-smoking-page .form-group input:focus,
.quit-smoking-page .form-group select:focus,
.quit-smoking-page .form-group textarea:focus {
    border-color: currentColor;
    outline: none;
    opacity: 0.8;
}

.quit-smoking-page .submit-btn {
    padding: 0.8rem 2rem;
    background: currentColor;
    color: var(--light, #ffffff);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: opacity 0.3s;
}

.quit-smoking-page .submit-btn:hover {
    opacity: 0.8;
}

.quit-smoking-page .checked-status {
    background: rgba(240, 249, 255, 0.2);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.quit-smoking-page .records-wrapper {
    overflow-x: auto;
    width: 100%;
}

.quit-smoking-page .records-table thead th {
    background: rgba(74, 144, 226, 0.2);
}

/* 重置区域 */
.quit-smoking-page .reset-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 0, 0, 0.05);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 8px;
}

.quit-smoking-page .reset-section h3 {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    color: rgba(255, 0, 0, 0.8);
}

.quit-smoking-page .reset-warning {
    margin-bottom: 1rem;
    color: rgba(255, 0, 0, 0.7);
    font-size: 0.9rem;
}

.quit-smoking-page .reset-form {
    margin-top: 1rem;
}

.quit-smoking-page .reset-btn {
    padding: 0.8rem 2rem;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.quit-smoking-page .reset-btn:hover {
    background: rgba(255, 0, 0, 1);
}

/* 删除按钮 */
.quit-smoking-page .delete-record-form {
    margin: 0;
}

.quit-smoking-page .delete-btn {
    padding: 0.4rem 0.8rem;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.3s;
}

.quit-smoking-page .delete-btn:hover {
    background: rgba(255, 0, 0, 1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .quit-smoking-page .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .quit-smoking-page .stat-value {
        font-size: 1.5rem;
    }

    .quit-smoking-page .stats-info {
        padding: 1rem;
    }

    .quit-smoking-page .admin-section {
        padding: 1.5rem;
    }

    .quit-smoking-page .stats-table th,
    .quit-smoking-page .stats-table td,
    .quit-smoking-page .status-table th,
    .quit-smoking-page .status-table td,
    .quit-smoking-page .records-table th,
    .quit-smoking-page .records-table td {
        padding: 0.75rem;
    }

    .quit-smoking-page .records-table {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .quit-smoking-page .stats-grid {
        grid-template-columns: 1fr;
    }
}

