/**
 * Home 页面 V2 样式 - 精确复刻图片布局
 * 现代化卡片式设计，支持响应式布局
 */

/* ==================== 变量定义 ==================== */
:root {
    --v2-primary: #0066FF;
    --v2-primary-light: #E8F0FF;
    --v2-success: #52c41a;
    --v2-warning: #faad14;
    --v2-danger: #ff4d4f;
    --v2-text-primary: #1f2329;
    --v2-text-secondary: #646a73;
    --v2-text-muted: #8f959e;
    --v2-bg-white: #ffffff;
    --v2-bg-gray: #f5f6f7;
    --v2-border: #e5e6eb;
    --v2-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --v2-radius: 8px;
}

/* ==================== 主容器 ==================== */
.home-v2-wrapper {
    padding: 20px;
    max-width: 1600px;
    margin: 0 auto;
    background: var(--v2-bg-gray);
    min-height: calc(100vh - 120px);
}

/* 修复顶部导航栏遮挡问题 - 为主内容区域添加顶部间距 */
.el-main.home-main {
    padding-top: 60px !important;
}

/* ==================== 侧边栏和主内容区域布局 ==================== */
.el-container > .el-aside {
    width: 180px !important;
    transition: width 0.3s;
}

.el-container > .el-main {
    padding-left: 0 !important;
    width: auto !important;
}

/* ==================== 整体左右分栏布局 ==================== */
.main-layout-row {
    display: flex;
    gap: 16px;
}

.left-main-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.right-sidebar-column {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ==================== 顶部欢迎栏/登录信息区 ==================== */
.welcome-header {
    background: var(--v2-bg-white);
    border-radius: var(--v2-radius);
    padding: 16px 20px;
    box-shadow: var(--v2-shadow);
}

.welcome-top-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

/* 欢迎栏内容包装器 - 左右分栏 */
.welcome-content-wrapper {
    display: flex;
    align-items: stretch;
    min-height: 100px;
}

/* 左侧区域 - 个人信息 */
.welcome-left-section {
    flex: 1;
    padding-right: 20px;
}

/* 垂直分割线 */
.welcome-divider {
    width: 1px;
    background-color: #e5e6eb;
    margin: 10px 0;
}

/* 右侧区域 - 左右两栏布局 */
.welcome-right-section {
    width: 260px;
    display: flex;
    align-items: center;
    padding-left: 20px;
}

.right-section-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

/* 左侧按钮区域 */
.right-section-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.right-section-buttons .right-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #555;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.right-section-buttons .right-action-btn:hover {
    background: #e8e8e8;
    border-color: #d0d0d0;
}

.right-section-buttons .right-action-btn i {
    font-size: 14px;
    color: #666;
}

/* 右侧二维码区域 */
.right-section-qrcode {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.qq-group-qrcode {
    width: 70px;
    height: 70px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    object-fit: cover;
}

.qrcode-tip {
    font-size: 10px;
    color: #999;
    margin: 0;
}

/* 用户等级区域 */
.user-level-area {
    margin-top: 5px;
}

.welcome-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.welcome-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--v2-text-primary);
    margin: 0;
}

.user-id-badge {
    background: var(--v2-primary);
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.user-level-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    border: 1px solid currentColor;
    background: rgba(255, 255, 255, 0.9);
    line-height: 1.2;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.login-info {
    color: var(--v2-text-muted);
    font-size: 12px;
    margin-left: 8px;
}

/* 认证状态行 */
.cert-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
}

.cert-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-icon img {
    width: 24px;
    height: 24px;
    opacity: 0.5;
}

.cert-item.certified .cert-icon img {
    opacity: 1;
}

/* Element UI 图标样式 */
.cert-icon i {
    font-size: 22px;
    color: var(--v2-text-muted);
    transition: color 0.2s;
}

.cert-item.certified .cert-icon i {
    color: var(--v2-primary);
}

/* 资产安全区域图标样式 */
.action-icon i {
    font-size: 28px;
    color: var(--v2-primary);
}

/* 推介计划大图标 */
.recommend-icon-large {
    font-size: 100px;
    color: var(--v2-primary);
    opacity: 0.6;
}

.cert-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cert-label {
    font-size: 12px;
    color: var(--v2-text-muted);
}

