/* 极简风格 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.page {
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hidden {
    display: none;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

h2 {
    margin-bottom: 20px;
    color: #555;
}

/* 温柔治愈风格登录页面 */
.login-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 320px;
    margin: 0 auto;
}

.login-buttons button {
    padding: 16px;
    background: linear-gradient(135deg, #FFC0CB, #FFB6C1);
    color: #666666;
    border: none;
    border-radius: 20px;
    font-size: 18px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 192, 203, 0.3);
    background: linear-gradient(135deg, #FFB6C1, #FF69B4);
}

.login-buttons button:active {
    transform: translateY(1px);
}

/* 轻柔飘浮动画 */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.login-buttons button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.login-buttons button:hover::before {
    left: 100%;
}

/* 温柔治愈背景 */
#loginPage {
    background: linear-gradient(135deg, #FDFBFF 0%, #FFF0F5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* 添加柔和装饰元素 */
#loginPage::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 192, 203, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(159, 226, 191, 0.1) 0%, transparent 50%);
    animation: breathe 8s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

#loginPage .container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(255, 192, 203, 0.15);
    border: 1px solid rgba(255, 192, 203, 0.2);
    position: relative;
    z-index: 1;
}

#loginPage h1 {
    color: #FF69B4;
    font-size: 36px;
    margin-bottom: 35px;
    text-align: center;
    position: relative;
    animation: float 4s ease-in-out infinite;
}

#loginPage h1::after {
    content: '🌸';
    position: absolute;
    top: -10px;
    right: -20px;
    font-size: 24px;
    animation: spin 6s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 添加简单的图标装饰 */

/* 导航 */
nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

nav button {
    padding: 8px 16px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    position: relative;
}

nav button:hover {
    background-color: #f0f0f0;
}

/* 管理员后台布局 */
/* 科技感管理员页面样式 - 视觉舒适版 */
.admin-container {
    display: flex;
    min-height: calc(100vh - 40px);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.sidebar {
    width: 240px;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px 20px;
    border-right: 1px solid rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 2px 0 15px rgba(0, 255, 255, 0.1);
}

.sidebar h2 {
    color: #00ffff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 255, 255, 0.5);
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar nav button {
    padding: 12px 20px;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sidebar nav button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.sidebar nav button:hover::before {
    left: 100%;
}

.sidebar nav button:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: translateX(5px);
    border-color: rgba(0, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.sidebar nav button.active {
    background: rgba(0, 255, 255, 0.15);
    color: #00ffff;
    border-color: rgba(0, 255, 255, 0.8);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

.main-content {
    flex: 1;
    padding: 30px;
    background: rgba(0, 0, 0, 0.2);
}

.main-content h3 {
    color: #00ffff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    letter-spacing: 1px;
}

/* 科技感小红点提醒 */
.badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 5px rgba(255, 0, 0, 0.7); }
    50% { box-shadow: 0 0 15px rgba(255, 0, 0, 0.9); }
    100% { box-shadow: 0 0 5px rgba(255, 0, 0, 0.7); }
}

/* 科技感表单样式 */
#taskForm {
    max-width: 600px;
}

#taskForm input,
#taskForm textarea,
#taskForm select {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 255, 255, 0.5);
    border-radius: 6px;
    color: #1a1a2e;
    font-size: 14px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

#taskForm input:focus,
#taskForm textarea:focus,
#taskForm select:focus {
    outline: none;
    border-color: rgba(0, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    background: rgba(255, 255, 255, 1);
}

#taskForm button[type="submit"] {
    background: linear-gradient(135deg, #00ffff 0%, #0099ff 100%);
    color: #1a1a2e;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

#taskForm button[type="submit"]:hover {
    background: linear-gradient(135deg, #0099ff 0%, #00ffff 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

/* 科技感任务列表样式 */
.task-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    color: #e0e0e0;
    backdrop-filter: blur(5px);
}

.task-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.5);
}

.task-item h3 {
    color: #00ffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.task-item p {
    color: #b0b0b0;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.task-item .meta {
    color: #888;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.task-item button {
    background: linear-gradient(135deg, #00ffff 0%, #0099ff 100%);
    color: #1a1a2e;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.task-item button:hover {
    background: linear-gradient(135deg, #0099ff 0%, #00ffff 100%);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

/* 科技感删除任务按钮 */
#deleteTasksList button {
    background: linear-gradient(135deg, #ff0066 0%, #ff0033 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

#deleteTasksList button:hover {
    background: linear-gradient(135deg, #ff0033 0%, #ff0066 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 0, 51, 0.6);
}

/* 科技感滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.8);
}

/* 表单 */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
}

form input,
form textarea,
form select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

form textarea {
    min-height: 80px;
    resize: vertical;
}

form button {
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* 任务列表 */
.task-item {
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    background: #fafafa;
}

.task-item h3 {
    margin-bottom: 8px;
    color: #333;
}

.task-item p {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.task-item .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #888;
}

.task-item button {
    padding: 5px 10px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

/* 温柔粉色主题用户页面样式 */
#userPage {
    background: #FDFBFF;
    min-height: 100vh;
}

#userPage .container {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(255, 192, 203, 0.15);
    padding: 40px;
    max-width: 850px;
    border: 1px solid rgba(255, 192, 203, 0.2);
}

#userPage h1 {
    color: #FF69B4;
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 30px;
    text-align: center;
    letter-spacing: 1px;
}

#userPage #userPointsDisplay {
    color: #FF1493;
    font-size: 52px;
    font-weight: 700;
    display: block;
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, #FFC0CB 0%, #FFB6C1 100%);
    border-radius: 16px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(255, 192, 203, 0.2);
}

#userPage nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    backdrop-filter: blur(5px);
}

#userPage nav button {
    background: linear-gradient(135deg, #FFC0CB 0%, #FFB6C1 100%);
    color: #666666;
    border: none;
    border-radius: 16px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(255, 192, 203, 0.2);
}

#userPage nav button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 16px rgba(255, 192, 203, 0.3);
    background: linear-gradient(135deg, #FFB6C1 0%, #FF69B4 100%);
}

#userPage .task-item {
    background: #ffffff;
    border: 1px solid rgba(255, 192, 203, 0.2);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto 1fr auto;
    gap: 15px;
}

