/* 登录检查时隐藏页面内容 */
body.login-checking {
    visibility: hidden;
}

/* 固定用户中心页面高度，防止滚动 */
html {
    height: 100%;
    overflow: hidden !important;
}

body {
    height: 100%;
    overflow: hidden !important;
}

body:has(.user-center),
body.user-center-page {
    height: 100vh !important;
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

/* 加载提示 */
.login-check-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: var(--primary-color, #ff6b35);
    font-size: 16px;
}

.login-check-loader.hidden {
    display: none;
}

/* 用户中心专用样式 */
.user-center {
    height: 100vh !important;
    min-height: 100vh !important;
    padding-top: 70px;
    position: relative;
    overflow: hidden !important;
    box-sizing: border-box;
}

.user-center-container {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 20px 0 0 0;
    gap: 32px;
    height: calc(100vh - 70px) !important;
    min-height: calc(100vh - 70px) !important;
    overflow: hidden !important;
    box-sizing: border-box;
    align-items: flex-start;
}

/* 侧边栏 */
.user-sidebar {
    width: 320px;
    flex-shrink: 0;
    background: rgba(38, 38, 38, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 24px 24px 0 0 !important;
    padding: 24px;
    backdrop-filter: blur(10px);
    height: 100% !important;
    position: sticky;
    top: 90px;
    overflow-y: auto;
    box-sizing: border-box;
}

.sidebar-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
}

.sidebar-logo .logo-icon {
    color: var(--primary-color);
    font-size: 22px;
    animation: rotate 4s linear infinite;
}

.sidebar-logo .logo-text {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 30px;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav-item {
    margin-bottom: 8px;
}

.sidebar-nav-item a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    color: var(--text-gray);
    text-decoration: none;
    border-radius: 16px;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 500;
    position: relative;
}

.sidebar-nav-item a i {
    width: 22px;
    text-align: center;
    font-size: 18px;
}

.sidebar-nav-item a:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

.sidebar-nav-item a.active {
    background: rgba(255, 107, 53, 0.15);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

.sidebar-nav-item a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-2);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

/* 主内容区 */
.user-main {
    flex: 1;
    min-width: 0;
    width: 100%;
    background: rgba(38, 38, 38, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 24px 24px 0 0 !important;
    padding: 32px;
    backdrop-filter: blur(10px);
    height: 100% !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.page-header {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.page-breadcrumb a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-breadcrumb a:hover {
    color: var(--primary-color);
}

.page-breadcrumb .separator {
    color: var(--text-muted);
}

/* 内容区域 */
.content-section {
    display: none;
}

.content-section.active {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    animation: fadeInUp 0.5s ease;
    min-height: 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    flex: 1;
    min-height: 0;
    min-width: 0;
    width: 100%;
    height: 100%;
    align-content: stretch;
    align-items: stretch;
}

.content-card,
div.content-card,
.user-main .content-card,
#userInfoCard,
#consumptionCard,
#ordersCard,
#resourcesCard,
#productsCard,
#announcementsCard {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 20px 20px 0 0 !important;
    padding: 12px;
    margin: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
    overflow: hidden;
}

/* 订购产品卡片允许内部滚动 */
#orderCloudServerContent,
#orderTikTokContent {
    overflow: visible !important;
    min-height: auto !important;
}

#orderCloudServerContent .content-card-desc,
#orderTikTokContent .content-card-desc {
    flex-shrink: 0;
}

/* 确保产品列表容器可以显示滚动条 */
#orderCloudServerContent #orderProductsList,
#orderTikTokContent #orderTikTokList {
    position: relative !important;
    z-index: 1;
}

.content-card:hover,
div.content-card:hover,
.user-main .content-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.2);
}

.content-card-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 6px;
}

.content-card-title i {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: var(--primary-color);
    background-clip: unset;
    color: var(--primary-color);
}

