/**
 * Dashboard CSS - Bootstrap 补充样式
 * 使用Bootstrap框架的自定义样式
 */

/* CSS 变量定义 - 现在通过PHP动态配置 */
:root {
    --bs-secondary-color: #6c757d;
    /* 主题色调变量现在通过dashboard.php中的内联CSS动态配置 */
    /* --bs-primary, --bs-success, --bs-info, --bs-warning, --bs-danger */
    /* --border-radius-custom, --border-radius-input, --border-radius-button */
}

/* 暗色主题变量 */
[data-bs-theme="dark"] {
    --bs-body-bg: #212529;
    --bs-body-color: #ffffff;
    --bs-secondary-color: #adb5bd;
    --bs-secondary-bg: #343a40;
    --bs-tertiary-bg: #495057;
    --bs-border-color: #495057;
    --bs-border-color-translucent: rgba(255, 255, 255, 0.175);
    --bs-primary-bg-subtle: rgba(40, 167, 69, 0.1);
    --bs-danger-bg-subtle: rgba(220, 53, 69, 0.1);
    --bs-success-bg-subtle: rgba(25, 135, 84, 0.1);
    --bs-warning-bg-subtle: rgba(255, 193, 7, 0.1);
    --bs-info-bg-subtle: rgba(13, 202, 240, 0.1);
    --bs-light-bg-subtle: rgba(248, 249, 250, 0.1);
    --bs-dark-bg-subtle: rgba(33, 37, 41, 0.1);
}

