/* ===== 控制台布局样式 ===== */

.console-body {
    background: #f5f7fa;
    min-height: 100vh;
}

.console-layout {
    display: flex;
    min-height: 100vh;
}

/* ===== 左侧边栏 ===== */
.console-sidebar {
    width: 280px;
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    border-right: 1px solid #eee;
}

/* 用户信息卡片 */
.user-profile-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 24px 20px;
    text-align: center;
    color: white;
    position: relative;
}

.vip-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.vip-badge i {
    color: #ffd700;
}

.user-avatar-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: white;
    padding: 3px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 32px;
}

.user-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.user-invite-code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 16px;
}

.invite-code {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 10px;
    border-radius: 4px;
    font-family: monospace;
    letter-spacing: 1px;
}

.copy-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.copy-btn:hover {
    opacity: 1;
}

.user-points {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px;
    text-align: left;
}

.points-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 8px;
}

.recharge-btn {
    background: #ff6b6b;
    border: none;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background 0.2s;
}

.recharge-btn:hover {
    background: #ee5a5a;
}

.points-value {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
}

.points-hint {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 4px;
}

/* 导航菜单 */
.console-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.console-nav.secondary {
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}

.nav-item i:first-child {
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: #666;
}

.nav-item span {
    flex: 1;
}

.nav-item i.fa-chevron-right {
    font-size: 12px;
    color: #ccc;
    opacity: 0;
    transition: opacity 0.2s;
}

.nav-item:hover {
    background: #f5f7fa;
}

.nav-item:hover i.fa-chevron-right {
    opacity: 1;
}

.nav-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.nav-item.active i:first-child {
    color: white;
}

.nav-item.active i.fa-chevron-right {
    opacity: 1;
    color: white;
}