.content-card-desc {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 12px;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 20px 20px 0 0 !important;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.2);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 16px;
    color: var(--primary-color);
    font-size: 20px;
}

.stat-value {
    font-size: 22px;
    font-weight: 700;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 12px;
}

/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table thead {
    background: rgba(255, 107, 53, 0.1);
}

.data-table th {
    padding: 16px;
    text-align: left;
    color: var(--text-light);
    font-weight: 600;
    font-size: 14px;
    border-bottom: 2px solid var(--primary-color);
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-gray);
    font-size: 14px;
}

.data-table tbody tr {
    transition: all 0.3s ease;
}

.data-table tbody tr:hover {
    background: rgba(255, 107, 53, 0.05);
}

/* 按钮样式 */
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gradient-1);
    color: var(--text-light);
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.action-btn-secondary {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.action-btn-secondary:hover {
    background: rgba(255, 107, 53, 0.15);
    border-color: var(--primary-color);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 24px;
}

/* 用户头像下拉菜单 */
.user-avatar-dropdown {
    position: relative;
}

.user-info-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.user-info-wrapper:hover {
    background: rgba(255, 107, 53, 0.1);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 107, 53, 0.3);
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

.user-info-wrapper:hover .user-avatar {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.5);
    border-color: var(--primary-color);
}

.user-avatar span {
    color: var(--text-light);
    font-weight: 700;
    font-size: 16px;
}