/* 暗色主题样式 */
[data-bs-theme="dark"] body {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

/* 导航栏样式已移至navbar.css */

[data-bs-theme="dark"] .card {
    background-color: #343a40;
    border-color: #495057;
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .card-header {
    background-color: #343a40;
    border-color: #495057;
}

[data-bs-theme="dark"] .card-title {
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .traffic-usage {
    background-color: #495057;
}

[data-bs-theme="dark"] .plan-detail-item {
    background-color: #343a40;
    border-color: #495057;
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .plan-detail-item:hover {
    border-color: var(--bs-primary);
}

[data-bs-theme="dark"] .plan-detail-label {
    color: #adb5bd;
}

[data-bs-theme="dark"] .service-item {
    background-color: #343a40;
    border-color: #495057;
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .service-item:hover {
    border-color: var(--bs-primary);
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .service-title {
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .service-desc {
    color: #adb5bd;
}

/* dropdown和offcanvas样式已移至navbar.css */

[data-bs-theme="dark"] .plan-detail-label {
    color: #adb5bd;
}

[data-bs-theme="dark"] .plan-detail-value {
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .plan-detail-extra {
    color: #adb5bd;
}

[data-bs-theme="dark"] .client-item {
    background-color: #343a40;
    border-color: #495057;
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .client-item:hover {
    border-color: var(--bs-primary);
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .client-name {
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .help-item {
    background-color: #343a40;
    border-color: #495057;
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .help-item:hover {
    border-color: var(--bs-primary);
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .help-title {
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .help-desc {
    color: #adb5bd;
}

[data-bs-theme="dark"] .subscription-item {
    background-color: #343a40;
    border-color: #495057;
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .subscription-item:hover {
    border-color: var(--bs-primary);
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .subscription-title {
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .subscription-desc {
    color: #adb5bd;
}



[data-bs-theme="dark"] #themeToggle {
    color: #adb5bd;
}

[data-bs-theme="dark"] #themeToggle:hover {
    color: var(--bs-primary);
}

/* 基础样式 */
body {
    background-color: var(--bs-body-bg, #f8f9fa);
    color: var(--bs-body-color, #212529);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

/* 提醒横幅样式 */
.notification-banners {
    position: relative;
    z-index: 10;
}

.notification-banner {
    border: none;
    border-radius: var(--border-radius-custom, 8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
    animation: slideInDown 0.3s ease-out;
}

.notification-banner:last-child {
    margin-bottom: 0;
}

.notification-banner .notification-action {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--border-radius-button, 6px);
    transition: all 0.2s ease;
}

.notification-banner .notification-action:hover {
    /* 移除transform以防止布局偏移 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 暗色主题下的提醒横幅样式 */
[data-bs-theme="dark"] .notification-banner {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .notification-banner.alert-warning {
    background-color: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

[data-bs-theme="dark"] .notification-banner.alert-info {
    background-color: rgba(13, 202, 240, 0.15);
    border-color: rgba(13, 202, 240, 0.3);
    color: #0dcaf0;
}

/* 动画效果 - 移除transform以防止布局偏移 */
@keyframes slideInDown {
    from {
        opacity: 0;
        /* 移除transform以防止布局偏移 */
    }
    to {
        opacity: 1;
        /* 移除transform以防止布局偏移 */
    }
}

/* 导航栏相关样式已移除 - 仪表盘独立运行 */

/* 主要内容区域 - 简化布局 */
.main-content {
    padding-top: 5rem;
    padding-bottom: 3rem; /* 增加底部间距，确保与页脚有足够空间 */
    min-height: 100vh;
}

/* PC端左右两侧底部对齐 */
@media (min-width: 992px) {
    .dashboard-row {
        display: flex !important;
        align-items: stretch !important;
    }
    
    .dashboard-left-col,
    .dashboard-right-col {
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* 确保左侧所有卡片等高分布 */
    .dashboard-left-col > .card {
        margin-bottom: 1.5rem;
    }
    
    .dashboard-left-col > .card:last-child {
        margin-bottom: 0;
        flex: 1;
    }
    
    /* 公告卡片特殊处理 - 防止内容过多影响布局 */
.announcement-card {
    max-height: 300px;
    overflow-y: auto;
}

.announcement-card .card-body {
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--bs-primary-rgb), 0.3) transparent;
}

.announcement-card .card-body::-webkit-scrollbar {
    width: 6px;
}

.announcement-card .card-body::-webkit-scrollbar-track {
    background: transparent;
}

.announcement-card .card-body::-webkit-scrollbar-thumb {
    background-color: rgba(var(--bs-primary-rgb), 0.3);
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.announcement-card .card-body::-webkit-scrollbar-thumb:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.5);
}

/* 公告内容HTML格式支持 */
.notice-content {
    line-height: 1.6;
    word-wrap: break-word;
    word-break: break-word;
}

.notice-content h1,
.notice-content h2,
.notice-content h3,
.notice-content h4,
.notice-content h5,
.notice-content h6 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--bs-body-color);
}

.notice-content h1 { font-size: 1.5rem; }
.notice-content h2 { font-size: 1.375rem; }
.notice-content h3 { font-size: 1.25rem; }
.notice-content h4 { font-size: 1.125rem; }
.notice-content h5 { font-size: 1rem; }
.notice-content h6 { font-size: 0.875rem; }

.notice-content p {
    margin-bottom: 0.75rem;
}

.notice-content ul,
.notice-content ol {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
}

.notice-content li {
    margin-bottom: 0.25rem;
}

.notice-content a {
    color: var(--bs-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.notice-content a:hover {
    color: var(--bs-primary);
    text-decoration: underline;
}

.notice-content strong,
.notice-content b {
    font-weight: 600;
    color: var(--bs-body-color);
}

.notice-content em,
.notice-content i {
    font-style: italic;
}

.notice-content code {
    background-color: var(--bs-secondary-bg, #f8f9fa);
    color: var(--bs-danger);
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}

.notice-content pre {
    background-color: var(--bs-secondary-bg, #f8f9fa);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.4;
}

.notice-content pre code {
    background: none;
    color: var(--bs-body-color);
    padding: 0;
    border-radius: 0;
}

.notice-content blockquote {
    border-left: 4px solid var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.05);
    margin: 0.75rem 0;
    padding: 0.75rem 1rem;
    border-radius: 0 0.375rem 0.375rem 0;
}

.notice-content hr {
    border: none;
    border-top: 1px solid var(--bs-border-color);
    margin: 1rem 0;
}

.notice-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
    margin: 0.5rem 0;
}

.notice-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.notice-content table th,
.notice-content table td {
    border: 1px solid var(--bs-border-color);
    padding: 0.5rem;
    text-align: left;
}

.notice-content table th {
     background-color: var(--bs-secondary-bg, #f8f9fa);
     font-weight: 600;
 }
 
 /* 弹窗公告样式 */
 #announcementModal .modal-content {
     border: none;
     border-radius: var(--bs-border-radius-lg);
     box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
 }
 
 #announcementModal .modal-header {
     background: #ffffff;
     border-radius: var(--bs-border-radius-lg) var(--bs-border-radius-lg) 0 0;
 }
 
 #announcementModal .modal-title {
     font-weight: 600;
     font-size: 1.25rem;
 }
 
 #announcementModal .announcement-content {
     line-height: 1.6;
     word-wrap: break-word;
     word-break: break-word;
 }
 
 #announcementModal .announcement-content h1,
 #announcementModal .announcement-content h2,
 #announcementModal .announcement-content h3,
 #announcementModal .announcement-content h4,
 #announcementModal .announcement-content h5,
 #announcementModal .announcement-content h6 {
     margin-top: 1rem;
     margin-bottom: 0.5rem;
     font-weight: 600;
     color: var(--bs-body-color);
 }
 
 #announcementModal .announcement-content h1 { font-size: 1.75rem; }
 #announcementModal .announcement-content h2 { font-size: 1.5rem; }
 #announcementModal .announcement-content h3 { font-size: 1.375rem; }
 #announcementModal .announcement-content h4 { font-size: 1.25rem; }
 #announcementModal .announcement-content h5 { font-size: 1.125rem; }
 #announcementModal .announcement-content h6 { font-size: 1rem; }
 
 #announcementModal .announcement-content p {
     margin-bottom: 0.75rem;
 }
 
 #announcementModal .announcement-content ul,
 #announcementModal .announcement-content ol {
     margin-bottom: 0.75rem;
     padding-left: 1.5rem;
 }
 
 #announcementModal .announcement-content li {
     margin-bottom: 0.25rem;
 }
 
 #announcementModal .announcement-content a {
     color: var(--bs-primary);
     text-decoration: none;
     transition: color 0.2s ease;
 }
 
 #announcementModal .announcement-content a:hover {
     color: var(--bs-primary);
     text-decoration: underline;
 }
 
 #announcementModal .announcement-content strong,
 #announcementModal .announcement-content b {
     font-weight: 600;
     color: var(--bs-body-color);
 }
 
 #announcementModal .announcement-content em,
 #announcementModal .announcement-content i {
     font-style: italic;
 }
 
 #announcementModal .announcement-content code {
     background-color: var(--bs-secondary-bg, #f8f9fa);
     color: var(--bs-danger);
     padding: 0.125rem 0.25rem;
     border-radius: 0.25rem;
     font-size: 0.875em;
     font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
 }
 
 #announcementModal .announcement-content pre {
     background-color: var(--bs-secondary-bg, #f8f9fa);
     border: 1px solid var(--bs-border-color);
     border-radius: 0.375rem;
     padding: 0.75rem;
     margin-bottom: 0.75rem;
     overflow-x: auto;
     font-size: 0.875rem;
     line-height: 1.4;
 }
 
 #announcementModal .announcement-content pre code {
     background: none;
     color: var(--bs-body-color);
     padding: 0;
     border-radius: 0;
 }
 
 #announcementModal .announcement-content blockquote {
     border-left: 4px solid var(--bs-primary);
     background-color: rgba(var(--bs-primary-rgb), 0.05);
     margin: 0.75rem 0;
     padding: 0.75rem 1rem;
     border-radius: 0 0.375rem 0.375rem 0;
 }
 
 #announcementModal .announcement-content hr {
     border: none;
     border-top: 1px solid var(--bs-border-color);
     margin: 1rem 0;
 }
 
 #announcementModal .announcement-content img {
     max-width: 100%;
     height: auto;
     border-radius: 0.375rem;
     margin: 0.5rem 0;
 }
 
 #announcementModal .announcement-content table {
     width: 100%;
     border-collapse: collapse;
     margin-bottom: 0.75rem;
     font-size: 0.875rem;
 }
 
 #announcementModal .announcement-content table th,
 #announcementModal .announcement-content table td {
     border: 1px solid var(--bs-border-color);
     padding: 0.5rem;
     text-align: left;
 }
 
 #announcementModal .announcement-content table th {
     background-color: var(--bs-secondary-bg, #f8f9fa);
     font-weight: 600;
 }
 
 #announcementModal .modal-footer {
     background-color: transparent;
     border-radius: 0 0 var(--bs-border-radius-lg) var(--bs-border-radius-lg);
 }
 
 #announcementModal .btn {
     border-radius: var(--bs-border-radius);
     font-weight: 500;
     transition: all 0.2s ease;
 }
 
 #announcementModal .btn:hover {
     /* 移除transform以防止布局偏移 */
     box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
 }

 /* 确保最后一个卡片能够填充剩余空间 */
