/* 可爱卡哇伊风格 - 分销系统用户端样式 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap');

body {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 可爱的背景装饰 */
body::before {
    content: '🌸';
    position: fixed;
    top: 10%;
    left: 5%;
    font-size: 80px;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

body::after {
    content: '💰';
    position: fixed;
    bottom: 10%;
    right: 5%;
    font-size: 80px;
    opacity: 0.15;
    animation: float 8s ease-in-out infinite reverse;
    pointer-events: none;
}

/* 更多可爱装饰 */
.container::before {
    content: '✨';
    position: fixed;
    top: 30%;
    right: 10%;
    font-size: 50px;
    opacity: 0.1;
    animation: twinkle 3s ease-in-out infinite;
    pointer-events: none;
}

.container::after {
    content: '🎀';
    position: fixed;
    bottom: 30%;
    left: 10%;
    font-size: 50px;
    opacity: 0.1;
    animation: twinkle 4s ease-in-out infinite 1s;
    pointer-events: none;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.2; transform: scale(1.2); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* 头部 */
.header {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #fff;
    padding: 25px 0;
    text-align: center;
    font-size: 26px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.3);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '✨';
    position: absolute;
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    animation: sparkle 2s ease-in-out infinite;
}

.header::after {
    content: '✨';
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    animation: sparkle 2s ease-in-out infinite 1s;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.5; transform: translateY(-50%) scale(1); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.2); }
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 25px auto;
    padding: 0 15px;
}

/* 面板 - 可爱卡片风格 */
.panel {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(255, 154, 158, 0.2);
    padding: 30px;
    margin-bottom: 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.panel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 182, 193, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.panel:hover {
    box-shadow: 0 12px 35px rgba(255, 154, 158, 0.3);
    transform: translateY(-5px) scale(1.01);
}

.panel-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 25px;
    color: #ff6b9d;
    border-bottom: 3px solid #ff6b9d;
    padding-bottom: 15px;
    position: relative;
    z-index: 1;
}

