* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    padding-bottom: 30px;
}

/* 头部Banner */
.header-banner {
    background: linear-gradient(135deg, #7ed321 0%, #b8e986 100%);
    padding-top: env(safe-area-inset-top);
    position: relative;
    overflow: hidden;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    position: relative;
}

.back-btn {
    position: absolute;
    left: 16px;
    font-size: 20px;
    color: #fff;
    cursor: pointer;
}

.page-title {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
}

.banner-image {
    height: 180px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-illustration {
    text-align: center;
    position: relative;
}

.dog-character {
    font-size: 80px;
    animation: bounce 2s infinite;
}

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

.packages {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.pkg {
    font-size: 30px;
    animation: float 3s ease-in-out infinite;
}

.pkg.pink {
    animation-delay: 0.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

/* 主卡片 */
.main-card {
    background: #fff;
    border-radius: 20px 20px 0 0;
    margin-top: -20px;
    padding: 24px 20px;
    position: relative;
    z-index: 1;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    color: #1f1f1f;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 16px;
}

.order-input {
    width: 100%;
    height: 48px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 14px;
    background: #f9f9f9;
    outline: none;
    transition: all 0.3s;
}

.order-input:focus {
    border-color: #52c41a;
    background: #fff;
}

.order-input::placeholder {
    color: #999;
}

.claim-btn {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.claim-btn:active {
    transform: scale(0.98);
}

.claim-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.record-link {
    text-align: center;
    margin-top: 16px;
}

.record-link a {
    color: #52c41a;
    font-size: 14px;
    text-decoration: none;
}

/* 活动说明 */
.activity-section {
    background: #fff;
    margin-top: 12px;
    padding: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: #1f1f1f;
}

.refresh-icon {
    font-size: 16px;
    cursor: pointer;
}

.process-title {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #1f1f1f;
    margin-bottom: 20px;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0 8px;
}

.step-num {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ff8c42 0%, #fa8c16 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    margin: 0 auto 8px;
}

.step-text {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

/* 详细步骤 */
.detail-step {
    background: #fafafa;
    border-radius: 12px;
    padding: 16px;
}

.step-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff8c42 0%, #fa8c16 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.step-desc {
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
}

.step-screenshot {
    background: #f0f0f0;
    border-radius: 8px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-placeholder {
    color: #999;
    font-size: 14px;
}

/* 弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 100;
    align-items: flex-end;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #fff;
    width: 100%;
    max-height: 80vh;
    border-radius: 20px 20px 0 0;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h3 {
    font-size: 17px;
    font-weight: 600;
}

.close-btn {
    font-size: 20px;
    color: #999;
    cursor: pointer;
}

.record-list {
    padding: 16px 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.record-info {
    flex: 1;
}

.record-order {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.record-time {
    font-size: 12px;
    color: #999;
}

.record-points {
    font-size: 16px;
    font-weight: 600;
    color: #52c41a;
}

.record-empty {
    text-align: center;
    padding: 40px 0;
    color: #999;
}

/* Toast提示 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 200;
    transition: all 0.3s;
    opacity: 0;
}

.toast.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}