.cert-value {
    font-size: 12px;
    color: var(--v2-text-primary);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cert-action {
    color: var(--v2-primary);
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
}

.cert-action.certified {
    color: var(--v2-success);
}

.cert-action:hover {
    text-decoration: underline;
}

/* ==================== 主体区域 ==================== */
.main-body-row {
    display: flex;
    gap: 16px;
}

.left-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.right-sidebar-area {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ==================== 仪表板行 ==================== */
.dashboard-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ==================== 通用卡片样式 ==================== */
.card {
    background: var(--v2-bg-white);
    border-radius: var(--v2-radius);
    box-shadow: var(--v2-shadow);
    overflow: hidden;
}

.card-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--v2-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--v2-text-primary);
    margin: 0;
    position: relative;
    padding-left: 0;
}

.card-title::before {
    display: none;
}

.card-tabs {
    display: flex;
    gap: 16px;
}

.tab-link {
    color: var(--v2-text-secondary);
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s;
}

.tab-link:hover {
    color: var(--v2-primary);
}

.card-body {
    padding: 16px 20px;
}

/* ==================== 全局按钮直角边样式 ==================== */
/* 所有按钮改为直角边 */
.el-button,
.recharge-btn,
.referral-btn,
.recommend-btn,
.qq-group-btn,
.rescan-btn,
.account-actions-row .el-button,
.account-actions-row-left .el-button {
    border-radius: 0 !important;
}

/* ==================== 账户概览卡片 ==================== */
.account-stats-new-layout {
    display: flex;
    align-items: stretch;
    margin-bottom: 20px;
}

/* 左侧余额区域 */
.balance-section {
    flex: 0 0 45%;
    padding-right: 20px;
}

.balance-section .balance-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--v2-primary);
    margin-top: 8px;
}

/* 垂直分割线 */
.stats-divider {
    width: 1px;
    background-color: #e5e6eb;
    margin: 5px 0;
}

/* 右侧消费统计区域 */
.consume-section {
    flex: 1;
    padding-left: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.consume-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.consume-row .stat-label {
    font-size: 12px;
    color: var(--v2-text-muted);
    min-width: 60px;
}

.consume-row .consume-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--v2-text-primary);
}

.consume-row .consume-trend {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    background: #e8f5e9;
    color: var(--v2-success);
}

.consume-row .consume-trend.negative {
    background: #ffebee;
    color: var(--v2-danger);
}

/* 按钮行 - 居左对齐 */
.account-actions-row-left {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--v2-border);
}

/* 旧的样式保留兼容 */
.account-stats-grid {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.stat-item {
    flex: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--v2-text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--v2-text-primary);
}

.balance-value {
    color: var(--v2-primary);
}

.consume-trend {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: #e8f5e9;
    color: var(--v2-success);
    font-size: 12px;
    border-radius: 12px;
    margin-top: 4px;
}

.consume-trend.negative {
    background: #ffebee;
    color: var(--v2-danger);
}

.account-actions-row {
    display: flex;
    justify-content: center;
    /* 水平居中 */
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--v2-border);
}

/* ==================== 统计卡片 ==================== */
.statistics-card {
    background: #ffffff;
    border: 1px solid #e5e6eb;
}

.statistics-card .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 4px 0;
}

.stat-box-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--v2-border);
    background: var(--v2-bg);
    min-width: 0;
}

.stat-box-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 即将逾期 - 灰白色 */
.warning-item {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
}

.warning-item .stat-box-icon {
    background: transparent;
    color: #666666;
}

/* 产品总量 - 灰白色 */
.primary-item {
    background: #fafafa;
    border: 1px solid #e8e8e8;
}

.primary-item .stat-box-icon {
    background: transparent;
    color: #555555;
}

/* 激活产品数量 - 灰白色 */
.success-item {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
}

.success-item .stat-box-icon {
    background: transparent;
    color: #666666;
}

/* 未支付订单 - 灰白色 */
.danger-item {
    background: #fafafa;
    border: 1px solid #e8e8e8;
}

.danger-item .stat-box-icon {
    background: transparent;
    color: #555555;
}

.stat-box-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 18px;
    flex-shrink: 0;
}

.stat-box-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.stat-box-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--v2-text-primary);
    line-height: 1.2;
    margin-bottom: 2px;
}

.stat-box-label {
    font-size: 11px;
    color: var(--v2-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 统计卡片内的文字颜色适配 */
.statistics-card .card-title {
    color: var(--v2-text-primary);
}

/* ==================== 资产安全卡片 ==================== */
.security-overview-card .security-body {
    display: flex;
    gap: 24px;
    align-items: center;
}

.security-score-section {
    flex: 0 0 auto;
    text-align: center;
}

.score-circle {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 8px;
}

.score-ring {
    transform: rotate(-90deg);
}

.score-ring-bg {
    fill: none;
    stroke: #f0f0f0;
    stroke-width: 8;
}

.score-ring-circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dasharray 0.5s;
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--v2-primary);
}

