/* 全局样式 */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    
    --transition-speed: 0.3s;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* 页面字体放大 */
html {
    font-size: 17px;
}

body {
    font-size: 17px;
}

/* 动画定义 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 76px; /* 为固定导航栏留出空间 */
    background-color: #ffffff;
}

body.with-bg-video {
    background-color: transparent;
}

.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
    filter: saturate(0.62) brightness(0.82) contrast(0.92) blur(0.35px);
    opacity: 0.88;
}

/* 导航栏样式 */
.navbar {
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed) ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    transition: transform var(--transition-speed) ease;
    position: relative;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

/* MOMO助手logo图片样式 */
.navbar-logo {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-speed) ease;
}

.navbar-logo:hover {
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* MOMO名片框样式 */
.momo-card {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    background: rgba(138, 43, 226, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 220px;
    transition: all 0.3s ease;
}

.momo-card:hover {
    background: rgba(138, 43, 226, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.momo-card-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.momo-card img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.momo-card-info {
    flex: 1;
}

.momo-card-info a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.momo-card-info a:hover {
    opacity: 0.8;
}

.momo-card-info .momo-handle {
    font-size: 16px;
    margin: 0;
}

.momo-card-info .momo-link {
    font-size: 14px;
    opacity: 0.9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .momo-card {
        display: none;
    }
    
}

/* 隐藏名片框的类 */
.momo-card.hidden {
    display: none;
}


.nav-link {
    transition: color var(--transition-speed) ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}

body.lang-en .navbar .nav-link i,
body.lang-en .navbar .nav-link .nav-icon {
    display: none !important;
}

body.lang-en .navbar .nav-link {
    gap: 0;
}

.activity-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.activity-detail-row {
    display: none;
    background: #f7f8fc;
}

.activity-detail-row.show {
    display: table-row;
}

/* 移动端强制默认关闭 */
@media (max-width: 768px) {
    .activity-detail-row {
        display: none !important;
    }
    
    .activity-detail-row.show {
        display: block !important;
    }
}

.activity-detail-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
    font-size: 0.95rem;
}

.activity-detail-header h5 {
    font-size: 1.05rem;
}

.detail-badge-row {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.35rem 1rem;
    font-size: 0.9rem;
}

.detail-meta-grid .meta-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.05em;
}

.detail-meta-grid .meta-value {
    display: block;
    font-size: 0.9rem;
    color: #1f2937;
    font-weight: 500;
    margin-top: 0.2rem;
}

.detail-links a {
    font-size: 0.85rem;
    text-decoration: none;
}

.ai-feedback {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    font-size: 0.9rem;
    min-height: 90px;
}

.activity-metric-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;
}

.activity-metric-chip {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.activity-metric-chip .chip-label {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.activity-metric-chip .chip-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
}

.activity-metric-chip .chip-hint {
    font-size: 0.75rem;
    color: #94a3b8;
}

.radar-wrapper {
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 20px;
    height: 100%;
}

.language-switcher-wrapper {
    display: flex;
    align-items: center;
}

.language-switcher {
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.language-switcher .btn {
    color: #fff;
    border-color: transparent;
    font-weight: 600;
    min-width: 48px;
    transition: background var(--transition-speed) ease, color var(--transition-speed) ease;
}

.language-switcher .btn:hover,
.language-switcher .btn.active {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

@media (max-width: 991px) {
    .language-switcher-wrapper {
        width: 100%;
        justify-content: flex-start;
    }

    .language-switcher {
        width: 100%;
    }

    .language-switcher .btn {
        flex: 1;
    }
}

/* 区域间距 */
.section-padding {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header h1,
.section-header h2 {
    font-weight: 700;
    color: var(--dark-color);
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: var(--border-radius);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.card-header {
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    font-weight: 600;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
}

/* 气泡图容器 */
.bubble-chart-wrapper {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: var(--border-radius);
    padding: 40px 20px;
    margin: 30px 0;
    box-shadow: var(--box-shadow);
    min-height: 500px;
    position: relative;
    overflow: hidden; /* 确保内容不超出容器 */
}

#bubble-chart-container {
    width: 100%;
    height: 100%;
    overflow: hidden; /* 确保SVG不超出容器 */
    position: relative;
}

.bubble-chart-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.1), transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 119, 198, 0.1), transparent 50%);
    pointer-events: none;
}

#bubble-chart {
    width: 100%;
    height: 500px;
    display: block;
}

