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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(180deg, #f5f7fa 0%, #fafbfc 100%);
    color: #1d1d1f;
   /*  line-height: 1.47059; */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.commission-page {
   
    
}

/* 统计卡片区域 - 苹果风格 */
.stats-section {
    padding: 24px 20px;
    background: transparent;
}

.stats-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    display: flex;
    gap: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 0.5px solid rgba(0, 0, 0, 0.04);
}

.stat-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
}

.stat-icon-wrapper {
    flex-shrink: 0;
}

.stat-icon {
    width: 52px;
    height: 52px;
    background-size: 60% 60%;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 14px;
    background-color: rgba(0, 122, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-item:nth-child(1) .stat-icon {
    background-color: rgba(0, 122, 255, 0.1);
}

.stat-item:nth-child(2) .stat-icon {
    background-color: rgba(52, 199, 89, 0.1);
}

.stat-item:nth-child(3) .stat-icon {
    background-color: rgba(255, 149, 0, 0.1);
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-label {
    font-size: 13px;
    color: #86868b;
    margin-bottom: 6px;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.stat-value {
    font-size: 22px;
    font-weight: 600;
    color: #1d1d1f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.02em;
}

.stat-value-with-action {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.withdraw-btn {
    padding: 6px 16px;
    background: #FF9500;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(255, 149, 0, 0.2);
}

.withdraw-btn:hover {
    background: #FF8500;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 149, 0, 0.3);
}

.withdraw-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(255, 149, 0, 0.2);
}

/* 邀请链接区域 */
.invite-section {
    padding: 0 20px;
    margin-top: 20px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.title-icon {
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    opacity: 0.8;
}

.invite-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 0.5px solid rgba(0, 0, 0, 0.04);
}

.invite-link-box {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.invite-link-input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 15px;
    color: #1d1d1f;
    background-color: #f5f5f7;
    outline: none;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}

.invite-link-input:focus {
    border-color: #007AFF;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.copy-btn {
    padding: 14px 28px;
    background: #007AFF;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    letter-spacing: -0.01em;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.2);
}

.copy-btn:hover {
    background: #0051D5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.copy-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 122, 255, 0.2);
}

.copy-icon {
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
}

/* 分佣比例区域 */
.commission-rate {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px 20px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.08) 0%, rgba(88, 86, 214, 0.08) 100%);
    border-radius: 16px;
    border: 0.5px solid rgba(0, 122, 255, 0.1);
}

.rate-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.rate-icon {
    width: 64px;
    height: 64px;
    background-size: 70% 70%;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
    background-color: rgba(0, 122, 255, 0.15);
    border-radius: 16px;
}

.rate-info {
    text-align: center;
    width: 100%;
}

.rate-label {
    font-size: 14px;
    color: #86868b;
    margin-bottom: 8px;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.rate-value {
    font-size: 48px;
    font-weight: 700;
    color: #007AFF;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.rate-desc {
    font-size: 16px;
    color: #86868b;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.rate-desc:last-child {
    margin-bottom: 0;
}

/* 佣金记录区域 */
.record-section {
    padding: 0 20px;
    margin-top: 20px;
}

.record-list {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 0.5px solid rgba(0, 0, 0, 0.04);
}

.record-item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.06);
    transition: background-color 0.2s ease;
}

.record-item:last-child {
    border-bottom: none;
}

.record-item:hover {
    background-color: #fafafa;
}

.record-item:active {
    background-color: #f5f5f7;
}

.record-icon {
    width: 44px;
    height: 44px;
    background-size: 60% 60%;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 12px;
    margin-right: 14px;
    flex-shrink: 0;
    background-color: rgba(0, 122, 255, 0.1);
}

.record-item:nth-child(odd) .record-icon {
    background-color: rgba(52, 199, 89, 0.1);
}

.record-content {
    flex: 1;
    min-width: 0;
}

.record-title {
    font-size: 16px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.record-time {
    font-size: 13px;
    color: #86868b;
    letter-spacing: -0.01em;
}

.record-amount {
    font-size: 17px;
    font-weight: 600;
    color: #FF3B30;
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.record-amount.positive {
    color: #34C759;
}

.empty-record {
    padding: 80px 20px;
    text-align: center;
    color: #86868b;
    font-size: 15px;
}

.empty-icon {
    width: 80px;
    height: 80px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto 20px;
    opacity: 0.4;
}

/* 提示消息 - 苹果风格 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    letter-spacing: -0.01em;
}

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

/* 响应式设计 */
@media (max-width: 480px) {
    .stats-card {
        flex-direction: column;
        gap: 24px;
        padding: 24px 20px;
    }

    .stat-item {
        justify-content: flex-start;
    }
    
    .stat-value-with-action {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .withdraw-btn {
        width: 100%;
        justify-content: center;
    }

    .invite-link-box {
        flex-direction: column;
    }

    .copy-btn {
        width: 100%;
        justify-content: center;
    }

    .rate-value {
        font-size: 40px;
    }
    
    .modal-container {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 85vh;
    }
    
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-submit {
        width: 100%;
    }
}

/* 提现弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #ffffff;
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.modal-overlay.show .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 20px;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.06);
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.02em;
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    padding: 0;
}

.modal-close:hover {
    background-color: #f5f5f7;
}

.modal-close:active {
    background-color: #e5e5e7;
}

.close-icon {
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
    opacity: 0.6;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
    letter-spacing: -0.01em;
}

.form-required {
    color: #FF3B30;
    margin-left: 2px;
}

.form-amount-display {
    font-size: 32px;
    font-weight: 700;
    color: #FF9500;
    letter-spacing: -0.03em;
    padding: 16px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.08) 0%, rgba(255, 149, 0, 0.04) 100%);
    border-radius: 12px;
}

.form-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 16px;
    font-size: 16px;
    font-weight: 500;
    color: #86868b;
    z-index: 1;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
   
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 16px;
    color: #1d1d1f;
    background-color: #f5f5f7;
    outline: none;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
    font-family: inherit;
}

.form-input:focus {
    border-color: #007AFF;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.form-input::placeholder {
    color: #86868b;
}

.form-input-wrapper .form-input {
    padding-left: 36px;
}

.form-hint {
    font-size: 12px;
    color: #86868b;
    margin-top: -4px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 0.5px solid rgba(0, 0, 0, 0.06);
}

.btn-cancel,
.btn-submit {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}

.btn-cancel {
    background: #f5f5f7;
    color: #1d1d1f;
}

.btn-cancel:hover {
    background: #e5e5e7;
}

.btn-cancel:active {
    background: #d1d1d6;
}

.btn-submit {
    background: #007AFF;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.2);
}

.btn-submit:hover {
    background: #0051D5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 122, 255, 0.2);
}

.btn-submit:disabled {
    background: #c7c7cc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 选择文本样式 */
::selection {
    background-color: rgba(0, 122, 255, 0.2);
    color: #1d1d1f;
}
