:root {
    --primary-red: #c62d1f;
    --winery-red: #600000;
    --gold: #fcc200;
    --light-gold: #ffe082;
    --white-overlay: rgba(255, 255, 255, 0.9);
}

body {
    margin: 0;
    padding: 20px 0;
    background: radial-gradient(circle at center, var(--primary-red) 0%, var(--winery-red) 100%);
    min-height: 100vh;
    font-family: "Microsoft YaHei", "Heiti SC", sans-serif;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.container {
    background: rgba(142, 28, 16, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid var(--gold);
    border-radius: 24px;
    padding: 40px 30px;
    width: 90%;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
    animation: slideUp 0.8s ease-out;
    margin-bottom: 30px;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn {
    display: inline-block;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    color: #fff;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #fcc200, #ff9800);
    color: #8e1c10;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
    border: none;
}

h1 {
    font-size: 2.5rem;
    color: var(--gold);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin: 10px 0;
}

/* 首页独有样式 */
.corner-deco {
    position: absolute;
    font-size: 2rem;
    opacity: 0.8;
}
.top-left { top: 15px; left: 15px; transform: rotate(-15deg); }
.top-right { top: 15px; right: 15px; transform: rotate(15deg); }

h2 {
    font-size: 1.2rem;
    font-weight: normal;
    margin-bottom: 30px;
    color: var(--light-gold);
    letter-spacing: 2px;
}

.mascot {
    font-size: 5rem;
    margin: 10px 0;
    filter: drop-shadow(0 0 10px rgba(255,215,0,0.4));
    animation: gallop 2s infinite ease-in-out;
    display: inline-block;
}

@keyframes gallop {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-5deg); }
}

.countdown-panel {
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed var(--light-gold);
    border-radius: 12px;
    padding: 15px;
    margin: 25px 0;
}

#timer {
    font-family: 'Courier New', monospace;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--gold);
}

textarea {

    height: 100px;
    padding: 15px;
    box-sizing: border-box;
    border-radius: 12px;
    border: none;
    background: var(--white-overlay);
    font-size: 1rem;
    margin-bottom: 20px;
    transition: transform 0.2s;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

textarea:focus {
    outline: 2px solid var(--gold);
    transform: scale(1.02);
}

.btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.footer-text {
    margin-top: 30px;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* 许愿墙独有样式 */
.wish-card {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid #ffeb3b;
    border-radius: 10px;
    margin: 15px 0;
    padding: 15px;
    font-size: 1.2em;
    text-align: left;
}

.wish-card a,
.wish-card a:visited {
    color: var(--gold) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block; /* 确保变换效果生效 */
}

.wish-card a:hover {
    color: var(--light-gold) !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
    text-decoration: none;
    transform: scale(1.05); /* 微微放大 */
}

.vip-card{
    box-shadow: 0 0 15px #9c27b0;
    background: linear-gradient(45deg, rgba(0,0,0,0.2), rgba(224, 64, 251, 0.2));
    border: 2px solid #e040fb;
    /* 呼吸效果 */
    animation: pulse 2s infinite;
}
.wealthy-card {
    /* 移除背景色，改用文字发光，避免在 span 上显得突兀 */
    color: var(--gold);
    font-weight: bold;
}
.compact-text {
    font-size: 0.8em;
    line-height: 1.4;
    opacity: 0.9;
}
.empty-tip {
    color: #fff;
    font-style: italic;
    margin: 40px;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}


/* 图片上传区域样式 */
.upload-panel {
    width: 20%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    /*padding: 20px;*/
    /*margin-top: 25px;*/
    /*border: 1px dashed rgba(255, 215, 0, 0.3);*/
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.upload-panel:hover {
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.05);
}

.upload-panel form {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 200px;
}

.hidden-input {
    display: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--light-gold);
    color: var(--light-gold);
}

.file-name {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s;
}

.file-name.selected {
    color: var(--gold);
    font-weight: bold;
}

.btn-upload {
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: white;
    padding: 10px 25px;
    border: none;
    box-shadow: 0 4px 10px rgba(233, 30, 99, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(233, 30, 99, 0.5);
}


/* ͳһʽ */
.unified-form {
    background: rgba(142, 28, 16, 0.4);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.form-main {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: stretch;
}

.text-section {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.text-section input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.9);
    box-sizing: border-box;
}

.text-section textarea {
    margin-bottom: 0;
    height: 100px;
    resize: none;
}

.upload-section {
    flex: 1;
    min-width: 120px;
}

.upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 215, 0, 0.5);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--light-gold);
    text-align: center;
    padding: 10px;
}

.upload-box:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.upload-box .icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.upload-box .text {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.upload-box .file-name {
    font-size: 0.8rem;
    color: #fff;
    word-break: break-all;
}

.upload-box .file-name.selected {
    color: var(--gold);
    background: rgba(0,0,0,0.2);
    padding: 2px 6px;
    border-radius: 4px;
}

@media (max-width: 600px) {
    .form-main {
        flex-direction: column;
    }
    .upload-box {
        height: 80px;
        flex-direction: row;
        gap: 15px;
    }
    .upload-box .icon {
        margin-bottom: 0;
    }
}