.score-unit {
    font-size: 12px;
    color: var(--v2-text-muted);
}

.rescan-btn {
    margin-bottom: 6px;
    font-size: 12px !important;
}

.security-level-text {
    font-size: 11px;
    color: var(--v2-text-muted);
}

.security-level-text .safe {
    color: var(--v2-success);
}

.security-level-text .medium {
    color: var(--v2-warning);
}

.security-level-text .danger {
    color: var(--v2-danger);
}

.security-actions-section {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.security-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    background: var(--v2-bg-gray);
    border-radius: var(--v2-radius);
    text-decoration: none;
    transition: all 0.2s;
}

.security-action-item:hover {
    background: var(--v2-primary-light);
    transform: translateY(-2px);
}

.action-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.action-icon img {
    width: 28px;
    height: 28px;
}

.action-label {
    font-size: 12px;
    color: var(--v2-text-primary);
}

/* ==================== 联系卡片 - 新版三列布局 ==================== */
.contact-card .contact-body-new {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    padding: 0;
    min-height: 180px;
    position: relative;
    overflow: hidden;
}

.qrcode-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    border-right: 1px solid var(--v2-border);
    text-align: center;
}

.qrcode-box:nth-child(2) {
    border-right: none;
}

.qrcode-wrapper {
    margin-bottom: 12px;
}

.qrcode-wrapper .qrcode-img {
    width: 90px;
    height: 90px;
    border-radius: var(--v2-radius);
    border: 1px solid var(--v2-border);
    object-fit: cover;
}

.qrcode-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.qrcode-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--v2-text-primary);
    margin: 0;
}

.qrcode-desc {
    font-size: 11px;
    color: var(--v2-text-muted);
    line-height: 1.5;
    margin: 0;
}

.qq-group-btn {
    border-radius: 4px !important;
    font-size: 12px !important;
    padding: 6px 16px !important;
}

.contact-illustration-box {
    flex: 0 0 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 0;
}

/* 右下角背景装饰图 */
.contact-bg-decoration {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 140px;
    height: 120px;
    pointer-events: none;
    opacity: 0.8;
    z-index: 0;
}

.contact-bg-decoration img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 旧版联系卡片样式（保留兼容） */
.contact-card .contact-body {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.qrcode-section {
    flex: 0 0 auto;
}

.qrcode-img {
    width: 100px;
    height: 100px;
    border-radius: var(--v2-radius);
    border: 1px solid var(--v2-border);
}

.contact-info-section {
    flex: 1;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--v2-text-secondary);
    font-size: 12px;
}

.contact-row i {
    color: var(--v2-primary);
    font-size: 16px;
}

.contact-illustration {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 120px;
    height: 100px;
    pointer-events: none;
}

.contact-illustration img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ==================== 产品列表卡片 ==================== */
.product-list-card .goods-table,
.product-list-card .el-table {
    width: 100% !important;
}

.product-list-card .el-table th {
    background: var(--v2-bg-gray) !important;
    padding: 10px 16px !important;
    font-size: 12px !important;
    color: var(--v2-text-secondary) !important;
    font-weight: 500 !important;
}

.product-list-card .el-table td {
    padding: 12px 16px !important;
    font-size: 12px !important;
}

.product-list-card .el-table__row {
    cursor: pointer;
}

.product-list-card .el-table__row:hover>td {
    background: var(--v2-bg-gray) !important;
}

.product-name {
    color: var(--v2-primary);
    text-decoration: none;
}

.product-name:hover {
    text-decoration: underline;
}

.red-time {
    color: var(--v2-danger) !important;
}

.no-product {
    text-align: center;
    padding: 40px 20px;
}

.no-data-image img {
    width: 100px;
    opacity: 0.6;
}

.no-product h2 {
    font-size: 14px;
    color: var(--v2-text-muted);
    margin: 12px 0 8px;
}

.no-product p {
    font-size: 12px;
    color: var(--v2-text-muted);
    margin-bottom: 16px;
}

/* ==================== 推介计划卡片 ==================== */
.recommend-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--v2-border);
}

.recommend-card .recommend-left {
    color: var(--v2-text-primary);
}

