:root {
    --bg-gradient: linear-gradient(135deg, #ffb347, #ffcc33);
    --header-gradient: linear-gradient(to right, #ff7e5f, #feb47b);
    --card-bg: #fff;
    --card-bg-hover: #fffaf0;
    --text-color: #444;
    --text-color-light: #666;
    --text-color-lighter: #777;
    --border-color: #ffcc33;
    --border-color-light: #eee;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --highlight-color: #ff7e5f;
    --progress-bg: #f0f0f0;
    --progress-color: linear-gradient(to right, #ffcc33, #ff7e5f);
    --tip-bg: #fff9e6;
    --primary-btn: linear-gradient(to right, #ff7e5f, #feb47b);
    --primary-btn-shadow: rgba(255, 126, 95, 0.3);
    --content-bg: #f9f9f9;
    --input-bg: #fff;
    --alert-border: #ffcc33;
    --menu-bg: #fff;
    --overlay-bg: rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-gradient: linear-gradient(135deg, #2c3e50, #1a1a2e);
        --header-gradient: linear-gradient(to right, #ff7e5f, #feb47b);
        --card-bg: #2a2a3a;
        --card-bg-hover: #323245;
        --text-color: #e0e0e0;
        --text-color-light: #c0c0c0;
        --text-color-lighter: #a0a0a0;
        --border-color: #ff7e5f;
        --border-color-light: #444;
        --shadow-color: rgba(0, 0, 0, 0.25);
        --highlight-color: #ffcc33;
        --progress-bg: #333340;
        --progress-color: linear-gradient(to right, #ff7e5f, #ffcc33);
        --tip-bg: #3a3a4a;
        --primary-btn: linear-gradient(to right, #ff7e5f, #feb47b);
        --primary-btn-shadow: rgba(255, 126, 95, 0.4);
        --content-bg: #202030;
        --input-bg: #2a2a3a;
        --alert-border: #ff7e5f;
        --menu-bg: #1a1a2e;
        --overlay-bg: rgba(0, 0, 0, 0.7);
    }
    
    /* 更新日志样式 */
    .changelog-container {
        margin-top: 30px;
        background: var(--card-bg);
        border-radius: 15px;
        padding: 25px;
        box-shadow: 0 8px 25px var(--shadow-color);
        border: 2px solid var(--border-color-light);
    }

    .changelog-content {
        margin-top: 20px;
    }

    .changelog-item {
        background: var(--content-bg);
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 20px;
        border-left: 4px solid var(--highlight-color);
        box-shadow: 0 4px 15px var(--shadow-color);
        transition: all 0.3s ease;
    }

    .changelog-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px var(--shadow-color);
    }

    .changelog-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--border-color-light);
    }

    .changelog-version {
        background: var(--primary-btn);
        color: white;
        padding: 5px 12px;
        border-radius: 20px;
        font-weight: bold;
        font-size: 0.9em;
        box-shadow: 0 2px 8px var(--primary-btn-shadow);
    }

    .changelog-date {
        color: var(--text-color-light);
        font-size: 0.9em;
        font-weight: 500;
    }

    .changelog-body h4 {
        color: var(--text-color);
        margin: 15px 0 10px 0;
        font-size: 1.1em;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .changelog-body h4 i {
        color: var(--highlight-color);
    }

    .changelog-body ul {
        list-style: none;
        padding: 0;
        margin: 0 0 15px 0;
    }

    .changelog-body li {
        padding: 8px 0;
        color: var(--text-color-light);
        display: flex;
        align-items: flex-start;
        gap: 10px;
        line-height: 1.5;
    }

    .changelog-body li i {
        color: var(--highlight-color);
        margin-top: 2px;
        flex-shrink: 0;
    }

    .changelog-body li:last-child {
        margin-bottom: 0;
    }

    /* 移动端适配 */
    @media (max-width: 768px) {
        .changelog-container {
            padding: 20px 15px;
            margin-top: 20px;
        }

        .changelog-item {
            padding: 15px;
        }

        .changelog-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;
        }

        .changelog-version {
            font-size: 0.8em;
            padding: 4px 10px;
        }

        .changelog-date {
            font-size: 0.8em;
        }

        .changelog-body h4 {
            font-size: 1em;
        }

        .changelog-body li {
            font-size: 0.9em;
        }
    }

    input[type="time"]::-webkit-calendar-picker-indicator {
        filter: invert(1);
    }
    
    input[type="time"]::-webkit-time-picker-indicator {
        filter: invert(1);
    }
    
    input[type="time"]::-webkit-datetime-edit-fields-wrapper {
        color: var(--text-color);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    color: var(--text-color);
}

.container {
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    box-shadow: 0 15px 30px var(--shadow-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 5px solid var(--card-bg);
    background-color: var(--card-bg);
    position: relative;
}

header {
    background: var(--header-gradient);
    color: white;
    padding: 20px 15px;
    text-align: center;
    position: relative;
    border-bottom: 5px dashed #fff;
}

header h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    padding: 0 60px;
}

header p {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    opacity: 0.9;
    font-weight: 500;
    padding: 0 60px;
}

.content {
    display: flex;
    flex-direction: column;
    padding: clamp(15px, 3vw, 30px);
    background-color: var(--content-bg);
}

.section-title {
    color: var(--highlight-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px dotted var(--border-color);
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    font-weight: 700;
}

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

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-color);
    font-size: clamp(0.8rem, 2.5vw, 1rem);
}

input, select {
    width: 100%;
    padding: clamp(8px, 2vw, 14px);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    transition: all 0.3s;
    background-color: var(--input-bg);
    color: var(--text-color);
}

input:focus, select:focus {
    border-color: var(--highlight-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 126, 95, 0.2);
}

button {
    background: var(--primary-btn);
    color: white;
    border: none;
    padding: clamp(10px, 2vw, 15px) clamp(15px, 3vw, 25px);
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 10px var(--primary-btn-shadow);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px var(--primary-btn-shadow);
}

.money-display {
    text-align: center;
    margin-bottom: 20px;
    background-color: var(--card-bg);
    padding: clamp(10px, 3vw, 20px);
    border-radius: 20px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

/* 统一卡片样式 */
.stat-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: clamp(10px, 3vw, 15px);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow-color);
    background: var(--card-bg-hover);
}

.stat-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: var(--tip-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 3px 8px var(--primary-btn-shadow);
}

.stat-icon i {
    color: var(--highlight-color);
    font-size: 1.2rem;
    margin: 0;
}

.stat-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.stat-value {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--highlight-color);
}

.stat-label {
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    color: var(--text-color-light);
    font-weight: 500;
}

/* 统计卡片布局 */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

/* 特殊样式 - 假期日期显示 */
#holidayDate {
    font-size: clamp(0.65rem, 1.8vw, 0.8rem);
    color: var(--text-color-lighter);
}

/* 特殊样式 - 保持今日收入显示大小 */
.today-earned {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    color: var(--highlight-color);
    margin: 15px 0;
    text-shadow: 2px 2px 4px var(--shadow-color);
}

/* 卡片内容样式 */
.card-info {
    flex-grow: 1;
    text-align: center;
}

/* 卡片标题样式 */
.card-title {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: var(--text-color);
    margin-bottom: 5px;
}

/* 卡片数值样式 */
.card-value {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 700;
    color: var(--highlight-color);
}

/* 卡片副标题样式 */
.card-subtitle {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: var(--text-color-lighter);
    margin-top: 3px;
}

/* 统计卡片网格布局 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(8px, 2vw, 15px);
    margin: 15px 0;
}

/* 保留原有的stats样式，但使用新的统一样式 */
.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(8px, 2vw, 15px);
    margin: 15px 0;
}

