/* 许愿墙样式 */
.wall-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    background: #f5f5f5;
}

.wall-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #ff6b9d, #ff8e53);
    border-radius: 20px;
    color: white;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.3);
}

.wall-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.wall-header p {
    font-size: 1.2em;
    opacity: 0.9;
    margin-bottom: 20px;
}

.wall-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
}

#wish-count {
    font-size: 1.8em;
    font-weight: bold;
    color: #ffeb3b;
}

.wall-btn {
    background: white;
    color: #ff4081;
    border: none;
    padding: 10px 30px;
    font-size: 1.1em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wall-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 许愿表单 */
.wish-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.form-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5em;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.form-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
    gap: 8px;
}

.label-icon {
    font-size: 1.2em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff4081;
}

.form-tips {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.char-count {
    font-size: 14px;
    color: #888;
}

#char-left {
    font-weight: bold;
    color: #ff4081;
}

.tips {
    font-size: 12px;
    color: #aaa;
    font-style: italic;
}

/* 风格选择器 */
.style-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .style-selector {
        grid-template-columns: 1fr;
    }
}

.color-picker h4,
.icon-picker h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected {
    border-color: #333;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.color-option.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #333;
    font-weight: bold;
    font-size: 14px;
}

.icon-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.icon-option {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: #f5f5f5;
}

.icon-option:hover {
    transform: scale(1.1);
    border-color: #e0e0e0;
}

.icon-option.selected {
    border-color: #ff4081;
    background: rgba(255, 64, 129, 0.1);
}

.icon-option img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 预览区域 */
.preview-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.preview-section h4 {
    margin-bottom: 15px;
    color: #333;
}

.wish-preview {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    background: #FFEEF4;
    min-height: 120px;
    transition: all 0.3s ease;
}

.preview-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.preview-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.preview-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.preview-to {
    font-weight: bold;
    color: #ff4081;
    margin-bottom: 5px;
    font-size: 14px;
}

.preview-text {
    line-height: 1.6;
    color: #333;
    margin-bottom: 10px;
    min-height: 20px;
}

.preview-footer {
    font-size: 12px;
    color: #666;
}

.preview-from {
    font-style: italic;
}

/* 表单按钮 */
.form-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.submit-btn,
.reset-btn {
    padding: 12px 40px;
    font-size: 16px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.submit-btn {
    background: linear-gradient(135deg, #ff4081, #e91e63);
    color: white;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.4);
}

.reset-btn {
    background: #f5f5f5;
    color: #666;
}

.reset-btn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* 消息提示 */
.form-message {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: bold;
    display: none;
}

.form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.form-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* 许愿墙内容 */
.wish-wall {
    min-height: 500px;
}

.loading-state {
    text-align: center;
    padding: 50px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff4081;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-wishes {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 18px;
    background: #f9f9f9;
    border-radius: 15px;
    border: 2px dashed #e0e0e0;
}

.wishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.wish-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.wish-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.wish-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
}

.wish-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wish-content {
    padding-right: 60px;
}

.wish-to {
    font-weight: bold;
    color: #ff4081;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.wish-text {
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
    font-size: 15px;
}

.wish-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 15px;
    margin-top: 15px;
    font-size: 14px;
}

.wish-from {
    color: #666;
    font-weight: bold;
}

.wish-date {
    color: #999;
}

/* 分页 */
.pagination {
    text-align: center;
    margin: 40px 0;
}

.pagination-list {
    display: inline-flex;
    list-style: none;
    gap: 5px;
    padding: 0;
    margin: 0;
    align-items: center;
}

.pagination-list li {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f5f5f5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-list li a,
.pagination-list li span {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
}

.pagination-list li.active {
    background: #ff4081;
}

.pagination-list li.active span {
    color: white;
}

.pagination-list li:hover:not(.active) {
    background: #e0e0e0;
}

.pagination-list .dots {
    padding: 0 10px;
    color: #999;
}

/* 返回按钮 */
.back-to-travel {
    text-align: center;
    margin: 40px 0;
}

.back-btn {
    background: transparent;
    color: #ff4081;
    border: 2px solid #ff4081;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    background: #ff4081;
    color: white;
    transform: translateX(-5px);
}

/* 错误状态 */
.error {
    text-align: center;
    padding: 40px;
    color: #c62828;
    background: #ffebee;
    border-radius: 10px;
    border: 1px solid #ef9a9a;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .wall-header {
        padding: 20px;
    }
    
    .wall-header h1 {
        font-size: 2em;
    }
    
    .wall-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .wishes-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .submit-btn,
    .reset-btn {
        width: 100%;
    }
    
    .pagination-list li {
        min-width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* 移动端优化 - 祝福墙 */
@media (max-width: 768px) {
    .wall-container {
        padding: 10px;
    }
    
    .wall-header {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .wall-header h1 {
        font-size: 1.8em;
    }
    
    .wall-header p {
        font-size: 1em;
    }
    
    .wall-stats {
        flex-direction: column;
        gap: 15px;
        padding: 12px 20px;
    }
    
    /* 祝福表单 */
    .wish-form {
        padding: 15px;
    }
    
    .form-header h3 {
        font-size: 1.3em;
    }
    
    .style-selector {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .color-options,
    .icon-options {
        justify-content: center;
    }
    
    /* 祝福网格 */
    .wishes-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .wish-item {
        padding: 15px;
        animation: none; /* 移动端关闭漂浮动画 */
    }
    
    /* 分页 */
    .pagination-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination-list li {
        min-width: 35px;
        height: 35px;
        font-size: 0.9em;
    }
    
    /* 返回按钮 */
    .back-to-travel {
        margin: 30px 0;
    }
}

@media (max-width: 480px) {
    .wall-header h1 {
        font-size: 1.5em;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .submit-btn,
    .reset-btn {
        width: 100%;
        justify-content: center;
    }
    
    .wish-item {
        padding: 12px;
    }
}