.dashboard-right-col .card:last-child {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dashboard-right-col .card:last-child .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
}

/* 欢迎横幅 */
.welcome-banner {
    background: linear-gradient(135deg, var(--bs-primary), #20c997);
    border-radius: var(--border-radius-custom);
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="white" opacity="0.1"/><circle cx="40" cy="80" r="1.5" fill="white" opacity="0.1"/></svg>');
    pointer-events: none;
}

.welcome-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.welcome-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* 卡片样式 - 重新设计 */
.card {
    border-radius: var(--border-radius-custom);
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bs-body-bg);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-info));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.08);
    /* 移除transform以防止布局偏移 */
    border-color: rgba(var(--bs-primary-rgb), 0.3);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    background-color: var(--bs-body-bg);
    border-bottom: 1px solid var(--bs-border-color);
    padding: 1.25rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--bs-body-color);
}

.card-body {
    padding: 1.25rem;
}

/* 流量使用样式 */
.traffic-usage {
    background-color: var(--bs-secondary-bg, #f8f9fa);
    border-radius: var(--border-radius-custom);
    padding: 1.25rem;
}

.progress {
    background-color: var(--bs-tertiary-bg, #e9ecef);
}

.progress-bar {
    background-color: var(--bs-primary);
    transition: width 0.5s ease;
}

/* 套餐详情项目 - 重新设计 */
.plan-detail-item {
    padding: 1.5rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--border-radius-custom);
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.03), rgba(var(--bs-primary-rgb), 0.01));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.plan-detail-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--bs-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.plan-detail-item:hover {
    border-color: rgba(var(--bs-primary-rgb), 0.4);
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.08), rgba(var(--bs-primary-rgb), 0.04));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);
    /* 移除transform以防止布局偏移 */
}

