.yooox-aff-wrap { max-width: 1100px; margin: 20px auto; font-size: 14px; padding: 10px; }
.yooox-aff-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.yooox-aff-header h2 { margin: 0; }
.yooox-aff-role-badge { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 20px; font-size: 14px; font-weight: 500; }
.yooox-aff-role-badge .role-label { color: rgba(0,0,0,0.6); font-weight: normal; }
.yooox-aff-role-badge .role-name { font-weight: 600; }
.yooox-aff-role-badge.role-employee { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; }
.yooox-aff-role-badge.role-employee .role-label { color: rgba(255,255,255,0.8); }
.yooox-aff-role-badge.role-l1 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); color: #fff; }
.yooox-aff-role-badge.role-l1 .role-label { color: rgba(255,255,255,0.8); }
.yooox-aff-role-badge.role-l2 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); color: #fff; }
.yooox-aff-role-badge.role-l2 .role-label { color: rgba(255,255,255,0.8); }
.yooox-aff-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 20px; }
.yooox-aff-stat-card { background: #fff; border: 1px solid #e6e6e6; border-radius: 12px; padding: 16px; box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06); }
.yooox-aff-stat-card .stat-label { color: #64748b; font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; }
.yooox-aff-stat-card .stat-value { margin-top: 6px; font-size: 22px; font-weight: 700; color: #0f172a; }

.yooox-aff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.yooox-aff-card { background: #fff; border: 1px solid #e6e6e6; border-radius: 12px; padding: 18px; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08); }
.yooox-aff-card--full { grid-column: 1 / -1; }
.yooox-aff-card h3 { margin: 0 0 12px; font-size: 16px; }
.yooox-aff-invite { display: flex; gap: 8px; align-items: center; }
.yooox-aff-invite input { flex: 1; padding: 8px 10px; border: 1px solid #ddd; border-radius: 6px; }
.yooox-aff-copy { padding: 8px 12px; border: 0; background: #2563eb; color: #fff; border-radius: 6px; cursor: pointer; }
.yooox-aff-table { width: 100%; border-collapse: collapse; }
.yooox-aff-table th, .yooox-aff-table td { border-bottom: 1px solid #eee; padding: 8px 6px; text-align: left; }
.yooox-aff-withdraw { margin-top: 16px; }
.yooox-aff-withdraw-form { display: grid; gap: 8px; }
.yooox-aff-withdraw-form input, .yooox-aff-withdraw-form textarea { padding: 8px 10px; border: 1px solid #ddd; border-radius: 6px; }
.yooox-aff-withdraw-submit { padding: 8px 12px; border: 0; background: #16a34a; color: #fff; border-radius: 6px; cursor: pointer; }
.yooox-aff-withdraw-message { margin-top: 8px; color: #2563eb; }

@media (max-width: 720px) {
	.yooox-aff-invite { flex-direction: column; align-items: stretch; }
	.yooox-aff-card--full { grid-column: auto; }
}

/* 模态框样式 */
.yooox-aff-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 9999; }
.yooox-aff-modal-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); }
.yooox-aff-modal-content { position: relative; z-index: 10000; background: #fff; border-radius: 12px; padding: 32px; max-width: 400px; margin: 20vh auto; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
.yooox-aff-modal-icon { width: 60px; height: 60px; margin: 0 auto 16px; background: #16a34a; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: bold; }
.yooox-aff-modal-content h3 { margin: 0 0 8px; font-size: 20px; color: #333; }
.yooox-aff-modal-content p { margin: 0 0 24px; color: #666; font-size: 14px; }
.yooox-aff-modal-close { padding: 10px 32px; border: 0; background: #2563eb; color: #fff; border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 500; transition: background 0.2s; }
.yooox-aff-modal-close:hover { background: #1d4ed8; }