.progress-container {
    background: var(--progress-bg);
    border-radius: 50px;
    height: 20px;
    margin: 15px 0;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

.progress-bar {
    height: 100%;
    background: var(--progress-color);
    width: 0%;
    border-radius: 50px;
    transition: width 0.5s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    z-index: 1;
}

.progress-status {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-color-light);
    margin-bottom: 10px;
    font-style: italic;
}

.progress-status i {
    margin-right: 5px;
    color: var(--highlight-color);
}

.motivation {
    background: var(--tip-bg);
    border-left: 4px solid var(--border-color);
    padding: clamp(10px, 2vw, 15px);
    border-radius: 0 15px 15px 0;
    margin-top: 15px;
    font-style: italic;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    color: var(--text-color-light);
}

.motivation i {
    color: var(--border-color);
    margin-right: 10px;
}

.notice {
    background: var(--tip-bg);
    border-left: 4px solid var(--border-color);
    padding: clamp(10px, 2vw, 15px);
    border-radius: 0 15px 15px 0;
    margin-bottom: 15px;
    font-style: italic;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    color: var(--text-color-light);
}

.notice i {
    color: var(--border-color);
    margin-right: 10px;
}

.time-display {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: var(--text-color-lighter);
    text-align: center;
    margin-top: 15px;
    background: var(--card-bg);
    padding: clamp(6px, 2vw, 10px);
    border-radius: 50px;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* 菜单按钮样式 */
.menu-button {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.menu-button i {
    color: white;
    font-size: 1.2rem;
    margin: 0;
}

.menu-button:hover {
    background: white;
}

.menu-button:hover i {
    color: var(--highlight-color);
}

/* 侧边菜单样式 */
.side-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background-color: var(--menu-bg);
    box-shadow: 5px 0 15px var(--shadow-color);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.side-menu.active {
    left: 0;
}

.menu-header {
    background: var(--header-gradient);
    color: white;
    padding: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-header h3 {
    font-size: 1.5rem;
    margin: 0;
    text-align: center;
    flex-grow: 1;
}

.menu-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.menu-close i {
    color: white;
    font-size: 1rem;
    margin: 0;
}

.menu-close:hover {
    background: white;
}

.menu-close:hover i {
    color: var(--highlight-color);
}

.menu-items {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-items button {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color-light);
    border-radius: 10px;
    text-align: left;
    padding: 15px;
    display: flex;
    align-items: center;
    box-shadow: none;
    margin: 0;
}

.menu-items button i {
    margin-right: 10px;
    color: var(--highlight-color);
}

.menu-items button.active {
    background: var(--primary-btn);
    color: white;
    border-color: transparent;
}

.menu-items button.active i {
    color: white;
}

/* 遮罩层 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-bg);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.overlay.active {
    display: block;
    opacity: 1;
}

.full-width {
    grid-column: 1 / -1;
}

i {
    margin-right: 5px;
}

footer {
    text-align: center;
    padding: 10px;
    background-color: var(--content-bg);
    border-top: 1px solid var(--border-color-light);
    color: var(--text-color-light);
    margin-top: auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

footer a {
    color: var(--highlight-color);
    text-decoration: none;
}

/* 分享链接样式 */
.share-container {
    margin-top: 20px;
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px var(--shadow-color);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.share-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-btn);
}

.share-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.share-title i {
    color: var(--highlight-color);
    margin-right: 8px;
    font-size: 1.3rem;
}

.share-link-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    position: relative;
}

.share-link {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--border-color-light);
    border-radius: 10px;
    font-size: 0.9rem;
    background-color: var(--input-bg);
    color: var(--text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.share-link:hover {
    border-color: var(--border-color);
    background-color: var(--card-bg-hover);
}

.copy-btn {
    background: var(--primary-btn);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 5px var(--shadow-color);
    max-width: 150px;
    margin-top: 0;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px var(--shadow-color);
}

.share-tip {
    font-size: 0.9rem;
    color: var(--text-color-light);
    font-style: italic;
    margin-top: 10px;
    display: flex;
    align-items: center;
    background-color: var(--tip-bg);
    padding: 10px;
    border-radius: 8px;
    border-left: 3px solid var(--border-color);
}

.share-tip i {
    color: var(--border-color);
    font-size: 1.1rem;
    margin-right: 8px;
}

.button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.button-group button {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.button-group button:first-child {
    background: var(--primary-btn);
}

/* 自定义弹窗样式 */
.custom-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.custom-alert.show {
    opacity: 1;
    visibility: visible;
}

.alert-content {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    width: 400px;
    text-align: center;
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.4s;
    border: 3px solid var(--alert-border);
}

.custom-alert.show .alert-content {
    transform: translateY(0);
}

.alert-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--tip-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border: 3px solid var(--border-color);
}

.alert-icon i {
    font-size: 30px;
    color: var(--highlight-color);
    margin: 0;
}

.alert-title {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.alert-message {
    font-size: 1rem;
    color: var(--text-color-light);
    margin-bottom: 20px;
}

.alert-button {
    background: var(--primary-btn);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    box-shadow: 0 4px 10px var(--primary-btn-shadow);
}

.alert-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px var(--primary-btn-shadow);
}

/* 假期是今天时的特殊样式 */
.holiday-today {
    background: linear-gradient(to right, rgba(255, 126, 95, 0.1), rgba(255, 204, 51, 0.1));
    border-color: var(--highlight-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 126, 95, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 126, 95, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 126, 95, 0);
    }
}

/* 关于页面样式 */
.about-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    }
    