.plan-detail-item:hover::before {
    transform: scaleX(1);
}

.plan-detail-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.plan-detail-label {
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
    margin-bottom: 0.25rem;
}

.plan-detail-value {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--bs-body-color);
}

.plan-detail-extra {
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
}

/* 服务项目 - 重新设计 */
.service-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 1.5rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--border-radius-custom);
    text-decoration: none;
    color: inherit;
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.03), rgba(var(--bs-primary-rgb), 0.01));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 120px;
    min-height: 120px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.service-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--bs-primary), var(--bs-success));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.service-item:hover {
    border-color: rgba(var(--bs-primary-rgb), 0.3);
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.08), rgba(var(--bs-primary-rgb), 0.04));
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1), 0 3px 8px rgba(0, 0, 0, 0.06);
    /* 移除transform以防止布局偏移 */
    color: inherit;
    text-decoration: none;
}

.service-item:hover::after {
    transform: scaleY(1);
}

.service-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.1), rgba(var(--bs-primary-rgb), 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.15), rgba(var(--bs-primary-rgb), 0.08));
    /* 移除transform以防止布局偏移 */
}

.service-content {
    flex: 1;
}

.service-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--bs-body-color);
}

.service-desc {
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
    margin: 0;
}

/* 客户端下载项目 - 重新设计 */
.client-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--border-radius-custom);
    text-decoration: none;
    color: inherit;
    background: linear-gradient(135deg, rgba(var(--bs-info-rgb, 23, 162, 184), 0.03), rgba(var(--bs-info-rgb, 23, 162, 184), 0.01));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.client-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--bs-info);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.client-item:hover {
    border-color: rgba(var(--bs-info-rgb, 23, 162, 184), 0.4);
    background: linear-gradient(135deg, rgba(var(--bs-info-rgb, 23, 162, 184), 0.08), rgba(var(--bs-info-rgb, 23, 162, 184), 0.04));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);
    /* 移除transform以防止布局偏移 */
    color: inherit;
    text-decoration: none;
}

.client-item:hover::before {
    transform: scaleX(1);
}

.client-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(var(--bs-info-rgb, 23, 162, 184), 0.1), rgba(var(--bs-info-rgb, 23, 162, 184), 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.client-item:hover .client-icon {
    background: linear-gradient(135deg, rgba(var(--bs-info-rgb, 23, 162, 184), 0.15), rgba(var(--bs-info-rgb, 23, 162, 184), 0.08));
    /* 移除transform以防止布局偏移 */
}

.client-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bs-body-color);
}

