* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 阅读进度指示器 */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, #3498db, #2ecc71);
    width: 0%;
    transition: width 0.1s ease;
}

/* 夜间模式下的阅读进度指示器 */
.dark-mode .progress-container {
    background: rgba(255, 255, 255, 0.1);
}

.dark-mode .progress-bar {
    background: linear-gradient(to right, #bb86fc, #03dac6);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    color: #333;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    position: relative;
}



/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.hidden {
    transform: translateY(-100%);
    box-shadow: 0 0 0 rgba(0,0,0,0);
}

.navbar.scrolled {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(52, 73, 94, 0.95) 100%);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 6px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-weight: 500;
    background: transparent;
    border: 1px solid transparent;
}



.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    border-color: rgba(255,255,255,0.2);
}

.nav-links a:hover::before {
    left: 100%;
}

.nav-links a:hover::after {
    width: 80%;
}

.nav-links a.active {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
}

.nav-links a.active::after {
    width: 100%;
}

/* 导航操作区域 */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 搜索框 */
.search-container {
    background: rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    min-width: 200px;
    flex-shrink: 0;
}

.search-container input {
    background: transparent;
    border: none;
    color: white;
    padding: 5px;
    outline: none;
}

.search-container input::placeholder {
    color: rgba(255,255,255,0.8);
}

