/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background-color: #f8f8f8;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    padding-bottom: 20px;
}

/* 页面头部样式 */
.header {
    text-align: center;
    padding: 20px 0;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.logo {
    font-size: 48px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.header h1 {
    font-size: 24px;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

/* 横幅图片样式 */
.banner {
    width: 100%;
    overflow: hidden;
}

.duck-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 验证区域样式 */
.verify-section {
    padding: 20px;
    text-align: center;
}

.verify-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.code-input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

#codeInput {
    padding: 15px;
    font-size: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

#codeInput:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.verify-btn {
    padding: 15px;
    font-size: 18px;
    background-color: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.verify-btn:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.verify-btn:active {
    transform: translateY(0);
}

.result-msg {
    font-size: 16px;
    min-height: 20px;
}

.result-msg.success {
    color: #4caf50;
}

.result-msg.error {
    color: #f44336;
}

/* 券码信息样式 */
.code-info {
    padding: 20px;
    background-color: #f0f8ff;
    margin: 0 20px 20px;
    border-radius: 12px;
    border: 1px solid #e3f2fd;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e3f2fd;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item .label {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.info-item .value {
    font-size: 16px;
    color: #333;
    font-weight: bold;
}

/* 提货按钮样式 */
.pickup-section {
    padding: 0 20px 20px;
    text-align: center;
}

.pickup-btn {
    padding: 18px;
    font-size: 20px;
    background-color: #4caf50;
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: all 0.3s ease;
}

.pickup-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.pickup-btn:active {
    transform: translateY(0);
}

/* 说明区域样式 */
.instructions,
.store-info {
    padding: 20px;
    margin-bottom: 20px;
}

.instructions h3,
.store-info h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    border-left: 4px solid #ff6b6b;
    padding-left: 12px;
}

.instructions ul {
    list-style: none;
    padding: 0;
}

.instructions li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    font-size: 15px;
    color: #666;
}

.instructions li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

/* 门店信息样式 */
.store-item {
    background-color: #fafafa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.store-item h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.store-item p {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .header h1 {
        font-size: 22px;
    }
    
    .logo {
        font-size: 40px;
    }
    
    .verify-section h2 {
        font-size: 18px;
    }
    
    #codeInput,
    .verify-btn {
        font-size: 16px;
        padding: 12px;
    }
    
    .pickup-btn {
        font-size: 18px;
        padding: 15px;
    }
    
    .code-info,
    .verify-section,
    .instructions,
    .store-info {
        padding: 15px;
    }
    
    .info-item {
        padding: 10px 0;
    }
    
    .info-item .label,
    .info-item .value {
        font-size: 15px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.code-info,
.pickup-section {
    animation: fadeIn 0.5s ease-out;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}