/* 气泡节点样式 */
.bubble-node {
    cursor: grab;
    transition: opacity var(--transition-speed) ease;
}

.bubble-node:hover {
    opacity: 0.9;
}

.bubble-node circle {
    transition: stroke-width 0.2s ease;
}

.bubble-node:hover circle {
    stroke-width: 3;
}

.bubble-node:active {
    cursor: grabbing;
}

.bubble-label {
    pointer-events: none;
    font-size: 12px;
    font-weight: 600;
    fill: #fff;
    text-anchor: middle;
    dominant-baseline: middle;
}

.bubble-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.bubble-tooltip.show {
    opacity: 1;
}

/* 表格样式 */
.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: #495057;
}

.table tbody tr {
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
}

.table td {
    vertical-align: middle;
    padding: 1rem;
}

/* 平台标签 */
.platform-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.platform-wallchain,
.platform-walchain {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.platform-kaito {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.platform-cookie {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

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

/* Other平台按钮样式（与导航栏颜色一致） */
.btn-outline-other {
    color: #667eea;
    border-color: #667eea;
    background: transparent;
}

.btn-outline-other:hover,
.btn-outline-other.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

/* 难度标签 */
.difficulty-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.difficulty-easy {
    background-color: #d4edda;
    color: #155724;
}

.difficulty-medium {
    background-color: #fff3cd;
    color: #856404;
}

.difficulty-hard {
    background-color: #f8d7da;
    color: #721c24;
}

/* 评分显示 */
.score-display {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.score-bar {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
    overflow: hidden;
    margin-top: 5px;
}

.score-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width var(--transition-speed) ease;
    border-radius: 4px;
}

/* 加载动画 */
.spinner-border {
    width: 3rem;
    height: 3rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 表单样式 */
.form-control {
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    padding: 12px 16px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.btn {
    border-radius: var(--border-radius);
    padding: 12px 30px;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* 文章分析结果样式 */
.analysis-result-card {
    margin-top: 30px;
    animation: fadeInUp 0.5s ease;
}

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

.ai-probability-display {
    text-align: center;
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.ai-probability-value {
    font-size: 4rem;
    font-weight: 700;
    margin: 20px 0;
}

.ai-probability-low {
    color: var(--success-color);
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.ai-probability-medium {
    color: var(--warning-color);
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
}

.ai-probability-high {
    color: var(--danger-color);
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

.dimension-card {
    border-left: 4px solid var(--primary-color);
    transition: all var(--transition-speed) ease;
}

.dimension-card:hover {
    border-left-width: 6px;
    transform: translateX(5px);
}

.dimension-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.dimension-score {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* X账号查询结果样式 */
.account-status-card {
    margin-top: 0;
    padding-top: 0;
    animation: fadeInUp 0.5s ease;
}

.status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-normal {
    background-color: #d4edda;
    color: #155724;
}

.status-shadowbanned {
    background-color: #f8d7da;
    color: #721c24;
}

.status-limited {
    background-color: #fff3cd;
    color: #856404;
}

.status-abnormal {
    background-color: #d1ecf1;
    color: #0c5460;
}

.stat-item {
    text-align: center;
    padding: 20px;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: transform var(--transition-speed) ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 5px;
}

/* 建议列表 */
.suggestions-list {
    list-style: none;
    padding: 0;
}

.suggestions-list li {
    padding: 12px 16px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    border-left: 4px solid var(--info-color);
    border-radius: 4px;
    transition: all var(--transition-speed) ease;
}

.suggestions-list li:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

.suggestions-list li::before {
    content: '\f0eb';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
    color: var(--info-color);
}

/* 风险因素 */
.risk-factor {
    display: inline-block;
    padding: 6px 12px;
    margin: 5px;
    background-color: #fff3cd;
    color: #856404;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* 推文项样式 */
.tweet-item {
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6 !important;
}

.tweet-item:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tweet-item p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    word-wrap: break-word;
}

/* 多维度评分卡片样式 */
.dimension-score-card {
    background-color: #ffffff;
    border: 1px solid #dee2e6 !important;
}

/* 雷达图容器样式 */
#dimension-radar-chart {
    max-width: 100%;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 进度条容器样式 */
.progress-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    margin: 20px 0;
}

.progress-header {
    text-align: center;
    margin-bottom: 30px;
}

.progress-header h5 {
    color: var(--primary-color);
    font-weight: 600;
}

.progress-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.progress-step {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.progress-step.active {
    border-color: var(--primary-color);
    background-color: #f0f7ff;
    opacity: 1;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.15);
}

.progress-step.completed {
    border-color: var(--success-color);
    background-color: #f0fff4;
    opacity: 1;
}

.progress-step.completed .step-icon {
    color: var(--success-color);
}

.progress-step.active .step-icon {
    color: var(--primary-color);
}

.step-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 1.2rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

.step-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.step-text {
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.step-status {
    display: flex;
    align-items: center;
    min-width: 30px;
}

.step-check {
    font-size: 1.3rem;
    animation: checkmark 0.3s ease;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.progress-bar-wrapper {
    margin-top: 20px;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color) 0%, #0dcaf0 100%);
    transition: width 0.5s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .section-padding {
        padding: 30px 0;
    }
    
    .display-4 {
        font-size: 1.8rem;
    }
    
    .display-5 {
        font-size: 1.3rem;
    }
    
    .bubble-chart-wrapper {
        min-height: 400px;
        padding: 20px 10px;
    }
    
    #bubble-chart {
        height: 400px;
    }
    
    .ai-probability-value {
        font-size: 3rem;
    }
    
    /* 导航栏移动端优化 */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-logo {
        width: 28px;
        height: 28px;
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    /* 平台筛选按钮 - 平板端优化 */
    .platform-filter-wrapper {
        overflow-x: visible;
        padding-bottom: 10px;
    }
    
    .platform-filter-group {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .platform-filter-group .btn {
        flex: 1 1 auto;
        min-width: calc(33.333% - 0.4rem);
        max-width: calc(33.333% - 0.4rem);
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    /* 表格移动端优化 */
    .table-responsive {
        font-size: 0.85rem;
        border-radius: 8px;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.4rem;
        font-size: 0.85rem;
    }
    
    /* 卡片移动端优化 */
    .card {
        margin-bottom: 1rem;
        border-radius: 12px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-header {
        padding: 0.75rem 1rem;
    }
    
    .card-header h5 {
        font-size: 1.1rem;
    }
    
    /* 按钮移动端优化 */
    .btn-lg {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
    
    /* 表单移动端优化 */
    .form-control-lg {
        font-size: 0.95rem;
        padding: 0.6rem 0.75rem;
    }
    
    /* 活动表格移动端优化 */
    .activity-table {
        font-size: 0.85rem;
    }
    
    .activity-table th,
    .activity-table td {
        padding: 0.5rem 0.4rem;
    }
    
    /* 操作按钮移动端优化 */
    .activity-actions {
        gap: 0.4rem;
    }
    
    .activity-actions .btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
    
    /* 账号分析页面移动端优化 */
    .account-status-card {
        margin-top: 20px;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    /* 雷达图移动端优化 */
    #dimension-radar-chart {
        max-height: 300px;
    }
    
    /* 标题和描述移动端优化 */
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header .lead {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    /* 加载提示移动端优化 */
    #activities-loading {
        padding: 2rem 1rem;
    }
    
    #activities-loading .progress {
        max-width: 100%;
        height: 20px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 576px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    /* 平台筛选按钮 - 移动端一屏显示，不滚动 */
    .platform-filter-wrapper {
        overflow-x: visible;
        padding-bottom: 10px;
    }
    
    .platform-filter-group {
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .platform-filter-group .btn {
        flex: 1 1 auto;
        min-width: calc(50% - 0.25rem);
        max-width: calc(50% - 0.25rem);
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .platform-filter-group .btn i {
        font-size: 0.8rem;
        margin-right: 0.3rem;
    }
    
    .platform-name {
        display: inline;
    }
    
    .table {
        font-size: 0.75rem;
    }
    
    .card-header h5 {
        font-size: 1rem;
    }
    
    /* 标题移动端优化 */
    .display-4 {
        font-size: 1.75rem;
    }
    
    .section-header .lead {
        font-size: 0.9rem;
    }
    
    /* 表格移动端优化 - 卡片式布局 */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table th,
    .table td {
        padding: 0.4rem 0.3rem;
        font-size: 0.8rem;
    }
    
    /* 操作按钮移动端优化 */
    .activity-actions {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .activity-actions .btn {
        width: 100%;
        font-size: 0.85rem;
        padding: 0.4rem 0.5rem;
    }
}

/* 滚动动画 */
.fade-in {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 工具提示增强 */
.tooltip-inner {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 8px 12px;
    border-radius: 6px;
}

/* 链接样式 */
a {
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

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

/* 按钮加载状态 */
.btn.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

/* AI模型状态提示框样式 */
.ai-status-card {
    background: rgba(25, 135, 84, 0.85);
    border: none;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 8px 24px rgba(25, 135, 84, 0.25);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease;
    backdrop-filter: blur(10px);
}

.ai-status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}


.ai-status-content {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.ai-status-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.ai-status-icon i {
    font-size: 28px;
    color: #ffffff;
    animation: checkmark 0.6s ease;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
    }
}

@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.ai-status-text {
    flex: 1;
    min-width: 0;
}

.ai-status-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ai-status-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    line-height: 1.4;
}

.ai-status-counter {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 18px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 140px;
}

.counter-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.counter-icon i {
    font-size: 18px;
    color: #ffffff;
}

.counter-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.counter-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.counter-value {
    display: flex;
    align-items: baseline;
    gap: 4px;
    line-height: 1;
}

.counter-value .usage-count {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}


.counter-unit {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .ai-status-content {
        flex-wrap: wrap;
        gap: 16px;
        padding: 18px 20px;
    }
    
    .ai-status-icon {
        width: 48px;
        height: 48px;
    }
    
    .ai-status-icon i {
        font-size: 24px;
    }
    
    .ai-status-title {
        font-size: 16px;
    }
    
    .ai-status-subtitle {
        font-size: 12px;
    }
    
    .ai-status-counter {
        width: 100%;
        justify-content: center;
        min-width: auto;
    }
    
    .counter-value .usage-count {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .ai-status-content {
        padding: 16px;
        gap: 12px;
    }
    
    .ai-status-icon {
        width: 44px;
        height: 44px;
    }
    
    .ai-status-icon i {
        font-size: 20px;
    }
    
    .ai-status-title {
        font-size: 15px;
    }
    
    .ai-status-subtitle {
        font-size: 11px;
    }
    
    .ai-status-counter {
        padding: 10px 14px;
        gap: 10px;
    }
    
    .counter-icon {
        width: 32px;
        height: 32px;
    }
    
    .counter-icon i {
        font-size: 16px;
    }
    
    .counter-value .usage-count {
        font-size: 18px;
    }
    
    .counter-unit {
        font-size: 12px;
    }
}

/* 紧凑布局优化 */
.account-status-card .card {
    margin-bottom: 0.75rem !important;
}

.account-status-card .card-header {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
}

.account-status-card .card-header[data-bs-toggle="collapse"] {
    transition: background-color 0.2s ease;
}

.account-status-card .card-header[data-bs-toggle="collapse"]:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.account-status-card .card-header .fa-chevron-down {
    transition: transform 0.3s ease;
}

.account-status-card .card-header[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

.account-status-card .card-body {
    padding: 0.75rem 0.5rem;
}

.dimension-score-card {
    padding: 0.5rem !important;
}

.dimension-score-card .small {
    font-size: 0.85rem;
}

/* 紧凑的推文列表 */
.tweet-item {
    padding: 0.5rem !important;
    font-size: 0.875rem;
}

.tweet-item .btn-xs {
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
}

/* 紧凑的统计信息 */
.account-status-card .row.g-2 > * {
    padding: 0.25rem;
}

/* 优化折叠动画 */
.collapse {
    transition: height 0.35s ease;
}

/* 紧凑的徽章 */
.badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* 紧凑的建议列表 */
.suggestions-list {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.suggestions-list li {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

/* AI预防建议窗口样式 */
.ai-prevention-tips-card {
    background: rgba(25, 135, 84, 0.1) !important;
    border: 2px solid rgba(25, 135, 84, 0.3) !important;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.ai-prevention-tips-card .card-body {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 1rem;
}

.ai-prevention-tips-card .tips-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.ai-prevention-tips-card .tips-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    border-bottom: 1px solid rgba(25, 135, 84, 0.1);
    font-size: 0.9rem;
    line-height: 1.6;
}

.ai-prevention-tips-card .tips-list li:last-child {
    border-bottom: none;
}

.ai-prevention-tips-card .tips-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #198754;
    font-weight: bold;
    font-size: 1rem;
}

.ai-prevention-tips-card .card-header h5 {
    color: #198754;
    font-weight: 600;
}

.ai-prevention-tips-card .card-header small {
    color: rgba(25, 135, 84, 0.8);
}

/* 账号状态概览卡片 - 玻璃效果和导航栏样式 */
.account-overview-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.account-overview-card .card-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    color: #333;
}

.account-overview-card .card-body {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0.5rem;
}

/* AI预防建议卡片 - 账号分析页面版本 */
.ai-prevention-tips-card-account {
    background: rgba(25, 135, 84, 0.1) !important;
    border: 2px solid rgba(25, 135, 84, 0.3) !important;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    margin-top: 10px;
}

.ai-prevention-tips-card-account .card-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 0.75rem 1rem;
}

.ai-prevention-tips-card-account .card-header h6 {
    color: #198754;
    font-weight: 600;
    font-size: 0.95rem;
}

.ai-prevention-tips-card-account .card-header small {
    color: rgba(25, 135, 84, 0.8);
    font-size: 0.8rem;
}

.ai-prevention-tips-card-account .card-body {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 1rem;
}

.ai-prevention-tips-card-account .tips-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-size: 0.85rem;
}

.ai-prevention-tips-card-account .tips-list li {
    padding: 0.4rem 0;
    padding-left: 1.2rem;
    position: relative;
    border-bottom: 1px solid rgba(25, 135, 84, 0.1);
    line-height: 1.5;
}

.ai-prevention-tips-card-account .tips-list li:last-child {
    border-bottom: none;
}

.ai-prevention-tips-card-account .tips-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #198754;
    font-weight: bold;
    font-size: 0.9rem;
}

/* AI建议容器样式 */
.ai-suggestions-container {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 16px;
    box-shadow: none !important;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ai-suggestions-container .card-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 玻璃效果卡片 */
.glass-effect-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
    border-radius: 12px;
    overflow: hidden;
}

.glass-effect-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* 取消鼠标悬停动画 */
/* .glass-effect-header:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%) !important;
} */

.glass-effect-card .card-body {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

/* 折叠箭头旋转动画 */
.glass-effect-header[aria-expanded="true"] .fa-chevron-up,
.glass-effect-header[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.glass-effect-header[aria-expanded="false"] .fa-chevron-up,
.glass-effect-header[aria-expanded="false"] .fa-chevron-down {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

/* 确保折叠内容有玻璃效果 */
.glass-effect-card .collapse.show {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
}

/* 玻璃效果卡片 */
.glass-effect-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
    border-radius: 12px;
    overflow: hidden;
}

.glass-effect-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* 取消鼠标悬停动画 */
/* .glass-effect-header:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%) !important;
} */

.glass-effect-card .card-body {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

/* 折叠箭头旋转动画 */
.glass-effect-header[aria-expanded="true"] .fa-chevron-up {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.glass-effect-header[aria-expanded="false"] .fa-chevron-up {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

/* ========== 现代化多维度评分卡片样式 ========== */
.modern-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.modern-dimension-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.modern-dimension-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 取消鼠标悬停动画 */
/* .modern-dimension-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: rgba(102, 126, 234, 0.3);
}

.modern-dimension-card:hover::before {
    opacity: 1;
} */

.dimension-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.75rem;
}

.dimension-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* 取消鼠标悬停动画 */
/* .modern-dimension-card:hover .dimension-icon {
    transform: scale(1.1) rotate(5deg);
} */

.dimension-info {
    flex: 1;
    min-width: 0;
}

.dimension-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.dimension-weight {
    font-size: 0.75rem;
    color: #718096;
    font-weight: 500;
}

.dimension-score-display {
    margin-bottom: 0.75rem;
}

.score-main {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.score-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.score-unit {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.7;
}

.score-breakdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.base-score {
    color: #718096;
    font-weight: 500;
}

.actual-score {
    font-weight: 600;
    font-size: 0.85rem;
}

.dimension-progress {
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    position: relative;
}

.progress-bar-modern {
    height: 100%;
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.dimension-description {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

.dimension-description small {
    line-height: 1.5;
    color: #718096;
}

/* 渐变背景类 */
.bg-gradient-primary {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.bg-gradient-success {
    background: linear-gradient(90deg, #48bb78, #38a169);
}

.bg-gradient-warning {
    background: linear-gradient(90deg, #ed8936, #dd6b20);
}

.bg-gradient-danger {
    background: linear-gradient(90deg, #f56565, #e53e3e);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .modern-dimension-card {
        padding: 1rem;
    }
    
    .score-value {
        font-size: 1.75rem;
    }
    
    .dimension-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* 评分卡片动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-dimension-card {
    animation: fadeInUp 0.5s ease-out;
}

.modern-dimension-card:nth-child(1) { animation-delay: 0.05s; }
.modern-dimension-card:nth-child(2) { animation-delay: 0.1s; }
.modern-dimension-card:nth-child(3) { animation-delay: 0.15s; }
.modern-dimension-card:nth-child(4) { animation-delay: 0.2s; }
.modern-dimension-card:nth-child(5) { animation-delay: 0.25s; }
.modern-dimension-card:nth-child(6) { animation-delay: 0.3s; }

/* ========== 现代化综合评分展示 ========== */
.modern-score-display {
    display: flex;
    justify-content: center;
    align-items: center;
}

.score-circle-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.score-circle {
    transform: rotate(-90deg);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-circle-progress {
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: #2d3748;
}

.score-label {
    font-size: 0.75rem;
    color: #718096;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* 统计数据卡片 */
.modern-stats {
    margin-top: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 1rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* 取消鼠标悬停动画 */
/* .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
} */

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.1rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: #718096;
    font-weight: 500;
}

/* 多维度评分和雷达图对齐样式 */
.row.g-2[style*="align-items: stretch"] {
    display: flex;
    align-items: stretch;
}

.row.g-2[style*="align-items: stretch"] > .col-lg-6 {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* 确保左侧卡片区域和右侧雷达图区域顶部对齐 */
.row.g-2[style*="align-items: stretch"] > .col-lg-6:first-child {
    align-items: stretch;
}

.row.g-2[style*="align-items: stretch"] > .col-lg-6:first-child > .row {
    height: 100%;
    align-content: flex-start;
}

.row.g-2[style*="align-items: stretch"] > .col-lg-6:last-child {
    align-items: stretch;
    justify-content: flex-start;
}

/* 移动端专用优化样式 */
@media (max-width: 768px) {
    /* 整体布局优化 */
    body {
        padding-top: 70px;
    }
    
    /* 容器内边距优化 */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    
    /* 导航栏折叠菜单优化 */
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 0.25rem;
    }
    
    /* 表格在移动端的优化 - 使用卡片式布局 */
    @media (max-width: 576px) {
        .table-responsive {
            display: block;
            width: 100%;
            overflow-x: visible;
            -webkit-overflow-scrolling: touch;
        }
        
        /* 表格头部在移动端隐藏 */
        .table thead {
            display: none;
        }
        
        /* 表格行在移动端显示为卡片 */
        .table tbody tr {
            display: block;
            margin-bottom: 1rem;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            background: white;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            padding: 0;
        }
        
        /* 详情行特殊处理 - 不应用卡片样式 */
        .table tbody tr.activity-detail-row {
            margin-bottom: 0;
            border: none;
            border-radius: 0;
            box-shadow: none;
            background: transparent;
        }
        
        .table tbody td {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem 1rem;
            border: none;
            border-bottom: 1px solid #f0f0f0;
            text-align: left;
        }
        
        /* 详情行的td不应用flex布局 */
        .table tbody tr.activity-detail-row td {
            display: block !important;
            padding: 0.75rem !important;
            border: none !important;
            width: 100% !important;
            max-width: 100% !important;
        }
        
        .table tbody td:last-child {
            border-bottom: none;
        }
        
        .table tbody td::before {
            content: attr(data-label);
            font-weight: 600;
            color: #666;
            margin-right: 1rem;
            flex-shrink: 0;
            min-width: 80px;
        }
        
        /* 隐藏的列在移动端不显示 */
        .table tbody td[style*="display: none"] {
            display: none !important;
        }
        
        /* 操作列特殊处理 */
        .table tbody td.activity-actions {
            justify-content: flex-end;
            padding-top: 1rem;
            border-top: 1px solid #e9ecef;
            flex-direction: column;
            gap: 0.5rem;
        }
        
        .table tbody td.activity-actions::before {
            display: none;
        }
        
        .table tbody td.activity-actions .btn {
            width: 100%;
        }
        
        /* 活动名称列特殊处理 */
        .table tbody td[data-label="活动名称"] {
            font-size: 1rem;
            font-weight: 600;
            padding-top: 1rem;
            padding-bottom: 0.75rem;
        }
        
        .table tbody td[data-label="活动名称"]::before {
            display: none;
        }
    }
    
    /* 活动详情展开卡片移动端优化 */
    .activity-detail-row {
        display: none !important; /* 移动端默认不显示 */
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        position: relative;
    }
    
    .activity-detail-row.show {
        display: block !important;
    }
    
    .activity-detail-row td {
        display: block;
        width: 100% !important;
        padding: 0.5rem !important;
        margin: 0 !important;
        box-sizing: border-box;
        max-width: 100% !important;
    }
    
    /* 确保表格容器不限制详情行宽度 */
    .table-responsive {
        overflow-x: visible;
        padding-left: 0;
        padding-right: 0;
    }
    
    /* 确保详情卡片占满td的宽度 */
    .activity-detail-row td > * {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    /* 项目详情卡片移动端优化 - 紧凑版 */
    .activity-detail-card {
        padding: 0.5rem;
        border-radius: 8px;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    
    .activity-detail-header {
        padding: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .detail-badge-row {
        margin-bottom: 0.4rem;
    }
    
    .platform-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .activity-detail-header h5 {
        font-size: 0.85rem;
        font-weight: 600;
        margin-bottom: 0.3rem;
        line-height: 1.2;
        word-break: break-word;
    }
    
    .activity-detail-header p {
        font-size: 0.75rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
        color: #6c757d;
        word-break: break-word;
    }
    
    /* 详情元数据网格移动端优化 - 移动端隐藏 */
    .detail-meta-grid {
        display: none !important;
    }
    
    .detail-meta-grid > div {
        padding: 0.4rem 0.5rem;
        background: #f8f9fa;
        border-radius: 6px;
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
        word-break: break-word;
        overflow-wrap: break-word;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
    }
    
    .detail-meta-grid .meta-label {
        font-size: 0.6rem;
        margin-bottom: 0;
        font-weight: 500;
        color: #6c757d;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        display: block;
    }
    
    .detail-meta-grid .meta-value {
        font-size: 0.75rem;
        color: #212529;
        font-weight: 500;
        line-height: 1.3;
        display: block;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    /* 详情链接移动端优化 - 移动端隐藏 */
    .detail-links {
        display: none !important;
    }
    
    .detail-links a,
    .detail-links span {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.45rem 0.75rem;
        text-align: center;
        border-radius: 6px;
        background: #f8f9fa;
        font-size: 0.75rem;
        text-decoration: none;
        color: #495057;
        transition: all 0.2s ease;
        border: 1px solid #dee2e6;
        width: 100%;
        box-sizing: border-box;
    }
    
    .detail-links a:hover {
        background: #e9ecef;
        color: #212529;
    }
    
    .detail-links a i,
    .detail-links span i {
        margin-right: 0.4rem;
        font-size: 0.9rem;
    }
    
    /* AI评语移动端优化 - 紧凑版 */
    .ai-feedback {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
        font-size: 0.75rem;
        min-height: auto;
        border-radius: 6px;
    }
    
    .ai-feedback h6 {
        font-size: 0.75rem;
        margin-bottom: 0.35rem;
        font-weight: 600;
    }
    
    .ai-feedback p {
        font-size: 0.75rem;
        line-height: 1.5;
        margin: 0;
        word-break: break-word;
    }
    
    /* 指标列表移动端优化 - 紧凑版 */
    .activity-metric-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.35rem;
        margin-bottom: 0;
    }
    
    .activity-metric-chip {
        padding: 0.4rem 0.35rem;
        min-height: auto;
    }
    
    .activity-metric-chip .chip-label {
        font-size: 0.6rem;
        margin-bottom: 0.2rem;
    }
    
    .activity-metric-chip .chip-value {
        font-size: 0.85rem;
        margin-bottom: 0.15rem;
    }
    
    .activity-metric-chip .chip-hint {
        font-size: 0.6rem;
        line-height: 1.2;
        word-break: break-word;
    }
    
    /* 雷达图移动端优化 - 紧凑版 */
    .radar-wrapper {
        padding: 0.5rem;
        margin-top: 0;
        border-radius: 6px;
    }
    
    .radar-wrapper canvas {
        max-height: 180px;
        width: 100% !important;
        height: auto !important;
    }
    
    /* 详情卡片布局移动端优化 - 紧凑版 */
    .activity-detail-card .row {
        margin: 0;
        --bs-gutter-x: 0;
        --bs-gutter-y: 0.5rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .activity-detail-card .col-lg-5,
    .activity-detail-card .col-lg-7 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        margin-bottom: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    /* 详情卡片整体间距优化 - 紧凑版 */
    .activity-detail-card > .row {
        margin-top: 0.5rem;
        width: 100%;
    }
    
    /* 确保所有子元素占满容器 */
    .activity-detail-card * {
        max-width: 100%;
    }
    
    .activity-detail-card .ai-feedback,
    .activity-detail-card .activity-metric-list,
    .activity-detail-card .radar-wrapper {
        width: 100%;
        box-sizing: border-box;
    }
    
    /* 确保移动端项目详情按钮可见且易点击 */
    .activity-actions .activity-detail-toggle {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    /* 平台筛选按钮在超小屏幕的进一步优化 */
    @media (max-width: 400px) {
        .platform-filter-group .btn {
            min-width: calc(50% - 0.25rem);
            max-width: calc(50% - 0.25rem);
            font-size: 0.8rem;
            padding: 0.4rem 0.5rem;
        }
        
        .platform-filter-group .btn i {
            font-size: 0.75rem;
            margin-right: 0.2rem;
        }
    }
    
    /* 页脚移动端优化 */
    footer {
        padding: 2rem 1rem;
        font-size: 0.85rem;
    }
    
    footer .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    footer ul {
        font-size: 0.8rem;
        line-height: 1.8;
    }
}

/* 中等屏幕优化 (768px - 992px) */
@media (min-width: 768px) and (max-width: 991px) {
    .platform-filter-group .btn {
        padding: 0.7rem 1.3rem;
        font-size: 1rem;
    }
    
    .table th,
    .table td {
        padding: 0.6rem 0.5rem;
        font-size: 0.9rem;
    }
}

/* IP纯净度查询页面样式 */
#ip-purity-results .table {
    border-collapse: separate;
    border-spacing: 0;
}

#ip-purity-results .table td {
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
    padding: 1rem;
}

#ip-purity-results .table td:first-child {
    border-left: 1px solid #dee2e6;
    background-color: #f8f9fa;
    font-weight: 500;
}

#ip-purity-results .table td:last-child {
    border-right: 1px solid #dee2e6;
}

#ip-purity-results .table tbody tr:first-child td {
    border-top: 1px solid #dee2e6;
}

#ip-purity-results .table tbody tr:last-child td {
    border-bottom: 1px solid #dee2e6;
}

#ip-purity-results .badge {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
}

#ip-purity-results .progress {
    border-radius: 4px;
    overflow: hidden;
}

#ip-purity-results .font-monospace {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
}

#ip-purity-results .btn-link {
    text-decoration: none;
    color: #0d6efd;
}

#ip-purity-results .btn-link:hover {
    color: #0a58ca;
}