.version-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px var(--shadow-color);
    border: 2px solid var(--border-color);
    position: relative;
}

.version-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
        margin-bottom: 10px;
    }
    
.version-header h3 {
    font-size: 1.4rem;
    color: var(--highlight-color);
    font-weight: 700;
    margin: 0;
    }
    
.version-date {
    font-size: 0.9rem;
    color: var(--text-color-lighter);
    font-style: italic;
    }

.version-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px dotted var(--border-color-light);
}

.version-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.version-content h4 {
    font-size: 1.1rem;
    color: var(--highlight-color);
    margin: 0;
    margin-top: 5px;
    }
    
.version-content p {
    margin: 5px 0;
    color: var(--text-color-light);
    line-height: 1.5;
    }
    
.version-content ol, .version-content ul {
    padding-left: 20px;
    margin: 5px 0;
    }
    
.version-content li {
    margin-bottom: 10px;
    }
    
.version-content li strong {
    color: var(--text-color);
}

.version-content li p {
    margin-top: 5px;
    }
    
.contact-section {
    background: var(--tip-bg);
    border-radius: 15px;
    padding: 15px 20px;
    border-left: 4px solid var(--border-color);
    margin-top: 10px;
}

.contact-section h3 {
    font-size: 1.2rem;
    color: var(--highlight-color);
    margin-bottom: 10px;
    }
    
.contact-section p {
    color: var(--text-color-light);
}

.contact-section a {
    color: var(--highlight-color);
    text-decoration: none;
    font-weight: 600;
    }

.contact-section a:hover {
    text-decoration: underline;
}