/* 帮助项目 - 重新设计 */
.help-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--border-radius-custom);
    text-decoration: none;
    color: inherit;
    background: linear-gradient(135deg, rgba(var(--bs-success-rgb, 25, 135, 84), 0.03), rgba(var(--bs-success-rgb, 25, 135, 84), 0.01));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.help-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(var(--bs-success-rgb, 25, 135, 84), 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.help-item:hover {
    border-color: rgba(var(--bs-success-rgb, 25, 135, 84), 0.4);
    background: linear-gradient(135deg, rgba(var(--bs-success-rgb, 25, 135, 84), 0.08), rgba(var(--bs-success-rgb, 25, 135, 84), 0.04));
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1), 0 3px 8px rgba(0, 0, 0, 0.06);
    /* 移除transform以防止布局偏移 */
    color: inherit;
    text-decoration: none;
}

.help-item:hover::before {
    width: 120%;
    height: 120%;
}

.help-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(var(--bs-success-rgb, 25, 135, 84), 0.1), rgba(var(--bs-success-rgb, 25, 135, 84), 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.help-item:hover .help-icon {
    background: linear-gradient(135deg, rgba(var(--bs-success-rgb, 25, 135, 84), 0.15), rgba(var(--bs-success-rgb, 25, 135, 84), 0.08));
    /* 移除transform以防止布局偏移 */
}

.help-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--bs-body-color);
}

.help-desc {
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
    margin: 0;
}

/* 订阅信息 */
.subscription-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* 订阅项目 - 重新设计 */
.subscription-item {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--border-radius-custom);
    text-decoration: none;
    color: inherit;
    background: linear-gradient(135deg, rgba(var(--bs-warning-rgb, 255, 193, 7), 0.03), rgba(var(--bs-danger-rgb, 220, 53, 69), 0.01));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.subscription-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--bs-warning), var(--bs-danger));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.subscription-item:hover {
    border-color: rgba(var(--bs-warning-rgb, 255, 193, 7), 0.4);
    background: linear-gradient(135deg, rgba(var(--bs-warning-rgb, 255, 193, 7), 0.08), rgba(var(--bs-danger-rgb, 220, 53, 69), 0.04));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);
    /* 移除transform以防止布局偏移 */
    color: inherit;
    text-decoration: none;
}

.subscription-item:hover::before {
    transform: scaleY(1);
}

.subscription-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--bs-warning-rgb, 255, 193, 7), 0.1), rgba(var(--bs-danger-rgb, 220, 53, 69), 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.subscription-item:hover .subscription-icon {
    background: linear-gradient(135deg, rgba(var(--bs-warning-rgb, 255, 193, 7), 0.15), rgba(var(--bs-danger-rgb, 220, 53, 69), 0.08));
    /* 移除transform以防止布局偏移 */
}

.subscription-content {
    flex: 1;
}

.subscription-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--bs-body-color);
}

.subscription-desc {
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
    margin: 0;
}