.user-name-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-name {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.dropdown-arrow {
    color: var(--text-muted);
    font-size: 12px;
    transition: all 0.3s ease;
}

.user-avatar-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    margin-top: 4px;
    background: rgba(38, 38, 38, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 8px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* 侧边栏内的下拉菜单样式 */
.sidebar-nav-item .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: rgba(38, 38, 38, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px;
    min-width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.user-avatar-dropdown:hover .dropdown-menu,
.user-avatar-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-gray);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.dropdown-item:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
}

.dropdown-item i {
    width: 18px;
    text-align: center;
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: rgba(38, 38, 38, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 24px 24px 0 0;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.modal-close {
    font-size: 28px;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.modal-close:hover {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}

.modal-body {
    padding: 32px;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* 全屏模态框样式 */
.modal-fullscreen {
    width: 95% !important;
    max-width: 95% !important;
    height: 95vh !important;
    max-height: 95vh !important;
    border-radius: 20px 20px 0 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.modal-fullscreen .modal-header {
    flex-shrink: 0;
}

.modal-body-fullscreen {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 32px;
    min-height: 0;
}

@media (max-width: 768px) {
    .modal-fullscreen {
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
    }
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

.form-hint {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 6px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
}

.form-actions .action-btn {
    margin: 0;
}

@media (max-width: 1600px) {
    .user-center-container {
        padding: 20px 0 0 0;
    }
}

@media (max-width: 1200px) {

    .user-sidebar {
        width: 280px;
        height: 100% !important;
    }
    
    .user-main {
        height: 100% !important;
    }
    
    /* 中等屏幕改为2列 */
    .user-main section > div[style*="repeat(3"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .user-name-wrapper {
        display: none;
    }

    .dropdown-menu {
        right: -20px;
    }
    
    .user-center {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }
    
    .user-center-container {
        flex-direction: column;
        padding: 20px;
        max-width: 100%;
        height: auto;
        overflow: visible;
    }

    .user-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        height: auto;
        max-height: none;
    }

    .user-main {
        padding: 24px;
        max-width: 100%;
        height: auto;
        max-height: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-title {
        font-size: 24px;
    }
    
    /* 移动端改为单列 */
    .user-main section > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .data-table {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 12px 8px;
    }
}

/* 代理等级卡片样式 */
.agent-tier-card {
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.agent-tier-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 107, 53, 0.5);
}

.agent-tier-header {
    padding: 32px 24px;
    text-align: center;
    color: #ffffff;
    position: relative;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.agent-tier-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.agent-tier-icon {
    font-size: 56px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.agent-tier-name {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
    letter-spacing: 1px;
}

.agent-tier-discount {
    font-size: 42px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
    letter-spacing: 2px;
}

.agent-tier-body {
    padding: 28px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(15, 15, 25, 0.6);
}

.agent-tier-features {
    flex: 1;
    margin-bottom: 20px;
}

.agent-tier-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.7;
    padding: 8px 0;
}

.agent-tier-feature:last-child {
    margin-bottom: 0;
}

.agent-tier-feature i {
    color: var(--primary-color);
    margin-top: 4px;
    flex-shrink: 0;
    font-size: 16px;
    filter: drop-shadow(0 2px 4px rgba(255, 107, 53, 0.3));
}

.agent-tier-feature span {
    flex: 1;
}

.agent-tier-feature strong {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 16px;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.agent-apply-btn {
    margin-top: auto;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, rgba(255, 107, 53, 0.25) 100%);
    border: 2px solid rgba(255, 107, 53, 0.4);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 15px;
    padding: 14px 24px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.agent-apply-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.agent-apply-btn:hover::before {
    left: 100%;
}

.agent-apply-btn:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.25) 0%, rgba(255, 107, 53, 0.35) 100%);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.agent-apply-btn:active {
    transform: translateY(0);
}

.agent-apply-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(100, 100, 100, 0.2);
    border-color: rgba(100, 100, 100, 0.3);
    color: rgba(255, 255, 255, 0.5);
}

.agent-apply-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* 代理等级特定样式 */
.agent-tier-card[data-tier="bronze"] .agent-tier-header {
    background: linear-gradient(135deg, #8B7355 0%, #6B5D4F 50%, #5A4A3F 100%);
}

.agent-tier-card[data-tier="bronze"] .agent-tier-icon i {
    color: #CD7F32;
    text-shadow: 0 0 20px rgba(205, 127, 50, 0.6);
}

.agent-tier-card[data-tier="gold"] .agent-tier-header {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
}

.agent-tier-card[data-tier="gold"] .agent-tier-icon i {
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.agent-tier-card[data-tier="diamond"] .agent-tier-header {
    background: linear-gradient(135deg, #B9F2FF 0%, #7EC8E3 50%, #5BA3C7 100%);
}

.agent-tier-card[data-tier="diamond"] .agent-tier-icon i {
    color: #B9F2FF;
    text-shadow: 0 0 20px rgba(185, 242, 255, 0.8);
}

.agent-tier-card[data-tier="top"] .agent-tier-header {
    background: linear-gradient(135deg, #FF6B9D 0%, #C44569 50%, #A0315A 100%);
}

.agent-tier-card[data-tier="top"] .agent-tier-icon i {
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

/* 工单系统样式 */
.ticket-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ticket-item:hover {
    background: rgba(255, 107, 53, 0.05);
    border-color: rgba(255, 107, 53, 0.3);
    transform: translateX(4px);
}

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

.ticket-number {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 14px;
    letter-spacing: 1px;
}

.ticket-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
    border: 1px solid rgba(255, 193, 7, 0.4);
}

.status-open {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
    border: 1px solid rgba(33, 150, 243, 0.4);
}

.status-replied {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.status-resolved {
    background: rgba(76, 175, 80, 0.3);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.status-closed {
    background: rgba(158, 158, 158, 0.2);
    color: #9E9E9E;
    border: 1px solid rgba(158, 158, 158, 0.4);
}

.ticket-subject {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.5;
}

.ticket-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.ticket-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 13px;
}

.ticket-priority,
.ticket-message-count,
.ticket-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.priority-low {
    color: var(--text-muted);
}

.priority-normal {
    color: #2196F3;
}

.priority-high {
    color: #FF9800;
}

.priority-urgent {
    color: #F44336;
}

/* 工单消息样式 */
.ticket-message {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.message-admin {
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.3);
}

.message-user {
    background: rgba(255, 255, 255, 0.03);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.message-sender {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-light);
    font-size: 14px;
}

.message-sender i {
    color: var(--primary-color);
}

.message-time {
    color: var(--text-muted);
    font-size: 12px;
}

.message-content {
    color: var(--text-light);
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.ticket-reply-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

select.form-input {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    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='%23FF6B35' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

select.form-input option {
    background: rgba(20, 20, 30, 0.98) !important;
    color: var(--text-light) !important;
    padding: 12px 16px;
}

select.form-input option:hover,
select.form-input option:focus {
    background: rgba(255, 107, 53, 0.2) !important;
    color: var(--primary-color) !important;
}

select.form-input option:checked {
    background: rgba(255, 107, 53, 0.3) !important;
    color: var(--primary-color) !important;
}

select.form-input option:checked:focus {
    background: rgba(255, 107, 53, 0.4) !important;
}

/* 下拉框选项样式（针对不同浏览器） */
select.form-input::-ms-expand {
    display: none;
}

select.form-input:focus {
    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='%23FF6B35' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

/* 删除按钮样式 */
button[onclick*="deleteTicket"] {
    transition: all 0.3s ease;
}

button[onclick*="deleteTicket"]:hover {
    background: rgba(244, 67, 54, 0.2) !important;
    border-color: #F44336 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

/* 充值按钮样式 */
.recharge-btn {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: padding-box !important;
    -webkit-background-clip: padding-box !important;
    border: none !important;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.recharge-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.recharge-btn:hover::before {
    left: 100%;
}

.recharge-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5) !important;
    background: linear-gradient(135deg, #FF7A45 0%, #FFA52E 100%) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.recharge-btn:active {
    transform: translateY(-1px);
}

.recharge-btn i,
.recharge-btn span {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

.recharge-btn i {
    margin-right: 8px;
    font-size: 18px;
}

/* 服务分类卡片样式 */
.service-category-card {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 12px !important;
}

.service-category-card > div {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* 服务分类选项卡样式 */
.service-category-tab {
    flex: 1;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    min-height: 32px;
}

.service-category-tab i {
    font-size: 13px;
}

.service-category-tab:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.3);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.service-category-tab.active {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2) 0%, rgba(255, 107, 53, 0.1) 100%);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.service-category-content {
    animation: fadeIn 0.3s ease;
    display: flex;
    flex-direction: column;
    height: auto !important;
    min-height: 0;
    padding-bottom: 0 !important;
    padding-top: 8px !important;
    overflow: visible !important;
}

.service-category-content.content-card {
    padding: 8px 12px !important;
}

.service-category-content .content-card-title {
    margin-bottom: 4px !important;
    padding-bottom: 4px !important;
    font-size: 14px !important;
}

.service-category-content .content-card-desc {
    margin-bottom: 2px !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
}

.service-category-content #cloudServerList {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-top: 0;
}

/* 云服务器操作按钮栏 */
.cloud-server-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    margin-bottom: 8px;
    padding: 6px 12px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.actions-left,
.actions-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-bar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 6px;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.action-bar-btn i {
    font-size: 12px;
}

.action-bar-btn:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

.action-bar-btn:active {
    transform: translateY(0);
}

/* 下拉筛选菜单 */
.dropdown-filter {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    min-width: 160px;
    background: rgba(51, 65, 85, 0.95);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    backdrop-filter: blur(10px);
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 53, 0.4);
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 53, 0.6);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--text-light);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: rgba(255, 107, 53, 0.15);
    color: var(--primary-color);
}

.dropdown-item.active {
    background: rgba(255, 107, 53, 0.2);
    color: var(--primary-color);
}

.dropdown-item i {
    font-size: 11px;
    width: 14px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 107, 53, 0.2);
    margin: 4px 0;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 云服务器订单表格样式 */
.cloud-server-table-container {
    width: 100%;
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow: auto;
    background: rgba(38, 38, 38, 0.3);
    border-radius: 6px;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.cloud-server-table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.cloud-server-table-container::-webkit-scrollbar-track {
    background: rgba(38, 38, 38, 0.5);
    border-radius: 4px;
}

.cloud-server-table-container::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 53, 0.4);
    border-radius: 4px;
}

.cloud-server-table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 53, 0.6);
}

/* 列表容器滚动条样式（与表格一致） */
#resourcesList::-webkit-scrollbar,
#ordersList::-webkit-scrollbar,
#productsList::-webkit-scrollbar,
#consumptionList::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

#resourcesList::-webkit-scrollbar-track,
#ordersList::-webkit-scrollbar-track,
#productsList::-webkit-scrollbar-track,
#consumptionList::-webkit-scrollbar-track {
    background: rgba(38, 38, 38, 0.5);
    border-radius: 4px;
}

#resourcesList::-webkit-scrollbar-thumb,
#ordersList::-webkit-scrollbar-thumb,
#productsList::-webkit-scrollbar-thumb,
#consumptionList::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 53, 0.4);
    border-radius: 4px;
}

#resourcesList::-webkit-scrollbar-thumb:hover,
#ordersList::-webkit-scrollbar-thumb:hover,
#productsList::-webkit-scrollbar-thumb:hover,
#consumptionList::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 53, 0.6);
}

/* 二级分类容器样式 - 确保所有分类都能显示 */
#cloudServerSubCategories,
#tiktokSubCategories {
    overflow: visible !important;
    max-height: none !important;
    min-height: auto !important;
}

#cloudServerSubCategories > div,
#tiktokSubCategories > div {
    overflow: visible !important;
    max-height: none !important;
}

/* 订购产品列表样式 - 使用flex布局，和"产品与服务"页面一样 */
#orderCloudServerContent #orderProductsList,
#orderTikTokContent #orderTikTokList {
    flex: 1 !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
}

/* 订购产品列表中的表格容器滚动条 - 直接显示滚动条，限制高度 */
#orderProductsList .cloud-server-table-container,
#orderTikTokList .cloud-server-table-container {
    flex: 0 1 auto !important;
    min-height: 0 !important;
    max-height: 450px !important;
    overflow-y: scroll !important;
    overflow-x: auto !important;
    width: 100% !important;
    height: auto !important;
}

/* 订购产品列表滚动条样式 */
#orderProductsList::-webkit-scrollbar,
#orderTikTokList::-webkit-scrollbar {
    width: 8px !important;
    height: 8px !important;
    display: block !important;
}