.recommend-card .recommend-title {
    color: var(--v2-text-primary) !important;
}

.recommend-card .recommend-desc {
    color: var(--v2-text-secondary) !important;
}

.recommend-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 20px;
    min-height: 200px;
}

.recommend-left {
    flex: 0 0 auto;
    max-width: 55%;
}

.recommend-right {
    flex: 0 0 auto;
    position: relative;
}

.recommend-illustration {
    width: 160px;
    height: 140px;
    object-fit: contain;
}

.recommend-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--v2-text-primary);
    margin: 0 0 8px;
}

.recommend-desc {
    font-size: 12px;
    color: var(--v2-text-secondary);
    margin: 0 0 16px;
    line-height: 1.5;
}

.recommend-btn {
    border-radius: 4px !important;
    font-size: 12px !important;
    padding: 8px 20px !important;
    background: var(--v2-primary) !important;
    color: #fff !important;
    border: none !important;
}

.recommend-btn:hover {
    background: #0052cc !important;
}

/* ==================== 公告通知卡片 ==================== */
.notice-card {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.notice-card .notice-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.more-link {
    color: var(--v2-primary);
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
}

.more-link:hover {
    text-decoration: underline;
}

.notice-list {
    display: flex;
    flex-direction: column;
    flex: 1;
    max-height: 1000px;
    overflow-y: auto;
}

/* 自定义滚动条样式 */
.notice-list::-webkit-scrollbar {
    width: 4px;
}

.notice-list::-webkit-scrollbar-track {
    background: transparent;
}

.notice-list::-webkit-scrollbar-thumb {
    background: var(--v2-border);
    border-radius: 2px;
}

.notice-list::-webkit-scrollbar-thumb:hover {
    background: var(--v2-text-muted);
}

.notice-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--v2-border);
    cursor: pointer;
    transition: background 0.2s;
    border-left: none !important;
    margin-bottom: 0 !important;
}

/* 覆盖home.css中的左侧彩色竖条 */
.notice-item:nth-of-type(1),
.notice-item:nth-of-type(2),
.notice-item:nth-of-type(3),
.notice-item:nth-of-type(n) {
    border-left: none !important;
    margin-bottom: 0 !important;
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-item:hover {
    background: var(--v2-bg-gray);
}

.notice-date {
    flex: 0 0 auto;
    text-align: center;
}

.date-day {
    font-size: 12px;
    font-weight: 600;
    color: var(--v2-text-primary);
}

.notice-info {
    flex: 1;
    min-width: 0;
}

.notice-title {
    font-size: 12px;
    color: var(--v2-text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-type {
    font-size: 10px;
    color: var(--v2-text-muted);
}

.notice-arrow {
    flex: 0 0 auto;
    color: var(--v2-text-muted);
    font-size: 14px;
}

.no-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--v2-text-muted);
    font-size: 13px;
}

/* ==================== 工单列表卡片 ==================== */
.ticket-list-card {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ticket-list-card .card-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ticket-list-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ticket-list {
    display: flex;
    flex-direction: column;
    flex: 1;
    max-height: 420px;
    overflow-y: auto;
}

/* 自定义滚动条样式 */
.ticket-list::-webkit-scrollbar {
    width: 4px;
}

.ticket-list::-webkit-scrollbar-track {
    background: transparent;
}

.ticket-list::-webkit-scrollbar-thumb {
    background: var(--v2-border);
    border-radius: 2px;
}

.ticket-list::-webkit-scrollbar-thumb:hover {
    background: var(--v2-text-muted);
}

.ticket-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--v2-border);
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.ticket-item:last-child {
    border-bottom: none;
}

.ticket-item:hover {
    background: var(--v2-bg-gray);
    transform: translateX(4px);
}

.ticket-info-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-id {
    font-size: 13px;
    font-weight: 600;
    color: var(--v2-primary);
    font-family: 'Courier New', monospace;
}

.ticket-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.ticket-status.status-0 {
    background: #fff7e6;
    color: #fa8c16;
    border: 1px solid #ffd591;
}

.ticket-status.status-1 {
    background: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
}

.ticket-status.status-2 {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.ticket-status.status-3 {
    background: #f9f0ff;
    color: #722ed1;
    border: 1px solid #d3adf7;
}

.ticket-status.status-4 {
    background: #f5f5f5;
    color: #8c8c8c;
    border: 1px solid #d9d9d9;
}

.ticket-status.status-5 {
    background: #fff1f0;
    color: #f5222d;
    border: 1px solid #ffa39e;
}

.ticket-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--v2-text-primary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticket-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.ticket-department {
    font-size: 12px;
    color: var(--v2-text-secondary);
    background: var(--v2-bg);
    padding: 2px 8px;
    border-radius: 4px;
}

.ticket-time {
    font-size: 12px;
    color: var(--v2-text-muted);
}

.no-ticket {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.no-ticket .no-data-image {
    margin-bottom: 16px;
}

.no-ticket h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--v2-text-primary);
    margin: 0 0 8px 0;
}

.no-ticket p {
    font-size: 13px;
    color: var(--v2-text-secondary);
    margin: 0 0 20px 0;
}

.no-ticket .el-button {
    min-width: 100px;
}

/* ==================== 响应式布局 ==================== */
@media (max-width: 1400px) {
    .el-container > .el-aside {
        width: 160px !important;
    }

    .right-sidebar-column {
        width: 280px;
    }
}

@media (max-width: 1200px) {
    .main-layout-row {
        flex-direction: column;
    }

    .right-sidebar-column {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .right-sidebar-column .card {
        flex: 1;
        min-width: 280px;
    }
}

@media (max-width: 992px) {
    .dashboard-row {
        grid-template-columns: 1fr;
    }

    /* 统计卡片：中等屏幕优化 */
    .statistics-card .stats-grid {
        gap: 10px;
        padding: 6px 0;
    }

    .stat-box-item {
        padding: 12px 10px;
        gap: 10px;
    }

    .stat-box-icon {
        width: 38px;
        height: 38px;
        font-size: 19px;
    }

    .stat-box-value {
        font-size: 19px;
    }

    .stat-box-label {
        font-size: 11px;
    }

    /* 移动端：两行两列布局 */
    .cert-status-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 12px;
        width: 100%;
    }

    /* 姓名 - 第1行第1列 */
    .cert-status-row .cert-item:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }

    /* 电话 - 第1行第2列 */
    .cert-status-row .cert-item:nth-child(3) {
        grid-column: 2;
        grid-row: 1;
    }

    /* 企业 - 第2行第1列 */
    .cert-status-row .cert-item:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }

    /* 邮箱 - 第2行第2列 */
    .cert-status-row .cert-item:nth-child(4) {
        grid-column: 2;
        grid-row: 2;
    }
}