#userPage .task-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(255, 192, 203, 0.15);
    border-color: rgba(255, 192, 203, 0.4);
}

#userPage .task-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 152, 0, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto 1fr auto;
    gap: 12px;
}

#userPage .task-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(255, 152, 0, 0.15);
    border-color: rgba(255, 152, 0, 0.4);
}

/* 第一层：顶部区域 */
#userPage .task-item h3 {
    color: #FF69B4;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    grid-column: 1;
    grid-row: 1;
}

#userPage .task-item .countdown {
    color: #FF1493;
    font-size: 16px;
    font-weight: 600;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    animation: pulse 2s infinite;
}

/* 第二层：中部区域 */
#userPage .task-item p {
    color: #666666;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    grid-column: 1 / span 2;
    grid-row: 2;
    padding: 10px 0;
}

/* 第三层：底部区域 */
#userPage .task-item .meta {
    color: #666666;
    font-size: 12px;
    grid-column: 1;
    grid-row: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 192, 203, 0.2);
    margin-right: 60px;
    padding-right: 20px;
}

#userPage .task-item .meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* 提交按钮 */
#userPage .task-item button {
    background: linear-gradient(135deg, #FFC0CB 0%, #FFB6C1 100%);
    color: #666666;
    border: none;
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    grid-column: 2;
    grid-row: 3;
    justify-self: end;
    align-self: end;
    box-shadow: 0 4px 8px rgba(255, 192, 203, 0.2);
    white-space: nowrap;
    margin-left: 20px;
}

#userPage .task-item button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(255, 192, 203, 0.3);
    background: linear-gradient(135deg, #FF69B4 0%, #FF1493 100%);
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

#userPage .task-item button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(255, 87, 34, 0.3);
    background: linear-gradient(135deg, #ff5722 0%, #d84315 100%);
}

#userPage .tab h2 {
    color: #e65100;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 25px;
    text-align: center;
    letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }

    .admin-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    .sidebar nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    nav button {
        font-size: 12px;
        padding: 6px 12px;
    }
}