#orderProductsList::-webkit-scrollbar-track,
#orderTikTokList::-webkit-scrollbar-track {
    background: rgba(38, 38, 38, 0.5) !important;
    border-radius: 4px !important;
}

#orderProductsList::-webkit-scrollbar-thumb,
#orderTikTokList::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 53, 0.4) !important;
    border-radius: 4px !important;
}

#orderProductsList::-webkit-scrollbar-thumb:hover,
#orderTikTokList::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 53, 0.6) !important;
}

/* 确保父容器允许内容溢出显示滚动条 */
#orderCloudServerContent,
#orderTikTokContent {
    overflow: visible !important;
    min-height: auto !important;
}

.cloud-server-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    table-layout: auto;
}

.cloud-server-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 107, 53, 0.1);
    border-bottom: 1px solid rgba(255, 107, 53, 0.3);
    backdrop-filter: blur(10px);
}

.cloud-server-table th {
    padding: 6px 8px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
    border-right: 1px solid rgba(255, 107, 53, 0.15);
}

.cloud-server-table th:last-child {
    border-right: none;
}

.cloud-server-table tbody tr {
    background: rgba(38, 38, 38, 0.3);
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
    transition: all 0.2s ease;
}

.cloud-server-table tbody tr:hover {
    background: rgba(255, 107, 53, 0.1);
    border-bottom-color: rgba(255, 107, 53, 0.2);
}

