.card {
    background: #f8fafc;
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.card-title {
    font-weight: 600;
    font-size: 18px;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.1s ease;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.card-title:hover {
    color: #667eea;
}

.collapse-icon {
    font-size: 12px;
    color: #94a3b8;
    transition: transform 0.2s ease, color 0.2s ease;
    margin-left: 12px;
}

.card-title:hover .collapse-icon {
    color: #667eea;
    transform: scale(1.1);
}

.time-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 16px;
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.time-input {
    flex: 1;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 16px;
    font-family: monospace;
    font-weight: 500;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

/* 分割线样式 */
.section-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 24px 0;
    width: 100%;
}

/* 子设置区域样式 */
.sub-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.sub-section:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.settings-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.settings-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f1f5f9;
    padding: 12px 16px;
    border-radius: 12px;
    min-width: 140px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.settings-item:hover {
    background: #e2e8f0;
}

.settings-item-full {
    flex: 100%;
}

.settings-icon {
    font-size: 16px;
    opacity: 0.7;
}

.settings-item span:not(.settings-icon) {
    font-size: 14px;
    color: #475569;
    white-space: nowrap;
}

.settings-input {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 15px;
    width: 80px;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.settings-input[type="number"] {
    -moz-appearance: textfield;
}

.settings-input[type="number"]::-webkit-inner-spin-button,
.settings-input[type="number"]::-webkit-outer-spin-button {
    opacity: 0.5;
}

.settings-item .toggle-switch {
    margin-left: auto;
}

.test-notify-btn {
    background: #e2e8f0;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    color: #475569;
    transition: all 0.2s;
}

.test-notify-btn:hover {
    background: #cbd5e1;
}

.test-notify-btn:active {
    background: #cbd5e1;
    transform: scale(0.95);
}

.input-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.error-hint {
    font-size: 12px;
    color: #ef4444;
    margin-top: 8px;
    margin-left: 12px;
}

.warning-note {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
    padding: 5px 12px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 8px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

input:checked+.slider {
    background-color: #667eea;
}

input:checked+.slider:before {
    transform: translateX(22px);
}

.btn {
    width: 100%;
    padding: 16px;
    margin-top: 16px;
    border: none;
    border-radius: 40px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: scale(0.97) translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-danger {
    background: #ef4444;
    color: white;
    margin-top: 16px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.btn-danger:active {
    transform: scale(0.97) translateY(0);
}

.status-badge {
    background: #e2e8f0;
    border-radius: 40px;
    padding: 10px 20px;
    text-align: center;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-inactive {
    background: #fee2e2;
    color: #991b1b;
}

.next-reminder {
    background: #ede9fe;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    font-size: 14px;
    color: #5b21b6;
    margin-top: 20px;
    border: 1px solid #ddd6fe;
}


/* 数据管理样式 */
.data-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.data-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    background: #f1f5f9;
    color: #1e293b;
    min-width: 120px;
}

.data-btn:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.data-btn:active {
    transform: scale(0.97) translateY(0);
}

.export-btn {
    background: #22c55e;
    color: white;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.export-btn:hover {
    background: #16a34a;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.import-btn {
    background: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.import-btn:hover {
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.auto-backup-btn {
    background: #8b5cf6;
    color: white;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.auto-backup-btn:hover {
    background: #7c3aed;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.auto-backup-btn.active {
    background: #22c55e;
}

.data-info {
    font-size: 12px;
    color: #64748b;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
}

.backup-hint {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

/* 通知方式 - 同一行显示 */
.notification-type-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.notification-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.notification-option:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

/* 选中状态 */
.notification-option:has(input:checked) {
    background: #eef2ff;
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.notification-option .settings-icon {
    font-size: 20px;
    margin-right: 12px;
}

.notification-option span:not(.settings-icon) {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
}

/* 适配移动端 */
@media (max-width: 480px) {
    .notification-type-row {
        flex-direction: column;
        gap: 12px;
    }

    .notification-option {
        justify-content: flex-start;
        padding: 12px 16px;
    }
}

/* 单选按钮样式 */
.notification-option input[type="radio"] {
    display: none;
}

.notification-option .toggle-switch {
    margin-left: auto;
    width: 44px;
    height: 24px;
}

.notification-option .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.2s;
    border-radius: 34px;
}

.notification-option .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
}

.notification-option input:checked+.slider {
    background-color: #667eea;
}

.notification-option input:checked+.slider:before {
    transform: translateX(20px);
}

/* 提示文字样式 */
.settings-hint {
    padding: 16px 20px;
    font-size: 13px;
    color: #64748b;
    background: #f8fafc;
    border-radius: 10px;
    margin-top: 16px;
    border-left: 3px solid #667eea;
    line-height: 1.5;
}

.settings-hint span {
    display: block;
}

/* 锁屏设置区域 - 平滑显示/隐藏 */
#lockSettingsContent {
    transition: opacity 0.2s ease, transform 0.2s ease;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

#lockSettingsContent[style*="display: none"] {
    opacity: 0;
    transform: translateY(-10px);
}

#lockSettingsContent[style*="display: block"] {
    opacity: 1;
    transform: translateY(0);
}


/* 免打扰样式 */
.breaks-list {
    margin-top: 16px;
}

.break-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f1f5f9;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    transition: background-color 0.2s ease;
}

.break-item:hover {
    background: #e2e8f0;
}

.break-item input {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    transition: border-color 0.2s ease;
}

.break-item input:focus {
    outline: none;
    border-color: #667eea;
}

.break-item .break-name {
    flex: 1;
    min-width: 80px;
}

.break-item .break-start,
.break-item .break-end {
    width: 90px;
}

.break-item .remove-break {
    background: #ef4444;
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.break-item .remove-break:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.break-item .remove-break:active {
    transform: scale(0.95);
}

.add-break-btn {
    background: #667eea;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    font-size: 12px;
    margin-left: auto;
    transition: all 0.2s;
}

.add-break-btn:hover {
    background: #5b21b6;
    transform: translateY(-1px);
}

.add-break-btn:active {
    transform: scale(0.95);
}

.break-empty {
    color: #94a3b8;
    font-size: 12px;
    text-align: center;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    margin-top: 8px;
}

/* 优化整体布局 */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .settings-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .settings-item {
        flex: 100%;
    }
}