/* 许愿墙页面样式 */
.wish-section {
    padding: 60px 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: calc(100vh - 200px);
}

.wish-header {
    text-align: center;
    margin-bottom: 40px;
}

.wish-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.wish-desc {
    font-size: 16px;
    color: #64748b;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.decor-icon {
    color: #fbbf24;
    font-size: 18px;
    margin: 0 10px;
}

/* 许愿签列表 */
.wish-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.wish-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.wish-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #7c3aed);
}

.wish-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 212, 255, 0.15);
}

.wish-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.wish-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.wish-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wish-nickname {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.wish-time {
    font-size: 12px;
    color: #94a3b8;
}

.wish-id {
    font-size: 12px;
    color: #cbd5e1;
    font-weight: 500;
}

.wish-content {
    margin-bottom: 16px;
}

.wish-content p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    font-style: italic;
}

.wish-card-footer {
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
}

.wish-decoration {
    width: 100%;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'%3E%3Cpath fill='none' stroke='%23e2e8f0' stroke-width='1' d='M5 10 Q25 0 50 10 T95 10'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* 许愿提交卡片 */
.wish-form-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
}

.wish-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00d4ff, #7c3aed);
}

.form-header {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f0f9ff 0%, #f5f3ff 100%);
}

.form-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
}

.form-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group:last-of-type {
    margin-bottom: 30px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1e293b;
    font-size: 15px;
    margin-bottom: 12px;
}

.form-label svg {
    width: 18px;
    height: 18px;
    color: #00d4ff;
}

.form-hint {
    font-size: 12px;
    color: #94a3b8;
    margin: 0 0 12px;
}

.color-picker {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.color-picker:hover {
    transform: scale(1.1);
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 12px;
}

.icon-item {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.icon-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.icon-item.selected {
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.wish-textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
    resize: vertical;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.wish-textarea:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.wish-textarea::placeholder {
    color: #94a3b8;
}

.error-message {
    display: none;
    color: #ef4444;
    font-size: 13px;
    margin-top: 10px;
    padding: 10px 15px;
    background: #fef2f2;
    border-radius: 8px;
    border-left: 3px solid #ef4444;
}

.submit-btn {
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}

.submit-btn svg {
    width: 18px;
    height: 18px;
}

.login-prompt {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    color: #92400e;
    font-size: 15px;
}

.login-prompt a {
    color: #00d4ff;
    font-weight: 600;
    text-decoration: none;
}

.login-prompt a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .wish-section {
        padding: 40px 15px;
    }
    
    .wish-desc {
        padding: 15px 20px;
        font-size: 14px;
    }
    
    .wish-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .wish-card {
        padding: 20px;
    }
    
    .form-body {
        padding: 20px;
    }
    
    .icon-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .submit-btn {
        font-size: 14px;
        padding: 14px 20px;
    }
}