.nav-tag {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

.nav-tag.hot {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
}

.nav-tag.earn {
    background: linear-gradient(135deg, #ffd93d, #ff9500);
    color: #333;
}

/* 帮助区域 */
.sidebar-help {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    color: white;
    margin-top: auto;
}

.help-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 24px;
}

.help-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.sidebar-help p {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 16px;
    line-height: 1.5;
}

.help-btn {
    display: block;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.help-btn.outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.help-btn.outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.help-btn.primary {
    background: #ff6b6b;
    border: none;
    color: white;
}

.help-btn.primary:hover {
    background: #ee5a5a;
}

/* ===== 主内容区 ===== */
.console-layout .main-content {
    flex: 1;
    margin-left: 280px;
    padding: 30px 40px;
    min-height: 100vh;
}

/* 页面切换 */
.dashboard-page {
    display: none;
}

.dashboard-page.active {
    display: block;
}

/* ===== 控制台首页 ===== */

/* 统计卡片网格 */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card-new {
    background: linear-gradient(135deg, var(--color-start), var(--color-end));
    border-radius: 16px;
    padding: 24px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-card-new.blue {
    --color-start: #667eea;
    --color-end: #764ba2;
}

.stat-card-new.green {
    --color-start: #11998e;
    --color-end: #38ef7d;
}

.stat-card-new.orange {
    --color-start: #f093fb;
    --color-end: #f5576c;
}

.stat-card-value {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.stat-card-label {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 8px;
}

.stat-card-icon-new {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* 服务卡片网格 */
.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.service-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #eee;
    transition: all 0.3s;
}

.service-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.service-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.service-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.service-card-icon.purple {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.service-card-icon.orange {
    background: linear-gradient(135deg, #ff9500, #ff6b6b);
}

.service-card-icon.cyan {
    background: linear-gradient(135deg, #11998e, #38ef7d);
}

.service-card-title {
    flex: 1;
}

.service-card-title h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.service-card-title .tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

.service-card-title .tag.hot {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
}

.service-card-title .tag.recommend {
    background: linear-gradient(135deg, #ffd93d, #ff9500);
    color: #333;
}

.service-card p {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.5;
}

.service-card-actions {
    display: flex;
    gap: 12px;
}

.service-card-actions .btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.service-card-actions .btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
}

.service-card-actions .btn-primary:hover {
    opacity: 0.9;
}

.service-card-actions .btn-outline {
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
}

.service-card-actions .btn-outline:hover {
    border-color: #667eea;
    color: #667eea;
}

/* 软著列表区域 */
.software-list-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #eee;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title small {
    font-size: 13px;
    color: #999;
    font-weight: 400;
}

.section-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f7fa;
    padding: 8px 16px;
    border-radius: 8px;
}

.section-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    width: 180px;
}

.section-search i {
    color: #999;
}

/* 软著列表项 */
.software-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.software-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.software-item:last-child {
    margin-bottom: 0;
}

.software-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-right: 16px;
}

.software-info {
    flex: 1;
}

.software-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.software-name .version {
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

.software-tags {
    display: flex;
    gap: 8px;
}

.software-tag {
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.software-tag.ai {
    background: #e8f4fd;
    color: #1890ff;
}

.software-tag.completed {
    background: #f6ffed;
    color: #52c41a;
}

.software-tag.pending {
    background: #fff7e6;
    color: #fa8c16;
}

.software-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

.software-actions {
    margin-left: 16px;
}

.software-actions .btn {
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    cursor: pointer;
}

.software-actions .btn:hover {
    opacity: 0.9;
}

/* 分页 */
.pagination-info {
    text-align: center;
    color: #999;
    font-size: 13px;
    margin-top: 16px;
}

/* ===== AI生成软著页面 ===== */
.page-back {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
    cursor: pointer;
    text-decoration: none;
}

.page-back:hover {
    color: #667eea;
}

.generate-header {
    text-align: center;
    margin-bottom: 40px;
}

.generate-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: white;
}

.generate-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 8px;
}

.generate-header p {
    color: #666;
    font-size: 15px;
}

/* 表单卡片 */
.form-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #eee;
    max-width: 800px;
    margin: 0 auto;
}

.form-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    padding-left: 12px;
    border-left: 4px solid #667eea;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group-new {
    margin-bottom: 20px;
}

.form-group-new label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-group-new label .required {
    color: #ff4d4f;
}

.form-control-new {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.form-control-new:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control-new::placeholder {
    color: #bbb;
}

.input-with-ai {
    display: flex;
    gap: 12px;
}

.input-with-ai input {
    flex: 1;
}

.ai-fill-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-fill-btn:hover {
    opacity: 0.9;
}

.form-hint-new {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

.form-hint-new i {
    margin-right: 4px;
}

textarea.form-control-new {
    min-height: 120px;
    resize: vertical;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

/* 源码上传 */
.source-code-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #f5f7fa;
    border-radius: 8px;
    margin-top: 20px;
}

.source-code-option .option-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #667eea;
}

.source-code-option .option-info p {
    font-size: 12px;
    color: #999;
}

/* 开关按钮 */
.switch {
    position: relative;
    width: 48px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ddd;
    transition: 0.3s;
    border-radius: 26px;
}

.switch .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.switch input:checked + .slider {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.switch input:checked + .slider:before {
    transform: translateX(22px);
}

/* 提交按钮 */
.submit-section {
    text-align: center;
    margin-top: 32px;
}

.submit-btn {
    padding: 16px 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.submit-hint {
    margin-top: 12px;
    font-size: 13px;
    color: #999;
}

.submit-hint .cost {
    color: #ff6b6b;
    font-weight: 600;
}

.submit-hint .balance {
    color: #52c41a;
}

/* ===== 软著全包页面 ===== */
.package-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.package-title h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.package-title h1 i {
    color: #ff9500;
}

.package-title p {
    color: #666;
    font-size: 14px;
}

.package-info-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}

.package-info-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #ff9500, #ff6b6b);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.package-info-text {
    flex: 1;
}

.package-info-text h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.package-info-text p {
    font-size: 13px;
    color: #666;
}

.package-price {
    text-align: right;
}

.package-price .price {
    font-size: 32px;
    font-weight: 700;
    color: #ff6b6b;
}

.package-price .price-hint {
    font-size: 12px;
    color: #999;
}

/* ===== 软著转让市场 ===== */
.market-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.market-tab {
    padding: 10px 24px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.market-tab:hover {
    border-color: #667eea;
    color: #667eea;
}

.market-tab.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    color: white;
}

.market-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.market-search {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid #ddd;
    padding: 10px 16px;
    border-radius: 8px;
}

.market-search input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 14px;
}

.market-category {
    display: flex;
    gap: 8px;
    background: white;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.market-category button {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.market-category button:hover {
    background: #f5f7fa;
}

.market-category button.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

/* 转让商品卡片 */
.transfer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.transfer-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #eee;
    overflow: hidden;
    transition: all 0.3s;
}

.transfer-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.transfer-card-header {
    padding: 16px;
    position: relative;
}

.transfer-card-save {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.transfer-card-category {
    font-size: 11px;
    color: #667eea;
    margin-bottom: 8px;
}

.transfer-card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
}

.transfer-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.transfer-card-tags span {
    padding: 2px 8px;
    background: #f5f7fa;
    border-radius: 4px;
    font-size: 10px;
    color: #666;
}

.transfer-card-body {
    padding: 0 16px 16px;
}

.transfer-card-price {
    margin-bottom: 12px;
}

.transfer-card-price .current {
    font-size: 24px;
    font-weight: 700;
    color: #ff6b6b;
}

.transfer-card-price .original {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

.transfer-card-actions {
    display: flex;
    gap: 8px;
}

.transfer-card-actions button {
    flex: 1;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s;
}

.transfer-card-actions .btn-consult {
    background: white;
    border: 1px solid #ddd;
    color: #666;
}

.transfer-card-actions .btn-consult:hover {
    border-color: #667eea;
    color: #667eea;
}

.transfer-card-actions .btn-buy {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
}

/* ===== 积分充值页面 ===== */
.recharge-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.recharge-item {
    background: white;
    border: 2px solid #eee;
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.recharge-item:hover {
    border-color: #667eea;
}

.recharge-item.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

.recharge-item .discount {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

.recharge-item .points {
    font-size: 32px;
    font-weight: 700;
    color: #ffd93d;
    margin-bottom: 4px;
}

.recharge-item .points-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.recharge-item .generate-hint {
    background: #f5f7fa;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    color: #666;
    margin-bottom: 12px;
}

.recharge-item .price {
    font-size: 24px;
    font-weight: 700;
    color: #ff6b6b;
}

.recharge-item .original-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.recharge-item .buy-btn {
    margin-top: 12px;
    padding: 8px 24px;
    background: linear-gradient(135deg, #ffd93d, #ff9500);
    border: none;
    border-radius: 20px;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* ===== 邀请好友页面 ===== */
.invite-header {
    margin-bottom: 30px;
}

.invite-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.invite-header p {
    color: #666;
    font-size: 14px;
}

.invite-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #eee;
    margin-bottom: 24px;
}

.invite-code-section {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
}

.invite-code-box {
    flex: 1;
}

.invite-code-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.invite-code-value {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 4px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.copy-code-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.invite-link-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f5f7fa;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.invite-link-box span {
    flex: 1;
    font-size: 13px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.invite-reward-hint {
    background: linear-gradient(135deg, #ffd93d, #ff9500);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
}

.invite-qrcode {
    width: 120px;
    height: 120px;
    background: #f5f7fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 邀请统计 */
.invite-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.invite-stat-card {
    background: linear-gradient(135deg, var(--color-start), var(--color-end));
    border-radius: 12px;
    padding: 20px;
    color: white;
    text-align: center;
}

.invite-stat-card.purple {
    --color-start: #667eea;
    --color-end: #764ba2;
}

.invite-stat-card.blue {
    --color-start: #4facfe;
    --color-end: #00f2fe;
}

.invite-stat-card.green {
    --color-start: #11998e;
    --color-end: #38ef7d;
}

.invite-stat-card.orange {
    --color-start: #f093fb;
    --color-end: #f5576c;
}

.invite-stat-card .icon {
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.invite-stat-card .value {
    font-size: 32px;
    font-weight: 700;
}

.invite-stat-card .label {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 4px;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1400px) {
    .transfer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .recharge-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .console-sidebar {
        width: 240px;
    }
    
    .console-layout .main-content {
        margin-left: 240px;
    }
    
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .console-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .console-sidebar.active {
        transform: translateX(0);
    }
    
    .console-layout .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .transfer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recharge-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .invite-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .service-cards {
        grid-template-columns: 1fr;
    }
    
    .transfer-grid {
        grid-template-columns: 1fr;
    }
    
    .recharge-grid {
        grid-template-columns: 1fr;
    }
    
    .invite-stats {
        grid-template-columns: 1fr;
    }
    
    .invite-code-section {
        flex-direction: column;
    }
}

/* ===== 支付模态框样式 ===== */
.pay-info {
    margin-bottom: 24px;
}

.pay-product {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
}

.pay-amount {
    font-size: 36px;
    font-weight: 700;
    color: #ff6b6b;
}

.qrcode-wrapper {
    width: 220px;
    height: 220px;
    margin: 0 auto 20px;
    background: #f5f7fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.qrcode-wrapper canvas {
    display: none;
    border-radius: 8px;
}

.qrcode-wrapper img {
    border-radius: 8px;
}

.qrcode-loading {
    text-align: center;
    color: #999;
}

.qrcode-loading i {
    font-size: 32px;
    margin-bottom: 12px;
    color: #667eea;
}

.qrcode-loading p {
    font-size: 13px;
}

.pay-tips {
    margin-bottom: 16px;
}

.pay-tips p {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.pay-tips p i {
    color: #52c41a;
    margin-right: 6px;
}

.pay-status {
    color: #1890ff !important;
    font-weight: 500;
}

.pay-order-info {
    font-size: 12px;
    color: #999;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

/* 模态框通用样式增强 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-header h3 i {
    color: #667eea;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f7fa;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s;
}

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

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid #eee;
}
