/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: linear-gradient(to bottom, #c5f76f, #8bc34a);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* 主容器样式 */
.main-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.content-box {
    background-color: #fff9e6;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 15px solid #d4a76a;
    overflow: hidden;
}

/* 标题样式 */
.header {
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 36px;
    color: #ff9800;
    text-shadow: 2px 2px 0 #fff, 3px 3px 0 #d4a76a;
    letter-spacing: 2px;
}

/* 用户信息样式 */
.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid #d4a76a;
}

.user-info h3 {
    color: #5d4037;
    font-size: 18px;
}

/* 邀请框样式 */
.invitation-box {
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
}

.invitation-box p {
    color: #5d4037;
    font-size: 16px;
    text-align: center;
}

/* 免费物品文本样式 */
.free-item-text {
    text-align: center;
    margin-bottom: 20px;
}

.free-item-text h3 {
    color: #ff6d00;
    font-size: 20px;
}

/* 物品容器样式 */
.items-container {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
}

.item {
    text-align: center;
    width: 45%;
}

.item-image {
    position: relative;
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.item-image img {
    width: 100%;
    height: auto;
    display: block;
}

.new-tag {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #ff5252;
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    border-bottom-right-radius: 10px;
}

.item-price {
    background-color: #4caf50;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
    font-weight: bold;
}

/* 步骤容器样式 */
.steps-container {
    margin-bottom: 30px;
}

.step {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}

.step-number {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 15px;
    min-width: 60px;
}

.step-number span {
    font-size: 14px;
    color: #ff9800;
}

.step-number strong {
    font-size: 28px;
    color: #ff9800;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    color: #5d4037;
    margin-bottom: 10px;
    font-size: 18px;
}

.step-content p {
    color: #795548;
    margin-bottom: 10px;
    font-size: 14px;
}

.qr-code {
    background-color: white;
    padding: 10px;
    display: inline-block;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.qr-code img {
    width: 120px;
    height: 120px;
}

.invite-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.invite-code span {
    font-size: 18px;
    font-weight: bold;
    color: #5d4037;
    letter-spacing: 2px;
}

.invite-code img {
    width: 80px;
    height: auto;
}

/* 页脚文本样式 */
.footer-text {
    text-align: center;
    margin-bottom: 30px;
}

.footer-text p {
    color: #795548;
    font-size: 16px;
}

/* 按钮样式 */
.main-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn {
    display: block;
    text-align: center;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #ff9800;
    color: white;
    box-shadow: 0 4px 8px rgba(255, 152, 0, 0.3);
}

.btn-primary:hover {
    background-color: #f57c00;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #8bc34a;
    color: white;
    box-shadow: 0 4px 8px rgba(139, 195, 74, 0.3);
}

.btn-secondary:hover {
    background-color: #7cb342;
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 600px) {
    .content-box {
        padding: 20px;
        border-width: 10px;
    }

    .header h1 {
        font-size: 28px;
    }

    .step {
        flex-direction: column;
    }

    .step-number {
        flex-direction: row;
        margin-bottom: 10px;
        margin-right: 0;
    }

    .step-number span {
        margin-right: 5px;
    }

    .invite-code {
        flex-direction: column;
    }

    .invite-code span {
        margin-bottom: 10px;
    }
}