.scheduled-reminder-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.reminder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.reminder-header h1 {
    margin: 0;
    font-weight: 600;
    font-size: 28px;
}

.reminder-header p {
    margin: 8px 0 0 0;
    opacity: 0.9;
    font-size: 16px;
}

.add-reminder-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-reminder-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.add-reminder-btn:active {
    transform: translateY(0);
}

.reminder-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.filter-sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sort-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.filter-sort-controls .layui-btn {
    height: 36px;
    line-height: 36px;
    padding: 0 15px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: white;
    color: #555;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.filter-sort-controls .layui-btn:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.filter-sort-controls .layui-btn.layui-btn-normal {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.filter-sort-controls .layui-btn .layui-icon {
    font-size: 14px;
    line-height: inherit;
}

.reminder-list {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.reminder-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.reminder-item:last-child {
    border-bottom: none;
}

.reminder-item:hover {
    background: #f8f9ff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.reminder-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
}

.reminder-time-info {
    display: flex;
    flex-direction: column;
    min-width: 90px;
}

.reminder-time {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.reminder-date {
    font-size: 12px;
    color: #777;
}

.reminder-content {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #444;
    margin: 0 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reminder-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 100px;
}

.countdown-value {
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 覆盖默认渐变色以确保状态颜色生效 */
.countdown-value.expired,
.countdown-value.reminded,
.countdown-value.cancelled {
    background: none;
    -webkit-text-fill-color: inherit;
    background-clip: unset;
}

/* 过期状态样式 */
.countdown-value.expired {
    color: #ff4d4f;
    font-weight: bold;
}

/* 已提醒状态样式 */
.countdown-value.reminded {
    color: #52c41a;
    font-weight: bold;
}

/* 已取消状态样式 */
.countdown-value.cancelled {
    color: #8c8c8c;
    font-weight: bold;
    text-decoration: line-through;
}

/* 已过期提醒项整体样式 */
.reminder-item.expired {
    background-color: #f5f5f5;
}

/* 已取消提醒项整体样式 */
.reminder-item.cancelled {
    background-color: #f5f5f5;
}

/* 已提醒提醒项整体样式 */
.reminder-item.reminded {
    background-color: #f5f5f5;
}

.reminder-item.expired:hover {
    background-color: #f0f0f0;
}

.reminder-item.cancelled:hover {
    background-color: #f0f0f0;
}

.reminder-item.reminded:hover {
    background-color: #f0f0f0;
}

.dark .reminder-item.expired {
    background-color: #2d2d2d;
}

.dark .reminder-item.cancelled {
    background-color: #2d2d2d;
}

.dark .reminder-item.reminded {
    background-color: #2d2d2d;
}

.dark .reminder-item.expired:hover {
    background-color: #3d3d3d;
}

.dark .reminder-item.cancelled:hover {
    background-color: #3d3d3d;
}

.dark .reminder-item.reminded:hover {
    background-color: #3d3d3d;
}

.reminder-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.action-btn {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.edit-btn {
    background: #e3f2fd;
    color: #1976d2;
}

.edit-btn:hover {
    background: #bbdefb;
}

.cancel-btn {
    background: #ffebee;
    color: #d32f2f;
}

.cancel-btn:hover {
    background: #ffcdd2;
}

.load-more-container {
    padding: 20px;
    text-align: center;
}

.load-more-container .layui-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.load-more-container .layui-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.load-more-container .layui-btn:active {
    transform: translateY(0);
}

.load-more-container .layui-btn[disabled] {
    opacity: 0.7;
    transform: none;
    cursor: not-allowed;
}

.load-more-container .layui-icon {
    font-size: 16px;
}

.empty-state {
    text-align: center;
    padding: 30px 20px;
    color: #777;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    color: #ddd;
}

.empty-state p {
    font-size: 16px;
    margin: 8px 0;
}

.add-first-btn {
    margin-top: 20px;
    padding: 10px 25px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-first-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.cancel-btn {
    background: #ffebee;
    color: #d32f2f;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.cancel-btn:hover {
    background: #ffcdd2;
    transform: translateY(-1px);
}

.edit-btn {
    background: #e3f2fd;
    color: #1976d2;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.edit-btn:hover {
    background: #bbdefb;
    transform: translateY(-1px);
}

.end-marker {
    text-align: center;
    padding: 20px 0;
    color: #999;
    font-size: 14px;
}

.end-marker span {
    position: relative;
    padding: 0 20px;
}

.end-marker span:before,
.end-marker span:after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: #e6e6e6;
}

.end-marker span:before {
    left: -10px;
}

.end-marker span:after {
    right: -10px;
}

@media (max-width: 768px) {
    .reminder-item {
        flex-wrap: wrap;
        padding: 10px;
    }

    .reminder-time-info {
        display: none;
    }

    .reminder-content {
        margin: 8px 100px 8px 0;
        width: 100%;
        order: 3;
    }

    .reminder-meta {
        align-items: flex-end;
        min-width: 80px;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .countdown-value {
        align-self: flex-end;
    }
}

/* 超小屏幕设备进一步优化 */
@media (max-width: 480px) {
    .reminder-item {
        padding: 8px;
    }

    .reminder-time-info {
        display: none;
    }

    .reminder-date {
        display: none;
    }

    .reminder-content {
        margin: 8px 80px 8px 0;
    }

    .reminder-meta {
        min-width: auto;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .countdown-label {
        display: none;
    }

    .countdown-value {
        align-self: flex-end;
    }
}

/* 添加提醒弹窗样式 */
.layui-layer-content .reminder-form {
    padding: 15px;
}

.reminder-form .layui-form-item {
    margin-bottom: 15px;
}

.reminder-form .layui-form-label {
    width: 80px;
    padding: 9px 0;
}

.reminder-form .layui-input-block {
    margin-left: 110px;
}

.reminder-form-title {
    text-align: center;
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

/* 暗黑模式适配 */
.dark .reminder-header {
    background: linear-gradient(135deg, #4a5568, #2d3748);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dark .reminder-list {
    background: var(--lay-color-bg-2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dark .reminder-item {
    border-bottom: 1px solid var(--lay-color-border-1);
}

.dark .reminder-item:hover {
    background: var(--lay-color-bg-3);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.dark .reminder-time {
    color: var(--lay-color-text-1);
}

.dark .reminder-date {
    color: var(--lay-color-text-2);
}

.dark .reminder-content {
    color: var(--lay-color-text-1);
}

.dark .countdown-value {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark .empty-state {
    color: var(--lay-color-text-2);
}

.dark .empty-state i {
    color: var(--lay-color-text-3);
}

.dark .reminder-form-title {
    color: var(--lay-color-text-1);
}

/* 暗黑模式下状态文本样式 */
.dark .countdown-value.expired {
    color: #ff4d4f;
}

.dark .countdown-value.cancelled {
    color: #8c8c8c;
}

/* 覆盖暗黑模式下的渐变色 */
.dark .countdown-value.expired,
.dark .countdown-value.reminded,
.dark .countdown-value.cancelled {
    background: none;
    -webkit-text-fill-color: inherit;
    background-clip: unset;
}

/* 暗黑模式下按钮样式优化 */
.dark .filter-sort-controls .layui-btn {
    background: #3a475a; /* 调整为更适中的背景色 */
    border: 1px solid #566782; /* 调整为更适中的边框色 */
    color: #c9d1d9; /* 调整为更清晰的文字颜色 */
}

.dark .filter-sort-controls .layui-btn:hover {
    background: #4a5a70; /* 悬停时稍亮的背景 */
    border-color: #6b7d99; /* 悬停时稍亮的边框 */
    color: #ffffff; /* 悬停时更亮的文字 */
}

.dark .filter-sort-controls .layui-btn.layui-btn-normal {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.dark .filter-sort-controls .layui-btn.layui-btn-normal:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
    color: white; /* 确保悬停时文字颜色不变 */
}

/* 只读详情样式 */
.reminder-detail {
    padding: 15px;
}

.reminder-detail-content {
    margin-top: 15px;
}

.detail-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.detail-label {
    width: 80px;
    font-weight: bold;
    color: #333;
    padding: 9px 0;
}

.detail-value {
    flex: 1;
    padding: 9px 0;
    color: #666;
}

.detail-content {
    white-space: pre-wrap;
    word-break: break-all;
}

.reminder-detail-actions {
    text-align: right;
    margin-top: 20px;
}

.status-normal {
    color: #1890ff;
    font-weight: bold;
}

.status-reminded {
    color: #52c41a;
    font-weight: bold;
}

.status-cancelled {
    color: #8c8c8c;
    font-weight: bold;
    text-decoration: line-through;
}

.dark .detail-item {
    border-bottom: 1px solid var(--lay-color-border-1);
}

.dark .detail-label {
    color: var(--lay-color-text-1);
}

.dark .detail-value {
    color: var(--lay-color-text-2);
}
