      * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: "PingFang SC", "Microsoft YaHei", "SimSun", serif;
        }
        
        body {
            line-height: 1.6;
            color: #3a2618;
            padding: 20px;
            margin: 0;
            position: relative;
            min-height: 100vh;
        }



        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                linear-gradient(135deg, #e0dbccd3 0%, #e9e2d0 100%),
                url('/static/images/image5.png') center/cover no-repeat;
            z-index: -1;
        }
        
        /* 顶部导航 */
        .top-nav {
            background: 
                linear-gradient(rgba(100, 81, 52, 0.85), rgba(176, 167, 143, 0.9));
            padding: 15px 0;
            color: white;
            margin-bottom: 20px;
            border-radius: 5px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            position: relative;
            overflow: hidden;
        }
        
        .nav-container {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
            position: relative;
            z-index: 2;
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .logo-image {
            width: 70px;
            height: 70px;
            object-fit: contain;
            border-radius: 5px;
        }

        .logo-text {
            display: flex;
            flex-direction: column;
        }

        .logo-text h1 {
            font-size: 2.8rem;
            font-weight: 800;
            letter-spacing: 2px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
            font-family: "SimSun", serif;
            margin: 0;
            line-height: 1.1;
        }

        .logo-text .subtitle {
            font-size: 1.1rem;
            color: #e0d1a0;
            margin-top: 5px;
            text-align: left;
            letter-spacing: 1px;
        }
        
        .nav-tabs {
            display: flex;
            gap: 15px;
            background: rgba(255,255,255,0.15);
            padding: 5px;
            border-radius: 50px;
        }
        
        .nav-tab {
            padding: 12px 35px;
            border-radius: 30px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: bold;
            font-size: 1.1rem;
        }
        
        .nav-tab:hover:not(.active) {
            background: rgba(255,255,255,0.25);
        }

        .nav-tab {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 10px 15px;
        }

        .nav-tab .main-text {
            font-size: 16px;
            font-weight: 500;
            line-height: 1.2;
            color: #ffffff;
            font-family: "SimSun", serif; 
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); 
        }

        .nav-tab .sub-text {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.7);
            margin-top: 2px;
            line-height: 1;
            font-weight: 600;
            font-family: "SimSun", serif;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); 
        }

        .nav-tab.active {
            background: #948778; 
            color: #f8f4e9; 
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        }

        .nav-tab:hover:not(.active) {
            background: rgba(44, 93, 99, 0.25); 
        }
        
        /* 主容器 */
        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
        }
        
        /* 视图容器 */
        .view-container {
            display: none;
        }
        
        .view-container.active {
            display: block;
        }
        
        /* 聊天容器样式 */
        #chat-view-container {
            width: 100%;
            max-width: 1000px;
            height: 100vh;
            margin: 0 auto;
            background: #fffcf5;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            border: 1px solid #d9c9a9;
            position: relative;
        }
        
        .chat-header {
            background: linear-gradient(rgba(230, 218, 197, 0.85), rgba(214, 209, 194, 0.9));
            color: rgb(17, 62, 50);
            padding: 15px 10px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        
        .chat-header h1 {
            font-size: 2.2rem;
            margin-bottom: 8px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
            font-family: "SimSun", serif;
            letter-spacing: 1px;
        }
        
        .chat-subtitle {
            font-weight: 300;
            opacity: 0.9;
            font-size: 1rem;
            font-weight: bolder;
            color: #46390d;
        }
        
        /* 聊天区域 */
        #chat-container {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 20px;
            background: #fffcf5;
            padding-bottom: 100px; /* 为悬浮输入框留出空间 */
        }
        
        /* 消息样式 */
        .message {
            display: flex;
            max-width: 80%;
            margin-bottom: 20px;
        }
        
        .bot-message {
            align-self: flex-start;
        }
        
        .user-message {
            align-self: flex-end;
            flex-direction: row-reverse;
        }
        
        .avatar {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 0 12px;
            flex-shrink: 0;
            box-shadow: 0 3px 8px rgba(0,0,0,0.1);
            overflow: hidden;
            background-size: cover;
            background-position: center;
        }
        
        .bot-avatar {
            background-color: #b39f84;
            color: #f8f4e9;
            background-image: url('/static/images/image7.png') ;
        }
        
        .user-avatar {
            background-color: #f6f8f8;
            color: #f8f4e9;
            background-image: url('/static/images/image9.png');
        }
        
        .avatar i {
            display: none;
        }
        
        .message-content {
            padding: 15px 20px;
            border-radius: 18px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            max-width: 100%;
            line-height: 1.6;
        }
        
        .bot-content {
            background: #f1e8d9;
            border-top-left-radius: 4px;
            color: #3a2618;
            border-left: 3px solid #8c6d46;
        }
        
        .user-content {
            background: #e2e9e4;
            border-top-right-radius: 4px;
            color: #2c3e33;
            border-right: 3px solid #2c5d63;
        }
        
        /* 悬浮输入区域 */
        #input-container {
            position: absolute;
            bottom: 20px;
            left: 20px;
            right: 20px;
            padding: 15px;
            border-radius: 15px;
            background: #ddd6ca;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1), 0 4px 20px rgba(0, 0, 0, 0.1);
            z-index: 100;
        }
        
        #input-group {
            display: flex;
            gap: 10px;
            align-items: center;
        }
        
        .mode-selector {
            display: flex;
            gap: 5px;
            margin-right: 10px;
        }
        
        .mode-btn {
            padding: 8px 12px;
            border: 1px solid #d9c9a9;
            border-radius: 8px;
            background: #f8f4e9;
            color: #3a2618;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s;
        }
        
        .mode-btn.active {
            background: #8c6d46;
            color: #f8f4e9;
            border-color: #8c6d46;
        }
        
        #input_01 {
            flex: 1;
            padding: 14px 18px;
            border: 2px solid #d9c9a9;
            border-radius: 10px;
            font-size: 16px;
            transition: all 0.3s;
            background: #f8f4e9;
            color: #3a2618;
        }
        
        #input_01:focus {
            border-color: #8c6d46;
            outline: none;
            box-shadow: 0 0 0 3px rgba(140, 109, 70, 0.2);
        }
        
        #input_01::placeholder {
            color: #8c7c69;
        }
        
        #tijiao {
            background: #8c6d46;
            color: #f8f4e9;
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: all 0.3s;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        
        #tijiao:hover {
            background: #6d5535;
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.15);
        }
        
        footer {
            text-align: center;
            padding: 15px;
            color: #6d5a42;
            font-size: 0.85rem;
            border-top: 1px solid #e0d1a0;
            background: #f9f7f0;
            margin-top: 20px;
        }
        
        /* 滚动条样式 */
        #chat-container::-webkit-scrollbar {
            width: 8px;
        }
        
        #chat-container::-webkit-scrollbar-track {
            background: #f1e8d9;
            border-radius: 4px;
        }
        
        #chat-container::-webkit-scrollbar-thumb {
            background: #8c7c69;
            border-radius: 4px;
        }
        
        #chat-container::-webkit-scrollbar-thumb:hover {
            background: #6d5a42;
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            #chat-view-container {
                height: 75vh;
                border-radius: 12px;
            }
            
            .message {
                max-width: 90%;
            }
            
            .chat-header h1 {
                font-size: 1.8rem;
            }
            
            .chat-subtitle {
                font-size: 0.9rem;
            }
            
            .avatar {
                width: 40px;
                height: 40px;
                margin: 0 8px;
            }
            
            #input-container {
                left: 15px;
                right: 15px;
                bottom: 15px;
            }
            
            .mode-selector {
                flex-direction: column;
                gap: 5px;
                margin-right: 8px;
            }
            
            .mode-btn {
                padding: 6px 10px;
                font-size: 12px;
            }
            
            .nav-tab {
                padding: 10px 20px;
            }
            
            .nav-tab .main-text {
                font-size: 14px;
            }
            
            .nav-tab .sub-text {
                font-size: 10px;
            }
        }
        
        @media (max-width: 480px) {
            body {
                padding: 10px;
            }
            
            #chat-view-container {
                height: 80vh;
            }
            
            .chat-header {
                padding: 20px 15px;
            }
            
            .chat-header h1 {
                font-size: 1.6rem;
            }
            
            .message-content {
                padding: 12px 16px;
            }
            
            #input_01 {
                padding: 12px;
            }
            
            #input-container {
                left: 10px;
                right: 10px;
                bottom: 10px;
                padding: 12px;
            }
            
            #tijiao {
                width: 45px;
                height: 45px;
            }
            
            .nav-tabs {
                flex-wrap: wrap;
                justify-content: center;
            }
            
            .nav-tab {
                padding: 8px 15px;
                margin-bottom: 5px;
            }
        }

        /* 主内容 */
        .main-content {
            display: grid;
            grid-template-columns: 1fr;
            gap: 25px;
        }
        
        /* 知识图谱容器  */
        .graph-container {
            height: 1000px; 
            border: 1px solid #d9c9a9;
            border-radius: 10px;
            overflow: hidden;
            position: relative;
            background: #fffcf5;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        }
        
        #knowledge-graph {
            width: 100%;
            height: 100%;
        }
        
        .graph-controls {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
            flex-wrap: wrap;
            background: #f1f8e9;
            padding: 15px;
            border-radius: 10px;
        }
        
        .graph-control {
            padding: 10px 18px;
            background: white;
            border: 1px solid #d9c9a9;
            border-radius: 30px;
            display: flex;
            align-items: center;
            font-size: 1rem;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }
        
        .graph-control select {
            border: none;
            background: transparent;
            margin-left: 8px;
            outline: none;
            cursor: pointer;
            font-weight: 500;
            color: #2c5d63;
        }
        
        .graph-legend {
            display: flex;
            gap: 20px;
            margin-top: 20px;
            flex-wrap: wrap;
            background: rgba(44, 93, 99, 0.08);
            padding: 15px 20px;
            border-radius: 10px;
        }
        
        .legend-item {
            display: flex;
            align-items: center;
            font-size: 1rem;
            font-weight: 500;
        }
        
        .legend-color {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            margin-right: 10px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .section-title {
            color: #2c5d63;
            font-size: 1.8rem;
            margin: 30px 0 25px;
            padding-bottom: 15px;
            border-bottom: 3px solid rgba(44, 93, 99, 0.1);
            position: relative;
            font-weight: bold;
            font-family: "SimSun", serif;
            text-align: center;
        }
        
        .section-title::after {
            content: "";
            position: absolute;
            bottom: -3px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background: #8c6d46;
        }
        
        .subsection-title {
            color: #8c6d46;
            font-size: 1.5rem;
            margin: 25px 0 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid rgba(140, 109, 70, 0.2);
            text-align: center;
        }
        
        .concept-detail {
            background: rgba(140, 109, 70, 0.08);
            border-radius: 10px;
            padding: 25px;
            margin-bottom: 25px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            border-left: 5px solid #8c6d46;
        }
        
        .concept-name {
            font-size: 1.5rem;
            font-weight: bold;
            color: #2c5b63;
            margin-bottom: 10px;
        }
        
        .concept-type {
            display: inline-block;
            background: #726852;
            color: #fefefc;
            padding: 6px 15px;
            border-radius: 30px;
            font-size: 0.9rem;
            margin-bottom: 15px;
            font-family:'Times New Roman', Times, serif
        }

        .concept-type1 {
            display: inline-block;
            background: #4d4334;
            color: #f8f4e9;
            padding: 6px 15px;
            border-radius: 30px;
            font-size: 0.9rem;
            margin-bottom: 15px;
            font-family:'Times New Roman', Times, serif
        }

        .concept-type2 {
            display: inline-block;
            background: #59523e;
            color: #f8f4e9;
            padding: 6px 15px;
            border-radius: 30px;
            font-size: 0.9rem;
            margin-bottom: 15px;
            font-family:'Times New Roman', Times, serif
        }
        
        .concept-def {
            font-size: 1.1rem;
            line-height: 1.6;
            margin-bottom: 15px;
        }
        
        .quote {
            background: rgba(140, 109, 70, 0.1);
            border-left: 4px solid #8c6d46;
            padding: 15px;
            margin: 15px 0;
            border-radius: 0 8px 8px 0;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            font-style: italic;
            line-height: 1.7;
        }
        
        .quote-source {
            color: #6d5a42;
            text-align: right;
            font-size: 0.9rem;
        }
        
        /* 概念详情视图样式 */
        .concept-header {
            background: 
                linear-gradient(to right, #a9a181, #6a5b3d);
            color: #f8f4e9;
            padding: 40px 30px 30px;
            position: relative;
            text-align: center;
            border-radius: 10px 10px 0 0;
            margin-bottom: 25px;
        }
        
        .concept-header h1 {
            font-size: 3.5rem;
            margin-bottom: 10px;
            text-shadow: 0 3px 6px rgba(0,0,0,0.3);
            letter-spacing: 2px;
            font-family: "SimSun", serif;
        }
        
        .concept-header .pinyin {
            font-size: 1.5rem;
            color: #e0d1a0;
            font-weight: bold;
            letter-spacing: 2px;
            margin-bottom: 15px;
        }
        
        .content-section {
            padding: 30px;
            background: #fffcf5;
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
        }
        
        /* 概念释义 */
        .explanation-box {
            margin-bottom: 30px;
            font-size: 1.15rem;
            line-height: 1.8;
            background: rgba(112, 92, 72, 0.08);
            padding: 25px;
            border-radius: 10px;
            border-left: 5px solid #62523f;
        }
        
        .explanation-box p {
            margin-bottom: 20px;
            text-align: justify;
        }
        
        /* 百度百科链接 */
        .baidu-link {
            display: inline-block;
            background: #4f6c7a;
            color: #f8f4e9;
            padding: 10px 20px;
            border-radius: 5px;
            text-decoration: none;
            margin-top: 15px;
            transition: all 0.3s ease;
            font-weight: bold;
        }
        
        .baidu-link:hover {
            background: #748f8f;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }
        
        .baidu-link i {
            margin-right: 8px;
            font-size: 0.9rem;
        }
        
        .quote-text {
            font-style: italic;
            margin-bottom: 10px;
            font-size: 1.2rem;
            color: #2c5d63;
            line-height: 1.7;
        }
        
        .analects-table {
            width: 100%;
            border-collapse: collapse;
            margin: 25px 0;
            box-shadow: 0 2px 12px rgba(0,0,0,0.05);
            border-radius: 10px;
            overflow: hidden;
            background: #fffcf5;
        }
        
        .analects-table th {
            background: #8c7c69;
            color: #f8f4e9;
            padding: 16px 15px;
            text-align: left;
            font-weight: bold;
            font-size: 1.1rem;
        }
        
        .analects-table td {
            padding: 14px 15px;
            border-bottom: 1px solid #e0d1a0;
        }
        
        .analects-table tr:last-child td {
            border-bottom: none;
        }
        
        .analects-table tr:nth-child(even) {
            background: rgba(44, 93, 99, 0.05);
        }
        
        .analects-table tr:hover {
            background: rgba(140, 109, 70, 0.1);
        }
        
        .analects-table .source {
            color: #6d5a42;
            font-size: 0.95rem;
        }
        
        /* 关系 */
        .relation-cards {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 25px;
            margin: 25px 0;
        }
        
        .relation-card {
            border: 1px solid #d9c9a9;
            border-radius: 10px;
            padding: 25px;
            transition: all 0.3s ease;
            background: #fffcf5;
            box-shadow: 0 3px 10px rgba(0,0,0,0.05);
        }
        
        .relation-card:hover {
            box-shadow: 0 8px 20px rgba(0,0,0,0.1);
            transform: translateY(-5px);
        }
        
        .relation-card h4 {
            color: #2c5d63;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            font-size: 1.4rem;
            padding-bottom: 10px;
            border-bottom: 2px solid rgba(44, 93, 99, 0.1);
            text-align: center;
        }
        
        .relation-card h4 i {
            margin-right: 12px;
            color: #8c6d46;
            font-size: 1.6rem;
        }
        
        .concept-tag {
            display: inline-block;
            background: rgba(44, 93, 99, 0.1);
            color: #2c5d63;
            padding: 8px 18px;
            border-radius: 30px;
            margin: 8px 5px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1.05rem;
            border: 1px solid rgba(44, 93, 99, 0.3);
            font-weight: 500;
        }
        
        .concept-tag:hover {
            background: #2c5d63;
            color: #f8f4e9;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        
        /* 视图切换 */
        .view-container {
            display: none;
        }
        
        .view-container.active {
            display: block;
        }
        
        footer {
            text-align: center;
            padding: 40px 0 30px;
            margin-top: 50px;
            color: #6d5a42;
            font-size: 1rem;
            border-top: 1px solid #cec3ac;
        }
        
        footer p {
            margin-bottom: 10px;
        }
        
        /* 右侧边栏 */
        .right-sidebar {
            background: #fffcf5;
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
            overflow: hidden;
            height: fit-content;
            position: sticky;
            top: 20px;
        }
        
        .sidebar-card {
            padding: 25px;
            border-bottom: 1px solid #e0d1a0;
        }
        
        .sidebar-card:last-child {
            border-bottom: none;
        }
        
        .sidebar-card h3 {
            color: #2c5d63;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid rgba(44, 93, 99, 0.1);
            font-size: 1.5rem;
        }
        
        .search-box {
            margin-bottom: 20px;
        }
        
        .search-box input {
            width: 100%;
            padding: 14px 20px;
            border: 2px solid #d9c9a9;
            border-radius: 8px;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            outline: none;
            background: #f8f4e9;
        }
        
        .search-box input:focus {
            border-color: #2c5d63;
            box-shadow: 0 0 0 3px rgba(44, 93, 99, 0.2);
        }
        
        .search-box button {
            width: 100%;
            background: #2c5d63;
            color: #f8f4e9;
            border: none;
            padding: 14px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: bold;
            font-size: 1.1rem;
            margin-top: 10px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        
        .search-box button:hover {
            background: #1d494e;
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.15);
        }
        
        .toc-list {
            list-style-type: none;
        }
        
        .toc-item {
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px dashed #d9c9a9;
        }
        
        .toc-item:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }
        
        .toc-link {
            display: flex;
            align-items: center;
            color: #2c5d63;
            text-decoration: none;
            font-size: 1.1rem;
            font-weight: 500;
            transition: all 0.3s ease;
            padding: 8px 12px;
            border-radius: 6px;
        }
        
        .toc-link:hover {
            background: rgba(44, 93, 99, 0.1);
            transform: translateX(5px);
        }
        
        .toc-link i {
            margin-right: 12px;
            font-size: 1.2rem;
            color: #2c5d63;
        }
        
        .toc-link.active {
            background: #2c5d63;
            color: #f8f4e9;
        }
        
        .toc-link.active i {
            color: #f8f4e9;
        }
        
        /* 概念释义视图布局 */
        .detail-container {
            display: grid;
            grid-template-columns: 1fr 300px;
            gap: 25px;
        }
        
        .left-content {
            background: #fffcf5;
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
            overflow: hidden;
        }
        
        /* 图谱展示视图布局 */
        .graph-layout {
            display: grid;
            grid-template-columns: 1fr;
            gap: 25px;
        }
        
        .graph-main {
            display: flex;
            flex-direction: column;
        }
        
        /* 树状图容器 */
        .tree-container {
            height: 500px;
            border: 1px solid #d9c9a9;
            border-radius: 10px;
            margin: 25px 0;
            background: #fffcf5;
            box-shadow: 0 3px 10px rgba(0,0,0,0.05);
            position: relative;
            overflow: hidden;
        }
        
        .tree-controls {
            position: absolute;
            top: 15px;
            right: 15px;
            z-index: 10;
            display: flex;
            gap: 10px;
        }
        
        .tree-btn {
            padding: 8px 15px;
            background: #2c5d63;
            color: #f8f4e9;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        
        .tree-btn:hover {
            background: #1d494e;
            transform: translateY(-2px);
        }
        
        /* 首页样式 */
        .hero-section {
            background: 
                linear-gradient(rgba(0, 0, 0, 0.277), rgba(0, 0, 0, 0.323)),
                url('/static/images/image6.png') center no-repeat;
            border-radius: 10px;
            padding: 100px 40px;
            text-align: center;
            margin-bottom: 40px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 8px 20px rgba(0,0,0,0.1);
            color: #f8f4e9;
        }
        
        .hero-content {
            max-width: 700px;
            margin: 0 auto;
            position: relative;
            z-index: 2;
        }
        
        .hero-content h2 {
            font-size: 3.5rem;
            margin-bottom: 20px;
            font-family: "SimSun", serif;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }
        
        .hero-content p {
            font-size: 1.3rem;
            max-width: 700px;
            margin: 0 auto 30px;
            line-height: 1.8;
        }
        
        .hero-btn {
            display: inline-block;
            background: #2c5d63;
            color: #f8f4e9;
            padding: 14px 40px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: bold;
            font-size: 1.2rem;
            margin: 15px 10px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }
        
        .hero-btn:hover {
            background: #1d494e;
            transform: translateY(-3px);
            box-shadow: 0 6px 16px rgba(0,0,0,0.2);
        }
        
        .hero-btn.secondary {
            background: #8c6d46;
        }
        
        .hero-btn.secondary:hover {
            background: #6d5535;
        }
        
        .features-section {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin: 50px 0;
        }
        
        .feature-card {
            background: #fffcf5;
            border-radius: 10px;
            padding: 30px;
            text-align: center;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            transition: all 0.3s ease;
            border: 1px solid rgba(140, 109, 70, 0.2);
        }
        
        .feature-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 25px rgba(0,0,0,0.1);
        }
        
        .feature-icon {
            font-size: 3.5rem;
            color: #8c6d46;
            margin-bottom: 20px;
        }
        
        .feature-card h3 {
            color: #2c5d63;
            margin-bottom: 15px;
            font-size: 1.6rem;
        }
        
        .feature-card p {
            color: #3a2618;
            line-height: 1.7;
        }
        
        .info-section {
            background: #fffcf5;
            border-radius: 10px;
            padding: 40px;
            margin: 50px 0;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        }
        
        .info-card {
            background: rgba(44, 93, 99, 0.08);
            border-radius: 10px;
            padding: 30px;
            margin-bottom: 30px;
            border-left: 5px solid #8c6d46;
            text-align: center;
        }
        
        .info-card:last-child {
            margin-bottom: 0;
        }
        
        .info-card h3 {
            color: #2c5d63;
            margin-bottom: 20px;
            font-size: 1.8rem;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
        }
        
        .info-card h3 i {
            margin-right: 15px;
            font-size: 2rem;
        }
        
        .info-card p {
            font-size: 1.1rem;
            line-height: 1.8;
            margin-bottom: 20px;
            color: #3a2618;
            text-align: left;
        }
        
        .info-card ul {
            padding-left: 20px;
            margin-bottom: 20px;
            text-align: left;
        }
        
        .info-card li {
            margin-bottom: 10px;
            font-size: 1.1rem;
            line-height: 1.6;
        }
        
        .info-card .subsection {
            background: rgba(255, 255, 255, 0.5);
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 20px;
        }
        
        .info-card .subsection-title {
            color: #8c6d46;
            font-size: 1.4rem;
            margin: 20px 0 15px;
            text-align: center;
        }
        
        .sample-concepts {
            background: #fffcf5b8;
            border-radius: 10px;
            padding: 40px;
            margin: 50px 0;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        }
        
        .concept-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 20px;
            margin-top: 30px;
        }
        
        .concept-item {
            background: 
            linear-gradient(rgba(249, 245, 245, 0.9), rgba(255, 255, 255, 0.7)),
            url('/static/images/image4.png') center/cover;
            border: 1px solid rgba(44, 93, 99, 0.2);
            border-radius: 8px;
            padding: 20px;
            text-align: center;
            transition: all 0.3s ease;
            cursor: pointer;
        }
        
        .concept-item:hover {
            background: #2c5d63;
            transform: translateY(-5px);
            box-shadow: 0 8px 15px rgba(0,0,0,0.1);
        }
        
        .concept-item:hover h4,
        .concept-item:hover p {
            color: #f8f4e9;
        }
        
        .concept-item h4 {
            color: #2c5d63;
            margin-bottom: 10px;
            font-size: 1.4rem;
        }
        
        .concept-item p {
            color: #6d5a42;
            font-size: 1.1rem;
        }
        
        /* CAPOnto  */
        .caponto-layout {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin-top: 20px;
        }
        
        .caponto-text {
            flex: 1;
            min-width: 300px;
        }
        
        .caponto-image {
            flex: 1;
            min-width: 300px;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .caponto-image img {
            max-width: 100%;
            height: auto;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

        .table-container {
            max-height: 500px;
            overflow-y: auto;
            margin: 25px 0;
            border-radius: 8px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.05);
            border: 1px solid #d9c9a9;
            background: #fffcf5;
        }

        .analects-table {
            width: 100%;
            min-width: 700px; /* 确保表格有最小宽度 */
            border-collapse: collapse;
        }

        .analects-table th {
            background: #8c7c69;
            color: #f8f4e9;
            padding: 16px 15px;
            text-align: left;
            font-weight: bold;
            font-size: 1.1rem;
            white-space: nowrap; /* 防止表头文字换行 */
        }

        .analects-table td {
            padding: 14px 15px;
            border-bottom: 1px solid #e0d1a0;
            vertical-align: top;
        }

        .analects-table tr:last-child td {
            border-bottom: none;
        }

        .analects-table tr:nth-child(even) {
            background: rgba(44, 93, 99, 0.05);
        }

        .analects-table tr:hover {
            background: rgba(140, 109, 70, 0.1);
        }

        .analects-table .source {
            color: #6d5a42;
            font-size: 0.95rem;
            white-space: nowrap;
        }

        .analects-table .meaning {
            color: #2c5d63;
            font-style: italic;
        }

        /* 节点概念卡片样式 */
        .node-concept-card {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            width: 90%;
            max-width: 500px;
            background: #fffcf5;
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.15);
            padding: 20px;
            z-index: 1000;
            border-left: 5px solid #8c6d46;
            display: none;
            animation: fadeInUp 0.3s ease;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translate(-50%, 20px);
            }
            to {
                opacity: 1;
                transform: translate(-50%, 0);
            }
        }

        .node-concept-card h3 {
            color: #2c5d63;
            margin-bottom: 10px;
            font-size: 1.5rem;
        }

        .node-concept-card .pinyin {
            color: #8c6d46;
            font-size: 1rem;
            margin-bottom: 10px;
        }

        .node-concept-card .type {
            display: inline-block;
            background: #8c6d46;
            color: #f8f4e9;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.8rem;
            margin-bottom: 15px;
        }

        .node-concept-card .description {
            font-size: 1rem;
            line-height: 1.5;
            margin-bottom: 15px;
            color: #3a2618;
        }

        .node-concept-card .view-detail-btn {
            display: inline-block;
            background: #2c5d63;
            color: #f8f4e9;
            padding: 8px 16px;
            border-radius: 5px;
            text-decoration: none;
            font-weight: bold;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .node-concept-card .view-detail-btn:hover {
            background: #1d494e;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

        .node-concept-card .close-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            background: none;
            border: none;
            font-size: 1.2rem;
            color: #6d5a42;
            cursor: pointer;
            padding: 5px;
        }
        .node-concept-card .card-actions {
            display: flex;
            gap: 10px;
            margin-top: 15px;
        }

        .node-concept-card .jump-to-concept-btn {
            display: inline-block;
            background: #8c6d46;
            color: #f8f4e9;
            padding: 8px 16px;
            border-radius: 5px;
            text-decoration: none;
            font-weight: bold;
            transition: all 0.3s ease;
            cursor: pointer;
            font-size: 0.9rem;
        }

        .node-concept-card .jump-to-concept-btn:hover {
            background: #6d5535;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

        .graph-legend-controls {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-top: 6px;
            align-items: center;
        }
        .search-highlight {
            background-color: #fffacd;
            box-shadow: 0 0 8px #ffeb3b;
            padding: 2px 5px;
            border-radius: 3px;
            animation: highlight-fade 2s ease-out;
        }

        @keyframes highlight-fade {
            0% { background-color: #ffeb3b; }
            100% { background-color: #fffacd; }
        }

        .legend-control {
            padding: 10px 15px;
            border-radius: 20px;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            font-size: 14px;
            font-weight: bold;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
        }

        .legend-control i {
            margin-right: 8px;
        }

        .legend-control:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }

        .legend-control.inactive {
            opacity: 0.5;
            text-decoration: line-through;
        }

        /* 响应式设计 */
        @media (max-width: 1100px) {
            .detail-container {
                grid-template-columns: 1fr;
            }
            
            .graph-layout {
                grid-template-columns: 1fr;
            }
            
            .right-sidebar {
                position: static;
                margin-top: 30px;
            }
        }
        
        @media (max-width: 768px) {
            .nav-container {
                flex-direction: column;
                gap: 20px;
            }
            
            .nav-tabs {
                width: 100%;
                justify-content: center;
            }
            
            .graph-controls {
                flex-direction: column;
                gap: 10px;
            }
            
            .relation-cards {
                grid-template-columns: 1fr;
            }
            
            .concept-header h1 {
                font-size: 2.8rem;
            }
            
            .concept-header .pinyin {
                font-size: 1.2rem;
            }
            
            .tree-container {
                height: 400px;
            }
            
            .hero-content h2 {
                font-size: 2.4rem;
            }
            
            .hero-content p {
                font-size: 1.1rem;
            }
            
            .caponto-layout {
                flex-direction: column;
            }

            .node-concept-card {
                width: 95%;
                padding: 15px;
            }

            .node-concept-card h3 {
                font-size: 1.3rem;
            }
        }
        
        @media (max-width: 480px) {
            .nav-tab {
                padding: 10px 20px;
                font-size: 1rem;
            }
            
            .concept-header h1 {
                font-size: 2.2rem;
            }
            
            .section-title {
                font-size: 1.5rem;
            }
            
            .tree-container {
                height: 350px;
            }
            
            .hero-section {
                padding: 50px 20px;
            }
            
            .hero-btn {
                display: block;
                width: 100%;
                margin: 10px 0;
            }
        }

        /* 响应式调整 */
        @media (max-width: 768px) {
            .nav-tab .main-text {
                font-size: 14px;
            }
            .nav-tab .sub-text {
                font-size: 10px;
            }
        }

        /* 新增 */
        .charts-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 25px;
            margin-top: 40px;
        }
        
        .chart-card {
            background: #fffcf5;
            border-radius: 10px;
            padding: 20px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            border: 1px solid #d9c9a9;
        }
        
        .chart-title {
            color: #2c5d63;
            font-size: 1.4rem;
            margin-bottom: 20px;
            text-align: center;
            font-weight: bold;
            padding-bottom: 10px;
            border-bottom: 2px solid rgba(44, 93, 99, 0.1);
        }
        
        .chart-container {
            height: 350px;
            width: 100%;
        }
        
        /* 响应式调整 */
        @media (max-width: 768px) {
            .charts-container {
                grid-template-columns: 1fr;
            }
            
            .chart-container {
                height: 300px;
            }
        }
    
        .graph-control-panel {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            gap: 15px;
        }

        .graph-layout-switcher {
            display: flex;
            gap: 10px;
            background: rgba(255,255,255,0.15);
            padding: 5px;
            border-radius: 50px;
        }

        .layout-btn {
            padding: 10px 20px;
            border-radius: 30px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: bold;
            font-size: 1rem;
            background: transparent;
            border: none;
            color: #2c5d63;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .layout-btn.active {
            background: rgba(255, 250, 240, 0.95);
            color: #2c5d63;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        }

        .layout-btn:hover:not(.active) {
            background: rgba(255,255,255,0.25);
        }

        .typing-indicator {
            display: inline-flex;
            align-items: center;
            height: 20px;
        }

        .typing-indicator span {
            height: 8px;
            width: 8px;
            background-color: #909090;
            border-radius: 50%;
            display: inline-block;
            margin: 0 2px;
            animation: typing 1.4s infinite both;
        }

        .typing-indicator span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .typing-indicator span:nth-child(3) {
            animation-delay: 0.4s;
        }

        @keyframes typing {
            0%, 60%, 100% {
                transform: translateY(0);
            }
            30% {
                transform: translateY(-5px);
            }
        }

        #clear-history-btn{
            padding: 8px 12px;
            border: 1px solid #d9c9a9;
            border-radius: 8px;
            background: #f8f4e9;
            color: #3a2618;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s;
        }

        .typing-indicator {
            display: flex;
            align-items: center;
            height: 20px;
        }

        .typing-indicator span {
            display: inline-block;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: #888;
            margin: 0 2px;
            animation: typing 1.4s infinite both;
        }

        .typing-indicator span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .typing-indicator span:nth-child(3) {
            animation-delay: 0.4s;
        }

        @keyframes typing {
            0%, 60%, 100% {
                transform: translateY(0);
                opacity: 0.4;
            }
            30% {
                transform: translateY(-10px);
                opacity: 1;
            }
        }

        /* AI消息段落样式 */
        .ai-paragraph {
            margin-bottom: 12px;
            line-height: 1.6;
        }

        /* 引用样式 */
        .ai-paragraph:has(> .analects-quote) {
            background-color: #f8f9f5;
            border-left: 4px solid #2c5d63;
            padding: 10px 15px;
            margin: 15px 0;
            font-style: italic;
        }

        /* 强调文本样式 */
        .ai-important {
            font-weight: bold;
            color: #2c5d63;
        }

        /* 列表样式 */
        .ai-list {
            padding-left: 20px;
            margin: 10px 0;
        }

        .ai-list-item {
            margin-bottom: 5px;
        }

        /* 模型选择器样式 */
        .model-selector-container {
            position: relative;
            margin-right: 10px;
        }

        .model-selector-btn {
            width: 150px; 
            height: 40px; 
            border-radius: 8px; 
            background: #8c6d46;
            color: #f8f4e9;
            border: none;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 14px;
            transition: all 0.3s;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            position: relative;
        }

        .model-selector-btn:hover {
            background: #6d5535;
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.15);
        }

        .model-selector-btn::after {
            content: "▼";
            font-size: 10px;
            margin-left: 4px;
        }

        .model-selector-dropdown {
            position: absolute;
            bottom: 60px;
            left: 0;
            width: 200px;
            background: #fffcf5;
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.15);
            z-index: 1000;
            display: none;
            max-height: 200px;
            overflow-y: auto;
        }

        .model-selector-dropdown.show {
            display: block;
        }

        .model-option {
            padding: 12px 15px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #e0d1a0;
            transition: all 0.3s;
        }

        .model-option:last-child {
            border-bottom: none;
        }

        .model-option:hover {
            background: rgba(140, 109, 70, 0.1);
        }

        .model-option.active {
            background: rgba(140, 109, 70, 0.2);
            font-weight: bold;
        }

        .model-option .checkmark {
            color: #8c6d46;
            font-size: 14px;
        }

        /* 响应式调整 */
        @media (max-width: 768px) {
            .model-selector-btn {
                width: 45px;
                height: 45px;
                font-size: 12px;
            }
            
            .model-selector-dropdown {
                width: 180px;
            }
        }

        
        /* 分类信息消息样式 */
        .classification-message {
            align-self: flex-start;
            max-width: 80%;
        }

        .classification-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 0 12px;
            flex-shrink: 0;
            box-shadow: 0 3px 8px rgba(0,0,0,0.1);
            overflow: hidden;
            background-color: #95a5a6;
            color: #ecf0f1;
            /* 添加图片背景 */
            background-image: url('/static/images/image8.png');
            background-size: cover;
            background-position: center;
        }

        /* 隐藏图标，因为现在使用图片 */
        .classification-avatar i {
            display: none;
        }

        .classification-content {
            background: #f8f9fa;
            border-top-left-radius: 4px;
            color: #545c64;
            border-left: 3px solid #95a5a6;
            padding: 12px 16px;
            border-radius: 18px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            max-width: 100%;
            line-height: 1.6;
            font-size: 0.95rem;
        }

        .classification-content strong {
            color: #2c3e50;
        }

        /* 分类信息中的列表样式 */
        .classification-content ul {
            margin: 10px 0;
            padding-left: 20px;
        }

        .classification-content li {
            margin-bottom: 5px;
        }

        /* 分类信息标题样式 */
        .classification-content h4 {
            color: #34495e;
            margin: 15px 0 10px 0;
            font-size: 1.1rem;
            border-bottom: 1px solid #bdc3c7;
            padding-bottom: 5px;
        }        

        /* 智能问答介绍按钮 */
        .intro-btn {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(255, 255, 255, 0.2);
            color: rgb(139, 118, 82);
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 25px;
            padding: 8px 16px;
            cursor: pointer;
            font-size: 14px;
            font-weight: bold;
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
            z-index: 10;
        }

        .intro-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            border-color: rgba(255, 255, 255, 0.5);
            transform: translateY(-2px);
        }

        .intro-btn i {
            margin-right: 5px;
        }

        /* 信息按钮样式 */
        .info-btn {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(255, 255, 255, 0.2);
            color: #786d4f;
            border: 1px solid rgba(255, 255, 255, 0.3);
            padding: 8px 15px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s;
            backdrop-filter: blur(5px);
        }

        .info-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
        }

        .info-btn i {
            margin-right: 5px;
        }

        /* 模态框样式 */
        .info-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 2000;
            overflow-y: auto;
        }

        .modal-content {
            position: relative;
            background-color: #fffcf5;
            margin: 5% auto;
            padding: 30px;
            width: 80%;
            max-width: 900px;
            border-radius: 10px;
            box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
            max-height: 80vh;
            overflow-y: auto;
        }

        .modal-content h2 {
            color: #2c5d63;
            margin-bottom: 20px;
            text-align: center;
            font-size: 2rem;
        }

        .modal-content .close-btn {
            position: absolute;
            top: 15px;
            right: 15px;
            background: none;
            border: none;
            font-size: 1.5rem;
            color: #6d5a42;
            cursor: pointer;
            padding: 5px;
        }

        .modal-body {
            padding: 10px;
        }

        /* 响应式调整 */
        @media (max-width: 768px) {
            .modal-content {
                width: 95%;
                margin: 10% auto;
                padding: 20px;
            }
            
            .info-btn {
                position: relative;
                top: 0;
                right: 0;
                margin: 10px auto;
                display: block;
                width: fit-content;
            }
        }

        /* 新增：介绍卡片区域样式 */
        .intro-cards-section {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            gap: 30px;
            margin: 40px 0;
        }

        .intro-card {
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
            transition: all 0.3s ease;
            height: 300px;
        }

        .intro-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
        }

        .intro-card-bg {
            height: 100%;
            background-size: cover;
            background-position: center;
            position: relative;
            display: flex;
            align-items: flex-end;
        }

        .intro-card-bg::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
        }

        .intro-card-content {
            position: relative;
            z-index: 2;
            padding: 30px;
            color: white;
            width: 200%;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
        }

        .intro-card-content h3 {
            font-size: 2rem;
            margin-bottom: 10px;
            font-family: "SimSun", serif;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        }

        .intro-card-content p {
            font-size: 1.1rem;
            margin-bottom: 20px;
            opacity: 0.9;
            line-height: 1.5;
        }

        .intro-card-btn {
            background: rgba(255, 255, 255, 0.2);
            color: rgb(210, 226, 231);
            border: 2px solid rgba(255, 255, 255, 0.5);
            padding: 12px 30px;
            border-radius: 30px;
            cursor: pointer;
            font-size: 1rem;
            font-weight: bold;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }



        .intro-card-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        /* 新增：介绍模态框样式 */
        .intro-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(255, 252, 245, 0); /* 微透明效果 */;
            z-index: 2000;
            overflow-y: auto;
        }

        .intro-modal .modal-content {
            position: relative;
            background-color: #fffcf5f3;
            margin: 5% auto;
            padding: 40px;
            width: 80%;
            max-width: 800px;
            border-radius: 15px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
            max-height: 80vh;
            overflow-y: auto;
        }

        .intro-modal h2 {
            color: #2c5d63;
            text-align: center;
            margin-bottom: 30px;
            font-size: 2.5rem;
            font-family: "SimSun", serif;
        }

        .intro-modal h3 {
            color: #8c6d46;
            margin: 25px 0 15px;
            font-size: 1.8rem;
        }

        .intro-modal h4 {
            color: #2c5d63;
            margin: 20px 0 10px;
            font-size: 1.4rem;
        }

        .intro-content p, .team-content p {
            font-size: 1.1rem;
            line-height: 1.7;
            margin-bottom: 15px;
            color: #3a2618;
        }

        .feature-list {
            margin: 30px 0;
        }

        .feature-item {
            display: flex;
            align-items: flex-start;
            margin-bottom: 25px;
            padding: 20px;
            background: rgba(44, 93, 99, 0.05);
            border-radius: 10px;
            border-left: 4px solid #8c6d46;
        }

        .feature-item i {
            font-size: 2rem;
            color: #8c6d46;
            margin-right: 20px;
            margin-top: 5px;
        }

        .tech-stack ul, .team-content ul {
            padding-left: 20px;
            margin: 15px 0;
        }

        .tech-stack li, .team-content li {
            margin-bottom: 8px;
            font-size: 1.1rem;
        }

        .team-subtitle {
            text-align: center;
            color: #6d5a42;
            font-size: 1.2rem;
            margin-bottom: 30px;
            font-style: italic;
        }

        .team-members {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin: 30px 0;
        }

        .team-member {
            background: rgba(44, 93, 99, 0.08);
            padding: 20px;
            border-radius: 10px;
            text-align: center;
            transition: all 0.3s ease;
        }

        .team-member:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        }

        .member-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: #8c6d46;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 15px;
            color: white;
            font-size: 2rem;
        }

        .member-info h4 {
            color: #2c5d63;
            margin-bottom: 5px;
            font-size: 1.2rem;
        }

        .member-info p {
            margin-bottom: 5px;
            font-weight: bold;
            color: #3a2618;
        }

        .member-desc {
            font-size: 0.95rem !important;
            color: #6d5a42 !important;
            font-style: italic;
        }

        .collaboration {
            margin: 30px 0;
            padding: 20px;
            background: rgba(140, 109, 70, 0.08);
            border-radius: 10px;
        }

        .institution-logos {
            display: flex;
            justify-content: center;
            gap: 40px;
            margin-top: 20px;
            flex-wrap: wrap;
        }

        .institution {
            display: flex;
            align-items: center;
            font-size: 1.2rem;
            color: #2c5d63;
            font-weight: bold;
        }

        .institution i {
            margin-right: 10px;
            font-size: 1.5rem;
            color: #8c6d46;
        }

        .contact-info {
            margin-top: 30px;
            padding-top: 20px;
            border-top: 2px solid #e0d1a0;
        }

        .contact-info p {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
        }

        .contact-info i {
            margin-right: 10px;
            color: #8c6d46;
            width: 20px;
        }

        /* 响应式调整 */
        @media (max-width: 768px) {
            .intro-cards-section {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .intro-card {
                height: 250px;
            }
            
            .intro-card-content {
                padding: 20px;
            }
            
            .intro-card-content h3 {
                font-size: 1.6rem;
            }
            
            .intro-modal .modal-content {
                width: 95%;
                margin: 10% auto;
                padding: 20px;
            }
            
            .team-members {
                grid-template-columns: 1fr;
            }
            
            .institution-logos {
                flex-direction: column;
                gap: 20px;
                align-items: center;
            }
        }

        .intro-card:first-child .intro-card-bg {
            background-image: 
            linear-gradient(rgba(255, 255, 255, 0.356), rgba(6, 6, 6, 0.7)),
            url('/static/images/image3.png');
        }

        /* 开发团队卡片 */
        .intro-card:nth-child(2) .intro-card-bg {
            background-image: 
            linear-gradient(rgba(255, 255, 255, 0.356), rgba(6, 6, 6, 0.7)),
            url('/static/images/image2.png');
        }

        /* 移除原有的内联样式影响 */
        .intro-card-bg[style] {
            background-image: none !important;
        }


        

        /* 新增：开发团队模态框样式 - 扩大并添加透明效果 */
        .team-info-modal .modal-content {
            position: relative;
            background: rgba(255, 252, 245, 0.95); /* 微透明效果 */
            margin: 2% auto; /* 扩大模态框 */
            padding: 40px;
            width: 90%; /* 扩大宽度 */
            max-width: 1200px; /* 最大宽度增加 */
            border-radius: 15px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            max-height: 90vh; /* 增加高度 */
            overflow-y: auto;
            backdrop-filter: blur(10px); /* 毛玻璃效果 */
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .team-info-modal h2 {
            color: #2c5d63;
            text-align: center;
            margin-bottom: 40px;
            font-size: 2.8rem;
            font-family: "SimSun", serif;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .team-info-modal h3 {
            color: #8c6d46;
            margin: 30px 0 20px;
            font-size: 2rem;
            text-align: center;
            border-bottom: 2px solid rgba(140, 109, 70, 0.3);
            padding-bottom: 10px;
        }

        /* 团队展示区域 */
        .team-sections {
            display: flex;
            flex-direction: column;
            gap: 40px;
        }

        /* 项目负责人部分 */
        .team-leader-section {
            text-align: center;
            padding: 30px;
            background:
            linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.7)),
            url('/static/images/image4.png') center/cover;;
            border-radius: 15px;
            border: 2px solid rgba(140, 109, 70, 0.2);
        }

        .team-leader {
            display: inline-block;
            max-width: 300px;
        }

        /* 学生团队部分 */
        .student-team-section {
            padding: 30px;
            background: 
            linear-gradient(rgba(255, 255, 255, 0.165), rgba(255, 255, 255, 0.7)),
            url('/static/images/image4.png') center/cover;;;
            border-radius: 15px;
            border: 2px solid rgba(44, 93, 99, 0.2);
        }

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

        /* 项目专家部分 */
        .expert-team-section {
            padding: 30px;
            background:
            linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.7)),
            url('/static/images/image4.png') center/cover;;;
            border-radius: 15px;
            border: 2px solid rgba(109, 90, 53, 0.2);
        }

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

        /* 团队成员卡片通用样式 */
        .team-member-card {
            background: rgba(255, 255, 255, 0.8);
            border-radius: 15px;
            padding: 25px 20px;
            text-align: center;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.3);
            backdrop-filter: blur(5px);
        }

        .team-member-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
            background: rgba(255, 255, 255, 0.95);
        }

        /* 成员头像容器 */
        .member-avatar-container {
            width: 100px;
            height: 100px;
            margin: 0 auto 20px;
            position: relative;
            border-radius: 50%;
            overflow: hidden;
            border: 4px solid rgba(140, 109, 70, 0.3);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            background: linear-gradient(135deg, #f1e8d9 0%, #e0d1a0 100%);
        }

        .member-avatar {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: all 0.3s ease;
        }

        .member-avatar-container:hover .member-avatar {
            transform: scale(1.1);
        }

        /* 默认头像样式（当没有图片时显示） */
        .default-avatar {
            width: 90%;
            height: 90%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #8c6d46 0%, #6d5535 100%);
            color: white;
            font-size: 3rem;
        }

        /* 成员信息样式 */
        .member-info {
            padding: 0 10px;
        }

        .member-role {
            display: inline-block;
            background: linear-gradient(135deg, #2c5d63, #1d494e);
            color: white;
            padding: 6px 15px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: bold;
            margin-bottom: 10px;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        }

        .member-name {
            font-size: 1.4rem;
            font-weight: bold;
            color: #2c5d63;
            margin-bottom: 8px;
            font-family: "SimSun", serif;
        }

        .member-title {
            font-size: 0.5rem;
            color: #8c6d46;
            margin-bottom: 12px;
            font-weight: 500;
            font-family:"SimSun", serif;
        }

        .member-description {
            font-size: 0.95rem;
            color: #5a4a30;
            line-height: 1.5;
            text-align: middle;
            padding: 0 5px;
        }

        /* 特殊样式：项目负责人 */
        .team-leader .member-avatar-container {
            width: 150px;
            height: 150px;
            border: 5px solid rgba(140, 109, 70, 0.5);
        }

        .team-leader .member-name {
            font-size: 1.6rem;
        }

        .team-leader .member-role {
            background: linear-gradient(135deg, #8c6d46, #6d5535);
            font-size: 1rem;
            padding: 8px 20px;
        }

        /* 特殊样式：项目专家 */
        .expert-team-section .member-role {
            background: linear-gradient(135deg, #5d8c46, #4a6d38);
        }

        /* 响应式调整 */
        @media (max-width: 768px) {
            .team-info-modal .modal-content {
                width: 95%;
                margin: 5% auto;
                padding: 20px;
            }
            
            .student-team-grid {
                grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
                gap: 15px;
            }
            
            .expert-team-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .member-avatar-container {
                width: 100px;
                height: 100px;
            }
            
            .team-leader .member-avatar-container {
                width: 120px;
                height: 120px;
            }
            
            .member-name {
                font-size: 1.2rem;
            }
            
            .member-title {
                font-size: 1rem;
            }
        }

        @media (max-width: 480px) {
            .student-team-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .team-sections {
                gap: 25px;
            }
            
            .team-leader-section,
            .student-team-section,
            .expert-team-section {
                padding: 20px 15px;
            }
        }

        /* 学生团队布局样式 */
        .student-team-grid {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 30px;
        }

        .student-team-row {
            display: flex;
            justify-content: center;
            gap: 30px;
            width: 100%;
        }

        .centered-row {
            justify-content: center;
        }

        /* 响应式调整 */
        @media (max-width: 768px) {
            .student-team-row {
                flex-direction: column;
                align-items: center;
            }
            
            .team-member-card {
                width: 100%;
                max-width: 300px;
            }
        }

        /* 文献展示样式 */
        .literature-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        .literature-item {
            background-color: #f9f8f3;
            border-radius: 8px;
            padding: 20px;
            transition: all 0.3s ease;
            cursor: pointer;
            border-left: 4px solid #8c6d46;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .literature-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
            background-color: #f0f0f0;
        }

        .literature-title {
            font-size: 1.1rem;
            color: #2c5d63;
            margin-bottom: 10px;
            line-height: 1.4;
            font-weight: bold;
        }

        .literature-author {
            color: #666;
            font-size: 0.9rem;
            margin-bottom: 5px;
        }

        .literature-source {
            color: #888;
            font-size: 0.85rem;
            margin-bottom: 10px;
        }

        .literature-concept {
            display: inline-block;
            background-color: #e6d2c3;
            color: #8c6d46;
            padding: 3px 8px;
            border-radius: 12px;
            font-size: 0.8rem;
            margin-top: 8px;
        }

        /* 文献模态框样式 */
        .literature-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        .literature-modal .modal-content {
            background-color: #fffcf5;
            border-radius: 10px;
            width: 90%;
            max-width: 600px;
            max-height: 80vh;
            overflow-y: auto;
            padding: 30px;
            position: relative;
            box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
        }

        .modal-title {
            color: #2c5d63;
            margin-bottom: 20px;
            padding-right: 30px;
            font-size: 1.5rem;
        }

        .modal-info {
            margin-bottom: 25px;
        }

        .info-item {
            margin-bottom: 12px;
            line-height: 1.5;
        }

        .info-label {
            font-weight: bold;
            color: #555;
            display: inline-block;
            width: 80px;
        }

        .summary-section {
            margin-top: 20px;
            padding: 15px;
            background: rgba(44, 93, 99, 0.05);
            border-radius: 8px;
            border-left: 4px solid #8c6d46;
        }

        .summary-section h3 {
            color: #2c5d63;
            margin-bottom: 10px;
            font-size: 1.1rem;
        }

        .literature-actions {
            text-align: center;
            margin-top: 25px;
        }

        .view-pdf-btn {
            display: inline-block;
            background: #8c6d46;
            color: #f8f4e9;
            border: none;
            padding: 12px 25px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1rem;
            transition: all 0.3s ease;
            text-decoration: none;
            font-weight: bold;
        }

        .view-pdf-btn:hover {
            background: #6d5535;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

        /* PDF查看器样式 */
        .pdf-viewer {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            z-index: 1100;
            justify-content: center;
            align-items: center;
        }

        .pdf-container {
            width: 90%;
            height: 90%;
            background-color: white;
            border-radius: 8px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .pdf-header {
            padding: 15px;
            background-color: #f0f0f0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .pdf-close {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: #666;
        }

        .pdf-frame {
            flex: 1;
            border: none;
        }

        .close-btn {
            position: absolute;
            top: 15px;
            right: 15px;
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: #666;
            padding: 5px;
        }

        .close-btn:hover {
            color: #333;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .literature-list {
                grid-template-columns: 1fr;
            }
            
            .literature-modal .modal-content {
                width: 95%;
                padding: 20px;
            }
            
            .info-label {
                width: 70px;
            }
        }


        /* 用户状态样式 */
        .user-status {
            display: flex;
            align-items: center;
            color: white;
        }

        .user-info {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .user-nickname {
            font-weight: bold;
        }

        .logout-btn {
            color: #e0d1a0;
            text-decoration: none;
            padding: 5px 10px;
            border: 1px solid #e0d1a0;
            border-radius: 15px;
            font-size: 0.9rem;
            transition: all 0.3s;
        }

        .logout-btn:hover {
            background: rgba(255,255,255,0.1);
        }

        .login-register {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .auth-link {
            color: #e0d1a0;
            text-decoration: none;
            font-size: 0.9rem;
        }

        .auth-link:hover {
            text-decoration: underline;
        }

        .login-register span {
            color: #e0d1a0;
        }

        /* 管理链接样式 */
        .admin-link {
            color: #ffd700; /* 金色突出显示 */
            text-decoration: none;
            padding: 5px 10px;
            border: 1px solid #ffd700;
            border-radius: 15px;
            font-size: 0.9rem;
            margin-right: 10px;
            transition: all 0.3s;
        }

        .admin-link:hover {
            background: rgba(255, 215, 0, 0.1);
            transform: translateY(-2px);
        }

        /* 登录注册框样式 */
        .auth-box {
            display: flex;
            align-items: center;
            margin-left: 20px;
            padding: 5px;
            background: rgba(255, 255, 255, 0.15);
            border-radius: 25px;
            backdrop-filter: blur(10px);
        }

        .auth-logged-in,
        .auth-logged-out {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .welcome-text {
            color: #e0d1a0;
            font-size: 0.9rem;
            font-weight: 500;
            margin: 0 10px;
            white-space: nowrap;
        }

        .auth-buttons {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .auth-login-btn,
        .auth-register-btn,
        .auth-logout-btn,
        .auth-admin-btn {
            padding: 8px 16px;
            border-radius: 20px;
            text-decoration: none;
            font-size: 0.85rem;
            font-weight: 500;
            transition: all 0.3s ease;
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .auth-login-btn {
            background: rgba(255, 255, 255, 0.2);
            color: #5b533c;
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        .auth-login-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
        }

        .auth-register-btn {
            background: #8c6d46;
            color: #e7dcbc;
            border: 1px solid #8c6d46;
        }

        .auth-register-btn:hover {
            background: #6d5535;
            transform: translateY(-2px);
        }

        .auth-logout-btn {
            background: rgba(255, 255, 255, 0.1);
            color: #6d654b;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .auth-logout-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
        }

        .auth-admin-btn {
            background: rgba(255, 215, 0, 0.2);
            color: #ffd700;
            border: 1px solid rgba(255, 215, 0, 0.3);
        }

        .auth-admin-btn:hover {
            background: rgba(255, 215, 0, 0.3);
            transform: translateY(-2px);
        }

        /* 响应式设计 */
        @media (max-width: 1100px) {
            .auth-box {
                margin-left: 10px;
            }
            
            .welcome-text {
                font-size: 0.8rem;
                margin: 0 5px;
            }
            
            .auth-login-btn,
            .auth-register-btn,
            .auth-logout-btn,
            .auth-admin-btn {
                padding: 6px 12px;
                font-size: 0.8rem;
            }
        }

        @media (max-width: 768px) {
            .auth-box {
                order: -1; /* 在小屏幕上移到前面 */
                margin-left: 0;
                margin-bottom: 10px;
                width: 100%;
                justify-content: center;
            }
            
            .nav-tabs {
                flex-wrap: wrap;
                justify-content: center;
            }
        }

        /* 概念关联度分析样式 */
        .correlation-analysis-section {
            margin-top: 40px;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 8px;
            border: 1px solid #e9ecef;
        }

        .correlation-container {
            display: flex;
            gap: 20px;
            margin-top: 20px;
        }

        .correlation-controls {
            width: 250px;
            padding: 20px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .correlation-chart {
            flex: 1;
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            padding: 20px;
        }

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

        .control-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
            color: #333;
            font-size: 14px;
        }

        .control-group select {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
            background: white;
            transition: border-color 0.3s;
        }

        .control-group select:focus {
            outline: none;
            border-color: #2c5d63;
        }

        /* 表格容器样式 */
        .table-container {
            max-height: 400px; /* 限制最大高度 */
            overflow-y: auto;  /* 垂直滚动 */
            border: 1px solid #e0d6c8;
            border-radius: 8px;
            margin-bottom: 20px;
            background: #fff;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        /* 表格样式优化 */
        .analects-table {
            width: 100%;
            border-collapse: collapse;
            margin: 0; /* 移除外边距 */
        }

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

        .table-container::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 4px;
        }

        .table-container::-webkit-scrollbar-thumb {
            background: #c1b7a9;
            border-radius: 4px;
        }

        .table-container::-webkit-scrollbar-thumb:hover {
            background: #a89f91;
        }

        /* 表格响应式优化 */
        @media (max-width: 768px) {
            .table-container {
                max-height: 300px;
                font-size: 0.9rem;
            }
            
            .analects-table th,
            .analects-table td {
                padding: 8px 6px;
            }
        }

        /* 登录提示样式 */
        .login-prompt {
            background: #fff3cd !important;
            border: 1px solid #ffeaa7 !important;
            border-radius: 4px;
            padding: 12px;
            margin-top: 10px;
        }

        .login-prompt p {
            margin: 0 0 8px 0;
            color: #856404;
            font-size: 0.9rem;
        }

        .login-link-btn {
            display: inline-block;
            padding: 6px 12px;
            background: #2c5d63;
            color: white;
            text-decoration: none;
            border-radius: 4px;
            font-size: 0.9rem;
            transition: background-color 0.3s;
        }

        .login-link-btn:hover {
            background: #1e4145;
            color: white;
            text-decoration: none;
        }

        /* 权限提示样式 */
        .permission-hint {
            background: #fff3cd;
            border: 1px solid #ffeaa7;
            border-radius: 4px;
            padding: 10px;
            margin-top: 10px;
            font-size: 0.9rem;
            color: #856404;
        }

        .permission-hint p {
            margin: 0 0 8px 0;
        }

        .permission-hint .admin-only {
            font-weight: bold;
            color: #dc3545;
        }

        /* 文献操作按钮组样式 */
        .literature-actions {
            display: flex;
            gap: 10px;
            align-items: center;
            justify-content: center;
            margin-top: 25px;
        }

        .view-pdf-btn.admin-only {
            background: #6c757d;
            cursor: not-allowed;
            position: relative;
        }

        .view-pdf-btn.admin-only:hover::after {
            content: "仅管理员可查看";
            position: absolute;
            bottom: -30px;
            left: 50%;
            transform: translateX(-50%);
            background: #333;
            color: white;
            padding: 5px 10px;
            border-radius: 4px;
            font-size: 0.8rem;
            white-space: nowrap;
            z-index: 100;
        }

        .view-pdf-btn.admin-only:hover::before {
            content: "";
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            border: 5px solid transparent;
            border-bottom-color: #333;
        }

        /* 注疏查询模态框样式 */
        .annotation-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        .annotation-modal .modal-content {
            background-color: #fffcf5;
            border-radius: 10px;
            width: 90%;
            max-width: 700px;
            max-height: 80vh;
            overflow-y: auto;
            padding: 30px;
            position: relative;
            box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
        }

        .annotation-info {
            margin-top: 20px;
        }

        .original-text-section {
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid #e0d1a0;
        }

        .original-text-section h3 {
            color: #2c5d63;
            margin-bottom: 10px;
            font-size: 1.3rem;
        }

        .original-text {
            font-size: 1.1rem;
            line-height: 1.6;
            color: #3a2618;
            background: rgba(44, 93, 99, 0.05);
            padding: 15px;
            border-radius: 8px;
            border-left: 4px solid #8c6d46;
        }

        .annotations-section h3 {
            color: #8c6d46;
            margin-bottom: 15px;
            font-size: 1.3rem;
        }

        .annotations-list {
            max-height: 400px;
            overflow-y: auto;
        }

        .annotation-item {
            background: rgba(255, 255, 255, 0.8);
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 15px;
            border: 1px solid #e0d1a0;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .annotation-item:last-child {
            margin-bottom: 0;
        }

        .annotation-origin {
            color: #2c5d63;
            font-weight: bold;
            margin-bottom: 10px;
            padding-bottom: 8px;
            border-bottom: 1px dashed #d9c9a9;
        }

        .annotation-content {
            line-height: 1.7;
            color: #3a2618;
            font-size: 1rem;
        }

        .loading, .error {
            text-align: center;
            padding: 40px;
            color: #6d5a42;
            font-size: 1.1rem;
        }

        .no-annotations {
            text-align: center;
            padding: 40px;
            color: #8c6d46;
            font-size: 1.1rem;
            background: rgba(140, 109, 70, 0.1);
            border-radius: 8px;
        }

        /* 表格原文可点击样式 */
        .analects-table td:first-child {
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
        }

        .analects-table td:first-child:hover {
            background-color: rgba(44, 93, 99, 0.1);
            color: #2c5d63;
        }

        .analects-table td:first-child::after {
            content: "🔍";
            position: absolute;
            right: 5px;
            top: 50%;
            transform: translateY(-50%);
            opacity: 0;
            transition: opacity 0.3s ease;
            font-size: 0.8rem;
        }

        .analects-table td:first-child:hover::after {
            opacity: 1;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .annotation-modal .modal-content {
                width: 95%;
                padding: 20px;
            }
            
            .annotation-item {
                padding: 15px;
            }
            
            .original-text {
                font-size: 1rem;
                padding: 12px;
            }
        }

        /* 来源选择器样式 */
        .source-selector-section {
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid #e0d1a0;
        }

        .source-selector-section h3 {
            color: #2c5d63;
            margin-bottom: 15px;
            font-size: 1.2rem;
        }

        .source-selector {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            background: rgba(44, 93, 99, 0.05);
            padding: 15px;
            border-radius: 8px;
        }

        .source-option {
            display: flex;
            align-items: center;
            padding: 10px 15px;
            background: white;
            border: 2px solid #d9c9a9;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
            color: #3a2618;
        }

        .source-option:hover {
            border-color: #8c6d46;
            transform: translateY(-2px);
        }

        .source-option.active {
            background: #2c5d63;
            color: white;
            border-color: #2c5d63;
        }

        .source-name {
            margin-right: 8px;
        }

        .checkmark {
            font-size: 0.9rem;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .source-option.active .checkmark {
            opacity: 1;
        }

        /* 注疏头部样式 */
        .annotations-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid #e0d1a0;
        }

        .annotations-header h3 {
            color: #8c6d46;
            margin: 0;
            font-size: 1.3rem;
        }

        .annotations-count {
            background: #8c6d46;
            color: white;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 0.9rem;
            font-weight: 500;
        }

        /* 来源分组样式 */
        .source-group {
            margin-bottom: 25px;
            border: 1px solid #e0d1a0;
            border-radius: 8px;
            overflow: hidden;
        }

        .source-group:last-child {
            margin-bottom: 0;
        }

        .source-header {
            background: rgba(44, 93, 99, 0.1);
            padding: 15px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #e0d1a0;
        }

        .source-header h4 {
            color: #2c5d63;
            margin: 0;
            font-size: 1.1rem;
            font-weight: bold;
        }

        .source-count {
            background: #8c6d46;
            color: white;
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 0.8rem;
        }

        .source-annotations {
            padding: 0;
        }

        .source-annotations .annotation-item {
            margin-bottom: 0;
            border-radius: 0;
            border-bottom: 1px solid #f0f0f0;
            box-shadow: none;
        }

        .source-annotations .annotation-item:last-child {
            border-bottom: none;
        }

        /* 提示文本样式 */
        .hint {
            font-size: 0.9rem;
            color: #6d5a42;
            margin-top: 8px;
            font-style: italic;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .source-selector {
                flex-direction: column;
                gap: 8px;
            }
            
            .source-option {
                justify-content: space-between;
            }
            
            .annotations-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }
            
            .source-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }
        }

        .clickable-original {
            cursor: pointer;
            color: #2c5d63;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .clickable-original:hover {
            background-color: rgba(44, 93, 99, 0.1) !important;
            text-decoration: underline;
        }

        /* 邢昺注疏特殊样式 */
        .xingbing-section {
            margin-bottom: 15px;
            padding: 12px;
            background: rgba(140, 109, 70, 0.05);
            border-radius: 6px;
            border-left: 3px solid #8c6d46;
        }

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

        .xingbing-type {
            font-weight: bold;
            color: #2c5d63;
            margin-bottom: 8px;
            font-size: 1rem;
        }

        .xingbing-content {
            line-height: 1.6;
            color: #3a2618;
        }

        .annotation-text {
            line-height: 1.6;
            margin-bottom: 10px;
        }

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

        /* 新增：禁止用户选择文本 */
        body {
        -moz-user-select: none; /* Firefox私有属性 */
        -webkit-user-select: none; /* WebKit内核私有属性 */
        -ms-user-select: none; /* IE私有属性(IE10及以后) */
        -khtml-user-select: none; /* KHTML内核私有属性 */
        -o-user-select: none; /* Opera私有属性 */
        user-select: none; /* CSS3属性 */
        }

                                                                                                            
