/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f7f0;
    background-image: 
        linear-gradient(rgba(180, 150, 120, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(180, 150, 120, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(180, 150, 120, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(180, 150, 120, 0.05) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
    background-position: 0 0, 0 0, 0 0, 0 0;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

html {
    overflow-x: hidden;
    width: 100%;
}

/* 跨浏览器颜色一致性修复 */
:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-primary-light: #3b82f6;
    --color-info: #0ea5e9;
    --color-info-dark: #0284c7;
    --color-success: #10b981;
    --color-success-dark: #059669;
    --color-warning: #f59e0b;
    --color-warning-dark: #d97706;
    --color-danger: #ef4444;
    --color-danger-dark: #dc2626;
    --color-gray: #64748b;
    --color-light: #f8fafc;
    --color-dark: #1e293b;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --gradient-info: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 确保渐变在所有浏览器中一致 */
.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-info {
    background: var(--gradient-info);
}

.bg-gradient-success {
    background: var(--gradient-success);
}

.bg-gradient-warning {
    background: var(--gradient-warning);
}

.bg-gradient-danger {
    background: var(--gradient-danger);
}

/* 移除可能导致不一致的背景剪裁 */
.no-gradient-text {
    background: none !important;
    background-clip: none !important;
    -webkit-background-clip: none !important;
    -webkit-text-fill-color: var(--color-primary) !important;
    color: var(--color-primary) !important;
}

/* 导航栏 */
.navbar {
    box-shadow: none;
    background: white !important;
    border-bottom: 1px solid #e9ecef;
    transition: none;
    overflow-x: hidden;
    width: 100%;
}

.navbar .container {
    overflow-x: hidden;
    width: 100%;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333 !important;
    transition: none;
    background: none;
    background-clip: none;
    -webkit-background-clip: none;
    -webkit-text-fill-color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.navbar-brand:hover {
    transform: none;
}

.nav-link {
    font-weight: 500;
    color: #333 !important;
    transition: none;
    position: relative;
    padding: 8px 10px !important;
    font-size: 0.85rem;
    white-space: nowrap;
}

.nav-link::after {
    display: none;
}

.nav-link:hover {
    color: #6c757d !important;
    transform: none;
}

.nav-link.active {
    color: #495057 !important;
    font-weight: 600;
}

.navbar-nav {
    overflow-x: hidden;
    width: 100%;
    justify-content: flex-end;
}

.navbar-collapse {
    overflow-x: hidden;
}

.navbar-collapse.show {
    overflow-x: hidden;
}

.navbar-collapse .container {
    overflow-x: hidden;
}

/* 语言选择器 */
#language-selector {
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
    color: #333;
    transition: none;
    width: auto;
    padding: 4px 8px;
    font-size: 0.875rem;
}

#language-selector:hover {
    border-color: #adb5bd;
    box-shadow: none;
}

/* 英雄区域 */
.hero {
    padding: 80px 0 !important;
    background-color: transparent !important;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
    backdrop-filter: none;
}

.hero h1 {
    font-size: 2.5rem !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 15px;
    background: none;
    background-clip: none;
    -webkit-background-clip: none;
    -webkit-text-fill-color: #333;
}

.hero p {
    font-size: 1.1rem !important;
    color: #6c757d;
    margin-bottom: 30px;
    font-weight: normal;
}

/* 关于我们 */
.about {
    background-color: transparent;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
    backdrop-filter: none;
    padding: 40px 0;
}

.about h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.about p {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
}

/* 投资门派 */
.schools {
    background-color: transparent;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
    backdrop-filter: none;
    padding: 40px 0;
}

.schools h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    background: none;
    background-clip: none;
    -webkit-background-clip: none;
    -webkit-text-fill-color: #333;
}
/* 卡片样式 */
.card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    background: rgba(255, 255, 255, 0.95);
    overflow: visible;
    position: relative;
    backdrop-filter: blur(10px);
}

/* 不同类型卡片的颜色区分 */
.card-info {
    border-left: 5px solid var(--color-info);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.card-primary {
    border-left: 5px solid var(--color-primary);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.card-success {
    border-left: 5px solid var(--color-success);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.card-warning {
    border-left: 5px solid var(--color-warning);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.card-danger {
    border-left: 5px solid var(--color-danger);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.card::before {
    display: none;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.card-body {
    padding: 1.75rem;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 12px;
    background: none;
    background-clip: none;
    -webkit-background-clip: none;
    -webkit-text-fill-color: var(--color-dark);
    letter-spacing: -0.025em;
}

.card-text {
    color: var(--color-gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* 悬停卡片效果 */
.hover-card {
    transition: var(--transition-base) !important;
}

.hover-card:hover {
    box-shadow: var(--shadow-xl) !important;
}

/* 按钮样式 */
.btn {
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 24px;
    transition: var(--transition-base);
    border: 1px solid transparent;
    position: static;
    overflow: visible;
    z-index: 1;
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.025em;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

.btn::before {
    display: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--color-primary-dark);
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover:not(:disabled) {
    transform: translateY(-2px);
    background: var(--color-primary-dark);
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}

.btn-secondary:disabled {
    background: #e2e8f0;
    color: var(--color-gray);
    border-color: #cbd5e1;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-success {
    background: var(--gradient-success);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.btn-success:hover {
    transform: translateY(-2px);
    background: var(--color-success-dark);
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}

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

.btn-light {
    background: white;
    color: var(--color-dark);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
}

.btn-light:hover {
    background: var(--color-light);
    color: var(--color-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

/* 测试页面 */
main {
    background: rgba(255, 255, 255, 0.9);
    margin: 10px auto;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    backdrop-filter: none;
    padding: 20px !important;
    border: 1px solid #e9ecef;
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

/* 测试进度 */
.test-progress {
    margin-top: 25px;
    margin-bottom: 25px;
}

.progress {
    height: 10px;
    background: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
}

.progress-bar {
    height: 100%;
    border-radius: 8px;
    background: var(--gradient-primary);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
    position: static;
}

.progress-bar::after {
    display: none;
}

/* 测试题目 */
#testCard {
    margin-bottom: 15px;
}

.question-header {
    margin-bottom: 15px;
}

#questionText {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: 15px;
    line-height: 1.5;
}

/* 选项列表 */
.list-group-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 16px 20px;
    cursor: pointer;
    transition: var(--transition-base);
    background: white;
    font-weight: 500;
    color: var(--color-dark);
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
}

.list-group-item:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.list-group-item.active {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(255, 255, 255, 0.98) 100%);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--color-primary-dark);
    font-weight: 600;
    border-left: 4px solid var(--color-primary);
}

/* 徽章样式 */
.badge {
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    background: var(--color-gray);
    color: white;
    backdrop-filter: none;
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.025em;
    transition: var(--transition-base);
}

.badge:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.badge-primary {
    background: var(--gradient-primary);
}

.badge-info {
    background: var(--gradient-info);
}

.badge-success {
    background: var(--gradient-success);
}

.badge-warning {
    background: var(--gradient-warning);
    color: #1e293b;
}

.badge-danger {
    background: var(--gradient-danger);
}

/* 导航按钮 */
.d-flex.justify-content-between {
    margin-top: 0;
    gap: 10px;
}

/* 结果页面 */
.result-container {
    margin-bottom: 30px;
}

#radarChart {
    max-height: 400px;
    border-radius: 4px;
    box-shadow: none;
    padding: 15px;
    background: white;
    border: 1px solid #e9ecef;
}

/* 页脚 */
footer {
    background: #f9f7f0;
    backdrop-filter: none;
    border-top: 1px solid #e9ecef;
    padding: 30px 0;
    margin-top: 40px;
    box-shadow: none;
}

footer h5 {
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    font-size: 1rem;
}

footer p {
    color: #6c757d;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

footer a {
    color: #6c757d;
    text-decoration: none;
    transition: none;
    display: inline-block;
    padding: 3px 0;
}

/* 文章标题链接样式 */
.list-unstyled h5 a {
    font-size: 1rem !important;
    color: #000 !important;
    text-decoration: none !important;
    transition: color 0.2s ease, text-decoration 0.2s ease !important;
}

.list-unstyled h5 a:hover {
    color: #007bff !important;
    text-decoration: underline !important;
}

/* 文章列表项样式 */
.list-unstyled li {
    transition: background-color 0.2s ease;
}

.list-unstyled li:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* 文章标签颜色 */
.list-unstyled .badge[data-category="macro"] {
    background: var(--gradient-primary) !important;
}

.list-unstyled .badge[data-category="value"] {
    background: var(--gradient-success) !important;
}

.list-unstyled .badge[data-category="technical"] {
    background: var(--gradient-warning) !important;
    color: #1e293b !important;
}

.list-unstyled .badge[data-category="narrative"] {
    background: var(--gradient-info) !important;
}

.list-unstyled .badge[data-category="comparison"] {
    background: var(--color-gray) !important;
}

/* 增强的动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* 导航链接动画 */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* 按钮点击效果 */
.btn:active {
    transform: translateY(0) scale(0.98);
}

/* 卡片进入动画 */
.card {
    animation: fadeInUp 0.5s ease-out;
}

/* 列表项悬停效果 */
.list-unstyled li {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.list-unstyled li:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(255, 255, 255, 0.98) 100%);
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(37, 99, 235, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-primary);
    animation: spin 1s linear infinite;
}

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

/* 工具提示效果 */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--color-dark);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border: 6px solid transparent;
    border-top-color: var(--color-dark);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 响应式布局优化 */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .card {
        margin-bottom: 20px;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 2rem !important;
    }
    
    .hero p {
        font-size: 1rem !important;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .nav-link {
        padding: 8px 8px !important;
        font-size: 0.8rem;
    }
}

@media (max-width: 1100px) {
    .nav-link {
        padding: 8px 8px !important;
        font-size: 0.8rem;
    }
    
    .navbar-collapse {
        display: none !important;
        overflow-x: hidden;
    }
    
    .navbar-collapse.show {
        display: block !important;
        overflow-x: hidden;
    }
    
    .navbar-toggler {
        display: block !important;
    }
    
    .navbar-nav {
        overflow-x: hidden;
        width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 0.95rem;
    }
    
    .hero {
        padding: 60px 0 !important;
    }
    
    .hero h1 {
        font-size: 1.75rem !important;
    }
    
    .about,
    .schools {
        padding: 30px 0;
    }
    
    .card {
        border-radius: 8px;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-height: 44px;
    }
    
    .list-group-item {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    
    /* 导航栏移动端优化 */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .nav-link {
        padding: 10px 12px !important;
        font-size: 0.875rem;
        white-space: normal;
    }
    
    /* 移动端卡片间距 */
    .card {
        margin-bottom: 15px;
    }
    
    /* 移动端文章列表优化 */
    .list-unstyled li {
        padding: 12px 10px;
        border-radius: 8px;
    }
    
    .list-unstyled li .d-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .list-unstyled li .badge {
        align-self: flex-start;
        margin-bottom: 4px;
    }
    
    .list-unstyled h5 {
        font-size: 0.95rem;
        line-height: 1.4;
        margin-bottom: 4px;
    }
    
    .list-unstyled h5 a {
        word-break: break-word;
        hyphens: auto;
    }
    
    .list-unstyled small {
        font-size: 0.8rem;
        color: #999;
        align-self: flex-start;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.5rem !important;
    }
    
    .hero p {
        font-size: 0.9rem !important;
    }
    
    .card {
        border-radius: 6px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .btn {
        padding: 6px 16px;
        font-size: 0.85rem;
        border-radius: 6px;
    }
    
    .list-group-item {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    
    /* 移动端优化触摸目标 */
    .btn,
    .list-group-item,
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* 移动端禁用悬停效果 */
    .card:hover,
    .btn:hover,
    .list-group-item:hover {
        transform: none;
    }
    
    /* 移动端文章列表进一步优化 */
    .list-unstyled li {
        padding: 10px 8px;
        margin-bottom: 8px;
    }
    
    .list-unstyled li .d-flex {
        gap: 6px;
    }
    
    .list-unstyled li .badge {
        font-size: 0.7rem;
        padding: 3px 8px;
        margin-bottom: 2px;
    }
    
    .list-unstyled h5 {
        font-size: 0.9rem;
        line-height: 1.3;
        margin-bottom: 2px;
    }
    
    .list-unstyled h5 a {
        font-size: 0.9rem;
        line-height: 1.3;
        display: block;
        padding: 2px 0;
    }
    
    .list-unstyled small {
        font-size: 0.75rem;
        color: #aaa;
    }
    
    /* 移动端按钮布局优化 */
    .d-flex.justify-content-between {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .d-flex.justify-content-between .btn {
        flex: 1;
        min-width: 140px;
        padding: 14px 16px;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        line-height: 1.2;
        min-height: 50px;
    }
    
    /* 移动端所有按钮通用样式 */
    .btn {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    /* 移动端导航栏优化 */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-toggler {
        padding: 6px 10px;
    }
    
    /* 移动端语言选择器优化 */
    #language-selector {
        font-size: 0.8rem;
        padding: 3px 6px;
    }
    
    /* 移动端页脚优化 */
    footer {
        padding: 20px 0;
    }
    
    footer h5 {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    footer p,
    footer a {
        font-size: 0.8rem;
    }
}

/* 平板设备优化 */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        max-width: 95%;
    }
    
    .card {
        margin-bottom: 25px;
    }
}

/* 大屏幕优化 */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero h1 {
        font-size: 3rem !important;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
}

/* 打印样式优化 */
@media print {
    body {
        background: white;
        background-image: none;
    }
    
    .navbar,
    .btn,
    .list-group-item {
        display: none;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #000;
        break-inside: avoid;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .list-group-item {
        border: 2px solid #000;
    }
}

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .card,
    .btn,
    .list-group-item {
        transform: none !important;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #0f172a;
        color: #e2e8f0;
    }
    
    .card {
        background: rgba(30, 41, 59, 0.95);
        border-color: #334155;
    }
    
    .card-title {
        color: #f1f5f9;
    }
    
    .card-text {
        color: #94a3b8;
    }
    
    .btn-light {
        background: #1e293b;
        color: #f1f5f9;
        border-color: #334155;
    }
    
    .list-group-item {
        background: #1e293b;
        border-color: #334155;
        color: #e2e8f0;
    }
    
    .progress {
        background: #1e293b;
    }
}

/* 报告生成器样式 */
.report-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 报告管理区域 */
.report-management {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.report-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0;
    background: none;
    background-clip: none;
    -webkit-background-clip: none;
    -webkit-text-fill-color: var(--color-dark);
}

.report-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 搜索和筛选栏 */
.report-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition-base);
}

.search-box input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.filter-select {
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
    transition: var(--transition-base);
}

.filter-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* 报告列表 */
.report-list {
    display: grid;
    gap: 15px;
}

.report-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.report-item:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

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

.report-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 8px;
    background: none;
    background-clip: none;
    -webkit-background-clip: none;
    -webkit-text-fill-color: var(--color-dark);
}

.report-item-meta {
    display: flex;
    gap: 20px;
    font-size: 0.875rem;
    color: var(--color-gray);
    flex-wrap: wrap;
}

.report-item-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.report-item-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.report-item-actions .btn {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* 报告编辑器 */
.report-editor {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 30px;
    backdrop-filter: blur(10px);
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.editor-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0;
    background: none;
    background-clip: none;
    -webkit-background-clip: none;
    -webkit-text-fill-color: var(--color-dark);
}

/* 步骤导航 */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: var(--color-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
    transition: var(--transition-base);
}

.step-title {
    font-size: 0.75rem;
    color: var(--color-gray);
    text-align: center;
    transition: var(--transition-base);
    max-width: 120px;
    line-height: 1.3;
}

.step-item.active .step-number {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.step-item.completed .step-number {
    background: var(--gradient-success);
    color: white;
}

.step-item.active .step-title {
    color: var(--color-primary);
    font-weight: 600;
}

/* 表单样式 */
.form-section {
    margin-bottom: 30px;
}

.form-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    background: none;
    background-clip: none;
    -webkit-background-clip: none;
    -webkit-text-fill-color: var(--color-dark);
}

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

.form-label {
    display: block;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-label.required::after {
    content: ' *';
    color: var(--color-danger);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition-base);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
    color: #94a3b8;
}

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

/* 维度选择复选框 */
.dimension-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.dimension-checkbox {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-base);
    background: white;
}

.dimension-checkbox:hover {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.dimension-checkbox input[type="checkbox"] {
    margin-top: 4px;
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.dimension-checkbox-content {
    flex: 1;
}

.dimension-checkbox-title {
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 5px;
    background: none;
    background-clip: none;
    -webkit-background-clip: none;
    -webkit-text-fill-color: var(--color-dark);
}

.dimension-checkbox-desc {
    font-size: 0.875rem;
    color: var(--color-gray);
    line-height: 1.5;
}

/* 编辑器按钮 */
.editor-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

.editor-actions-left {
    display: flex;
    gap: 10px;
}

.editor-actions-right {
    display: flex;
    gap: 10px;
}

/* 报告预览 */
.report-preview {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 30px;
    backdrop-filter: blur(10px);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.preview-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0;
    background: none;
    background-clip: none;
    -webkit-background-clip: none;
    -webkit-text-fill-color: var(--color-dark);
}

.preview-content {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.preview-section {
    margin-bottom: 30px;
}

.preview-section:last-child {
    margin-bottom: 0;
}

.preview-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--color-primary);
    background: none;
    background-clip: none;
    -webkit-background-clip: none;
    -webkit-text-fill-color: var(--color-dark);
}

.preview-field {
    margin-bottom: 15px;
}

.preview-field-label {
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.preview-field-value {
    color: var(--color-gray);
    line-height: 1.6;
    padding: 10px;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid var(--color-primary);
}

.preview-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

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

.empty-state-icon {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.empty-state-text {
    font-size: 1.25rem;
    color: var(--color-gray);
    margin-bottom: 20px;
}

/* 加载状态 */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(37, 99, 235, 0.2);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

/* 状态徽章 */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.draft {
    background: var(--gradient-warning);
    color: #1e293b;
}

.status-badge.completed {
    background: var(--gradient-success);
    color: white;
}

/* 自动保存提示 */
.auto-save-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    color: var(--color-success-dark);
    font-size: 0.875rem;
    font-weight: 500;
}

.auto-save-indicator.saving {
    color: var(--color-warning-dark);
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .report-management,
    .report-editor,
    .report-preview {
        padding: 20px;
    }

    .report-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .report-actions {
        width: 100%;
    }

    .report-actions .btn {
        flex: 1;
        min-width: 140px;
    }

    .report-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: 100%;
    }

    .report-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .report-item-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .step-indicator {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .step-indicator::before {
        display: none;
    }
    
    .step-badge {
        flex: 1 1 auto;
        min-width: 70px;
        max-width: 100px;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
    
    .step-title {
        font-size: 0.65rem;
        max-width: 100px;
    }

    .step-item {
        min-width: 80px;
    }

    .dimension-checkboxes {
        grid-template-columns: 1fr;
    }

    .editor-actions {
        flex-direction: column;
        gap: 15px;
    }

    .editor-actions-left,
    .editor-actions-right {
        width: 100%;
        flex-direction: column;
    }

    .editor-actions .btn {
        width: 100%;
    }

    .preview-content {
        padding: 20px;
    }

    .preview-section-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .report-container {
        padding: 10px;
    }

    .report-management,
    .report-editor,
    .report-preview {
        padding: 15px;
    }

    .report-header h2,
    .editor-header h2,
    .preview-header h2 {
        font-size: 1.5rem;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .form-section-title {
        font-size: 1.1rem;
    }

    .preview-section-title {
        font-size: 1.1rem;
    }

    .preview-field-value {
        font-size: 0.9rem;
    }
}

/* Cookie 同意横幅样式 */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(33, 37, 41, 0.95);
    color: #fff;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-banner h5 {
    margin-bottom: 10px;
    font-weight: 600;
    color: #fff;
}

.cookie-banner p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #fff;
}

.cookie-banner a {
    color: #0d6efd;
    text-decoration: underline;
}

.cookie-banner a:hover {
    color: #0b5ed7;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-buttons .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-buttons .btn {
        width: 100%;
    }
}
