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

body {
    background: #ffffff;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.4;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background: transparent;
    border-radius: 18px;
    box-shadow: none;
    padding: 15px 0;
    margin-bottom: 15px;
    border: none;
}

/* 导航栏 - 深红色风格 */
.navbar {
    background: linear-gradient(135deg, #8E1729 0%, #a01a2e 50%, #7a1424 100%);
    border-bottom: 2px solid #8E1729;
    box-shadow: 0 4px 20px rgba(142, 23, 41, 0.4);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    overflow: visible;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* 汉堡菜单按钮 - 已隐藏 */
.hamburger-menu {
    display: none !important;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.navbar::before {
    display: none;
}

.nav-container {
    width: 100%;
    margin: 0;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
    z-index: 2;
    overflow: visible;
}

.nav-container > * {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-logo {
    flex-shrink: 0;
    margin-right: 40px;
}

.nav-logo h1 {
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-shadow: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-link {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-link:hover {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

.nav-logo i {
    margin-right: 10px;
    color: #3b82f6;
    text-shadow: none;
}

.nav-menu {
    display: flex;
    gap: 15px;
    position: relative;
    align-items: center;
    z-index: 1003;
    height: 100%;
    flex: 1;
    justify-content: flex-end;
    margin-left: auto;
    overflow: visible;
}

.nav-menu li {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-menu::before {
    display: none;
}

/* 用户菜单样式 */
.user-menu {
    position: relative;
    z-index: 1002;
    margin-left: 20px;
    display: flex;
    align-items: center;
}

.user-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: auto;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-shadow: none;
    border: none;
    font-size: 16px;
    white-space: nowrap;
}

.user-link:hover {
    background: rgba(142, 23, 41, 0.8);
    transform: translateY(-1px);
    color: #ffffff;
}

.user-link i {
    font-size: 14px;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1003;
    margin-top: 8px;
    border: 1px solid #e2e8f0;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f3f4f6;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: #667eea;
}

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

/* 导航栏链接样式 */
.nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(142, 23, 41, 0.8);
    border-radius: 8px;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(142, 23, 41, 0.4);
}

/* 英雄区域 - 现代化风格 */
.hero-section {
    background: #ffffff;
    color: #1e293b;
    padding: 200px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
}

.hero-section::before {
    display: none;
}

.hero-bg-pattern {
    display: none;
}

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

/* 移除动画关键帧，保持导航栏颜色固定 */

.navbar {
    /* 移除动画，保持颜色不变 */
}

.hero-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

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

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 0;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* 书籍图片容器 */
.book-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    margin-top: -200px;
    padding: 20px 0;
}

.book-image {
    max-width: 1200px;
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    object-fit: cover;
}

.book-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

/* 核心搜索框 - 辞海风格 */
.search-container {
    margin-bottom: 15px;
}

.search-form {
    display: flex;
    justify-content: center;
}

.search-input-group {
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    max-width: 1800px;
    width: 100%;
    position: relative;
    transition: all 0.3s ease;
}

.search-input-group:focus-within {
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    background: white;
    border-radius: 50px;
    transform: none;
}

.search-input-group:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    background: white;
    border-radius: 50px;
    transform: none;
}

.search-icon {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
    z-index: 2;
}

.search-input {
    flex: 1;
    padding: 50px 50px 50px 110px;
    border: none;
    outline: none;
    font-size: 22px;
    background: transparent;
    color: #333;
}

.search-input::placeholder {
    color: #999;
}

.search-input:focus {
    outline: none;
    border: none;
    background: transparent;
    color: #333;
}

.search-input:not(:placeholder-shown) {
    color: #333;
    background: transparent;
    border: none;
    outline: none;
}

.search-input:focus::placeholder {
    color: #999;
}

.search-input:not(:placeholder-shown)::placeholder {
    color: #999;
}

.search-input:-webkit-autofill,
.search-input:-webkit-autofill:hover,
.search-input:-webkit-autofill:focus,
.search-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #333 !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    background-color: transparent !important;
    background-image: none !important;
    -webkit-background-clip: text !important;
    -webkit-background-color: transparent !important;
    font-size: 22px !important;
}

.search-input:-webkit-autofill::first-line {
    background: transparent !important;
    color: #333 !important;
    font-size: 22px !important;
}

.search-input:-webkit-autofill * {
    background: transparent !important;
    color: #333 !important;
    font-size: 22px !important;
}

.search-input[list] {
    background: transparent;
    color: #333;
    border: none;
    outline: none;
}

.search-input::-webkit-calendar-picker-indicator {
    display: none;
}

.search-input::-webkit-list-button {
    display: none;
}

.search-input::-webkit-datetime-edit,
.search-input::-webkit-datetime-edit-fields-wrapper,
.search-input::-webkit-datetime-edit-text,
.search-input::-webkit-datetime-edit-month-field,
.search-input::-webkit-datetime-edit-day-field,
.search-input::-webkit-datetime-edit-year-field {
    background: transparent !important;
    color: #333 !important;
    border: none !important;
    outline: none !important;
}

.search-input::-webkit-search-decoration,
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-results-button,
.search-input::-webkit-search-results-decoration {
    display: none !important;
}

.search-input::-webkit-textfield-decoration-container {
    background: transparent !important;
}

.search-input::-webkit-contacts-auto-fill-button {
    display: none !important;
}

.search-input::-webkit-credentials-auto-fill-button {
    display: none !important;
}

/* 针对Firefox的自动填充样式 */
.search-input:-moz-autofill {
    background-color: transparent !important;
    color: #333 !important;
    border: none !important;
    outline: none !important;
    font-size: 22px !important;
}

/* 针对所有浏览器的通用自动填充样式 */
.search-input:autofill {
    background-color: transparent !important;
    color: #333 !important;
    border: none !important;
    outline: none !important;
    font-size: 22px !important;
}

/* 确保选择文本时没有背景色 */
.search-input::selection {
    background: transparent !important;
    color: #333 !important;
}

.search-input::-moz-selection {
    background: transparent !important;
    color: #333 !important;
}

.search-button {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    padding: 35px 50px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
}

.search-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 快速入口 */
.quick-access {
    margin-bottom: 30px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.quick-item {
    background: rgba(255,255,255,0.15);
    border-radius: 15px;
    padding: 20px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    gap: 15px;
}

.quick-item:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.quick-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.quick-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.quick-info span {
    font-size: 12px;
    opacity: 0.8;
}

/* 热门搜索 */
.hot-searches {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.hot-label {
    font-weight: 600;
    opacity: 0.9;
    font-size: 20px;
}

.hot-tags {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hot-tag {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.hot-tag:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* 章节标题 */
.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #e2e8f0;
    border-radius: 2px;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    font-weight: 300;
}

/* 精选内容 */
.featured-section {
    padding: 20px 0;
    background: #ffffff;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.article-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.2s ease;
}

.article-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 15px;
}

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

.article-category {
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.article-views {
    color: #999;
    font-size: 14px;
}

.article-title {
    margin-bottom: 15px;
}

.article-title a {
    color: #1e293b;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.article-title a:hover {
    color: #3b82f6;
}

.article-summary {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #f8f9fa;
    color: #666;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #667eea;
    color: white;
}

/* 理论体系 */
.categories-section {
    padding: 20px 0;
    background: #ffffff;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.category-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.2s ease;
}

.category-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.category-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-content {
    padding: 25px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.category-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #1e293b;
}

.category-count {
    color: #999;
    font-size: 14px;
}

.category-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 14px;
}

.category-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.category-link:hover {
    color: #764ba2;
    transform: translateX(5px);
}

/* 学习资源 */
.resources-section {
    padding: 20px 0;
    background: #ffffff;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.resource-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.2s ease;
}

.resource-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.resource-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.resource-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.resource-card:hover .resource-image img {
    transform: scale(1.05);
}

.resource-content {
    padding: 25px;
    text-align: center;
}

.resource-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    margin: 0 auto 20px;
}

.resource-content h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.resource-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.resource-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

.resource-link:hover {
    color: #764ba2;
}

/* 统计数据 */
.stats-section {
    padding: 20px 0;
    background: #ffffff;
    color: #1e293b;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* 页脚 */
.footer {
    background: transparent;
    color: #64748b;
    padding: 5px 0;
    margin: 0;
    text-align: center;
}

/* 移除页脚容器的圆角矩形效果 */
.footer .container {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    border: none;
}

/* 页脚文字左对齐并增大字体 */
.footer {
    text-align: left;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    text-align: left;
    padding: 0 20px;
}

.footer-section h3,
.footer-section h4 {
    margin: 0 0 8px 0;
    color: #64748b;
    font-size: 18px;
    font-weight: 500;
    text-align: left;
}

.footer-section p {
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 5px 0;
    font-size: 18px;
    text-align: left;
}

.footer-bottom {
    text-align: left;
    color: #64748b;
    margin: 8px 0 0 0;
    padding: 0;
    font-size: 18px;
}

/* 确保首页页脚与其他页面页脚对齐一致 */
.hero-section + .footer {
    text-align: left;
}

.hero-section + .footer .footer-content {
    text-align: left;
}

.hero-section + .footer .footer-section h3,
.hero-section + .footer .footer-section h4 {
    text-align: left;
}

.hero-section + .footer .footer-section p {
    text-align: left;
}

.hero-section + .footer .footer-bottom {
    text-align: left;
}

/* 首页额外内容区域样式，确保页脚在底部中央 */
.home-content-section {
    flex: 1;
    min-height: 0px;
    display: flex;
    align-items: flex-end;
    padding: 0px 0;
}

.home-content-spacer {
    width: 100%;
    height: 100%;
    min-height: 0px;
}

.footer a {
    color: #1e293b;
}

.footer a:hover {
    color: #3b82f6;
}

/* 确保所有文字在深色背景上清晰可读 */
h1, h2, h3, h4, h5, h6 {
    color: #1e293b;
    font-weight: 600;
    line-height: 1.3;
}

p, span, div {
    color: #475569;
}

/* 特殊文字颜色调整 */
.hero-title-traditional, .hero-subtitle-traditional, .page-title-traditional, .page-subtitle-traditional {
    color: #1e293b;
    text-shadow: none;
}

.section-title-traditional, .section-subtitle-traditional {
    color: #1e293b;
    text-shadow: none;
}

.footer-content {
    margin: 0;
    padding: 0;
}

.footer-section h3,
.footer-section h4 {
    margin: 0;
    color: #64748b;
    font-size: 18px;
    font-weight: normal;
}

.footer-section p {
    color: #64748b;
    line-height: 1.2;
    margin: 0;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #475569;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    color: #64748b;
    margin: 0;
    padding: 0;
    font-size: 18px;
}

/* 搜索页面样式 */
.search-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.search-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.search-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.search-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.search-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.search-filters {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 600;
    color: white;
    font-size: 14px;
}

.filter-select {
    padding: 10px 15px;
    border: none;
    border-radius: 20px;
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 14px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.filter-select option {
    background: #667eea;
    color: white;
}

.search-results {
    padding: 0px 0;
    background: #f8f9fa;
}

.results-header {
    text-align: center;
    margin-bottom: 40px;
}

.results-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.results-count {
    color: #666;
    font-size: 1.1rem;
}

.results-container {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

.result-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    display: flex;
    margin-bottom: 20px;
}

.result-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.result-image {
    width: 300px;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.result-card:hover .result-image img {
    transform: scale(1.05);
}

.result-content {
    flex: 1;
    padding: 25px;
    padding-top: 35px;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

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

.result-category {
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.result-views {
    color: #999;
    font-size: 14px;
}

.result-title {
    margin-bottom: 15px;
}

.result-title a {
    color: #1e293b;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.result-title a:hover {
    color: #3b82f6;
}

.result-summary {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
    flex: 1;
    max-height: 4.2em; /* 限制为3行 */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* 完整内容显示样式 */
.result-content-full {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 14px;
    flex: 1;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: none;
    overflow: visible;
    text-indent: 0;
    padding-left: 0;
    margin-left: 0;
    margin-top: 20px;
    padding-top: 10px;
    text-align: left;
}

/* 强制第一行顶格显示 */
.result-content-full::first-line {
    text-indent: 0;
    margin-left: 0;
    padding-left: 0;
}

/* 删除第一行的空格 */
.result-content-full::first-line {
    text-indent: 0;
}

/* 确保文本顶格显示 */
.result-content-full p {
    text-indent: 0;
    margin-left: 0;
    padding-left: 0;
    margin-top: 0;
    padding-top: 0;
}

.result-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #ffffff;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.page-link:hover,
.page-link.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.page-link.next {
    width: 40px;
    height: 40px;
}

.page-ellipsis {
    color: #999;
    font-weight: 600;
}

.pagination-info {
    text-align: center;
    margin-top: 20px;
    color: #64748b;
    font-size: 14px;
}

.pagination-info p {
    margin: 0;
    padding: 10px 20px;
    background: #f8fafc;
    border-radius: 6px;
    display: inline-block;
    border: 1px solid #e2e8f0;
}

/* 页面定位输入框样式 */
.page-jump {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.jump-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
    white-space: nowrap;
}

.page-input {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    background: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.page-input::-webkit-inner-spin-button,
.page-input::-webkit-outer-spin-button {
    opacity: 1;
}

.jump-btn {
    padding: 6px 10px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jump-btn:hover {
    background: #2980b9;
}

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

/* 页面定位输入框响应式设计 */
@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        gap: 12px;
    }
    
    .page-jump {
        margin-left: 0;
        margin-top: 8px;
        order: 3;
    }
    
    .jump-label {
        font-size: 13px;
    }
    
    .page-input {
        width: 50px;
        font-size: 13px;
    }
    
    .jump-btn {
        padding: 6px 8px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .page-jump {
        flex-direction: column;
        gap: 6px;
        padding: 10px;
    }
    
    .jump-label {
        font-size: 12px;
    }
    
    .page-input {
        width: 60px;
    }
}

/* 词条导航页面样式 */
.articles-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.articles-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
}

.articles-title-traditional {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: white;
}

.articles-subtitle-traditional {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    color: white;
}

.articles-list {
    padding: 60px 0;
    background: #f8fafc;
}

.articles-container {
    margin-top: 40px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.article-item {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

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

.article-category {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-views {
    color: #64748b;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-title a:hover {
    color: #3b82f6;
}

.article-summary {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: flex-end;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.read-more:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    color: white;
}

.no-articles {
    text-align: center;
    padding: 80px 20px;
}

.no-articles-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-articles-content i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.no-articles-content h3 {
    font-size: 1.5rem;
    color: #64748b;
    margin-bottom: 10px;
}

.no-articles-content p {
    color: #94a3b8;
    font-size: 1rem;
}

/* 搜索建议样式 */
.search-suggestions {
    padding: 40px 0;
}

.suggestions-section {
    margin-bottom: 60px;
}

.suggestions-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
    position: relative;
}

.suggestions-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #e2e8f0;
    border-radius: 2px;
}

.suggestions-section .section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 40px;
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.suggestion-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    border: 1px solid #e2e8f0;
}

.suggestion-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    color: #667eea;
}

.suggestion-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.suggestion-card span {
    font-weight: 600;
    font-size: 16px;
}

.categories-browse {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.category-browse-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.category-browse-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.category-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-browse-card:hover .category-image img {
    transform: scale(1.05);
}

.category-content {
    padding: 25px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.category-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #1e293b;
}

.category-info span {
    color: #999;
    font-size: 14px;
}

.category-description {
    color: #666;
    line-height: 1.5;
    font-size: 14px;
}

/* 关于页面样式 */
.about-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.about-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

.about-header {
    margin-bottom: 40px;
}

.about-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}

.about-subtitle {
    font-size: 1.3rem;
    margin-bottom: 0;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 1px;
}

.about-image {
    max-width: 600px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 使命区域 */
.mission-section {
    padding: 0 0 40px 0;
    margin-top: -20px;
    background: white;
}

.mission-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.mission-text h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
}

.mission-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.mission-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.mission-stat {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.mission-stat .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

.mission-stat .stat-label {
    color: #666;
    font-size: 14px;
}

.mission-visual {
    text-align: center;
}

.mission-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.mission-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 特色区域 */
.features-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.2s ease;
}

.feature-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.feature-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-image img {
    transform: scale(1.05);
}

.feature-content {
    padding: 25px;
    text-align: center;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    margin: 0 auto 20px;
}

.feature-content h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-content p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

/* 团队区域 */
.team-section {
    padding: 80px 0;
    background: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.team-member {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.2s ease;
}

.team-member:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.member-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.05);
}

.member-content {
    padding: 25px;
    text-align: center;
}

.member-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin: 0 auto 15px;
}

.member-content h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 15px;
    font-weight: 600;
}

.member-content p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

/* 联系区域 */
.contact-section {
    padding: 0 0 40px 0;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.contact-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.contact-details h4 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-details p {
    color: #666;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-details span {
    color: #999;
    font-size: 12px;
}

.contact-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.form-header h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.form-header p {
    color: #666;
    font-size: 14px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.submit-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.submit-btn span {
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Flash消息样式 */
.flash-messages {
    margin-bottom: 20px;
}

.flash-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.flash-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-message i {
    font-size: 16px;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .book-image {
        max-width: 1100px;
        border-radius: 0;
    }
    
    .book-image-container {
        margin-bottom: 40px;
        margin-top: -100px;
        padding: 15px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .search-input-group {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .search-input {
        padding: 20px 20px 20px 60px;
    }
    
    .search-button {
        padding: 20px 20px;
        border-radius: 0 0 15px 15px;
    }
    
    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    /* 移动端导航栏样式 */
    .navbar {
        background: linear-gradient(135deg, #8E1729 0%, #a01a2e 50%, #7a1424 100%);
        border-bottom: 2px solid #8E1729;
        box-shadow: 0 4px 20px rgba(142, 23, 41, 0.4);
        overflow: visible;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .nav-container {
        height: 100px;
        padding: 0 20px;
        overflow: visible;
        justify-content: space-between;
        align-items: center;
        position: relative;
        width: 100%;
    }
    
    .main-content {
        margin-top: 100px;
    }
    
    .nav-logo {
        margin-right: 15px;
        flex-shrink: 0;
    }
    
    .nav-logo h1 {
        font-size: 24px;
    }
    

    
    /* 隐藏汉堡菜单按钮 */
    .hamburger-menu {
        display: none !important;
        position: relative;
        z-index: 1000000;
    }
    
    /* 移动端菜单样式 */
    .nav-menu {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        flex-direction: row !important;
        justify-content: flex-end !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 0 !important;
        transition: none !important;
        z-index: auto !important;
        overflow: visible !important;
        display: flex !important;
        margin-left: auto !important;
        flex-wrap: wrap !important;
    }
    
    .nav-menu.active {
        display: flex !important;
    }
    
    .nav-menu li {
        width: auto;
        display: flex !important;
        visibility: visible !important;
        justify-content: center;
        margin: 0;
    }
    
    .nav-link {
        width: auto;
        padding: 8px 12px;
        font-size: 18px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        height: auto;
        white-space: nowrap;
        visibility: visible !important;
        opacity: 1 !important;
        border-radius: 6px;
        margin: 0;
        background: rgba(142, 23, 41, 0.3);
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background: rgba(142, 23, 41, 0.8);
        transform: translateY(-2px);
    }
    
    .user-menu {
        margin-left: 0;
        display: flex !important;
        visibility: visible !important;
        width: 100%;
        justify-content: center;
    }
    
    .user-link {
        width: auto;
        padding: 8px 12px;
        font-size: 18px;
        display: flex !important;
        visibility: visible !important;
        justify-content: center;
        margin: 0;
    }
    
    .user-dropdown,
    .login-dropdown {
        position: static;
        width: 100%;
        margin: 10px 20px;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(142, 23, 41, 0.3);
        border-radius: 8px;
    }
    
    .dropdown-item {
        padding: 12px 20px;
        color: #ffffff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .dropdown-item:hover {
        background: rgba(142, 23, 41, 0.5);
        color: #ffffff;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .search-title {
        font-size: 2.5rem;
    }
    
    .search-filters {
        flex-direction: column;
        gap: 20px;
    }
    
    .result-card {
        flex-direction: column;
    }
    
    .result-image {
        width: 100%;
        height: 200px;
    }
    
    .suggestions-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .categories-browse {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        gap: 8px;
    }
    
    .page-link {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .about-title {
        font-size: 2.5rem;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .mission-stats {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .book-image {
        max-width: 1000px;
        border-radius: 0;
    }
    
    .book-image-container {
        margin-bottom: 30px;
        margin-top: -80px;
        padding: 10px 0;
    }
    
    .navbar {
        background: linear-gradient(135deg, #8E1729 0%, #a01a2e 50%, #7a1424 100%);
        border-bottom: 2px solid #8E1729;
        box-shadow: 0 4px 20px rgba(142, 23, 41, 0.4);
        overflow: visible;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
        height: 60px;
        overflow: visible;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-logo {
        margin-right: 10px;
        flex-shrink: 0;
    }
    
    .nav-logo h1 {
        font-size: 16px;
    }
    
    /* 移动端菜单样式 */
    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
    }
    
    .nav-link {
        padding: 12px 15px;
        font-size: 14px;
        margin: 0 15px;
    }
    
    .user-link {
        padding: 12px 15px;
        font-size: 14px;
        margin: 0 15px;
    }

    .search-title {
        font-size: 2rem;
    }
    
    .results-header h2 {
        font-size: 2rem;
    }
    
    .suggestions-section .section-title {
        font-size: 2rem;
    }

    .about-title {
        font-size: 2rem;
    }
    
    .mission-text h3 {
        font-size: 1.5rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .quick-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .user-dropdown,
    .login-dropdown {
        right: -20px;
        min-width: 140px;
        z-index: 1003;
    }
}

/* 超小屏幕设备 */
@media (max-width: 360px) {
    .navbar {
        overflow: visible;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .nav-container {
        padding: 0 10px;
        height: 55px;
        overflow: visible;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-logo {
        margin-right: 8px;
        flex-shrink: 0;
    }
    
    .nav-logo h1 {
        font-size: 14px;
    }
    
    .nav-menu {
        gap: 4px;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow: visible;
        width: auto;
        min-width: 0;
    }
    
    .nav-menu li {
        display: flex !important;
        visibility: visible !important;
        flex-shrink: 0;
    }
    
    .nav-link {
        padding: 3px 4px;
        font-size: 10px;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0;
        min-width: 0;
    }
    
    .user-link {
        padding: 3px 6px;
        font-size: 10px;
        display: flex !important;
        visibility: visible !important;
    }
}

/* 移动端导航栏样式 - 覆盖之前的强制显示样式 */
@media (max-width: 768px) {
    /* 移动端导航菜单正常显示 */
    .nav-menu {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        flex-direction: row !important;
        justify-content: flex-end !important;
        align-items: center !important;
        gap: 15px !important;
        padding: 0 !important;
        transition: none !important;
        z-index: auto !important;
        overflow: visible !important;
        display: flex !important;
        margin-left: auto !important;
        flex-wrap: wrap !important;
        min-width: auto !important;
        max-width: none !important;
    }
    
    .nav-menu li {
        width: auto !important;
        display: flex !important;
        visibility: visible !important;
        justify-content: center !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        padding: 0 !important;
    }
    
    .nav-link {
        width: auto !important;
        padding: 8px 12px !important;
        font-size: 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: auto !important;
        white-space: nowrap !important;
        visibility: visible !important;
        opacity: 1 !important;
        border-radius: 6px !important;
        margin: 0 !important;
        background: rgba(142, 23, 41, 0.3) !important;
        transition: all 0.3s ease !important;
        flex-shrink: 0 !important;
    }
    
    .nav-link:hover {
        background: rgba(142, 23, 41, 0.8) !important;
        transform: translateY(-2px) !important;
    }
    
    .user-menu {
        margin-left: 10px !important;
        display: flex !important;
        visibility: visible !important;
        width: auto !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
    
    .user-link {
        width: auto !important;
        padding: 8px 12px !important;
        font-size: 18px !important;
        display: flex !important;
        visibility: visible !important;
        justify-content: center !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }
    
    .login-menu {
        margin-left: 10px !important;
        display: flex !important;
        visibility: visible !important;
        width: auto !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
    
    .login-link {
        width: auto !important;
        padding: 8px 12px !important;
        font-size: 18px !important;
        display: flex !important;
        visibility: visible !important;
        justify-content: center !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }
}

/* 480px以下移动端导航栏样式 */
@media (max-width: 480px) {
    .nav-menu {
        gap: 10px !important;
    }
    
    .nav-link {
        padding: 6px 10px !important;
        font-size: 16px !important;
        margin: 0 !important;
    }
    
    .user-link {
        padding: 6px 10px !important;
        font-size: 16px !important;
        margin: 0 !important;
    }
    
    .login-link {
        padding: 6px 10px !important;
        font-size: 16px !important;
        margin: 0 !important;
    }
}

/* 360px以下移动端导航栏样式 */
@media (max-width: 360px) {
    .nav-menu {
        top: 60px !important;
        height: calc(100vh - 60px) !important;
    }
    
    .nav-link {
        padding: 10px 12px !important;
        font-size: 14px !important;
        margin: 0 12px !important;
    }
    
    .user-link {
        padding: 10px 12px !important;
        font-size: 14px !important;
        margin: 0 12px !important;
    }
    
    .login-link {
        padding: 10px 12px !important;
        font-size: 14px !important;
        margin: 0 12px !important;
    }
    
    /* 为固定导航栏添加body padding */
    body {
        padding-top: 60px;
    }
}

/* 更小屏幕的导航栏样式 */
@media (max-width: 320px) {
    .nav-menu li {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .nav-link {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        padding: 3px 4px !important;
        font-size: 12px !important;
    }
    
    .user-menu,
    .login-menu {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0 !important;
    }
    
    .user-link,
    .login-link {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        font-size: 12px !important;
    }
}

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

.category-card,
.article-card,
.resource-card {
    animation: fadeInUp 0.6s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
} 

/* 历史渊源板块 */
.history-section {
    padding: 80px 0;
    background: white;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.history-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    position: relative;
}

.history-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.history-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.history-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.history-card:hover .history-image img {
    transform: scale(1.05);
}

.history-content {
    padding: 25px;
    position: relative;
}

.history-date {
    position: absolute;
    top: -15px;
    left: 25px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.date-year {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1;
}

.history-content h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin: 20px 0 15px 0;
    font-weight: 600;
    line-height: 1.3;
}

.history-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 14px;
}

.history-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.history-tag {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.history-tag:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* 响应式设计 - 历史渊源 */
@media (max-width: 768px) {
    .history-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .history-content h3 {
        font-size: 1.2rem;
    }
    
    .history-content p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .history-card {
        margin: 0 10px;
    }
    
    .history-content {
        padding: 20px;
    }
    
    .history-date {
        left: 20px;
        padding: 6px 12px;
    }
    
    .date-year {
        font-size: 1rem;
    }
    
    .date-month {
        font-size: 0.8rem;
    }
} 

/* 主要内容区域 - 混合布局 */
.main-content-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.content-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.content-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.content-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.content-block {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.block-header {
    margin-bottom: 20px;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 15px;
}

.block-title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
}

.block-subtitle {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* 理论体系紧凑布局 */
.categories-compact {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.category-compact {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.category-compact:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.category-compact-image {
    width: 60px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.category-compact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-compact-info {
    flex: 1;
}

.category-compact-info h4 {
    font-size: 1rem;
    color: #2c3e50;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.category-description {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.category-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-count {
    font-size: 11px;
    color: #667eea;
    font-weight: 500;
}

.category-icon {
    color: #667eea;
    font-size: 12px;
}

.category-keywords {
    margin: 8px 0;
}

.keyword-label {
    font-size: 11px;
    color: #667eea;
    font-weight: 500;
    margin-right: 8px;
}

.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.keyword-tag {
    background: #f0f4ff;
    color: #667eea;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    border: 1px solid #e0e7ff;
    font-weight: 500;
}

.category-classics {
    margin: 6px 0;
}

.classic-label {
    font-size: 11px;
    color: #667eea;
    font-weight: 500;
    margin-right: 8px;
}

.classic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.classic-item {
    background: #fff5f5;
    color: #e74c3c;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    border: 1px solid #fed7d7;
    font-weight: 500;
    font-style: italic;
}

.category-compact-link {
    color: #667eea;
    font-size: 16px;
    transition: all 0.3s ease;
}

.category-compact-link:hover {
    color: #764ba2;
    transform: translateX(3px);
}

/* 历史渊源紧凑布局 */
.history-compact {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.history-compact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.history-compact-item:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.history-compact-date {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    min-width: 60px;
    flex-shrink: 0;
}

.history-compact-date .year {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
}

.history-compact-date .month {
    display: block;
    font-size: 0.7rem;
    opacity: 0.9;
    line-height: 1;
}

.history-compact-content h4 {
    font-size: 1rem;
    color: #2c3e50;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.history-compact-content p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* 学习资源紧凑布局 */
.resources-compact {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.resource-compact {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.resource-compact:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.resource-compact-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    margin-right: 15px;
    flex-shrink: 0;
}

.resource-compact-info {
    flex: 1;
}

.resource-compact-info h4 {
    font-size: 1rem;
    color: #2c3e50;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.resource-compact-info p {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.resource-compact-link {
    color: #667eea;
    font-size: 14px;
    transition: all 0.3s ease;
}

.resource-compact-link:hover {
    color: #764ba2;
    transform: translateX(3px);
}

/* 快速导航 */
.quick-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.quick-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.quick-nav-item:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    color: #667eea;
}

.quick-nav-item i {
    font-size: 24px;
    margin-bottom: 8px;
    color: #667eea;
}

.quick-nav-item span {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

/* 热门标签紧凑布局 */
.hot-tags-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hot-tag-compact {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hot-tag-compact:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* 响应式设计 - 混合布局 */
@media (max-width: 768px) {
    .content-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .content-left,
    .content-right {
        gap: 20px;
    }
    
    .content-block {
        padding: 20px;
    }
    
    .quick-nav {
        grid-template-columns: 1fr;
    }
    
    .category-compact,
    .history-compact-item,
    .resource-compact {
        padding: 12px;
    }
    
    .category-compact-image {
        width: 50px;
        height: 35px;
        margin-right: 12px;
    }
    
    .history-compact-date {
        min-width: 50px;
        padding: 6px 10px;
    }
    
    .resource-compact-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
        margin-right: 12px;
    }
}

@media (max-width: 480px) {
    .main-content-section {
        padding: 40px 0;
    }
    
    .main-content {
        margin-top: 100px;
    }
    
    .content-block {
        padding: 15px;
    }
    
    .block-title {
        font-size: 1.2rem;
    }
    
    .category-compact-info h4,
    .history-compact-content h4,
    .resource-compact-info h4 {
        font-size: 0.9rem;
    }
    
    .history-compact-content p,
    .resource-compact-info p {
        font-size: 11px;
    }
} 

/* 三栏布局主要内容 */
.three-column-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.three-column-layout {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.left-column,
.center-column,
.right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.column-block {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 历史故事样式 */
.history-stories {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.story-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.story-item:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.story-date {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    min-width: 60px;
    flex-shrink: 0;
}

.story-date .year {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
}

.story-date .month {
    display: block;
    font-size: 0.7rem;
    opacity: 0.9;
    line-height: 1;
}

.story-content {
    flex: 1;
}

.story-content h4 {
    font-size: 1rem;
    color: #2c3e50;
    margin: 0 0 8px 0;
    font-weight: 600;
    line-height: 1.3;
}

.story-content p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 10px 0;
}

.story-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.story-tag {
    background: #e9ecef;
    color: #667eea;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.story-tag:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

/* 历史人物样式 */
.historical-figures {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.figure-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.figure-item:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.figure-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid #e9ecef;
}

.figure-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.figure-info {
    flex: 1;
}

.figure-info h4 {
    font-size: 1rem;
    color: #2c3e50;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.figure-title {
    font-size: 12px;
    color: #667eea;
    margin: 0 0 8px 0;
    font-weight: 500;
}

.figure-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* 响应式设计 - 三栏布局 */
@media (max-width: 1024px) {
    .three-column-layout {
        grid-template-columns: 1fr 1.5fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .three-column-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .left-column,
    .center-column,
    .right-column {
        gap: 20px;
    }
    
    .column-block {
        padding: 15px;
    }
    
    .story-item,
    .figure-item {
        padding: 12px;
    }
    
    .story-date {
        min-width: 50px;
        padding: 6px 10px;
    }
    
    .figure-avatar {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .three-column-section {
        padding: 40px 0;
    }
    
    .column-block {
        padding: 12px;
    }
    
    .story-content h4,
    .figure-info h4 {
        font-size: 0.9rem;
    }
    
    .story-content p,
    .figure-desc {
        font-size: 11px;
    }
    
    .story-date .year {
        font-size: 0.8rem;
    }
    
    .story-date .month {
        font-size: 0.6rem;
    }
} 

/* 文章详情页面样式 */
.article-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.article-header {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb i {
    font-size: 12px;
    opacity: 0.6;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-category {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.article-views,
.article-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    opacity: 0.9;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.article-summary {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.9;
    font-weight: 300;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-tags .tag {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.article-tags .tag:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

/* 文章内容区域 */
.article-content {
    padding: 60px 0;
    background: #f8f9fa;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.article-main {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.article-body {
    line-height: 1.8;
    color: #2c3e50;
}

.article-body h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 30px 0 20px 0;
    font-weight: 700;
    border-left: 4px solid #667eea;
    padding-left: 15px;
}

.article-body h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin: 25px 0 15px 0;
    font-weight: 600;
}

.article-body p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    text-align: justify;
    text-indent: 2em;
}

.article-body ul {
    margin: 20px 0;
    padding-left: 20px;
}

.article-body li {
    margin-bottom: 10px;
    color: #555;
}

.article-body strong {
    color: #2c3e50;
    font-weight: 600;
}

/* 词条导航 */
.article-navigation {
    margin: 40px 0 20px 0;
    padding: 30px 0;
    border-top: 1px solid #e9ecef;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.nav-links .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 45%;
}

.nav-links .nav-link:hover {
    /* Hover effects removed - no blue background */
}

.nav-links .nav-link.disabled {
    background: #f1f3f4;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.nav-links .nav-link.disabled:hover {
    background: #f1f3f4;
    color: #9ca3af;
    transform: none;
    box-shadow: none;
}

.nav-links .prev-link {
    text-align: left;
}

.nav-links .next-link {
    text-align: right;
    flex-direction: row-reverse;
}

.nav-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.nav-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    word-wrap: break-word;
    word-break: break-word;
    text-align: left;
}

.nav-links .nav-link:hover .nav-label {
    /* Hover effects removed - no color change */
}

.nav-links .nav-link i {
    font-size: 16px;
    flex-shrink: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links .nav-link {
        max-width: 100%;
        width: 100%;
    }
    
    .nav-links .next-link {
        flex-direction: row;
        text-align: left;
    }
}

/* 文章操作按钮 */
.article-actions {
    display: flex;
    gap: 15px;
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #667eea;
    border: 1px solid #e9ecef;
}

.action-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 学习笔记 */
.study-notes {
    margin: 40px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.study-notes h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.study-notes h3 i {
    color: #667eea;
}

.notes-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.note-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.note-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
    color: #666;
}

.note-author {
    font-weight: 600;
    color: #667eea;
}

.note-text {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* 讨论区 */
.discussion-section {
    margin: 40px 0;
}

.discussion-section h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.discussion-section h3 i {
    color: #667eea;
}

.discussion-form {
    margin-bottom: 30px;
}

.discussion-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.discussion-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.submit-discussion {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 25px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 14px;
    cursor: pointer;
}

.submit-discussion:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.discussion-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.discussion-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.discussion-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
    color: #666;
}

.discussion-author {
    font-weight: 600;
    color: #667eea;
}

.discussion-text {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* 侧边栏 */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.sidebar-section h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 10px;
}

/* 相关词条 */
.related-articles {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-article {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.related-article:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.related-article h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.related-article h4 a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
}

.related-article h4 a:hover {
    color: #3b82f6;
}

.related-article p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* 热门标签 */
.popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.popular-tags .tag {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.popular-tags .tag:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* 学习进度 */
.progress-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-label {
    font-size: 14px;
    color: #666;
    min-width: 80px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-percent {
    font-size: 12px;
    color: #667eea;
    font-weight: 600;
    min-width: 35px;
}

/* 订阅表单 */
.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subscribe-form input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.subscribe-form input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.subscribe-form button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.subscribe-form button:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* 响应式设计 - 文章页面 */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .article-main {
        padding: 30px;
    }
    
    .article-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .article-hero {
        padding: 40px 0 30px;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .article-main {
        padding: 20px;
    }
    
    .article-actions {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .action-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .sidebar-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.5rem;
    }
    
    .article-summary {
        font-size: 1rem;
    }
    
    .article-main {
        padding: 15px;
    }
    
    .article-body h2 {
        font-size: 1.5rem;
    }
    
    .article-body h3 {
        font-size: 1.2rem;
    }
    
    .article-body p {
        font-size: 15px;
    }
} 

/* 数据可视化页面样式 */
.visualization-hero {
    background: #ffffff;
    color: #1e293b;
    padding: 40px 0 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
}

.visualization-hero::before {
    display: none;
}

.visualization-hero .hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.visualization-hero .hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: none;
}

.visualization-hero .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

/* 知识图谱区域 */
.knowledge-graph-section {
    padding: 60px 0;
    background: white;
}

.graph-container {
    max-width: 1200px;
    margin: 0 auto;
}

.graph-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.graph-header {
    padding: 25px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.graph-header h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin: 0;
    font-weight: 600;
}

.graph-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.graph-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.graph-btn.active,
.graph-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.graph-content {
    padding: 30px;
}

.graph-area {
    width: 100%;
    height: 500px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9ecef;
}

.graph-placeholder {
    text-align: center;
    color: #666;
}

.graph-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #667eea;
}

/* 数据统计区域 */
.statistics-section {
    padding: 60px 0;
    background: #f8f9fa;
}

/* 地理分布卡片图表样式 */
.geographic-cards-chart {
    padding: 20px 0;
    position: relative;
}





/* 地图可视化 */
.map-visualization {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 30px;
    color: white;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    min-height: 500px;
}

.map-title {
    font-size: 22px;
    font-weight: bold;
    margin: 20px 0;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.map-container {
    position: relative;
    height: 400px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    overflow: hidden;
    box-sizing: border-box;
}

.world-map {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 500" fill="%23ffffff30"><path d="M 100,100 L 200,80 L 300,100 L 400,90 L 500,110 L 600,100 L 700,120 L 800,110 L 900,130 L 1000,120 L 1000,140 L 900,150 L 800,140 L 700,160 L 600,150 L 500,170 L 400,160 L 300,180 L 200,170 L 100,190 L 0,180 L 0,160 L 100,150 L 200,140 L 300,130 L 400,120 L 500,110 L 600,100 L 700,90 L 800,80 L 900,70 L 1000,60 L 1000,40 L 900,30 L 800,20 L 700,10 L 600,0 L 500,10 L 400,20 L 300,30 L 200,40 L 100,50 L 0,60 L 0,80 L 100,90 L 200,100 Z"/><path d="M 150,200 L 250,190 L 350,210 L 450,200 L 550,220 L 650,210 L 750,230 L 850,220 L 950,240 L 1000,230 L 1000,250 L 950,260 L 850,250 L 750,270 L 650,260 L 550,280 L 450,270 L 350,290 L 250,280 L 150,300 L 50,290 L 0,300 L 0,280 L 50,270 L 150,260 L 250,250 L 350,240 L 450,230 L 550,220 L 650,210 L 750,200 L 850,190 L 950,180 L 1000,170 L 1000,150 L 950,140 L 850,130 L 750,120 L 650,110 L 550,100 L 450,90 L 350,80 L 250,70 L 150,60 L 50,50 L 0,40 L 0,60 L 50,70 L 150,80 L 250,90 L 350,100 L 450,110 L 550,120 L 650,130 L 750,140 L 850,150 L 950,160 L 1000,170 L 1000,190 L 950,200 Z"/><path d="M 200,300 L 300,290 L 400,310 L 500,300 L 600,320 L 700,310 L 800,330 L 900,320 L 1000,340 L 1000,360 L 900,370 L 800,360 L 700,380 L 600,370 L 500,390 L 400,380 L 300,400 L 200,390 L 100,410 L 0,400 L 0,380 L 100,370 L 200,360 L 300,350 L 400,340 L 500,330 L 600,320 L 700,310 L 800,300 L 900,290 L 1000,280 L 1000,260 L 900,250 L 800,240 L 700,230 L 600,220 L 500,210 L 400,200 L 300,190 L 200,180 L 100,170 L 0,160 L 0,180 L 100,190 L 200,200 L 300,210 L 400,220 L 500,230 L 600,240 L 700,250 L 800,260 L 900,270 L 1000,280 L 1000,300 Z"/><path d="M 250,400 L 350,390 L 450,410 L 550,400 L 650,420 L 750,410 L 850,430 L 950,420 L 1000,440 L 1000,460 L 950,470 L 850,460 L 750,480 L 650,470 L 550,490 L 450,480 L 350,500 L 250,490 L 150,510 L 0,500 L 0,480 L 150,470 L 250,460 L 350,450 L 450,440 L 550,430 L 650,420 L 750,410 L 850,400 L 950,390 L 1000,380 L 1000,360 L 950,350 L 850,340 L 750,330 L 650,320 L 550,310 L 450,300 L 350,290 L 250,280 L 150,270 L 0,260 L 0,280 L 150,290 L 250,300 L 350,310 L 450,320 L 550,330 L 650,340 L 750,350 L 850,360 L 950,370 L 1000,380 L 1000,400 Z"/></svg>');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    box-sizing: border-box;
}

.map-point {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.map-point:hover {
    transform: scale(1.5);
    z-index: 10;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* 随机分布地图点 */
.map-point:nth-child(1) { top: 30%; left: 12%; }
.map-point:nth-child(2) { top: 25%; left: 25%; }
.map-point:nth-child(3) { top: 40%; left: 38%; }
.map-point:nth-child(4) { top: 35%; left: 52%; }
.map-point:nth-child(5) { top: 50%; left: 68%; }
.map-point:nth-child(6) { top: 60%; left: 18%; }
.map-point:nth-child(7) { top: 70%; left: 35%; }
.map-point:nth-child(8) { top: 65%; left: 58%; }

.map-point .point-tooltip {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 30;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.map-point:hover .point-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: 30px;
}

.map-point .point-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(44, 62, 80, 0.95);
}

.map-point .tooltip-title {
    font-weight: bold;
    margin-bottom: 6px;
    color: #3498db;
}

.map-point .tooltip-content {
    line-height: 1.4;
}

/* 无数据状态 */
.no-data {
    text-align: center;
    padding: 60px 20px;
    color: #95a5a6;
}

.no-data-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-data-text {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #7f8c8d;
}

.no-data-subtitle {
    font-size: 14px;
    color: #bdc3c7;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .map-container {
        height: 150px;
    }
    
    .map-point {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .stat-number {
        font-size: 24px;
    }
}

.charts-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.chart-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.chart-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.chart-header {
    margin-bottom: 20px;
}

.chart-header h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
}

.chart-header p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.chart-content {
    height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 实时数据区域 */
.realtime-section {
    padding: 60px 0;
    background: white;
}

.realtime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.realtime-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.2s ease;
}

.realtime-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.realtime-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.realtime-info {
    flex: 1;
}

.realtime-info h3 {
    font-size: 1rem;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.realtime-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.realtime-change {
    font-size: 12px;
    font-weight: 600;
}

.realtime-change.positive {
    color: #27ae60;
}



/* 全宽图表样式 */
.chart-card.full-width {
    grid-column: 1 / -1;
    width: 100%;
}

/* 宽图表样式 - 用于用户访问数量统计 */
.chart-card.wide-chart {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 800px;
}

/* 宽图表的图表容器 */
.chart-card.wide-chart .chart-container {
    width: 100%;
    min-width: 800px;
}

.chart-card.wide-chart .chart-content {
    width: 100%;
    min-width: 800px;
}

.chart-card.wide-chart .line-chart {
    width: 100%;
    min-width: 800px;
}

.chart-card.wide-chart .chart-axis {
    width: 100%;
    min-width: 800px;
}

.chart-card.wide-chart .chart-area {
    width: 100%;
    min-width: 800px;
}

/* 宽图表的数据点样式 */
.chart-card.wide-chart .data-points {
    width: 100%;
    min-width: 800px;
}

.data-point-container {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateX(-50%);
}

.chart-card.wide-chart .data-point {
    position: relative;
    width: 20px;
    height: 20px;
    background: #667eea;
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    margin-bottom: 8px;
}

.month-label {
    font-size: 12px;
    font-weight: 500;
    color: #7f8c8d;
    text-align: center;
    white-space: nowrap;
    margin-top: 4px;
}

/* 响应式设计 - 移动端月份标签调整 */
@media (max-width: 768px) {
    .data-point-container {
        transform: translateX(-50%) scale(0.9);
    }
    
    .chart-card.wide-chart .data-point {
        width: 16px;
        height: 16px;
        margin-bottom: 6px;
    }
    
    .month-label {
        font-size: 10px;
        margin-top: 2px;
    }
    
    /* 移动端数据点悬停提示调整 */
    .data-point::after,
    .chart-card.wide-chart .data-point::after {
        top: -30px;
        font-size: 10px;
        padding: 3px 6px;
    }
    
    /* 移动端瀑布图调整 */
    .waterfall-step {
        min-height: 15px;
    }
    
    .step-value {
        font-size: 9px;
    }
    
    .month-labels .month-label {
        font-size: 10px;
    }
}

.chart-card.wide-chart .data-point:hover {
    transform: scale(1.4) !important;
    background: #5a67d8;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    border-color: #f8f9fa;
}

/* 宽图表数据点的悬停提示样式 */
.chart-card.wide-chart .data-point::after {
    content: attr(data-value);
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.chart-card.wide-chart .data-point:hover::after {
    opacity: 1;
}

/* 国家水平柱状图样式 */
.country-horizontal-chart {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.chart-axis {
    width: 100%;
    height: 580px;
    display: flex;
    align-items: stretch;
    position: relative;
    margin-top: 10px;
}

.y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    padding-right: 15px;
    font-size: 12px;
    color: #6c757d;
    min-width: 60px;
}

.y-axis span {
    height: 20px;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.chart-area {
    flex: 1;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 20px 0;
}

.horizontal-bars-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
    gap: 15px;
    padding: 0 30px;
}

.horizontal-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 80px;
    max-width: 100px;
    justify-content: flex-start;
    min-height: 120px;
}

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

.horizontal-bar-item:hover .horizontal-bar-fill {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.horizontal-bar-label {
    font-size: 13px;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    white-space: normal;
    overflow: visible;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    min-width: 80px;
    margin-top: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 5px 0;
    line-height: 1.2;
}

.horizontal-bar-container {
    width: 100%;
    height: 400px;
    background: #f8f9fa;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: flex-end;
}

.horizontal-bar-fill {
    width: 100%;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    min-height: 20px;
    bottom: 0;
}

.horizontal-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: shimmer-vertical 2s infinite;
}

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

.horizontal-bar-value {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 700;
    color: #495057;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 4px;
    border-radius: 3px;
}

.chart-legend {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-top: 10px;
}

.legend-title {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

.legend-items {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6c757d;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid #dee2e6;
}

.legend-color.users {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.legend-color.visits {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}



/* 响应式设计 */
@media (max-width: 768px) {
    .chart-axis {
        height: 480px;
        margin-top: 8px;
    }
    
    .chart-content {
        height: 330px;
    }
    
    .horizontal-bars-container {
        gap: 10px;
        padding: 0 15px;
    }
    
    .horizontal-bar-item {
        min-width: 50px;
        max-width: 70px;
        gap: 8px;
        min-height: 100px;
    }
    
    .horizontal-bar-container {
        height: 240px;
    }
    
    .horizontal-bar-label {
        font-size: 11px;
        margin-top: 0;
        padding: 3px 0;
        line-height: 1.1;
        min-width: 50px;
    }
    
    .horizontal-bar-value {
        font-size: 9px;
        padding: 1px 3px;
    }
    
    .y-axis {
        font-size: 11px;
        min-width: 40px;
        padding-right: 10px;
    }
    
    .legend-items {
        flex-direction: column;
        gap: 8px;
    }
    

}

.realtime-change.negative {
    color: #e74c3c;
}

/* 地理分布区域 */
.geographic-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
}

.map-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.map-header {
    padding: 25px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.map-header h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
}

.map-header p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.map-content {
    padding: 30px;
}

.map-area {
    width: 100%;
    height: 500px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9ecef;
}

.map-placeholder {
    text-align: center;
    color: #666;
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #667eea;
}

/* AI聊天页面样式 */
.ai-chat-hero {
    background: #ffffff;
    color: #1e293b;
    padding: 40px 0 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
}

.ai-chat-hero::before {
    display: none;
}

.ai-chat-hero .hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.ai-chat-hero .hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: none;
}

.ai-chat-hero .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.ai-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.feature-item i {
    font-size: 2rem;
    color: #3b82f6;
}

.feature-item span {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

/* 聊天界面 */
.chat-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.chat-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.chat-main {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.chat-header {
    padding: 20px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ai-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.ai-status h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.status-indicator {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.status-indicator.online {
    background: #27ae60;
    color: white;
}

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

.action-btn {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.chat-messages {
    height: 500px;
    overflow-y: auto;
    padding: 20px;
}

.message {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.message.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.ai-message .message-avatar {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.message-content {
    flex: 1;
    max-width: 70%;
}

.message-text {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.user-message .message-text {
    background: #667eea;
    color: white;
}

.message-text p {
    margin: 0 0 10px 0;
    line-height: 1.6;
}

.message-text p:last-child {
    margin-bottom: 0;
}

.message-text ul,
.message-text ol {
    margin: 10px 0;
    padding-left: 20px;
}

.message-text li {
    margin-bottom: 5px;
}

.message-time {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    text-align: right;
}

.user-message .message-time {
    text-align: left;
}

.chat-input-area {
    padding: 20px;
    border-top: 1px solid #e9ecef;
}

.input-container {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.input-container textarea {
    flex: 1;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    resize: none;
    transition: all 0.3s ease;
}

.input-container textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.send-btn {
    padding: 15px 25px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.send-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.quick-questions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.quick-btn {
    padding: 6px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.quick-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 聊天侧边栏 */
.chat-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.sidebar-section h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 10px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.history-item:hover {
    background: #f8f9fa;
}

.history-item.active {
    background: #667eea;
    color: white;
}

.history-item i {
    font-size: 14px;
    color: #667eea;
}

.history-item.active i {
    color: white;
}

.history-item span {
    flex: 1;
    font-size: 13px;
}

.history-time {
    font-size: 11px;
    color: #999;
}

.history-item.active .history-time {
    color: rgba(255,255,255,0.8);
}

.resource-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.resource-item:hover {
    background: #f8f9fa;
    border-color: #e9ecef;
}

.resource-item i {
    font-size: 14px;
    color: #667eea;
}

.resource-item span {
    font-size: 13px;
}

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tip-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.tip-item i {
    font-size: 14px;
    color: #667eea;
    margin-top: 2px;
}

.tip-item p {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .chat-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .visualization-hero .hero-title,
    .ai-chat-hero .hero-title {
        font-size: 2rem;
    }
    
    .ai-features {
        gap: 20px;
    }
    
    .graph-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .chat-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .message-content {
        max-width: 85%;
    }
    
    .input-container {
        flex-direction: column;
    }
    
    .send-btn {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .visualization-hero .hero-title,
    .ai-chat-hero .hero-title {
        font-size: 1.8rem;
    }
    
    .realtime-grid {
        grid-template-columns: 1fr;
    }
    
    .message {
        gap: 10px;
    }
    
    .message-avatar {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .message-content {
        max-width: 90%;
    }
}

/* 数据可视化页面样式 */
.page-header {
    background: #ffffff;
    color: #1e293b;
    padding: 40px 0 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
}

.page-header::before {
    display: none;
}

.header-content {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: none;
}

.page-subtitle {
    font-size: 18px;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

.stats-overview {
    padding: 60px 0;
    background: #fff;
}

.charts-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.charts-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.chart-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.chart-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chart-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.chart-header {
    margin-bottom: 25px;
}

.chart-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.chart-subtitle {
    color: #7f8c8d;
    font-size: 14px;
}

.chart-container {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.knowledge-graph-section {
    padding: 80px 0;
    background: #fff;
}

.graph-container {
    margin-top: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.network-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.network-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.network-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.network-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

.network-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.concept-node {
    padding: 12px 20px;
    background: #e3f2fd;
    border-radius: 25px;
    font-weight: 500;
    color: #1976d2;
    text-align: center;
    transition: all 0.3s ease;
}

.concept-node.main {
    background: #e74c3c;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.concept-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.concept-node:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.download-section {
    padding: 80px 0;
    background: #fff;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.download-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.download-icon {
    width: 60px;
    height: 60px;
    background: #e74c3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.download-info {
    flex: 1;
}

.download-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.download-info p {
    color: #7f8c8d;
    font-size: 14px;
}

.download-btn {
    padding: 12px 24px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #229954;
    transform: translateY(-2px);
}

/* AI聊天页面样式 */
.chat-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.chat-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.chat-area {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.chat-header {
    background: #ffffff;
    color: #1e293b;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
}

.chat-controls {
    display: flex;
    gap: 10px;
}

.chat-btn {
    padding: 8px 16px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chat-btn:hover {
    background: rgba(255,255,255,0.2);
}

.chat-messages {
    height: 500px;
    overflow-y: auto;
    padding: 20px;
}

.message {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    animation: fadeInUp 0.3s ease;
}

.bot-message {
    flex-direction: row;
}

.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e74c3c;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.user-message .message-avatar {
    background: #3498db;
}

.message-content {
    flex: 1;
    max-width: calc(100% - 55px);
}

.message-text {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 18px;
    margin-bottom: 5px;
}

.user-message .message-text {
    background: #3498db;
    color: white;
}

.message-text p {
    margin: 0;
    line-height: 1.6;
}

.message-text ul {
    margin: 10px 0;
    padding-left: 20px;
}

.message-text li {
    margin-bottom: 5px;
}

.message-time {
    font-size: 12px;
    color: #95a5a6;
    text-align: right;
}

.user-message .message-time {
    text-align: left;
}

.chat-input-area {
    padding: 20px;
    border-top: 1px solid #ecf0f1;
}

.input-container {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.message-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #ecf0f1;
    border-radius: 25px;
    font-size: 14px;
    resize: none;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.message-input:focus {
    border-color: #3498db;
}

.send-btn {
    width: 50px;
    height: 50px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.send-btn:hover {
    background: #2980b9;
    transform: scale(1.05);
}

.input-tips {
    margin-top: 10px;
    text-align: center;
    font-size: 12px;
    color: #95a5a6;
}

.chat-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

.quick-questions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-question {
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #2c3e50;
}

.quick-question:hover {
    background: #e3f2fd;
    border-color: #3498db;
    color: #3498db;
}

.learning-tips {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tip-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.tip-icon {
    width: 40px;
    height: 40px;
    background: #e74c3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.tip-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.tip-content p {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.5;
}

.resource-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.resource-link {
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.resource-link:hover {
    background: #e3f2fd;
    color: #3498db;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .chat-container {
        grid-template-columns: 1fr;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .network-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 36px;
    }
    
    .page-subtitle {
        font-size: 18px;
    }
    
    .chart-card {
        padding: 20px;
    }
    
    .chart-container {
        height: 400px;
    }
    
    .chat-header {
        padding: 15px 20px;
    }
    
    .chat-messages {
        height: 400px;
        padding: 15px;
    }
    
    .message {
        gap: 10px;
    }
    
    .message-avatar {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .input-container {
        gap: 8px;
    }
    
    .send-btn {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 28px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    .chart-card {
        padding: 15px;
    }
    
    .chart-container {
        height: 350px;
    }
    
    .network-card {
        padding: 20px;
    }
    
    .concept-links {
        grid-template-columns: 1fr;
    }
    
    .download-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .chat-messages {
        height: 350px;
        padding: 10px;
    }
    
    .message-content {
        max-width: calc(100% - 45px);
    }
    
    .message-text {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* 静态图表样式 */
.static-chart {
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-placeholder {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px 20px 20px 20px;
    display: flex;
    flex-direction: column;
}

.chart-placeholder .chart-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    margin-top: 0;
    text-align: center;
    position: relative;
    z-index: 10;
}

.chart-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 类别列表样式 */
.category-list {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.category-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--category-color);
}

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

.category-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

.category-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-name {
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 4px;
}

.category-stats {
    font-size: 13px;
    color: #7f8c8d;
}

.category-percentage {
    font-weight: 700;
    font-size: 18px;
    color: var(--category-color);
    margin-left: 10px;
}

.category-progress {
    margin-top: 8px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #f1f2f6;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s ease;
}

/* 饼图样式 */
.pie-chart {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 400px;
}

.pie-segment {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-radius: 8px;
    background: var(--color);
    color: white;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.pie-segment::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--percentage);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.segment-label {
    font-weight: 600;
    z-index: 1;
    position: relative;
}

.segment-value {
    font-size: 14px;
    opacity: 0.9;
    z-index: 1;
    position: relative;
}

/* 时间线样式 */
.timeline-chart {
    width: 100%;
    max-width: 600px;
    position: relative;
}

.timeline-chart::before {
    /* Red line removed */
    display: none;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    width: 80px;
    height: 40px;
    background: #e74c3c;
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    z-index: 2;
}

.timeline-content {
    flex: 1;
    padding: 0 20px;
    text-align: center;
}

.timeline-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.5;
}

.timeline-item.active .timeline-date {
    background: #c0392b;
    transform: scale(1.1);
}



/* 折线图样式 */
.line-chart {
    width: 100%;
    height: 300px;
    position: relative;
}

.chart-axis {
    width: 100%;
    height: 100%;
    display: flex;
    position: relative;
}

.y-axis {
    width: 80px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 12px;
    color: #7f8c8d;
    padding: 20px 0;
}

.chart-area {
    flex: 1;
    height: 100%;
    position: relative;
    padding: 20px;
}

/* 阶梯瀑布图样式 */
.waterfall-chart {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 40px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(52, 152, 219, 0.05) 100%);
    border-radius: 4px;
}

.waterfall-step {
    position: absolute;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
}

.waterfall-step:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.step-value {
    color: white;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.month-labels {
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    height: 20px;
}

.month-labels .month-label {
    position: absolute;
    font-size: 12px;
    font-weight: 500;
    color: #7f8c8d;
    text-align: center;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* 保留数据点样式用于其他图表 */
.data-points {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 40px;
}

.data-point {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #3498db;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.data-point:hover {
    transform: scale(1.3) !important;
    background: #2980b9;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.data-point::after {
    content: attr(data-value);
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.data-point:hover::after {
    opacity: 1;
}

.x-axis {
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #7f8c8d;
}

/* 宽图表的X轴样式 - 隐藏原来的X轴，因为月份标签已经移到数据点旁边 */
.chart-card.wide-chart .x-axis {
    display: none;
}

/* 柱状图样式 */
.bar-chart {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bar-label {
    width: 120px;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    text-align: right;
}

.bar-container {
    flex: 1;
    height: 30px;
    background: #ecf0f1;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 15px;
    transition: width 0.3s ease;
    position: relative;
}

.bar-value {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 12px;
    font-weight: 600;
}

/* 知识图谱样式 */
.static-knowledge-graph {
    width: 100%;
    height: 600px;
    background: #f8f9fa;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.knowledge-nodes {
    width: 100%;
    height: 100%;
    position: relative;
}

.node {
    position: absolute;
    width: 120px;
    height: 60px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.main-node {
    background: #e74c3c;
    color: white;
    font-weight: 600;
    font-size: 16px;
    width: 160px;
    height: 90px;
}

.sub-node {
    background: #3498db;
    color: white;
    font-weight: 500;
    font-size: 14px;
    width: 140px;
    height: 70px;
}

.node-content {
    text-align: center;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.node-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
}

.node-count {
    font-size: 11px;
    opacity: 0.9;
    font-weight: 400;
}

.connection-line {
    position: absolute;
    height: 2px;
    background: #95a5a6;
    opacity: 0.6;
}

.node:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .category-list {
        max-width: 100%;
    }
    
    .category-item {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .category-name {
        font-size: 14px;
    }
    
    .category-stats {
        font-size: 12px;
    }
    
    .category-percentage {
        font-size: 16px;
    }
    
    .pie-chart {
        max-width: 100%;
    }
    
    .timeline-chart {
        max-width: 100%;
    }
    
    .timeline-chart::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        margin-left: 40px;
    }
    
    .timeline-date {
        width: 60px;
        height: 30px;
        font-size: 12px;
    }
    
    .bar-chart {
        max-width: 100%;
    }
    
    .bar-label {
        width: 80px;
        font-size: 12px;
    }
    
    .node {
        width: 100px;
        height: 50px;
        font-size: 12px;
    }
    
    .main-node {
        width: 120px;
        height: 60px;
        font-size: 14px;
    }
    
    .chart-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .charts-grid {
        gap: 20px;
        margin-top: 20px;
    }
    

}

@media (max-width: 480px) {
    .chart-placeholder {
        padding: 15px;
    }
    
    .timeline-content {
        padding: 0 10px;
    }
    
    .timeline-content h4 {
        font-size: 14px;
    }
    
    .timeline-content p {
        font-size: 12px;
    }
    
    .bar-label {
        width: 60px;
        font-size: 11px;
    }
    
    .node {
        width: 80px;
        height: 40px;
        font-size: 11px;
    }
    
    .main-node {
        width: 100px;
        height: 50px;
        font-size: 12px;
    }
}

/* 中国传统风格样式 */
.hero-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    margin: 0;
    text-shadow: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
}

.title-decoration {
    display: none;
}

.decoration-line {
    display: none;
}

.decoration-dot {
    display: none;
}

.hero-seal {
    display: none;
}

.seal-circle {
    display: none;
}

.seal-circle::before {
    display: none;
}

.seal-text {
    display: none;
}

/* 搜索框现代化风格 */
.search-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.search-decoration {
    display: none;
}

.corner-decoration {
    display: none;
}

.corner-decoration::before {
    display: none;
}

.center-decoration {
    display: none;
}

/* 快速入口传统风格 */
.section-title-traditional {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.section-title-traditional h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
}

.title-line {
    width: 40px;
    height: 2px;
    background: #3b82f6;
}

.quick-item-traditional {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid;
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-item-traditional:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.item-decoration {
    position: absolute;
    width: 100%;
    height: 2px;
    background: #3b82f6;
}

.item-decoration.top {
    top: 0;
}

.item-decoration.bottom {
    bottom: 0;
}

.quick-icon-traditional {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-bottom: 15px;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.hot-searches-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.hot-tag-traditional {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #3b82f6;
    border-radius: 20px;
    padding: 8px 16px;
    color: #1e293b;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    margin: 5px;
    display: inline-block;
    text-align: left;
}

.hot-tag-traditional:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* 三栏布局传统风格 */
.section-header-traditional {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.section-title-traditional {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    font-family: 'SimSun', serif;
    margin: 0;
}

.column-block-traditional {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #f0f0f0;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 中间栏的栏目块特殊处理 */
.center-column .column-block-traditional:first-child {
    flex: 2;
}

.center-column .column-block-traditional:last-child {
    flex: 1;
}

.column-block-traditional:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.block-header-traditional {
    margin-bottom: 25px;
}

.header-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.block-title-traditional {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    font-family: 'SimSun', serif;
    margin: 0;
}

.block-subtitle-traditional {
    color: #7f8c8d;
    font-size: 14px;
    text-align: center;
    margin: 0;
}

/* 精选内容传统风格 */
.section-subtitle-traditional {
    text-align: center;
    color: #7f8c8d;
    font-size: 16px;
    margin-bottom: 40px;
    font-family: 'SimSun', serif;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .title-decoration {
        gap: 5px;
    }
    
    .decoration-line {
        width: 40px;
    }
    
    .section-title-traditional {
        font-size: 24px;
    }
    
    .quick-item-traditional {
        padding: 15px;
    }
    
    .quick-icon-traditional {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }
    
    .seal-circle {
        width: 60px;
        height: 60px;
    }
    
    .seal-text {
        font-size: 14px;
    }
    
    .section-title-traditional {
        font-size: 20px;
    }
    
    .block-title-traditional {
        font-size: 18px;
    }
}

/* 页面标题传统风格 */
.page-title-traditional {
    font-size: 42px;
    font-weight: 700;
    margin: 0;
    text-shadow: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
}

.page-subtitle-traditional {
    font-size: 18px;
    margin: 20px 0 0 0;
    opacity: 0.8;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #475569;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.about-title-traditional {
    font-size: 42px;
    font-weight: 700;
    margin: 0;
    text-shadow: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
}

.about-subtitle-traditional {
    font-size: 18px;
    margin: 20px 0 0 0;
    opacity: 0.8;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #475569;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.search-title-traditional {
    font-size: 42px;
    font-weight: 700;
    margin: 0;
    text-shadow: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
}

.search-subtitle-traditional {
    font-size: 18px;
    margin: 20px 0 0 0;
    opacity: 0.8;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #475569;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.hero-title-traditional {
    font-size: 42px;
    font-weight: 700;
    margin: 0;
    text-shadow: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
}

.hero-subtitle-traditional {
    font-size: 18px;
    margin: 20px 0 0 0;
    opacity: 0.8;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #475569;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.article-title-traditional {
    font-size: 42px;
    font-weight: 700;
    margin: 0;
    text-shadow: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
}

.article-summary-traditional {
    font-size: 18px;
    margin: 20px 0 0 0;
    opacity: 0.8;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #475569;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.category-title-traditional {
    font-size: 42px;
    font-weight: 700;
    margin: 0;
    text-shadow: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
}

.category-description-traditional {
    font-size: 18px;
    margin: 20px 0 0 0;
    opacity: 0.8;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #475569;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}



/* 文章头部现代化风格 */
.article-hero {
    background: #ffffff;
    color: #1e293b;
    padding: 30px 0 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
}

.article-hero::before {
    display: none;
}

/* 分类头部现代化风格 */
.category-hero {
    background: #ffffff;
    color: #1e293b;
    padding: 30px 0 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
}

.category-hero::before {
    display: none;
}

/* 搜索英雄区域现代化风格 */
.search-hero {
    background: transparent;
    color: #1e293b;
    padding: 200px 0 5px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: none;
}

.search-hero::before {
    display: none;
}

/* 关于我们英雄区域现代化风格 */
.about-hero {
    background: #ffffff;
    color: #1e293b;
    padding: 0 0 5px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
}

.about-hero::before {
    display: none;
}

/* 数据可视化英雄区域现代化风格 */
.visualization-hero {
    background: #ffffff;
    color: #1e293b;
    padding: 30px 0 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
}

.visualization-hero::before {
    display: none;
}

/* AI聊天英雄区域现代化风格 */
.ai-chat-hero {
    background: #ffffff;
    color: #1e293b;
    padding: 30px 0 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
}

.ai-chat-hero::before {
    display: none;
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .page-title-traditional,
    .about-title-traditional,
    .search-title-traditional,
    .hero-title-traditional,
    .article-title-traditional,
    .category-title-traditional {
        font-size: 36px;
        color: #1e293b;
    }
    
    .page-subtitle-traditional,
    .about-subtitle-traditional,
    .search-subtitle-traditional,
    .hero-subtitle-traditional,
    .article-summary-traditional,
    .category-description-traditional {
        font-size: 16px;
        color: #475569;
    }
}

@media (max-width: 480px) {
    .page-title-traditional,
    .about-title-traditional,
    .search-title-traditional,
    .hero-title-traditional,
    .article-title-traditional,
    .category-title-traditional {
        font-size: 28px;
        color: #1e293b;
    }
    
    .page-subtitle-traditional,
    .about-subtitle-traditional,
    .search-subtitle-traditional,
    .hero-subtitle-traditional,
    .article-summary-traditional,
    .category-description-traditional {
        font-size: 14px;
        color: #475569;
    }
}

/* 登录页面传统风格 */
.login-hero {
    background: #ffffff;
    color: #1e293b;
    padding: 30px 0 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
}

.login-hero::before {
    display: none;
}

.login-title-traditional {
    font-size: 42px;
    font-weight: 700;
    margin: 0;
    text-shadow: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
}

.login-subtitle-traditional {
    font-size: 18px;
    margin: 20px 0 0 0;
    opacity: 0.8;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #475569;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 认证区域样式 */
.auth-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.auth-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 2px solid #f0f0f0;
}

/* 切换标签 */
.auth-tabs {
    display: flex;
    background: linear-gradient(135deg, #8B0000 0%, #b22222 100%);
}

.auth-tab {
    flex: 1;
    padding: 20px;
    border: none;
    background: transparent;
    color: #f9f6ec;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'SimSun', serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-tab:hover {
    background: rgba(255, 255, 255, 0.1);
}

.auth-tab.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* 表单容器 */
.auth-form-container {
    padding: 40px;
    position: relative;
}

.auth-form-container.hidden {
    display: none;
}

/* 表单装饰 */
.form-decoration {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

.form-decoration.top {
    margin-bottom: 20px;
}

.form-decoration.bottom {
    margin-top: 20px;
}

/* 表单组 */
.form-group-traditional {
    margin-bottom: 25px;
}

.form-label-traditional {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-family: 'SimSun', serif;
}

.input-wrapper-traditional {
    position: relative;
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
}

.input-wrapper-traditional:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-icon {
    padding: 15px;
    color: #7f8c8d;
    font-size: 18px;
}

.form-input-traditional {
    flex: 1;
    padding: 15px;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
    font-family: 'SimSun', serif;
}

.form-input-traditional::placeholder {
    color: #bdc3c7;
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-traditional {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: 'SimSun', serif;
    color: #2c3e50;
}

.checkbox-traditional input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #3b82f6;
    border-radius: 3px;
    position: relative;
    background: white;
}

.checkbox-traditional input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #3b82f6;
    font-size: 12px;
    font-weight: bold;
}

.forgot-password {
    color: #3b82f6;
    text-decoration: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* 认证按钮 */
.auth-btn-traditional {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-btn-traditional:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(210, 105, 30, 0.3);
}

/* 第三方登录 */
.social-login {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.social-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.divider-text {
    padding: 0 15px;
    color: #7f8c8d;
    font-family: 'SimSun', serif;
    font-size: 14px;
}

.social-buttons {
    display: flex;
    gap: 15px;
}

.social-btn-traditional {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'SimSun', serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.social-btn-traditional:hover {
    border-color: #FFD700;
    color: #FFD700;
    transform: translateY(-2px);
}

.social-btn-traditional.wechat:hover {
    border-color: #07C160;
    color: #07C160;
}

.social-btn-traditional.qq:hover {
    border-color: #12B7F5;
    color: #12B7F5;
}

/* 功能特色卡片 */
.feature-card-traditional {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #f0f0f0;
}

.feature-card-traditional:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.feature-icon-traditional {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 32px;
}

.feature-card-traditional h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    font-family: 'SimSun', serif;
}

.feature-card-traditional p {
    color: #7f8c8d;
    line-height: 1.6;
    font-family: 'SimSun', serif;
}

/* 登录页面特定样式 */
.login-hero {
    background: transparent;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.login-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.login-title-traditional h1 {
    color: #ffffff;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.login-subtitle-traditional p {
    color: #e2e8f0;
    font-size: 18px;
    font-weight: 400;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.auth-section {
    padding: 60px 0;
    background: #f8fafc;
}

.auth-container {
    max-width: 500px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
}

.auth-tabs {
    display: flex;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.auth-tab {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.auth-tab:hover {
    color: #667eea;
    background: #ffffff;
}

.auth-tab.active {
    color: #667eea;
    background: #ffffff;
    border-bottom: 3px solid #667eea;
}

.auth-form-container {
    padding: 40px;
    position: relative;
}

.auth-form-container.hidden {
    display: none;
}

.form-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.form-decoration.top {
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.form-decoration.bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #764ba2, #667eea);
}

.auth-form {
    position: relative;
    z-index: 2;
}

.form-group-traditional {
    margin-bottom: 25px;
}

.form-label-traditional {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.input-wrapper-traditional {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.input-wrapper-traditional:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-icon {
    padding: 0 15px;
    color: #64748b;
    font-size: 16px;
}

.form-input-traditional {
    flex: 1;
    padding: 15px;
    border: none;
    background: none;
    font-size: 16px;
    color: #1e293b;
    outline: none;
}

.form-input-traditional::placeholder {
    color: #9ca3af;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-traditional {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
}

.checkbox-traditional input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-traditional input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-traditional input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-btn-traditional {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-btn-traditional:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.social-login {
    margin-top: 30px;
    text-align: center;
}

.social-divider {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.divider-text {
    padding: 0 15px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.social-buttons {
    display: flex;
    gap: 15px;
}

.social-btn-traditional {
    flex: 1;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.social-btn-traditional:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-1px);
}

.social-btn-traditional.wechat:hover {
    border-color: #07c160;
    color: #07c160;
}

.social-btn-traditional.qq:hover {
    border-color: #12b7f5;
    color: #12b7f5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-title-traditional h1 {
        font-size: 28px;
    }
    
    .login-subtitle-traditional p {
        font-size: 16px;
    }
    
    .auth-container {
        margin: 0 20px;
    }
    
    .auth-form-container {
        padding: 30px;
    }
    
    .social-buttons {
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .login-title-traditional h1 {
        font-size: 24px;
    }
    
    .login-subtitle-traditional p {
        font-size: 14px;
    }
    
    .auth-tab {
        padding: 15px 10px;
        font-size: 14px;
    }
    
    .auth-form-container {
        padding: 20px;
    }
    
    .feature-card-traditional {
        padding: 15px;
    }
    
    .feature-icon-traditional {
        font-size: 24px;
    }
} 

/* 个人资料页面样式 */
.profile-hero {
    background: #ffffff;
    padding: 60px 0 40px;
    color: #333333;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e5e7eb;
}

.profile-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.profile-avatar {
    position: relative;
    flex-shrink: 0;
}

.avatar-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #e5e7eb;
}

.avatar-circle i {
    font-size: 48px;
    color: #6b7280;
}

.avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    background: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid #ffffff;
}

.avatar-edit:hover {
    background: #2563eb;
    transform: scale(1.1);
}

.avatar-edit i {
    font-size: 16px;
    color: #ffffff;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1f2937;
}

.profile-email {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 20px;
}

.profile-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    text-align: center;
    color: #374151;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #1f2937;
}

.stat-label {
    font-size: 14px;
    color: #6b7280;
}

.profile-actions {
    flex-shrink: 0;
}

.edit-profile-btn {
    background: #3b82f6;
    border: 2px solid #3b82f6;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-profile-btn:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-2px);
}

.profile-content {
    padding: 40px 0;
    background: #f8fafc;
}

.profile-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.profile-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
    background: #f8fafc;
    color: #1f2937;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h3 i {
    font-size: 20px;
}

.view-all {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-all:hover {
    color: #3b82f6;
}

.card-content {
    padding: 24px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #64748b;
}

.info-value {
    color: #1e293b;
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 20px;
    color: #ffffff;
}

.stat-info {
    flex: 1;
}

.stat-info .stat-number {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.stat-info .stat-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.progress-section {
    margin-bottom: 20px;
}

.progress-item {
    margin-bottom: 20px;
}

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

.progress-title {
    font-weight: 600;
    color: #1e293b;
}

.progress-percent {
    font-weight: 600;
    color: #667eea;
}

.progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.favorites-list,
.recent-list,
.notes-list {
    margin-bottom: 16px;
}

.favorite-item,
.recent-item,
.note-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.favorite-item:hover,
.recent-item:hover,
.note-item:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.favorite-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.favorite-icon i {
    font-size: 16px;
    color: #ffffff;
}

.favorite-info,
.recent-info {
    flex: 1;
}

.favorite-info h4,
.recent-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.favorite-info p,
.recent-info p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 4px;
}

.read-time {
    font-size: 12px;
    color: #94a3b8;
}

.favorite-actions,
.recent-link {
    display: flex;
    gap: 8px;
}

.view-btn,
.remove-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
}

.view-btn {
    background: #3b82f6;
    color: #ffffff;
}

.view-btn:hover {
    background: #2563eb;
}

.remove-btn {
    background: #ef4444;
    color: #ffffff;
}

.remove-btn:hover {
    background: #dc2626;
}

.recent-link {
    width: 32px;
    height: 32px;
    background: #3b82f6;
    color: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.recent-link:hover {
    background: #2563eb;
    transform: scale(1.1);
}

.recent-image {
    width: 60px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.add-note-btn {
    width: 32px;
    height: 32px;
    background: #10b981;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.add-note-btn:hover {
    background: #059669;
    transform: scale(1.1);
}

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

.note-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 16px;
}

.note-date {
    font-size: 12px;
    color: #94a3b8;
}

.note-content {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.note-actions {
    display: flex;
    gap: 8px;
}

.edit-note-btn,
.delete-note-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 12px;
}

.edit-note-btn {
    background: #3b82f6;
    color: #ffffff;
}

.edit-note-btn:hover {
    background: #2563eb;
}

.delete-note-btn {
    background: #ef4444;
    color: #ffffff;
}

.delete-note-btn:hover {
    background: #dc2626;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .favorite-item,
    .recent-item,
    .note-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .favorite-actions,
    .recent-link {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .profile-name {
        font-size: 28px;
    }
    
    .profile-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .card-header {
        padding: 16px 20px;
    }
    
    .card-content {
        padding: 20px;
    }
}

/* 确保用户菜单和登录菜单始终在最顶层 */
.user-menu,
.user-dropdown,
.user-link,
.login-menu,
.login-dropdown,
.login-link {
    position: relative;
    z-index: 1002;
}

/* 确保用户菜单在正确位置 */
.user-menu {
    order: 999;
}

.user-dropdown.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    z-index: 1001 !important;
}

/* 登录菜单样式 */
.login-menu {
    position: relative;
    z-index: 1002;
    margin-left: 20px;
    order: 999;
    display: flex;
    align-items: center;
}

.login-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: auto;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-shadow: none;
    border: none;
    font-size: 16px;
    white-space: nowrap;
}

.login-link:hover {
    background: rgba(142, 23, 41, 0.8);
    transform: translateY(-1px);
    color: #ffffff;
}

.login-link i {
    font-size: 14px;
}

.login-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1003;
    margin-top: 8px;
    border: 1px solid #e2e8f0;
}

.login-menu:hover .login-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 1001 !important;
}

/* 无搜索结果样式 */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
}

.no-results i {
    font-size: 48px;
    color: #9ca3af;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 24px;
    color: #374151;
    margin-bottom: 10px;
}

.no-results p {
    color: #6b7280;
    font-size: 16px;
}

/* 防止其他元素遮挡用户菜单 */
.nav-container {
    position: relative;
    z-index: 1001;
}

/* 确保所有可能的遮挡元素都有较低的z-index */
.container,
.main-content,
.hero-section,
.three-column-section,
.featured-section,
.stats-section,
.footer {
    position: relative;
    z-index: 1;
}

/* 确保页面主体有足够的底部边距 */
.main-content {
    min-height: calc(100vh - 200px);
    padding-bottom: 20px;
    margin-top: 80px;
}

/* 确保页脚始终在底部 */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

/* 响应式页脚设计 */
@media (max-width: 768px) {
    .footer {
        padding: 3px 0;
    }
    
    /* 移动设备上移除页脚容器的圆角矩形效果 */
    .footer .container {
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        margin: 0;
        border: none;
    }
    
    /* 移动设备上移除首页内容区域的圆角矩形效果 */
    .home-content-section .container {
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        margin: 0;
        border: none;
    }
}

/* 确保导航栏始终在最顶层 */
.navbar {
    position: relative;
    z-index: 999999999;
}

/* 确保导航栏始终在最顶层 */
.navbar {
    position: relative;
    z-index: 1002;
}

/* 360安全浏览器兼容性修复 */
.navbar {
    /* 强制设置背景，确保在360浏览器中正确显示 */
    background: #8E1729 !important;
    background: linear-gradient(135deg, #8E1729 0%, #a01a2e 50%, #7a1424 100%) !important;
    /* 确保导航栏完全覆盖内容 */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 999999 !important;
    /* 强制显示背景 */
    opacity: 1 !important;
    visibility: visible !important;
    /* 确保内容不被遮挡 */
    overflow: visible !important;
}

/* 360浏览器用户菜单和登录菜单兼容性 */
.user-menu,
.login-menu {
    position: relative !important;
    z-index: 1000000 !important;
    background: transparent !important;
    /* 确保菜单项在导航栏背景之上 */
    display: flex !important;
    align-items: center !important;
}

.user-link,
.login-link {
    position: relative !important;
    z-index: 1000001 !important;
    /* 确保链接文字在背景之上 */
    color: #ffffff !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
}

.user-dropdown,
.login-dropdown {
    position: absolute !important;
    z-index: 1000002 !important;
    /* 确保下拉菜单在最顶层 */
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

/* 360浏览器导航容器兼容性 */
.nav-container {
    position: relative !important;
    z-index: 1000003 !important;
    background: transparent !important;
    /* 确保容器在导航栏背景之上 */
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

/* 360浏览器导航菜单兼容性 */
.nav-menu {
    position: relative !important;
    z-index: 1000004 !important;
    background: transparent !important;
    /* 确保菜单在导航栏背景之上 */
    display: flex !important;
    align-items: center !important;
}

.nav-menu li {
    position: relative !important;
    z-index: 1000005 !important;
    background: transparent !important;
    /* 确保菜单项在导航栏背景之上 */
    display: flex !important;
    align-items: center !important;
}

.nav-link {
    position: relative !important;
    z-index: 1000006 !important;
    /* 确保链接在导航栏背景之上 */
    color: #ffffff !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
}

/* 360浏览器特殊处理 - 强制背景显示 */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .navbar {
        background: #8E1729 !important;
        background-image: linear-gradient(135deg, #8E1729 0%, #a01a2e 50%, #7a1424 100%) !important;
        -webkit-background-size: 100% 100% !important;
        background-size: 100% 100% !important;
        -webkit-background-repeat: no-repeat !important;
        background-repeat: no-repeat !important;
    }
}

/* 针对360浏览器的特殊修复 */
.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #8E1729 0%, #a01a2e 50%, #7a1424 100%);
    z-index: -1;
    /* 作为备用背景层 */
}

/* 确保所有导航栏子元素都在背景之上 */
.navbar * {
    position: relative;
    z-index: 1;
}

/* 360浏览器额外兼容性修复 */
.navbar {
    /* 强制设置最小高度，确保背景完全覆盖 */
    min-height: 80px !important;
    height: 80px !important;
    /* 确保背景不被其他元素覆盖 */
    background-attachment: fixed !important;
    background-clip: border-box !important;
    background-origin: border-box !important;
    /* 强制背景显示 */
    background-color: #8E1729 !important;
    background-image: linear-gradient(135deg, #8E1729 0%, #a01a2e 50%, #7a1424 100%) !important;
}

/* 360浏览器用户名显示修复 */
.user-link,
.login-link {
    /* 确保文字颜色在360浏览器中正确显示 */
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
    /* 确保文字不被背景遮挡 */
    background: rgba(0, 0, 0, 0.1) !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    /* 强制显示 */
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
}

/* 360浏览器导航栏logo修复 */
.nav-logo h1,
.logo-link {
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
    /* 确保logo不被背景遮挡 */
    background: rgba(0, 0, 0, 0.1) !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
}

/* 360浏览器导航链接修复 */
.nav-link {
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
    /* 确保链接不被背景遮挡 */
    background: rgba(0, 0, 0, 0.1) !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    /* 强制显示 */
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
}

/* 360浏览器特殊检测和修复 */
@supports (-webkit-appearance: none) {
    .navbar {
        /* WebKit内核浏览器特殊处理 */
        background: #8E1729 !important;
        background-image: linear-gradient(135deg, #8E1729 0%, #a01a2e 50%, #7a1424 100%) !important;
        -webkit-background-clip: border-box !important;
        background-clip: border-box !important;
    }
}

/* 针对360浏览器的用户代理检测修复 */
.navbar {
    /* 强制背景层 */
    position: relative !important;
}

.navbar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #8E1729 0%, #a01a2e 50%, #7a1424 100%);
    z-index: -2;
    /* 作为第二层备用背景 */
    pointer-events: none;
}

/* 确保用户下拉菜单正常工作 */
.user-dropdown,
.login-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1003;
    margin-top: 8px;
    border: 1px solid #e2e8f0;
}

.user-dropdown.show,
.login-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

/* 饼图样式 */
.pie-chart {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        var(--color, #e74c3c) 0deg,
        var(--color, #e74c3c) var(--end-angle, 90deg),
        transparent var(--end-angle, 90deg),
        transparent 360deg
    );
}

.pie-segment {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        from var(--start-angle, 0deg),
        var(--color, #e74c3c) 0deg,
        var(--color, #e74c3c) calc(var(--end-angle, 90deg) - var(--start-angle, 0deg)),
        transparent calc(var(--end-angle, 90deg) - var(--start-angle, 0deg)),
        transparent 360deg
    );
    transition: transform 0.3s ease;
    cursor: pointer;
}

.pie-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.legend-item:hover {
    background: #e2e8f0;
    transform: translateX(5px);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-text {
    flex: 1;
}

.legend-name {
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 2px;
}

.legend-count {
    font-size: 12px;
    color: #64748b;
}

/* 搜索图表样式 */
.search-chart {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.search-item:hover {
    background: #e2e8f0;
    transform: translateX(5px);
}

.search-keyword {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-bar-container {
    position: relative;
    width: 120px;
    height: 24px;
    background: #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.search-bar-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 0.8s ease;
    position: relative;
}

.search-count {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pie-chart {
        width: 150px;
        height: 150px;
    }
    
    .search-keyword {
        font-size: 13px;
    }
    
    .search-bar-container {
        width: 100px;
    }
    
    .search-count {
        font-size: 11px;
    }
}

/* 2D饼图样式 */
.pie-chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    height: 100%;
}



/* 饼图样式 */
.pie-chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    height: 100%;
}

.pie-chart {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.pie-chart:hover {
    transform: scale(1.05);
}

/* 饼图片段样式 */
.pie-segment {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform-origin: 50% 50%;
    transition: all 0.3s ease;
    pointer-events: auto;
    cursor: pointer;
    z-index: 2;
}

.pie-segment:hover {
    transform: scale(1.05);
    z-index: 10;
}

.segment-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 20;
    min-width: 120px;
}

.pie-segment:hover .segment-label {
    opacity: 1;
}

.label-text {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.2;
}

.label-count {
    font-size: 11px;
    color: #666;
    margin-bottom: 2px;
}

.label-percentage {
    font-size: 11px;
    color: #667eea;
    font-weight: 600;
}

.pie-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 100%;
    flex-wrap: wrap;
}

.pie-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

.pie-legend .legend-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(5px);
}

.pie-legend .legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pie-legend .legend-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pie-legend .legend-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

.pie-legend .legend-count {
    font-size: 11px;
    color: #666;
}

.pie-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #999;
    font-size: 14px;
}

/* 2D饼图响应式设计 */
@media (max-width: 768px) {
    .pie-chart {
        width: 150px;
        height: 150px;
    }
    
    .pie-legend {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pie-legend .legend-item {
        min-width: 120px;
    }
}

/* 相关词条样式 */
.related-articles {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.related-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 12px;
}

.related-title i {
    color: #e74c3c;
    font-size: 18px;
}

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

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

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
}

.section-title i {
    color: #6c757d;
    font-size: 14px;
}

.related-articles-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-article-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.related-article-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.related-article-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.related-article-link:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
}

.related-article-content {
    flex: 1;
}

.related-article-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.related-article-link:hover .related-article-title {
    color: #3498db;
}

.related-article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: #6c757d;
}

.related-article-category {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
    color: #495057;
}

.related-article-views {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6c757d;
}

.related-article-views i {
    font-size: 12px;
    color: #adb5bd;
}

.related-article-arrow {
    color: #adb5bd;
    transition: all 0.3s ease;
}

.related-article-link:hover .related-article-arrow {
    color: #3498db;
    transform: translateX(4px);
}

/* 相关词条响应式设计 */
@media (max-width: 768px) {
    .related-articles {
        margin: 20px 0;
        padding: 20px;
    }
    
    .related-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .related-article-link {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .related-article-arrow {
        align-self: flex-end;
    }
    
    .related-article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}