.panel-title::before {
    content: '💖';
    margin-right: 10px;
    font-size: 24px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* 佣金看板 - 可爱卡片 */
.commission-board {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.commission-item {
    text-align: center;
    flex: 1;
    padding: 25px;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 20%);
    border-radius: 15px;
    min-width: 150px;
    box-shadow: 0 4px 15px rgba(252, 182, 159, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.commission-item:hover {
    transform: translateY(-5px) rotate(2deg);
    box-shadow: 0 8px 25px rgba(252, 182, 159, 0.3);
}

.commission-item::before {
    content: '✨';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    opacity: 0.6;
}

.commission-value {
    font-size: 36px;
    font-weight: bold;
    background: linear-gradient(135deg, #ff6b9d 0%, #c471ed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 15px 0;
    text-shadow: 2px 2px 4px rgba(255, 107, 157, 0.1);
}

.commission-label {
    color: #666;
    font-size: 15px;
    font-weight: 500;
}

.commission-label::before {
    content: '🌟 ';
}

/* 关系网络 - 可爱背景 */
.relation-network {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    padding: 30px;
    border-radius: 20px;
    min-height: 350px;
    overflow-x: auto;
    position: relative;
}

.relation-network::before {
    content: '👥';
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 30px;
    opacity: 0.3;
}

.tree-node {
    display: inline-block;
    text-align: center;
    margin: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tree-node:hover {
    transform: scale(1.15) rotate(5deg);
}

.tree-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 4px solid #fff;
    box-shadow: 0 6px 15px rgba(255, 107, 157, 0.3);
    transition: all 0.3s ease;
}

.tree-node:hover .tree-avatar {
    border-color: #ff6b9d;
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.5);
}

.tree-nickname {
    font-size: 14px;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    color: #333;
    background: #fff;
    padding: 5px 10px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 按钮 - 可爱风格 */
.btn-primary {
    background: linear-gradient(135deg, #ff6b9d 0%, #c471ed 100%);
    border: none;
    border-radius: 25px;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '💝';
    margin-right: 8px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff5a8d 0%, #b461dd 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-default {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border: none;
    border-radius: 20px;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-default:hover {
    background: linear-gradient(135deg, #98ddd8 0%, #fec6d3 100%);
    color: #333;
    transform: scale(1.05);
}

.btn-block {
    width: 100%;
}

/* 表格 - 可爱风格 */
.table {
    margin-top: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.table thead {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #fff;
}

.table thead th {
    border: none;
    padding: 18px;
    font-weight: 600;
    text-align: center;
}

.table tbody tr {
    transition: all 0.2s ease;
    background: #fff;
}

.table tbody tr:nth-child(even) {
    background: #fef9f9;
}

.table tbody tr:hover {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe9f3 100%);
    transform: scale(1.01);
}

.table tbody td {
    padding: 18px;
    border-top: 1px solid #ffe9f3;
    vertical-align: middle;
    text-align: center;
}

/* 功能卡片导航 */
.feature-card {
    display: block;
    background: linear-gradient(135deg, #fff 0%, #ffe9f3 100%);
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.15);
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ff6b9d 0%, #c471ed 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.feature-card:hover::before {
    opacity: 0.1;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
    border-color: #ff6b9d;
    text-decoration: none;
}

.feature-card.active {
    background: linear-gradient(135deg, #ff6b9d 0%, #c471ed 100%);
    border-color: #ff6b9d;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

.feature-card.active .feature-icon,
.feature-card.active .feature-title,
.feature-card.active .feature-desc {
    color: #fff;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    position: relative;
    z-index: 1;
    animation: bounce 2s ease-in-out infinite;
}

.feature-card:hover .feature-icon {
    animation: bounce 0.6s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.feature-desc {
    font-size: 13px;
    color: #999;
    position: relative;
    z-index: 1;
}

.feature-card.active .feature-desc {
    color: rgba(255, 255, 255, 0.9);
}

/* 选项卡 - 可爱风格 */
.nav-tabs {
    border-bottom: 3px solid #ffe9f3;
    margin-bottom: 25px;
}

.nav-tabs > li > a {
    color: #666;
    border: none;
    border-radius: 15px 15px 0 0;
    padding: 15px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 5px;
}

.nav-tabs > li > a:hover {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe9f3 100%);
    color: #ff6b9d;
    transform: translateY(-2px);
}

.nav-tabs > li.active > a {
    color: #ff6b9d;
    background: #fff;
    border: none;
    border-bottom: 4px solid #ff6b9d;
    font-weight: 700;
}

.nav-tabs > li > a::before {
    content: '🎀 ';
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-tabs > li.active > a::before,
.nav-tabs > li > a:hover::before {
    opacity: 1;
}

/* 表单 - 可爱风格 */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    font-weight: 600;
    color: #ff6b9d;
    margin-bottom: 10px;
    display: block;
    font-size: 15px;
}

.form-group label::before {
    content: '🌸 ';
    margin-right: 5px;
}

.form-control {
    border-radius: 15px;
    border: 2px solid #ffe9f3;
    padding: 14px 20px;
    transition: all 0.3s ease;
    font-size: 15px;
    background: #fff;
}

.form-control:focus {
    border-color: #ff6b9d;
    box-shadow: 0 0 0 5px rgba(255, 107, 157, 0.1);
    outline: none;
    background: #fffaf8;
}

.form-control::placeholder {
    color: #ffb3c6;
}

/* 输入组 */
.input-group {
    margin-top: 15px;
}

.input-group-btn .btn {
    border-radius: 0 15px 15px 0;
    padding: 14px 25px;
}

/* 信息文本 */
.info-text {
    color: #ff6b9d;
    font-size: 13px;
    margin-top: 8px;
    line-height: 1.6;
    padding: 8px 12px;
    background: #fff5f8;
    border-radius: 10px;
    border-left: 3px solid #ff6b9d;
}

.info-text::before {
    content: '💡 ';
}

/* 提现表单 */
.withdraw-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 25px;
    background: linear-gradient(135deg, #fff5f8 0%, #ffe9f3 100%);
    border-radius: 20px;
}

/* 标签 - 可爱风格 */
.label {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.label-success {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
}

.label-warning {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #333;
}

.label-danger {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #fff;
}

.label-primary {
    background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
    color: #fff;
}

.label-info {
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    color: #333;
}

/* 用户信息卡片 */
.user-info-card {
    background: linear-gradient(135deg, #fff 0%, #ffe9f3 100%);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.15);
}

.user-info-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.3);
    margin-bottom: 15px;
}

.user-info-card p {
    margin: 8px 0;
    font-size: 16px;
    color: #666;
}

.user-status {
    display: inline-block;
    padding: 6px 20px;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 20px;
    color: #333;
    font-weight: 600;
    margin-top: 10px;
}

/* 邀请链接框 */
#invite_url {
    background: linear-gradient(135deg, #fff 0%, #ffe9f3 100%);
    border: 2px dashed #ff6b9d;
    font-family: 'Courier New', monospace;
    color: #ff6b9d;
    font-weight: 600;
}

/* 响应式 */
@media (max-width: 768px) {
    .commission-board {
        flex-direction: column;
    }
    
    .commission-item {
        margin-bottom: 15px;
    }
    
    .panel {
        padding: 20px 15px;
    }
    
    .header {
        font-size: 20px;
        padding: 20px 0;
    }
    
    .commission-value {
        font-size: 28px;
    }
}

/* 可爱的滚动条 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #ffe9f3;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff6b9d 0%, #c471ed 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff5a8d 0%, #b461dd 100%);
}

/* 加载动画 - 可爱风格 */
.loading {
    text-align: center;
    padding: 60px;
    color: #ff6b9d;
    font-size: 18px;
    font-weight: 600;
}

.loading::before {
    content: '🎀';
    display: block;
    font-size: 60px;
    margin-bottom: 20px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 空状态 - 可爱提示 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state::before {
    content: '🎈';
    display: block;
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
    animation: float 3s ease-in-out infinite;
}

/* 成功提示 */
.success-msg {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
    padding: 15px 25px;
    border-radius: 15px;
    margin: 20px 0;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(168, 237, 234, 0.3);
}

.success-msg::before {
    content: '✅ ';
    font-size: 20px;
}

/* 警告提示 */
.warning-msg {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #333;
    padding: 15px 25px;
    border-radius: 15px;
    margin: 20px 0;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(252, 182, 159, 0.3);
}

.warning-msg::before {
    content: '⚠️ ';
    font-size: 20px;
}

/* 选择框美化 */
select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ff6b9d' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

/* 复制按钮特殊样式 */
.btn-copy {
    background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
    color: #fff;
    border: none;
    border-radius: 0 15px 15px 0;
    padding: 14px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: linear-gradient(135deg, #ebb2db 0%, #96b1de 100%);
    transform: scale(1.05);
}

.btn-copy::before {
    content: '📋 ';
}

/* 账户设置区域 */
.settings-section {
    background: linear-gradient(135deg, #fff 0%, #ffe9f3 100%);
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 20px;
}

/* 数据迁移区域 */
.migrate-section {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 20%);
    padding: 25px;
    border-radius: 20px;
}

/* 提示气泡 */
.tooltip-bubble {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    cursor: help;
}

.tooltip-bubble::before {
    content: '❓';
    font-size: 16px;
    opacity: 0.6;
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 可爱的分隔线 */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #ff6b9d, transparent);
    margin: 30px 0;
}

/* 输入框图标 */
.form-group.has-icon {
    position: relative;
}

.form-group.has-icon::before {
    position: absolute;
    left: 15px;
    top: 45px;
    font-size: 20px;
    z-index: 1;
}

.form-group.has-icon.money::before {
    content: '💰';
}

.form-group.has-icon.password::before {
    content: '🔐';
}

.form-group.has-icon .form-control {
    padding-left: 50px;
}

