.referral-section { width: 100%; max-width: 100%; box-sizing: border-box; border-radius: 14px; box-shadow: 0 2px 10px rgba(26, 25, 24, 0.03); background-color: var(--bg-white, #ffffff); overflow: hidden; } .referral-section__inner { display: flex; flex-direction: column; gap: 12px; padding: 16px; width: 100%; box-sizing: border-box; } .referral-section__header { display: flex; flex-direction: row; align-items: center; justify-content: space-between; width: 100%; } .referral-section__title { font-size: var(--font-size-md, 16px); font-family: var(--font-family); font-weight: 700; color: var(--text-dark); flex-shrink: 0; } .referral-section__link { display: flex; flex-direction: row; align-items: center; gap: 2px; flex-shrink: 0; } .referral-section__records-link { font-size: var(--font-size-base, 14px); font-family: var(--font-family); font-weight: 400; color: var(--accent-orange); line-height: 1.4; white-space: nowrap; } .referral-section__link-arrow { width: 14px; height: 14px; display: block; flex-shrink: 0; } /* 推荐码行:grid 避免小程序 flex 宽度计算异常 */ .referral-section__code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; width: 100%; box-sizing: border-box; } .referral-section__code-box { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 10px 12px; border-radius: 8px; background-color: #f2f5f9; box-sizing: border-box; overflow: hidden; } .referral-section__code-label { display: block; font-size: var(--font-size-xs, 11px); font-family: var(--font-family); font-weight: 400; color: var(--text-muted); line-height: 1.4; } .referral-section__code-value { display: block; width: 100%; font-size: var(--font-size-base, 14px); font-family: var(--font-family); font-weight: 700; color: var(--primary-dark); line-height: 1.3; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .referral-section__copy-btn { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 4px; height: 100%; min-height: 52px; padding: 0 14px; border-radius: 10px; background-color: var(--accent-orange); box-sizing: border-box; } /* 例图:双矩形复制图标 */ .referral-section__copy-icon { position: relative; width: 14px; height: 14px; flex-shrink: 0; } .referral-section__copy-sheet { position: absolute; width: 9px; height: 9px; border: 1.5px solid #ffffff; border-radius: 2px; box-sizing: border-box; } .referral-section__copy-sheet--back { right: 0; bottom: 0; opacity: 0.85; } .referral-section__copy-sheet--front { left: 0; top: 0; background-color: rgba(255, 255, 255, 0.2); } .referral-section__copy-text { display: block; font-size: var(--font-size-base, 14px); font-family: var(--font-family); font-weight: 600; color: var(--text-inverse); line-height: 1.4; white-space: nowrap; } .referral-section__stats { display: flex; flex-direction: row; align-items: center; width: 100%; box-sizing: border-box; } .referral-section__stat { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; } .referral-section__stat-num { display: block; font-size: var(--font-size-lg, 18px); font-family: var(--font-family); font-weight: 700; line-height: 1.2; } .referral-section__stat-num--orange { color: var(--accent-orange); } .referral-section__stat-num--green { color: var(--success-green); } .referral-section__stat-num--amber { color: #f39c12; } .referral-section__stat-label { display: block; font-size: var(--font-size-xs, 11px); font-family: var(--font-family); font-weight: 400; color: var(--text-light); line-height: 1.4; white-space: nowrap; } .referral-section__stat-divider { width: 1px; height: 28px; flex-shrink: 0; background-color: var(--border-light); }