.cloud-server-table tbody tr:last-child {
    border-bottom: none;
}

.cloud-server-table td {
    padding: 6px 8px;
    font-size: 12px;
    color: var(--text-light);
    border-right: 1px solid rgba(255, 107, 53, 0.1);
    vertical-align: middle;
    line-height: 1.4;
    text-align: center;
}

.cloud-server-table td:last-child {
    border-right: none;
}

/* 表头内容 */
.table-header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.table-header-content input[type="checkbox"] {
    width: 12px;
    height: 12px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.sort-icons {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-left: auto;
}

.sort-icons i {
    font-size: 8px;
    color: var(--text-muted);
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.sortable:hover .sort-icons i {
    opacity: 1;
}

.sortable.sort-asc .sort-up,
.sortable.sort-desc .sort-down {
    opacity: 1;
    color: var(--primary-color);
}

/* 状态单元格 */
.status-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.status-cell input[type="checkbox"] {
    width: 12px;
    height: 12px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.status-indicator.status-active {
    color: #10b981;
}

.status-indicator.status-expired {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.1));
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-indicator i {
    font-size: 8px;
}

/* 分类单元格 */
.group-cell {
    display: flex;
    align-items: center;
    justify-content: center;
}

.group-tag-display {
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* 产品单元格 */
.product-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.product-name {
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.3;
    font-size: 12px;
}

.product-id {
    font-size: 10px;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
}

/* IP单元格 */
.ip-cell {
    font-family: 'Courier New', monospace;
    color: var(--text-light);
}

/* 到期时间 */
.expiring-soon {
    color: #f59e0b !important;
    font-weight: 600;
}

/* 价格单元格 */
.price-cell {
    font-weight: 600;
    color: var(--primary-color);
}

/* 系统单元格 */
.system-cell {
    display: flex;
    align-items: center;
    gap: 4px;
}

.system-cell i {
    color: var(--text-muted);
    font-size: 10px;
}

.system-cell span {
    font-size: 11px;
}

/* 备注单元格 */
.note-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 100%;
    min-height: 100%;
}

.note-cell span {
    flex: 1;
    min-width: 0;
    font-size: 11px;
}

.edit-note-btn {
    background: transparent;
    border: none;
    color: #3b82f6;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 10px;
    opacity: 0.7;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-note-btn i {
    font-size: 9px;
}

.edit-note-btn:hover {
    opacity: 1;
}

/* 操作按钮 */
.action-btn-table {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(37, 99, 235, 0.1));
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: #3b82f6;
    padding: 3px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.4;
}

.action-btn-table:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(37, 99, 235, 0.2));
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

/* 分组管理模态框样式 */
.color-picker {
    width: 50px;
    height: 40px;
    padding: 2px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    background: var(--bg-hover);
}

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

.group-item {
    transition: all 0.2s ease;
}

.group-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    transform: translateX(4px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cloud-server-table-container {
        overflow-x: scroll;
    }
    
    .cloud-server-table {
        min-width: 1000px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 产品详情模态框样式 - 与用户中心配色一致 */
#productDetailModal .product-detail-container {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

#productDetailModal .product-info {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 24px !important;
    margin: 0 0 20px 0 !important;
}

#productDetailModal .product-name {
    color: var(--text-light) !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    margin-bottom: 12px !important;
    background: var(--gradient-2) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

#productDetailModal .product-category {
    color: var(--text-muted) !important;
    font-size: 14px !important;
    margin-bottom: 20px !important;
}

#productDetailModal .product-description h4,
#productDetailModal .product-usage h4,
#productDetailModal .product-config h4 {
    color: var(--primary-color) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-bottom: 12px !important;
}