/* 搜索结果计数 */
.search-count {
    color: white;
    font-size: 12px;
    margin-left: 8px;
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* 主要内容区域 */
.main-content {
    display: flex;
    max-width: 1600px;
    margin: 80px auto 0;
    padding: 30px 20px;
    gap: 30px;
    min-height: calc(100vh - 80px);
}

/* 侧边栏 */
.sidebar {
    width: 300px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 100px;
    height: fit-content;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.sidebar h3 {
    color: #2c3e50;
    font-size: 18px;
    margin: 0;
}

.toggle-btn {
    background: transparent;
    border: none;
    color: #2c3e50;
    font-size: 12px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.3s;
}

.toggle-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.toggle-btn:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.toggle-icon {
    display: block;
    transition: transform 0.3s ease;
}

.toggle-btn.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

/* 子菜单样式 */
.has-submenu {
    position: relative;
}

.submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.submenu-icon {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.submenu-toggle.collapsed .submenu-icon {
    transform: rotate(-90deg);
}

.submenu {
    margin-left: 15px;
    padding-left: 15px;
    border-left: 2px solid #eee;
    max-height: 200px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.submenu.collapsed {
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* 导航菜单动画 */
.nav-menu {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.nav-menu.collapsed {
    max-height: 0;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    color: #34495e;
    text-decoration: none;
    padding: 8px 10px;
    display: block;
    border-radius: 4px;
    transition: all 0.3s;
}

.sidebar ul li a:hover {
    background: #3498db;
    color: white;
}

/* 主内容 */
.content {
    flex: 1;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.03), transparent);
    transition: left 0.6s ease;
}

.content:hover {
    transform: translateY(-4px) scale(1.002);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.content:hover::before {
    left: 100%;
}

.section {
    margin-bottom: 80px;
    padding-bottom: 30px;
    scroll-margin-top: 100px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(52, 152, 219, 0.3), transparent);
}

.section h2 {
    color: #2c3e50;
    margin-bottom: 40px;
    font-size: 36px;
    font-weight: 700;
    padding-bottom: 20px;
    border-bottom: 4px solid #3498db;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    overflow: hidden;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    transition: width 0.6s ease;
}

.section:hover h2::after {
    width: 100%;
}

/* 段落样式 */
.content p {
    margin-bottom: 20px;
    text-align: justify;
    text-indent: 2em;
    font-size: 16px;
    color: #555;
}

/* 标题层次 */
.content h3 {
    font-size: 24px;
    color: #34495e;
    margin: 40px 0 20px;
    font-weight: 600;
}

.content h4 {
    font-size: 20px;
    color: #34495e;
    margin: 30px 0 15px;
    font-weight: 600;
}

/* 列表样式 */
.content ul,
.content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.content li {
    margin-bottom: 10px;
    color: #555;
}

.content li p {
    margin-bottom: 5px;
    text-indent: 0;
}

/* 表格样式 */
.table-container {
    overflow-x: auto;
    margin-bottom: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #2c3e50;
    color: white;
    position: sticky;
    top: 0;
}

tr:nth-child(even) {
    background: #f9f9f9;
}

.rich-col {
    background: rgba(46, 204, 113, 0.1);
}

.poor-col {
    background: rgba(231, 76, 60, 0.1);
}

.action-col {
    background: rgba(52, 152, 219, 0.1);
}

.category-row {
    background: #34495e !important;
    color: white;
    font-weight: bold;
}

/* 内容区块渐入动画 */
.section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* 逆袭指南样式 */
.phase {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    scroll-margin-top: 80px;
}

.phase:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.step {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    background: #fafafa;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step:hover {
    background-color: rgba(52, 152, 219, 0.05);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.step:last-child {
    margin-bottom: 0;
}

.step-title {
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.step:hover .step-title {
    color: #2980b9;
}

/* .step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #3498db, #2ecc71);
    transform: scaleY(0);
    transition: transform 0.3s ease;
} */

.step:hover::before {
    transform: scaleY(1);
}

.step-title:before {
    content: "▶";
    color: #e74c3c;
    margin-right: 8px;
    font-size: 12px;
}

.step-content {
    padding-left: 15px;
}

.key-point {
    background: #f1f8fe;
    padding: 12px;
    border-radius: 5px;
    margin: 10px 0;
    border-left: 3px solid #3498db;
}

.dark-mode .warning {
    background: rgba(231, 76, 60, 0.1);
    border-left: 3px solid #ff5252;
}

.tip {
    background: #f8fff8;
    border-left: 3px solid #2ecc71;
}

.dark-mode .tip {
    background: rgba(46, 204, 113, 0.1);
    border-left: 3px solid #66bb6a;
}

/* 关于部分 */
#about {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-top: 50px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 30px;
    background: #3498db;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

/* 移动端底部导航栏 */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: white;
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.mobile-bottom-nav ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
}

.mobile-bottom-nav li {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
}

.mobile-bottom-nav a {
    color: white;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s;
}

.mobile-bottom-nav a:hover {
    background: rgba(255,255,255,0.1);
}

.mobile-nav-icon {
    font-size: 20px;
    margin-bottom: 2px;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* 富人思维逆袭路线图样式 */
.phase-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 5px solid;
    scroll-margin-top: 80px;
}

.survival {
    border-left-color: #e74c3c;
}

.breakthrough {
    border-left-color: #f39c12;
}

.overtake {
    border-left-color: #2ecc71;
}

.rules {
    border-left-color: #9b59b6;
}

.phase-card h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
}

.phase-card h3 {
    color: #34495e;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.phase-card h4 {
    color: #7f8c8d;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.phase-card mark {
    background-color: #fef9e7;
    padding: 2px 5px;
    border-radius: 3px;
}

.phase-card ul, .phase-card ol {
    padding-left: 25px;
    margin-bottom: 20px;
}

.phase-card li {
    margin-bottom: 10px;
}

.phase-card table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.phase-card th, .phase-card td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.phase-card th {
    background-color: #f5f7fa;
    font-weight: 600;
    color: #2c3e50;
}

.phase-card tr:hover {
    background-color: #f8f9fa;
}

.asset-tier {
    background: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tier-label {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.strategy {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.phase-card pre {
    background: #f5f7fa;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    line-height: 1.5;
}

.progress-table {
    width: 100%;
    margin: 30px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.progress-table th {
    background-color: #3498db;
    color: white;
}

.progress-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.bg-blue-50 {
    background-color: #f0f8ff;
}

.p-5 {
    padding: 25px;
}

.rounded-lg {
    border-radius: 8px;
}

.mb-8 {
    margin-bottom: 30px;
}

.text-blue-800 {
    color: #1e3a8a;
}

.text-blue-700 {
    color: #1e40af;
}

.text-blue-500 {
    color: #3b82f6;
}

.mt-4 {
    margin-top: 20px;
}

.italic {
    font-style: italic;
}

/* 高亮搜索结果 */
mark {
    background: #fff34d;
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: markHighlight 0.3s ease-in-out;
    box-shadow: 0 0 0 rgba(255, 243, 77, 0);
}



@keyframes markHighlight {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(255, 243, 77, 0); }
    50% { transform: scale(1.1); box-shadow: 0 0 10px rgba(255, 243, 77, 0.7); }
    100% { transform: scale(1); box-shadow: 0 0 0 rgba(255, 243, 77, 0); }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .main-content {
        gap: 15px;
    }
    
    .sidebar {
        width: 240px;
        padding: 15px;
    }
    
    .content {
        padding: 20px;
    }
}

/* 移动端优化 */
@media (max-width: 768px) {
    /* 基础布局 */
    .main-content {
        flex-direction: column;
        padding: 15px;
    }
    
    .sidebar {
        width: 100%;
        position: static;
        display: block; /* 默认显示侧边栏，使用折叠功能控制 */
    }
    
    .nav-links {
        display: none;
    }
    
    .content {
        padding: 20px;
    }
    
    /* 字体和间距优化 */
    h2 {
        font-size: 24px !important;
    }
    
    th, td {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    /* 触摸元素优化 */
    .back-to-top {
        bottom: 70px;
        right: 20px;
        width: 50px;
        height: 50px;
        touch-action: manipulation;
    }
    
    /* 增强触摸区域 */
    a, button, .toggle-btn, .submenu-toggle {
        touch-action: manipulation;
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* 搜索框优化 */
    .search-container {
        padding: 8px 12px;
    }
    
    .search-container input {
        font-size: 16px; /* 防止iOS自动缩放 */
    }
    
    /* 移动端导航栏优化 */
    .mobile-bottom-nav {
        display: block;
    }
    
    .mobile-bottom-nav a {
        padding: 10px;
        min-height: 50px;
    }
    
    /* 表格滚动优化 */
    .table-container {
        -webkit-overflow-scrolling: touch;
        margin: 0 -10px;
        padding: 0 10px;
    }
    
    /* 移动端表格样式优化 */
    table {
        font-size: 14px;
    }
    
    table th, 
    table td {
        padding: 12px 10px;
        line-height: 1.5;
        white-space: nowrap;
    }
    
    /* 确保表格在小屏幕上有足够的触摸区域 */
    table td {
        min-height: 44px;
        display: table-cell;
        vertical-align: middle;
    }
    
    /* 优化表格行的视觉区分 */
    table tr {
        background-clip: padding-box;
    }
    
    /* 优化表格列的背景色显示 */
    table .rich-col, 
    table .poor-col, 
    table .action-col {
        border-radius: 2px;
        margin: 2px;
    }
    
    /* 确保表头在滚动时固定 */
    table thead th {
        position: sticky;
        top: 0;
        z-index: 10;
        background: #2c3e50;
        color: white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .dark-mode table thead th {
        background: #333;
    }
    
    /* 减少动画延迟 */
    * {
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    }
}

/* 夜间模式样式 */
.dark-mode body {
    background: #121212;
    color: #e0e0e0;
}

.dark-mode .navbar, 
.dark-mode .mobile-bottom-nav {
    background: #1e1e1e;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.dark-mode .content, 
.dark-mode .sidebar, 
.dark-mode .phase {
    background: #1e1e1e;
    color: #e0e0e0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.dark-mode .sidebar-header h3,
.dark-mode .section h2,
.dark-mode .step-title {
    color: #bb86fc;
}

.dark-mode .sidebar ul li a {
    color: #e0e0e0;
}

.dark-mode .sidebar ul li a:hover {
    background: #3700b3;
    color: white;
}

.dark-mode table {
    color: #e0e0e0;
}

.dark-mode th {
    background: #333;
    color: white;
}

.dark-mode tr:nth-child(even) {
    background: #2d2d2d;
}

.dark-mode .category-row {
    background: #333 !important;
}

.dark-mode .rich-col {
    background: rgba(30, 136, 74, 0.2);
}

.dark-mode .poor-col {
    background: rgba(211, 47, 47, 0.2);
}

.dark-mode .action-col {
    background: rgba(52, 152, 219, 0.2);
}

.dark-mode .key-point {
    background: rgba(52, 152, 219, 0.15);
    border-left-color: #5390d9;
}

.dark-mode .warning {
    background: rgba(239, 68, 68, 0.15);
    border-left-color: #ef4444;
}

.dark-mode .tip {
    background: rgba(16, 185, 129, 0.15);
    border-left-color: #10b981;
}

.dark-mode #about {
    background: #1e1e1e;
}

.dark-mode mark {
    background: #7c3aed;
    color: white;
}

.dark-mode mark.current-match {
    background: #ff6b6b;
    color: white;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
    transform: scale(1.05);
}

@keyframes pulse {
    0% { box-shadow: 0 0 5px rgba(255, 107, 107, 0.5); }
    100% { box-shadow: 0 0 15px rgba(255, 107, 107, 0.8); }
}

/* 脉冲动画 */
@keyframes pulse {
    from { opacity: 1; }
    to { opacity: 0.8; }
}

.dark-mode .search-container {
    background: rgba(255,255,255,0.1);
}

.dark-mode .search-container input {
    color: #e0e0e0;
}

.dark-mode .search-container input::placeholder {
    color: rgba(255,255,255,0.6);
}

.dark-mode .search-count {
    background: rgba(255,255,255,0.1);
    color: #e0e0e0;
}

/* 夜间模式切换按钮样式 */
.dark-mode-toggle {
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 20px;
    padding: 5px 10px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    min-width: auto;
}

.dark-mode-toggle:hover {
    background: rgba(255,255,255,0.2);
}

.toggle-icon-light, 
.toggle-icon-dark {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.dark-mode .toggle-icon-light {
    opacity: 0;
}

.dark-mode .toggle-icon-dark {
    opacity: 1;
}

.toggle-icon-light {
    opacity: 1;
}

.toggle-icon-dark {
    opacity: 0;
}

/* PDF导出样式 */
@media print {
    .navbar, .sidebar, .search-container, .back-to-top, .mobile-bottom-nav {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
        padding: 0;
    }
    
    .content {
        box-shadow: none;
        padding: 0;
    }
    
    table, .phase {
        page-break-inside: avoid;
    }
    
    body {
        background: white;
    }
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.btn:hover::before {
    left: 100%;
}

.btn:hover::after {
    width: 200px;
    height: 200px;
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2ecc71 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #27ae60 100%);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(52, 152, 219, 0.5);
    border-color: rgba(255,255,255,0.3);
}

.btn-primary:active {
    transform: translateY(-2px) scale(0.98);
}

/* 按钮点击涟漪效果 */
.btn.ripple {
    position: relative;
    overflow: hidden;
}

.btn.ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn.ripple:active::before {
    width: 300px;
    height: 300px;
}

/* 微交互效果增强 */

/* 自定义光标 */
.custom-cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #3498db;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease;
    transform: translate(-50%, -50%);
}

.custom-cursor.hover {
    width: 40px;
    height: 40px;
    background: rgba(52, 152, 219, 0.2);
    border: 2px solid #3498db;
}

/* 涟漪动画 */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}


/* 滚动动画 */
.animate-in {
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 键盘导航增强 */
body.keyboard-navigation a:focus,
body.keyboard-navigation button:focus,
body.keyboard-navigation .btn:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

/* 搜索高亮样式增强 */
mark {
    background: linear-gradient(120deg, #ffeb3b 0%, #ffeb3b 100%);
    color: #333;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 600;
}

mark.current-match {
    background: linear-gradient(120deg, #ff9800 0%, #ff5722 100%);
    color: white;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.3);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 152, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0);
    }
}

/* 按钮交互增强 */
.toggle-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
}

.toggle-btn:hover {
    background: rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.toggle-btn:active {
    transform: scale(0.95);
    transition: all 0.1s ease;
}

.dark-mode-toggle {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
}

.dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.dark-mode-toggle:active {
    transform: scale(0.95);
    transition: all 0.1s ease;
}

/* 搜索框交互增强 */
#search {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

#search:focus {
    border-color: rgba(52, 152, 219, 0.5);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

/* 导航链接交互增强 */

.sidebar ul li a {
    position: relative;
    overflow: hidden;
}

.sidebar ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.sidebar ul li a:hover::after {
    transform: translateX(0);
}

/* 表格交互增强 */
table tr {
    transition: background-color 0.3s ease;
}

/* 步骤卡片交互增强 */
.step {
    transition: all 0.3s ease;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
}

.step:hover {
    background-color: rgba(52, 152, 219, 0.03);
    transform: translateX(5px);
}

/* 高亮动画 */
mark {
    background: linear-gradient(90deg, #ffeb3b, #fff176);
    transition: all 0.3s ease;
    animation: highlight-pulse 1s ease-in-out;
    padding: 2px 4px;
    border-radius: 2px;
    display: inline-block;
}

@keyframes highlight-pulse {
    0% { background: linear-gradient(90deg, #fff176, #ffeb3b); }
    50% { background: linear-gradient(90deg, #ffeb3b, #fff176); }
    100% { background: linear-gradient(90deg, #fff176, #ffeb3b); }
}

/* 当前匹配项高亮 */
mark.current-match {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
    color: white;
    font-weight: bold;
    animation: current-highlight-pulse 0.5s ease-in-out;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.3);
}

@keyframes current-highlight-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 搜索框聚焦状态 */
#search.search-focused {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* 搜索结果计数样式优化 */
.search-count {
    font-weight: bold;
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.search-count:hover {
    background: rgba(52, 152, 219, 0.2);
}

/* 返回顶部按钮动画 */
#backToTop {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#backToTop.show {
    opacity: 1;
    transform: translateY(0);
}

/* 点击反馈效果 */
* {
    -webkit-tap-highlight-color: rgba(52, 152, 219, 0.3);
}

/* 内容加载动画 */
.section {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

/* 子菜单切换动画增强 */
.submenu {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.submenu-toggle {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 夜间模式切换动画增强 */
.toggle-icon-light, 
.toggle-icon-dark {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-mode .toggle-icon-light {
    transform: rotate(180deg);
}

.dark-mode .toggle-icon-dark {
    transform: rotate(180deg);
}

/* 阅读进度条动画 */
.progress-bar {
    transition: width 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 富人思维逆袭路线图样式 */
.phase-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 5px solid;
    scroll-margin-top: 80px;
}

.survival {
    border-left-color: #e74c3c;
}

.breakthrough {
    border-left-color: #f39c12;
}

.overtake {
    border-left-color: #2ecc71;
}

.rules {
    border-left-color: #9b59b6;
}

.asset-tier {
    background: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tier-label {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.strategy {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.progress-table {
    width: 100%;
    margin: 30px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-collapse: collapse;
}

.progress-table th {
    background-color: #3498db;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

.progress-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.progress-table th, .progress-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.progress-table tr:hover {
    background-color: #f1f3f4;
}

.mark {
    background-color: #fef9e7;
    padding: 2px 5px;
    border-radius: 3px;
}

pre {
    background: #f5f7fa;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 20px 0;
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.5;
}

.bg-blue-50 {
    background-color: #ebf8ff;
}

.p-5 {
    padding: 1.25rem;
}

.text-blue-800 {
    color: #1a365d;
}

.text-blue-700 {
    color: #2a4365;
}

.text-blue-500 {
    color: #3182ce;
}

.mt-4 {
    margin-top: 1rem;
}

.italic {
    font-style: italic;
}

/* 财富思维自测系统样式 */
.assessment-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.assessment-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.dimension {
    margin-bottom: 30px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 20px;
}

.dimension:last-child {
    border-bottom: none;
}

.dimension-title {
    font-weight: bold;
    color: #3498db;
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.dimension-title:before {
    content: "■";
    color: #3498db;
    margin-right: 10px;
    font-size: 18px;
}

.criteria {
    display: flex;
    margin: 15px 0;
    flex-wrap: wrap;
}

.criteria-type {
    width: 100px;
    font-weight: bold;
    color: #e74c3c;
    flex-shrink: 0;
}

.criteria-content {
    flex: 1;
    padding-left: 10px;
    min-width: 0;
}

.rich {
    color: #27ae60;
}

.poor {
    color: #e74c3c;
}

.action-box {
    background: #f1f8fe;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    border-left: 3px solid #3498db;
    transition: all 0.3s ease;
}

.action-box:hover {
    background: #e8f4fc;
    border-left-color: #2980b9;
}

.action-title {
    font-weight: bold;
    margin-bottom: 8px;
    color: #2c3e50;
}

.score-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.score-table th, .score-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
}

.score-table th {
    background: #34495e;
    color: white;
    font-weight: bold;
}

.score-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.score-table tr:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

.result-card {
    background: #2c3e50;
    color: white;
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
    transition: all 0.3s ease;
}

.result-card:hover {
    background: #34495e;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.result-card h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 22px;
}

.result-card strong {
    color: #3498db;
}

/* 移动端适配 */
@media (max-width: 600px) {
    .criteria {
        flex-direction: column;
    }
    
    .criteria-type {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .criteria-content {
        padding-left: 0;
    }
    
    .dimension-title {
        font-size: 18px;
    }
    
    .score-table {
        font-size: 14px;
    }
    
    .score-table th, .score-table td {
        padding: 8px;
    }
}