/* 页脚样式 */
.footer {
    background-color: var(--bs-body-bg, white);
    border-top: 1px solid var(--bs-border-color, #dee2e6);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-copyright {
    color: var(--bs-body-color, #6c757d);
    font-size: 0.875rem;
}

.footer-version {
    color: var(--bs-body-color, #6c757d);
    font-size: 0.875rem;
}

.footer-status {
    color: var(--bs-success);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-status-icon {
    font-size: 8px;
    animation: pulse 2s infinite;
}

/* 动画效果 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* 移除页面加载动画以防止刷新时上滑 */

/* 主题切换按钮 */
#themeToggle {
    border: none;
    background: none;
    color: var(--bs-secondary-color);
    font-size: 1.1rem;
    transition: color 0.15s ease-in-out;
}

#themeToggle:hover {
    color: var(--bs-primary);
}

/* 响应式设计 */
@media (max-width: 991.98px) {
    .main-content {
        padding-top: 80px;
    }
    
    .navbar-nav-center {
        display: none !important;
    }
    
    .welcome-banner {
        padding: 1.5rem;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .card-header,
    .card-body {
        padding: 1rem;
    }
}

@media (max-width: 767.98px) {
    .main-content {
        padding-top: 80px;
        margin-bottom: 40px;
    }
    
    .welcome-banner {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .welcome-title {
        font-size: 1.25rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .card-header,
    .card-body {
        padding: 0.75rem 1rem;
    }
    
    .plan-detail-item {
        padding: 0.75rem;
    }
    
    .plan-detail-icon {
        font-size: 1.5rem;
    }
    
    .service-item,
    .client-item,
    .help-item,
    .subscription-item {
        padding: 0.75rem;
    }
    
    .service-item {
        padding: 0.75rem 1rem;
    }
    
    .service-icon {
        width: 32px;
        height: 32px;
        margin-right: 0.75rem;
    }
    
    .client-icon {
        font-size: 1.5rem;
    }
    
    .help-icon {
        font-size: 2rem;
    }
    
    .footer {
        padding: 1.5rem 0;
        text-align: center;
    }
    
    .footer .col-md-6:last-child {
        margin-top: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand-text {
        font-size: 1rem;
    }
    
    .welcome-title {
        font-size: 1.125rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .plan-detail-icon {
        font-size: 1.25rem;
    }
    
    .service-title,
    .help-title,
    .subscription-title {
        font-size: 0.875rem;
    }
}

/* 移除重复的暗色主题样式 - 已在文件开头定义 */

/* 打印样式 */
@media print {
    .navbar,
    .footer,
    .btn,
    .dropdown,
    #toast {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
        margin-bottom: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid var(--bs-border-color);
    }
    
    .welcome-banner {
        background: none !important;
        color: var(--bs-body-color) !important;
        border: 1px solid var(--bs-border-color);
    }
}

/* 可访问性增强 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 焦点样式增强 */
.btn:focus,
.nav-menu-item:focus,
.service-item:focus,
.client-item:focus,
.help-item:focus,
.subscription-item:focus {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* 加载状态 */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid var(--bs-border-color);
    border-top: 2px solid var(--bs-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 加载占位符样式 - 优化版 */
.loading-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-custom);
    backdrop-filter: blur(4px);
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .loading-placeholder {
    background: rgba(33, 37, 41, 0.95);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.loading-placeholder .loading-spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid rgba(var(--bs-primary-rgb), 0.2);
    border-top: 3px solid var(--bs-primary);
    border-radius: 50%;
    animation: loading-spin 1s linear infinite;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.loading-placeholder .loading-text {
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
    font-weight: 500;
    letter-spacing: 0.5px;
}

@keyframes loading-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 实用工具类 */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hover-lift {
    transition: transform 0.15s ease-in-out;
}

.border-radius-lg {
    border-radius: 12px !important;
}

.border-radius-xl {
    border-radius: 16px !important;
}

.shadow-hover {
    transition: box-shadow 0.15s ease-in-out;
}

.shadow-hover:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* 受限制内容遮罩样式 */
.restricted-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-custom);
    backdrop-filter: blur(2px);
    z-index: 10;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] .restricted-overlay {
    background: rgba(33, 37, 41, 0.9);
}

.restricted-message {
    text-align: center;
    color: var(--bs-secondary-color);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.restricted-message i {
    font-size: 1.5rem;
    opacity: 0.7;
}

.restricted-overlay:hover {
    background: rgba(255, 255, 255, 0.95);
}

[data-bs-theme="dark"] .restricted-overlay:hover {
    background: rgba(33, 37, 41, 0.95);
}

/* 旋转动画 */
.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
/* 弹窗公告暗
色模式修复 */
[data-bs-theme="dark"] #announcementModal .modal-header {
    background-color: var(--bs-dark-bg-subtle, #343a40);
    border-bottom-color: var(--bs-border-color, #495057);
}

[data-bs-theme="dark"] #announcementModal .modal-content {
    background-color: var(--bs-body-bg, #212529);
    border-color: var(--bs-border-color, #495057);
}

[data-bs-theme="dark"] #announcementModal .modal-title {
    color: var(--bs-body-color, #ffffff);
}

[data-bs-theme="dark"] #announcementModal .modal-body {
    background-color: var(--bs-body-bg, #212529);
    color: var(--bs-body-color, #ffffff);
}

[data-bs-theme="dark"] #announcementModal .modal-footer {
    background-color: var(--bs-dark-bg-subtle, #343a40);
    border-top-color: var(--bs-border-color, #495057);
}

/* 确保在所有屏幕尺寸下都生效 */
@media (min-width: 576px) {
    [data-bs-theme="dark"] #announcementModal .modal-header {
        background-color: var(--bs-dark-bg-subtle, #343a40);
    }
    
    [data-bs-theme="dark"] #announcementModal .modal-content {
        background-color: var(--bs-body-bg, #212529);
    }
    
    [data-bs-theme="dark"] #announcementModal .modal-footer {
        background-color: var(--bs-dark-bg-subtle, #343a40);
    }
}