@media (max-width: 768px) {
    .el-container > .el-aside {
        width: 64px !important;
    }

    .home-v2-wrapper {
        padding: 12px;
    }

    .welcome-header {
        padding: 12px;
    }

    .welcome-top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .welcome-title {
        font-size: 16px;
    }

    .login-info {
        margin-left: 0;
    }

    /* 移动端隐藏右侧区域，只显示个人信息 */
    .welcome-right-section {
        display: none !important;
    }

    .welcome-divider {
        display: none !important;
    }

    .welcome-left-section {
        width: 100%;
        padding-right: 0;
    }

    .welcome-content-wrapper {
        flex-direction: column;
    }

    .card-header {
        padding: 12px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .card-body {
        padding: 14px 16px;
    }

    .account-stats-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        /* 核心修改：账户三项并排 */
        gap: 8px;
        margin-bottom: 16px;
    }

    .stat-item {
        padding: 12px 4px;
        background: #f8fafc;
        border-radius: 6px;
        text-align: center;
        border: 1px solid #f1f5f9;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .stat-label {
        font-size: 11px;
        margin-bottom: 4px;
        justify-content: center;
        white-space: nowrap;
    }

    .stat-value {
        font-size: 15px;
        word-break: break-all;
    }

    .balance-value {
        font-size: 16px;
        color: var(--v2-primary);
    }

    .consume-trend {
        margin-top: 2px;
        padding: 0 4px;
        font-size: 10px;
        transform: scale(0.9);
        justify-content: center;
    }

    .account-actions-row {
        width: 100%;
        display: flex;
        /* 改为 flex 以支持居中 */
        justify-content: center;
        gap: 10px;
        padding-top: 16px;
    }

    .account-actions-row .recharge-btn {
        flex: 3;
        /* 保持充值按钮比例 */
    }

    .account-actions-row .referral-btn {
        flex: 1;
    }

    .account-actions-row .el-button,
    .account-actions-row-left .el-button {
        margin: 0 !important;
        padding: 6px 0 !important;
        font-size: 12px !important;
        border-radius: 0 !important;
        flex: 1 !important;
        min-width: 0;
        height: 32px !important;
        line-height: 1 !important;
    }

    /* 移动端按钮行统一高度 */
    .account-actions-row-left {
        gap: 8px;
        padding-top: 12px;
    }

    /* 移动端账户概览区域优化 */
    .account-stats-new-layout {
        margin-bottom: 12px;
    }

    .balance-section {
        flex: 0 0 40%;
        padding-right: 8px;
    }

    .balance-section .balance-value {
        font-size: 20px;
    }

    .stats-divider {
        margin: 0;
    }

    .consume-section {
        padding-left: 8px;
        gap: 6px;
    }

    .consume-row {
        gap: 4px;
    }

    .consume-row .stat-label {
        font-size: 10px;
        min-width: 50px;
    }

    .consume-row .consume-value {
        font-size: 12px;
    }

    .consume-trend {
        font-size: 9px;
        transform: scale(0.85);
        padding: 0 2px;
    }

    .statistics-card .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 2px 0;
    }

    .stat-box-item {
        padding: 10px 6px;
        gap: 6px;
    }

    .stat-box-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .stat-box-value {
        font-size: 18px;
    }

    .stat-box-label {
        font-size: 10px;
    }

    .security-overview-card .security-body {
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }

    .security-score-section {
        flex: 0 0 120px;
        /* 增加左侧宽度以容纳文字和按钮 */
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .score-circle {
        width: 100%;
        height: auto;
        min-height: 40px;
        margin: 0 auto 8px;
        position: static;
        /* 移除定位，让内容自然排列 */
    }

    .score-ring {
        display: none !important;
        /* 彻底移除圆环 */
    }

    .score-value {
        position: static;
        /* 移除定位 */
        transform: none;
    }

    .score-num {
        font-size: 32px;
        /* 进一步放大分数数字 */
        font-weight: 800;
        line-height: 1;
        color: #333;
    }

    .score-unit {
        font-size: 12px;
        color: #999;
        margin-left: 2px;
    }

    .rescan-btn {
        padding: 4px 10px !important;
        font-size: 10px !important;
        min-height: 0 !important;
    }

    .security-level-text {
        font-size: 10px;
        margin-top: 4px;
    }

    .security-actions-section {
        flex: 1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .security-action-item {
        padding: 8px 4px;
        background: #f8fafc;
        border: 1px solid #f1f5f9;
    }

    .action-icon {
        width: 20px;
        height: 20px;
        margin-bottom: 2px;
    }

    .action-icon i {
        font-size: 16px;
    }

    .action-label {
        font-size: 10px;
    }

    .contact-card .contact-body {
        flex-direction: column;
        text-align: center;
    }

    .contact-illustration {
        display: none;
    }

    /* 工单列表移动端适配 */
    .ticket-list {
        max-height: 300px;
    }

    .ticket-item {
        padding: 12px 16px;
    }

    .ticket-title {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .ticket-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .ticket-time {
        font-size: 11px;
    }

    /* 移动端暂无工单空状态优化 */
    .no-ticket {
        padding: 24px 16px;
    }

    .no-ticket .no-data-image {
        margin-bottom: 10px;
    }

    .no-ticket .no-data-image i {
        font-size: 40px !important;
    }

    .no-ticket h2 {
        font-size: 14px;
        margin: 0 0 6px 0;
    }

    .no-ticket p {
        font-size: 11px;
        margin: 0 0 12px 0;
    }

    .no-ticket .el-button {
        min-width: 80px;
        padding: 6px 16px !important;
        height: 30px !important;
        font-size: 12px !important;
    }

    /* 移动端产品列表优化 */
    .product-list-card .el-table th {
        padding: 8px 6px !important;
        font-size: 10px !important;
    }

    .product-list-card .el-table td {
        padding: 8px 6px !important;
        font-size: 10px !important;
    }

    .product-list-card .el-table .cell {
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .product-name {
        font-size: 10px;
    }

    .right-sidebar-column {
        flex-direction: column;
    }

    .right-sidebar-column .card {
        min-width: 100%;
    }

    .recommend-body {
        flex-direction: column;
        text-align: center;
    }

    .recommend-left {
        max-width: 100%;
    }
}

/* 暂无公告样式 */
.no-notice {
    text-align: center;
    padding: 40px 20px;
    color: var(--v2-text-muted);
}

.no-notice p {
    margin: 0;
    font-size: 12px;
}