#productDetailModal .product-description p,
#productDetailModal .product-usage p,
#productDetailModal .product-config p {
    color: var(--text-light) !important;
    line-height: 1.6 !important;
    font-size: 14px !important;
}

#productDetailModal .product-price {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin: 0 0 20px 0 !important;
}

#productDetailModal .product-price h4 {
    color: var(--text-muted) !important;
    font-size: 14px !important;
    margin-bottom: 12px !important;
}

#productDetailModal .price-amount {
    color: var(--primary-color) !important;
    font-size: 32px !important;
    font-weight: 600 !important;
}

#productDetailModal .purchase-section {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 24px !important;
    margin: 0 !important;
}

#productDetailModal .config-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 16px !important;
    margin-bottom: 20px !important;
}

#productDetailModal .config-card {
    background: rgba(38, 38, 38, 0.3) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 16px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

#productDetailModal .config-card:hover {
    border-color: var(--primary-color) !important;
    background: rgba(255, 107, 53, 0.1) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2) !important;
}

#productDetailModal .config-card.selected {
    border-color: var(--primary-color) !important;
    background: rgba(255, 107, 53, 0.15) !important;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3) !important;
}

#productDetailModal .config-card h5 {
    color: var(--text-light) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
}

#productDetailModal .config-card .config-specs {
    color: var(--text-muted) !important;
    font-size: 12px !important;
    margin-bottom: 8px !important;
}

