/* 推广页面样式 */

/* 顶部导航 */
.promote-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #ff6b35;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.promote-header .page-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

/* 收益展示区 */
.earnings-section {
    margin-top: 56px;
    padding: 20px;
    background: #ff6b35;
    color: white;
}

.earnings-card {
    background: white;
    border-radius: 4px;
    padding: 20px;
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
}

.earnings-item {
    flex: 1;
    text-align: center;
}

.earnings-label {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 8px;
}

.earnings-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ff6b35;
    margin: 0;
}

.earnings-divider {
    width: 1px;
    height: 40px;
    background: #e5e5e5;
}

/* 统计行 */
.stats-row {
    display: flex;
    gap: 10px;
}

.stat-item {
    flex: 1;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    padding: 15px 10px;
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 5px 0;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.9);
    margin: 0;
}

/* 推广规则 */
.rules-section {
    padding: 15px;
    margin-top: 56px;
}

.section-card {
    background: white;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ff6b35;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.reward-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reward-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 4px;
}

.reward-icon {
    font-size: 1.8rem;
    min-width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
}

.reward-content h4 {
    font-size: 1rem;
    color: #333;
    margin: 0 0 5px 0;
}

.reward-content p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.highlight {
    color: #ff6b35;
    font-weight: 700;
}

/* 二维码区域 */
.qrcode-section {
    padding: 0 15px 15px;
}

.qrcode-desc {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    margin-bottom: 15px;
}

.qrcode-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.qrcode-box {
    width: 200px;
    height: 200px;
    padding: 15px;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.invite-code {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

.invite-code span {
    color: #ff6b35;
    font-size: 1.2rem;
}

/* 分享按钮 */
.share-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.share-btn {
    flex: 1;
    height: 44px;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.save-btn {
    background: #ff6b35;
    color: white;
}

.copy-btn {
    background: #ff6b35;
    color: white;
}

.share-btn:active {
    opacity: 0.8;
}

.btn-icon {
    font-size: 1.1rem;
}

/* 分享链接框 */
.share-link-box {
    margin-top: 15px;
}

.share-link-input {
    width: 100%;
    height: 40px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 0 12px;
    font-size: 0.85rem;
    color: #666;
    background: #f9f9f9;
}

/* 推广记录 */
.records-section {
    padding: 0 15px 15px;
}

.records-list {
    min-height: 100px;
}

.record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #f5f5f5;
}

.record-item:last-child {
    border-bottom: none;
}

.record-info {
    flex: 1;
}

.record-name {
    font-size: 0.95rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 5px;
}

.record-time {
    font-size: 0.8rem;
    color: #999;
}

.record-reward {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ff6b35;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.3;
}

.empty-state p {
    color: #999;
    margin: 5px 0;
}

.empty-tip {
    font-size: 0.85rem;
}

/* 推广说明 */
.help-section {
    padding: 0 15px 0px;
    margin-top: 65px;

}

.help-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.help-item {
    display: flex;
    gap: 12px;
}

.help-number {
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ff6b35;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.help-text {
    flex: 1;
}

.help-text h4 {
    font-size: 0.95rem;
    color: #333;
    margin: 0 0 5px 0;
}

.help-text p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* 弹窗样式 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
}

.modal-overlay.show {
    display: block;
}

.modal-box {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    padding: 20px;
    min-width: 280px;
    max-width: 90%;
    z-index: 2001;
    text-align: center;
}

.modal-box.show {
    display: block;
}

.modal-content {
    font-size: 1rem;
    color: #333;
    margin-bottom: 20px;
}

.modal-btn {
    width: 100%;
    height: 40px;
    background: #ff6b35;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

/* 响应式设计 */
@media (min-width: 768px) {
    .promote-header {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }

    .earnings-section {
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .rules-section,
    .qrcode-section,
    .records-section,
    .help-section {
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
}
