:root {
    --primary-color: #ffc0cb; /* 樱花粉 */
    --secondary-color: #a2d2ff; /* 天空蓝 */
    --accent-color: #fcf4a3; /* 柠檬黄 */
    --text-color: #5d5d5d;
    --bg-color: #fff9fb;
    --card-bg: #ffffff;
    --border-radius: 15px;
    --shadow: 0 4px 15px rgba(255, 182, 193, 0.4);
}

body {
    font-family: sans-serif, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23fec8d8" fill-opacity="0.4"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

.container {
    position: relative;
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px 0 rgba(255, 105, 180, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 30px;
    text-align: center;
}

.lang-switcher {
    position: absolute;
    top: 15px;
    right: 20px;
    display: flex;
    gap: 5px;
}

.lang-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background-color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lang-btn:hover, .lang-btn.active {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

header h1 {
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 2.5em;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

header h1 .icon {
    display: inline-block;
    transform: rotate(-15deg);
    animation: bounce 2s infinite;
}

/* ...(其他CSS样式与v2.0保持一致)... */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(-15deg)
    }
    40% {
        transform: translateY(-15px) rotate(-15deg)
    }
    60% {
        transform: translateY(-10px) rotate(-15deg)
    }
}

.upload-area {
    border: 3px dashed var(--primary-color);
    border-radius: var(--border-radius);
    padding: 40px;
    background-color: var(--bg-color);
    transition: background-color .3s, transform .3s;
    cursor: pointer;
    margin-bottom: 30px
}

.upload-area.dragover {
    background-color: var(--accent-color);
    transform: scale(1.02)
}

.upload-area p {
    font-size: 1.2em;
    margin: 0
}

.upload-icon {
    font-size: 3em;
    color: var(--primary-color);
    animation: float 3s ease-in-out infinite
}

@keyframes float {
    0% {
        transform: translateY(0)
    }
    50% {
        transform: translateY(-10px)
    }
    100% {
        transform: translateY(0)
    }
}

#file-input {
    display: none
}

#file-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    min-height: 50px
}

.file-item {
    display: flex;
    align-items: center;
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 10px 20px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    cursor: grab;
    transition: background-color .2s
}

.file-item:active {
    cursor: grabbing
}

.file-item.sortable-ghost {
    opacity: .4;
    background: var(--accent-color)
}

.file-item .icon {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-right: 15px
}

.file-item .name {
    flex-grow: 1;
    text-align: left
}

.file-item .remove-btn {
    background: none;
    border: none;
    font-size: 1.5em;
    color: #ff7b7b;
    cursor: pointer;
    transition: transform .2s
}

.file-item .remove-btn:hover {
    transform: scale(1.2)
}

.action-button {
    font-family: 'Mochiy Pop One', sans-serif;
    background-image: linear-gradient(45deg, var(--primary-color) 0, var(--secondary-color) 100%);
    border: none;
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.2em;
    cursor: pointer;
    transition: all .3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .2);
    margin-top: 20px
}

.action-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25)
}

.action-button:disabled {
    opacity: .5;
    cursor: not-allowed
}

.progress-section {
    margin-top: 30px;
    height: 0;
    overflow: hidden;
    transition: height .5s ease
}

.progress-section.visible {
    height: 100px
}

.progress-bar-container {
    width: 100%;
    height: 25px;
    background-color: #e0e0e0;
    border-radius: 25px;
    overflow: hidden;
    margin-top: 10px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .2)
}

.progress-bar {
    width: 0;
    height: 100%;
    background-image: linear-gradient(45deg, var(--accent-color) 0, #a2d2ff 100%);
    border-radius: 25px;
    transition: width .5s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8em;
    color: var(--text-color)
}

#progress-text {
    margin-top: 10px;
    font-size: 1em;
    color: var(--primary-color)
}

/* ✨ 更新和新增的捐赠区样式 */
.donation-section {
    margin-top: 40px;
    text-align: left;
}

.donation-section details {
    border: 1px dashed var(--primary-color);
    border-radius: var(--border-radius);
    background-color: var(--bg-color);
    padding: 10px 20px;
}

.donation-section summary {
    font-weight: bold;
    cursor: pointer;
    outline: none;
    list-style: none; /* Hide default marker */
    display: flex;
    align-items: center;
}

.donation-section summary::-webkit-details-marker {
    display: none; /* Hide default marker in Webkit */
}

.donation-section summary h3 {
    display: inline-block;
    margin: 0;
    color: var(--primary-color);
    font-size: 1.1em;
    flex-grow: 1;
}

.donation-section summary::before {
    content: '▶';
    margin-right: 10px;
    font-size: 0.9em;
    color: var(--primary-color);
    display: inline-block;
    transition: transform 0.2s ease-in-out;
}

.donation-section details[open] > summary::before {
    transform: rotate(90deg);
}

.donation-content {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ffdde5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.donation-text {
    flex-grow: 1;
}

.donation-qr-code {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 5px;
}

.main-footer {
    margin-top: 30px;
    font-size: 0.8em;
    color: #aaa;
}