#productDetailModal .config-card .config-price {
    color: var(--primary-color) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

#productDetailModal .duration-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
}

#productDetailModal .duration-item {
    background: rgba(38, 38, 38, 0.3) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    padding: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
}

#productDetailModal .duration-item:hover {
    border-color: var(--primary-color) !important;
    background: rgba(255, 107, 53, 0.1) !important;
    transform: translateY(-2px) !important;
}

#productDetailModal .duration-item.selected {
    border-color: var(--primary-color) !important;
    background: rgba(255, 107, 53, 0.15) !important;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3) !important;
}

#productDetailModal .duration-item > div:first-child {
    color: var(--text-light) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
}

#productDetailModal .duration-item .duration-price {
    color: var(--primary-color) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

#productDetailModal .total-price {
    background: rgba(255, 107, 53, 0.1) !important;
    border: 1px solid rgba(255, 107, 53, 0.3) !important;
    border-radius: 8px !important;
    padding: 16px !important;
    margin-bottom: 20px !important;
    text-align: center !important;
}

#productDetailModal .total-price-label {
    color: var(--text-muted) !important;
    font-size: 14px !important;
    margin-bottom: 8px !important;
}

#productDetailModal .total-price-value {
    color: var(--primary-color) !important;
    font-size: 24px !important;
    font-weight: 600 !important;
}

#productDetailModal button[type="submit"],
#productDetailModal .purchase-btn {
    background: linear-gradient(135deg, var(--primary-color), rgba(255, 107, 53, 0.8)) !important;
    border: none !important;
    color: #fff !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
}

#productDetailModal button[type="submit"]:hover,
#productDetailModal .purchase-btn:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.9), var(--primary-color)) !important;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4) !important;
    transform: translateY(-2px) !important;
}

#productDetailModal input[type="text"],
#productDetailModal input[type="number"],
#productDetailModal select,
#productDetailModal textarea {
    background: rgba(38, 38, 38, 0.5) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-light) !important;
    padding: 10px 12px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
}

#productDetailModal input[type="text"]:focus,
#productDetailModal input[type="number"]:focus,
#productDetailModal select:focus,
#productDetailModal textarea:focus {
    border-color: var(--primary-color) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1) !important;
}

#productDetailModal label {
    color: var(--text-light) !important;
    font-size: 14px !important;
    margin-bottom: 8px !important;
    display: block !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
    #productDetailModal .product-detail-container {
        flex-direction: column !important;
        padding: 16px !important;
    }
    
    #productDetailModal .product-info,
    #productDetailModal .purchase-section {
        margin: 0 0 16px 0 !important;
        padding: 16px !important;
    }
    
    #productDetailModal .config-grid {
        grid-template-columns: 1fr !important;
    }
    
    #productDetailModal .duration-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

