/* 色彩变量和基础样式 - 修改为黑白风格 */
        :root {
            /* 亮色模式变量 - 黑白风格 */
            --bg-color: #f8f8f8;
            --text-color: #1a1a1a;
            --accent-color: #404040;
            --scroll-color: #d1d1d1;
            --ink-dark: #1a1a1a;
            --ink-medium: #404040;
            --ink-light: #707070;
            --paper-dark: #d1d1d1;
            --paper-light: #f8f8f8;
            --mountain-dark: #404040;
            --mountain-light: #707070;
            --water-dark: #505050;
            --water-light: #777777;
            --jade-dark: #404040;
            --jade-light: #707070;
            --cinnabar-dark: #3a3a3a;
            --cinnabar-light: #5a5a5a;
            --shadow-color: rgba(0, 0, 0, 0.15);
            --overlay-color: rgba(0, 0, 0, 0.3);
            --btn-text: white;
            --modal-bg: rgba(248, 248, 248, 0.95);
            --dark-mode-icon: "☾";
            --light-mode-icon: "☀";
            --current-mode: var(--dark-mode-icon);
            --message-bubble-bg: rgba(255, 255, 255, 0.85);
            --message-bubble-text: #1a1a1a;
            --message-bubble-user-bg: rgba(112, 112, 112, 0.2);
            --message-bubble-shadow: rgba(0, 0, 0, 0.1);
        }
        /* 暗色模式变量 - 黑白风格 */
        [data-theme="dark"] {
            --bg-color: #121212;
            --text-color: #e6e6e6;
            --accent-color: #9e9e9e;
            --scroll-color: #2e2e2e;
            --ink-dark: #e6e6e6;
            --ink-medium: #b3b3b3;
            --ink-light: #858585;
            --paper-dark: #333333;
            --paper-light: #484848;
            --mountain-dark: #505050;
            --mountain-light: #6c6c6c;
            --water-dark: #363636;
            --water-light: #4e4e4e;
            --jade-dark: #2d2d2d;
            --jade-light: #494949;
            --cinnabar-dark: #3d3d3d;
            --cinnabar-light: #5d5d5d;
            --shadow-color: rgba(0, 0, 0, 0.35);
            --overlay-color: rgba(0, 0, 0, 0.6);
            --btn-text: #e6e6e6;
            --modal-bg: rgba(18, 18, 18, 0.95);
            --current-mode: var(--light-mode-icon);
            --message-bubble-bg: rgba(51, 51, 51, 0.85);
            --message-bubble-text: #e6e6e6;
            --message-bubble-user-bg: rgba(108, 108, 108, 0.4);
            --message-bubble-shadow: rgba(0, 0, 0, 0.2);
        }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "STKaiti", "KaiTi", serif;
            transition: background-color 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                        color 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                        border-color 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                        box-shadow 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                        transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        body {
            background-color: var(--bg-color);
            color: var(--text-color);
            display: flex;
            flex-direction: column;
            align-items: center;
            min-height: 100vh;
            padding: 2rem;
            overflow-x: hidden;
            position: relative;
            animation: fadeIn 1.5s ease-out;
            transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        /* 隐藏滚动条 */
        ::-webkit-scrollbar {
            display: none;
        }
        /* 背景图案样式 - 黑白风格山峦 */
        body::before {
            content: "";
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url("data:image/svg+xml,%3Csvg width='1200' height='800' viewBox='0 0 1200 800' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,600 Q150,500 300,570 Q450,640 600,580 Q750,520 900,600 Q1050,680 1200,620 L1200,800 L0,800 Z' fill='%23404040' fill-opacity='0.05'/%3E%3Cpath d='M0,650 Q200,620 400,650 Q600,680 800,640 Q1000,600 1200,650 L1200,800 L0,800 Z' fill='%23404040' fill-opacity='0.07'/%3E%3Cpath d='M0,700 Q150,680 300,700 Q450,720 600,700 Q750,680 900,710 Q1050,740 1200,720 L1200,800 L0,800 Z' fill='%23404040' fill-opacity='0.09'/%3E%3C/svg%3E");
            background-position: bottom;
            background-repeat: no-repeat;
            background-size: cover;
            z-index: -2;
            opacity: 0.8;
            transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        /* 工具栏 */
        .toolbar {
            position: fixed;
            top: 20px;
            right: 20px;
            display: flex;
            gap: 15px;
            z-index: 100;
        }
        .tool-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--mountain-light);
            color: var(--btn-text);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 3px 12px var(--shadow-color);
            border: none;
            font-size: 1.2rem;
            transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            position: relative;
            overflow: hidden;
        }
        .tool-btn:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 6px 16px var(--shadow-color);
        }
        /* 太极图样式 - 黑白风格 */
        .theme-switch {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: none;
            box-shadow: none;
            position: relative;
            cursor: pointer;
            transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
            border: none;
        }
        .theme-switch::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='19' fill='none' stroke='%23404040' stroke-width='1'/%3E%3Cpath d='M20,1 A19,19 0 0,1 20,39 A9.5,9.5 0 0,1 20,20 A9.5,9.5 0 0,0 20,1' fill='%23f8f8f8'/%3E%3Cpath d='M20,1 A19,19 0 0,0 20,39 A9.5,9.5 0 0,0 20,20 A9.5,9.5 0 0,1 20,1' fill='%23121212'/%3E%3Ccircle cx='20' cy='10' r='2.5' fill='%23121212'/%3E%3Ccircle cx='20' cy='30' r='2.5' fill='%23f8f8f8'/%3E%3C/svg%3E");
            background-size: contain;
            transition: all 0.6s ease;
        }
        [data-theme="dark"] .theme-switch::before {
            background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='19' fill='none' stroke='%239e9e9e' stroke-width='1'/%3E%3Cpath d='M20,1 A19,19 0 0,1 20,39 A9.5,9.5 0 0,1 20,20 A9.5,9.5 0 0,0 20,1' fill='%232e2e2e'/%3E%3Cpath d='M20,1 A19,19 0 0,0 20,39 A9.5,9.5 0 0,0 20,20 A9.5,9.5 0 0,1 20,1' fill='%23e6e6e6'/%3E%3Ccircle cx='20' cy='10' r='2.5' fill='%23e6e6e6'/%3E%3Ccircle cx='20' cy='30' r='2.5' fill='%232e2e2e'/%3E%3C/svg%3E");
        }
        @keyframes rotate360 {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        .theme-switch.rotating {
            animation: rotate360 0.8s ease-in-out;
        }

/* 为设置弹窗新增的表单组样式 */
.settings-form .form-group {
    margin-bottom: 0.2rem;
}

.settings-form .settings-label {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-weight: 500;
}

.settings-form .settings-input {
    width: 100%;
    padding: 0.7rem;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.settings-form .settings-input:focus {
    outline: none;
    border-color: var(--jade-dark);
    box-shadow: 0 0 0 2px rgba(90, 128, 114, 0.2);
}

/* 添加水墨晕染效果 - 全页面覆盖 */
.ink-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ink-overlay.active {
    opacity: 1;
}

.ink-ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: radial-gradient(circle, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
    animation: ink-ripple 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.ink-ripple.light {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
}

@keyframes ink-ripple {
    0% {
        transform: scale(0);
        opacity: 0.8;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}




        /* 页面头部 */
        header {
            text-align: center;
            margin-bottom: 2.5rem;
            position: relative;
            width: 100%;
            animation: fadeIn 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
        }
        .title-container {
            position: relative;
            display: inline-block;
            margin-bottom: 1.5rem;
            overflow: hidden;
        }
        h1 {
            font-size: 4rem;
            letter-spacing: 0.6rem;
            text-shadow: 2px 4px 8px var(--shadow-color);
            margin-bottom: 0.8rem;
            background: linear-gradient(to bottom, var(--ink-dark), var(--ink-medium));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            position: relative;
            padding: 0 2rem;
            transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        .subtitle {
            font-size: 1.5rem;
            color: var(--ink-medium);
            opacity: 0.9;
            margin-bottom: 0.8rem;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.08);
            transition: color 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            position: relative;
        }
        /* 搜索框样式 */
        .search-container {
            display: flex;
            justify-content: center;
            margin-bottom: 2.5rem;
            position: relative;
            max-width: 600px;
            width: 90%;
            margin: 3rem auto;
            animation: fadeIn 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;
        }
        .search-input {
            width: 100%;
            padding: 1.2rem 1.5rem;
            border: none;
            border-bottom: 2px solid var(--mountain-light);
            border-radius: 8px;
            font-size: 1.2rem;
            background: rgba(255, 255, 255, 0.75);
            color: var(--ink-dark);
            transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
        }
        [data-theme="dark"] .search-input {
            background: rgba(35, 35, 35, 0.75);
            color: var(--paper-light);
        }
        .search-input:focus {
            outline: none;
            border-color: var(--accent-color);
            background: rgba(255, 255, 255, 0.9);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12), 0 4px 6px rgba(0, 0, 0, 0.06);
            transform: translateY(-3px);
        }
        [data-theme="dark"] .search-input:focus {
            background: rgba(40, 40, 40, 0.9);
        }
        .search-btn {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: var(--mountain-dark);
            font-size: 1.4rem;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }
        .search-btn:hover {
            background: rgba(64, 64, 64, 0.1);
            transform: translateY(-50%) scale(1.1);
            color: var(--accent-color);
        }
        .search-icon {
            font-style: normal;
            font-weight: bold;
            transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        .search-btn:hover .search-icon {
            transform: scale(1.1);
        }
        /* 山水画容器 - 黑白风格 */
        .landscape-container {
            width: 90%;
            max-width: 900px;
            height: 280px;
            margin: 0 auto 3.5rem;
            position: relative;
            overflow: hidden;
            border-radius: 8px;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
            transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
            animation: fadeIn 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s both;
            filter: grayscale(100%); /* 添加灰度滤镜，实现黑白效果 */
        }
        .landscape-container:hover {
            transform: translateY(-8px);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
        }
        .landscape {
            width: 100%;
            height: 100%;
            background-image: url('https://s21.ax1x.com/2025/03/20/pEwq8HA.png');
            background-size: cover;
            background-position: center;
            position: relative;
            transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        .landscape::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.15);
            transition: background 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        .landscape::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at 70% 20%, rgba(255,255,255,0.12), transparent 65%);
            z-index: 1;
            opacity: 0;
            transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        .landscape-container:hover .landscape::before {
            opacity: 1;
        }
        [data-theme="dark"] .landscape::after {
            background: rgba(0, 0, 0, 0.4);
        }
        .landscape-quote {
            position: absolute;
            bottom: 40px;
            right: 40px;
            color: white;
            font-size: 1.6rem;
            text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.9);
            z-index: 2;
            writing-mode: vertical-rl;
            line-height: 1.8;
            letter-spacing: 2px;
            opacity: 0.9;
            transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        .landscape-container:hover .landscape-quote {
            transform: translateX(-5px);
            opacity: 1;
        }
        /* 建议问题区域 */
        .suggested-questions {
            width: 90%;
            max-width: 700px;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 1.2rem;
            margin: 2.5rem auto;
            animation: fadeIn 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.9s both;
        }
        .question-tag {
            padding: 0.7rem 1.4rem;
            background: rgba(64, 64, 64, 0.08);
            border: 1px solid rgba(64, 64, 64, 0.2);
            border-radius: 50px;
            font-size: 1.05rem;
            cursor: pointer;
            transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            color: var(--ink-dark);
            position: relative;
            overflow: hidden;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        }
        .question-tag::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 1px;
            background-color: var(--accent-color);
            transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        .question-tag:hover::after {
            width: 100%;
        }
        .question-tag:hover {
            background: rgba(64, 64, 64, 0.15);
            transform: translateY(-3px);
            box-shadow: 0 5px 10px rgba(0, 0, 0, 0.08);
            color: var(--accent-color);
        }
        /* 每日智慧 */
        .daily-wisdom {
            width: 90%;
            max-width: 700px;
            margin: 3.5rem auto;
            padding: 2.5rem;
            background: rgba(255, 255, 255, 0.75);
            border-radius: 8px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
            position: relative;
            text-align: center;
            transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(64, 64, 64, 0.08);
            animation: fadeIn 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.1s both;
        }
        .daily-wisdom::before {
            content: """;
            position: absolute;
            top: 10px;
            left: 15px;
            font-size: 5rem;
            color: var(--mountain-light);
            opacity: 0.15;
            line-height: 1;
        }
        .daily-wisdom::after {
            content: """;
            position: absolute;
            bottom: 10px;
            right: 15px;
            font-size: 5rem;
            color: var(--mountain-light);
            opacity: 0.15;
            line-height: 0;
        }
        .daily-wisdom:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
        }
        [data-theme="dark"] .daily-wisdom {
            background: rgba(18, 18, 18, 0.75);
        }
        .wisdom-quote {
            font-size: 1.5rem;
            line-height: 1.8;
            color: var(--ink-dark);
            margin-bottom: 1.5rem;
            position: relative;
            text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
        }
        .wisdom-source {
            font-size: 1.1rem;
            color: var(--ink-medium);
            font-style: italic;
            opacity: 0.85;
        }
        .refresh-wisdom {
            margin-top: 1.8rem;
            background: none;
            border: 1px solid var(--mountain-light);
            color: var(--mountain-dark);
            padding: 0.6rem 1.4rem;
            border-radius: 30px;
            cursor: pointer;
            transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            font-size: 1rem;
            position: relative;
            overflow: hidden;
        }
        .refresh-wisdom::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(64, 64, 64, 0);
            transition: background 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            z-index: -1;
        }
        .refresh-wisdom:hover {
            color: var(--accent-color);
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
            border-color: var(--accent-color);
        }
        .refresh-wisdom:hover::after {
            background: rgba(64, 64, 64, 0.05);
        }
        /* 类别探索区域 */
        .explore-categories {
            width: 90%;
            max-width: 900px;
            margin: 4rem auto;
            animation: fadeIn 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.3s both;
        }
        .section-title {
            font-size: 2rem;
            color: var(--ink-dark);
            margin-bottom: 2rem;
            text-align: center;
            position: relative;
        }
        .section-title::after {
            content: "";
            position: absolute;
            bottom: -12px;
            left: 50%;
            transform: translateX(-50%);
            width: 120px;
            height: 2px;
            background: var(--mountain-light);
            opacity: 0.5;
        }
        .categories-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 1.8rem;
        }
        .category-card {
            width: 180px;
            height: 120px;
            background-image: linear-gradient(135deg, rgba(64, 64, 64, 0.8), rgba(80, 80, 80, 0.8));
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.3rem;
            cursor: pointer;
            transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            position: relative;
            overflow: hidden;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        }
        .category-card::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url("data:image/svg+xml,%3Csvg width='180' height='120' viewBox='0 0 180 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 L180,120 M0,40 L180,160 M0,80 L180,200' stroke='white' stroke-width='0.5' stroke-opacity='0.07'/%3E%3C/svg%3E");
            opacity: 0.5;
            z-index: 0;
            transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        .category-card:hover {
            transform: translateY(-8px) scale(1.03);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
            background-image: linear-gradient(135deg, rgba(64, 64, 64, 0.9), rgba(80, 80, 80, 0.9));
        }
        .category-card:hover::before {
            opacity: 0.7;
        }
        .category-name {
            position: relative;
            z-index: 1;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            padding-bottom: 3px;
            border-bottom: 1px solid rgba(255, 255, 255, 0);
        }
        .category-card:hover .category-name {
            transform: scale(1.05);
            letter-spacing: 2px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        }
        /* 最近对话记录 */
        .recent-conversations {
            width: 90%;
            max-width: 900px;
            margin: 4rem auto;
            animation: fadeIn 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.5s both;
        }
        .conversation-cards {
            display: flex;
            flex-wrap: wrap;
            gap: 2rem;
            justify-content: center;
        }
        .conversation-card {
            width: 280px;
            background: rgba(255, 255, 255, 0.8);
            border-radius: 8px;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
            padding: 1.8rem;
            cursor: pointer;
            transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(64, 64, 64, 0.05);
        }
        [data-theme="dark"] .conversation-card {
            background: rgba(18, 18, 18, 0.8);
        }
        /* 添加竹简纹理 */
        .conversation-card::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url("data:image/svg+xml,%3Csvg width='280' height='200' viewBox='0 0 280 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 L0,200 M280,0 L280,200' stroke='%23404040' stroke-width='1' stroke-opacity='0.03'/%3E%3Cpath d='M20,0 L20,200 M40,0 L40,200 M60,0 L60,200 M80,0 L80,200 M100,0 L100,200 M120,0 L120,200 M140,0 L140,200 M160,0 L160,200 M180,0 L180,200 M200,0 L200,200 M220,0 L220,200 M240,0 L240,200 M260,0 L260,200' stroke='%23404040' stroke-width='0.5' stroke-opacity='0.03'/%3E%3C/svg%3E");
            opacity: 0.6;
            z-index: 0;
        }
        .conversation-card:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
        }
        .conversation-date {
            font-size: 0.85rem;
            color: var(--ink-medium);
            margin-bottom: 0.7rem;
            opacity: 0.8;
            position: relative;
            z-index: 1;
        }
        .conversation-preview {
            font-size: 1rem;
            color: var(--ink-dark);
            line-height: 1.6;
            display: -webkit-box;
            -webkit-line-clamp: 4;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            position: relative;
            z-index: 1;
        }
        .continue-btn {
            position: absolute;
            bottom: 15px;
            right: 15px;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            background: var(--mountain-light);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            opacity: 0;
            transform: scale(0.8);
            transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
            z-index: 2;
        }
        .conversation-card:hover .continue-btn {
            opacity: 1;
            transform: scale(1);
        }
        /* 老子对话框 */
        .chat-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: var(--overlay-color);
            z-index: 1000;
            justify-content: center;
            align-items: center;
            transition: background-color 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
        }
        .chat-content {
            background: var(--modal-bg);
            width: 90%;
            max-width: 850px;
            height: 80vh;
            border-radius: 12px;
            display: flex;
            flex-direction: column;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
            overflow: hidden;
            transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            border: 1px solid rgba(64, 64, 64, 0.2);
            animation: chat-appear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        @keyframes chat-appear {
            from { opacity: 0; transform: scale(0.9) translateY(20px); }
            to { opacity: 1; transform: scale(1) translateY(0); }
        }
        .chat-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.2rem 1.5rem;
            border-bottom: 1px solid rgba(64, 64, 64, 0.15);
            background: rgba(64, 64, 64, 0.08);
            position: relative;
        }
        .chat-header::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background-image: url("data:image/svg+xml,%3Csvg width='850' height='5' viewBox='0 0 850 5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,2.5 Q212,0 425,2.5 T850,2.5' stroke='%23404040' stroke-width='0.5' fill='none' stroke-opacity='0.2' stroke-dasharray='1 3'/%3E%3C/svg%3E");
            background-size: 100% 100%;
            opacity: 0.7;
        }
        .chat-title {
            display: flex;
            align-items: center;
            gap: 1.2rem;
        }
        .laozi-avatar {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--mountain-light);
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
            transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            filter: grayscale(100%); /* 添加灰度滤镜，实现黑白效果 */
        }
        .chat-title h3 {
            font-size: 1.4rem;
            color: var(--ink-dark);
            letter-spacing: 1px;
        }
        /* 对话框控制按钮样式 */
        .chat-controls {
            display: flex;
            gap: 12px;
            margin-right: 10px;
        }
        .chat-control-btn, .close-chat-btn {
            font-size: 1.2rem;
            color: var(--mountain-dark);
            background: none;
            border: 1px solid rgba(64, 64, 64, 0.2);
            cursor: pointer;
            width: 38px;
            height: 38px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            position: relative;
            overflow: hidden;
        }
        .chat-control-btn::before, .close-chat-btn::before {
            content: "";
            position: absolute;
            width: 100%;
            height: 100%;
            background-image: url("data:image/svg+xml,%3Csvg width='38' height='38' viewBox='0 0 38 38' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='19' cy='19' r='17' fill='none' stroke='%23404040' stroke-width='0.5' stroke-opacity='0.2' stroke-dasharray='2 2'/%3E%3C/svg%3E");
            opacity: 0.5;
            z-index: -1;
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        .chat-control-btn:hover, .close-chat-btn:hover {
            background: rgba(64, 64, 64, 0.08);
            transform: translateY(-3px);
            box-shadow: 0 5px 10px rgba(0, 0, 0, 0.08);
            color: var(--accent-color);
            border-color: var(--accent-color);
        }
        .chat-control-btn:hover::before, .close-chat-btn:hover::before {
            transform: scale(1.1);
            opacity: 0.3;
        }
        /* 设置按钮道家风格 */
        .settings-btn::after {
            content: "枢";
            font-family: "Ma Shan Zheng", serif;
        }
        /* 复制按钮道家风格 */
        .copy-chat-btn::after {
            content: "复";
            font-family: "Ma Shan Zheng", serif;
        }
        /* 导出按钮道家风格 */
        .export-chat-btn::after {
            content: "存";
            font-family: "Ma Shan Zheng", serif;
        }
        /* 清空按钮道家风格 */
        .clear-chat-btn::after {
            content: "涤";
            font-family: "Ma Shan Zheng", serif;
        }
        /* 关闭按钮道家风格 */
        .close-chat-btn::after {
            content: "和";
            font-family: "Ma Shan Zheng", serif;
        }
        .chat-body {
            flex: 1;
            overflow-y: auto;
            padding: 1.8rem;
            background-color: var(--bg-color);
            background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1,1 L119,1 L119,119 L1,119 Z' stroke='%23404040' stroke-width='0.5' fill='none' opacity='0.04' stroke-dasharray='2 10'/%3E%3C/svg%3E");
            scroll-behavior: smooth;
        }
        .chat-messages {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }
        .chat-message {
            display: flex;
            gap: 1rem;
            max-width: 80%;
            animation: message-appear 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        @keyframes message-appear {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .message-avatar {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            object-fit: cover;
            border: 1px solid rgba(64, 64, 64, 0.2);
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
            filter: grayscale(100%); /* 添加灰度滤镜，实现黑白效果 */
        }
        .message-bubble {
            position: relative;
            background: var(--message-bubble-bg);
            color: var(--message-bubble-text);
            padding: 1.4rem 1.6rem;
            border-radius: 2px 12px 12px 12px;
            box-shadow: 0 5px 12px var(--message-bubble-shadow);
            font-size: 1.15rem;
            line-height: 1.7;
            border-left: 2px solid rgba(64, 64, 64, 0.3);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
        }
        .message-bubble::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 L100,100 M0,50 L100,150 M0,100 L100,200' stroke='%23404040' stroke-width='0.3' stroke-opacity='0.04'/%3E%3C/svg%3E");
            pointer-events: none;
            z-index: -1;
        }
        .laozi {
            align-self: flex-start;
        }
        .user {
            align-self: flex-end;
            flex-direction: row-reverse;
        }
        .user .message-bubble {
            background: var(--message-bubble-user-bg);
            border-radius: 12px 2px 12px 12px;
            border-left: none;
            border-right: 2px solid rgba(64, 64, 64, 0.3);
        }
        .chat-footer {
            display: flex;
            gap: 0.8rem;
            padding: 1.2rem;
            border-top: 1px solid rgba(64, 64, 64, 0.15);
            background: rgba(64, 64, 64, 0.05);
            position: relative;
        }
        .chat-footer::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background-image: url("data:image/svg+xml,%3Csvg width='850' height='5' viewBox='0 0 850 5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,2.5 Q212,5 425,2.5 T850,2.5' stroke='%23404040' stroke-width='0.5' fill='none' stroke-opacity='0.2' stroke-dasharray='1 3'/%3E%3C/svg%3E");
            background-size: 100% 100%;
            opacity: 0.7;
        }
        .chat-input {
            flex: 1;
            padding: 1rem 1.2rem;
            border: 1px solid var(--mountain-light);
            border-radius: 6px;
            font-size: 1.05rem;
            background: rgba(255, 255, 255, 0.8);
            transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
        }
        [data-theme="dark"] .chat-input {
            background: rgba(18, 18, 18, 0.8);
            color: var(--paper-light);
        }
        .chat-input:focus {
            outline: none;
            border-color: var(--accent-color);
            box-shadow: 0 8px 15px rgba(64, 64, 64, 0.15);
            transform: translateY(-2px);
        }
        .send-btn {
            padding: 1rem 1.6rem;
            background: linear-gradient(135deg, var(--mountain-light), var(--mountain-dark));
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            font-size: 1.05rem;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            position: relative;
            overflow: hidden;
        }
        .send-btn::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0);
            transition: background 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            z-index: 0;
        }
        .send-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
        }
        .send-btn:hover::after {
            background: rgba(255, 255, 255, 0.1);
        }
        /* 打字指示器 */
        .typing-indicator {
            display: inline-block;
            margin-left: 8px;
        }
        .typing-indicator span {
            display: inline-block;
            width: 6px;
            height: 6px;
            background-color: var(--ink-medium);
            border-radius: 50%;
            margin: 0 2px;
            animation: typing 1.8s infinite cubic-bezier(0.455, 0.03, 0.515, 0.955);
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }
        .typing-indicator span:nth-child(1) {
            animation-delay: 0s;
        }
        .typing-indicator span:nth-child(2) {
            animation-delay: 0.2s;
        }
        .typing-indicator span:nth-child(3) {
            animation-delay: 0.4s;
        }
        /* 页脚样式 */
        footer {
            width: 100%;
            text-align: center;
            padding: 2.5rem 0;
            margin-top: 3rem;
            color: var(--ink-medium);
            opacity: 0.9;
            border-top: 1px solid rgba(64, 64, 64, 0.1);
            position: relative;
            background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,10 Q25,5 50,10 T100,10' stroke='%23404040' stroke-width='0.5' fill='none' stroke-opacity='0.1'/%3E%3C/svg%3E");
            background-repeat: repeat-x;
            background-size: 100px 20px;
            background-position: top;
            padding-top: 30px;
            animation: fadeIn 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.7s both;
        }
        .footer-links {
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin: 1.2rem 0;
        }
        .footer-link {
            color: var(--mountain-light);
            text-decoration: none;
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            position: relative;
            padding-bottom: 3px;
        }
        .footer-link::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 1px;
            background-color: var(--accent-color);
            transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        .footer-link:hover {
            color: var(--accent-color);
        }
        .footer-link:hover::after {
            width: 100%;
        }
        /* 动画效果 */
        @keyframes typing {
            0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
            50% { transform: translateY(-5px) scale(1.2); opacity: 1; }
        }
        @keyframes rotate-slow {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        @keyframes float-cloud {
            from { transform: translateX(-15vw); }
            to { transform: translateX(115vw); }
        }
      
        /* 新增：太极圆形元素 */
        .taiji-element {
            position: fixed;
            width: 100px;
            height: 100px;
            opacity: 0.08;
            z-index: -1;
            background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='49' fill='none' stroke='%23404040' stroke-width='1'/%3E%3Cpath d='M50,1 A49,49 0 0,1 50,99 A24.5,24.5 0 0,1 50,50 A24.5,24.5 0 0,0 50,1' fill='%23404040' fill-opacity='0.3'/%3E%3Cpath d='M50,1 A49,49 0 0,0 50,99 A24.5,24.5 0 0,0 50,50 A24.5,24.5 0 0,1 50,1' fill='%23404040' fill-opacity='0.1'/%3E%3Ccircle cx='50' cy='25' r='5' fill='%23404040' fill-opacity='0.1'/%3E%3Ccircle cx='50' cy='75' r='5' fill='%23404040' fill-opacity='0.3'/%3E%3C/svg%3E");
            pointer-events: none;
            animation: rotate-slow 60s linear infinite;
        }
        .taiji-element-1 {
            top: 30%;
            left: 5%;
        }
        .taiji-element-2 {
            bottom: 15%;
            right: 8%;
            animation-direction: reverse;
        }
        @keyframes float-slow {
            0% { transform: translate(0, 0) rotate(0deg); }
            33% { transform: translate(15px, -20px) rotate(2deg); }
            66% { transform: translate(-10px, 15px) rotate(-1deg); }
            100% { transform: translate(5px, -10px) rotate(1deg); }
        }
        
        /* 章节解析图标入口 */
    .chapter-analyze-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
        
     .chapter-analyze-btn:hover {
    transform: scale(1.1); /* 修改悬停效果，删除translateY */
}

.chapter-analyze-btn svg {
    width: 42px;
    height: 42px;
    fill: #3c291c; 
}
        /* 章节解析面板 */
        .analyze-panel {
            display: none;
            position: fixed;
            bottom: 30px;
            left: 30px;
            width: 300px;
            height: 400px;
            border-radius: 12px;
            background: var(--mountain-light);
            color: white;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            z-index: 90;
            padding: 1rem;
            overflow-y: auto;
            max-height: 70vh;
            transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        
        .analyze-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            padding-bottom: 0.5rem;
            position: sticky;
            top: 0;
            background: var(--mountain-light);
            z-index: 2;
        }
        
        .analyze-header h3 {
            margin: 0;
            font-size: 1.2rem;
        }
        
        .close-analyze {
            background: none;
            border: none;
            color: white;
            cursor: pointer;
            font-size: 1.2rem;
        }
        
        .analyze-content {
            font-size: 0.9rem;
            line-height: 1.6;
            padding-top: 0.5rem;
        }
        
        /* 新增样式：章节解析模块不同段落的样式 */
        .analyze-content h3 {
            font-size: 1.3rem;
            margin-bottom: 1rem;
            border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
            padding-bottom: 0.5rem;
            color: white;
            font-weight: bold;
        }
        
        /* 原文段落样式 */
        .analyze-content div {
            font-family: "ZCOOL XiaoWei", serif;
            font-size: 1rem;
            line-height: 1.8;
            margin-bottom: 1.2rem;
            text-indent: 0;
            letter-spacing: 1px;
        }
        
        /* 解释段落样式 */
        .analyze-content p {
            margin-bottom: 1rem;
            text-indent: 2em;
        }
        
        /* 段落类型1 - 译文 */
        .analyze-content p:nth-of-type(1) {
            font-family: "STKaiti", "KaiTi", serif;
            font-size: 0.95rem;
            border-left: 3px solid rgba(255, 255, 255, 0.5);
            padding-left: 10px;
        }
        
        /* 段落类型2 - 注解 */
        .analyze-content p:nth-of-type(2) {
            font-family: "ZCOOL XiaoWei", serif;
            font-style: italic;
            font-size: 0.9rem;
        }
        
        /* 段落类型3 - 哲理 */
        .analyze-content p:nth-of-type(3) {
            font-family: "Ma Shan Zheng", serif;
            font-size: 1.05rem;
            letter-spacing: 1px;
        }
        
        /* 段落类型4及以后 - 通用解释 */
        .analyze-content p:nth-of-type(n+4) {
            font-size: 0.9rem;
            line-height: 1.7;
            color: rgba(255, 255, 255, 0.9);
        }
        
        /* 注解功能样式 */
        .annotation-marker {
            display: inline-block;
            width: 18px;
            height: 18px;
            background: var(--jade-light);
            color: white;
            border-radius: 50%;
            text-align: center;
            line-height: 18px;
            font-size: 0.7rem;
            margin-left: 4px;
            cursor: pointer;
            vertical-align: super;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
            transition: all 0.3s ease;
        }
        
        .annotation-marker:hover {
            transform: scale(1.2);
            box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
        }
        
        .annotation-tooltip {
            position: absolute;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 6px;
            padding: 0.8rem 1rem;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
            max-width: 250px;
            z-index: 100;
            font-size: 0.9rem;
            line-height: 1.6;
            color: var(--ink-dark);
            display: none;
            border-left: 3px solid var(--jade-dark);
        }
        
        [data-theme="dark"] .annotation-tooltip {
            background: rgba(18, 18, 18, 0.95);
            color: var(--paper-light);
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            h1 {
                font-size: 3rem;
            }
            .subtitle {
                font-size: 1.2rem;
            }
            .landscape-container {
                height: 220px;
            }
            .landscape-quote {
                font-size: 1.3rem;
                right: 20px;
                bottom: 20px;
            }
            .suggested-questions {
                flex-direction: column;
                align-items: center;
            }
            .question-tag {
                width: 100%;
                text-align: center;
            }
            .conversation-card {
                width: 100%;
            }
            .category-card {
                width: 150px;
                height: 100px;
            }
            .wisdom-quote {
                font-size: 1.3rem;
            }
            .chat-content {
                width: 95%;
                height: 90vh;
            }
            .taiji-element {
                display: none;
            }
            .analyze-panel {
                width: 90%;
                left: 5%;
                right: 5%;
            }
        }
        /* 设置模态框样式 */
        .settings-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: var(--overlay-color);
            z-index: 1200;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
        }
        .settings-content {
            background: var(--modal-bg);
            width: 90%;
            max-width: 500px;
            border-radius: 12px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
            overflow: hidden;
            animation: modal-appear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
            border: 1px solid rgba(64, 64, 64, 0.15);
        }
        @keyframes modal-appear {
            from { opacity: 0; transform: scale(0.9) translateY(20px); }
            to { opacity: 1; transform: scale(1) translateY(0); }
        }
        .settings-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.2rem 1.5rem;
            border-bottom: 1px solid rgba(64, 64, 64, 0.15);
            background: rgba(64, 64, 64, 0.08);
        }
        .settings-header h3 {
            font-size: 1.6rem;
            color: var(--ink-dark);
            margin: 0;
        }
        .close-settings {
            background: none;
            border: none;
            font-size: 1.8rem;
            color: var(--ink-medium);
            cursor: pointer;
            transition: color 0.3s;
        }
        .close-settings:hover {
            color: var(--accent-color);
        }
        .settings-body {
            padding: 2rem;
        }
        .settings-form {
            display: flex;
            flex-direction: column;
            gap: 0.8rem;
        }
        .settings-label {
            font-size: 1.2rem;
            color: var(--ink-dark);
            margin-bottom: 0.5rem;
        }
        .settings-input {
            width: 100%;
            padding: 1rem;
            border: 1px solid var(--mountain-light);
            border-radius: 6px;
            font-size: 1rem;
            background: rgba(255, 255, 255, 0.8);
            color: var(--ink-dark);
            transition: all 0.4s;
        }
        [data-theme="dark"] .settings-input {
            background: rgba(18, 18, 18, 0.8);
            color: var(--paper-light);
        }
        .settings-input:focus {
            outline: none;
            border-color: var(--accent-color);
            box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        }
        .settings-note {
            font-size: 0.9rem;
            color: var(--ink-medium);
            margin-top: 0.5rem;
        }
        .settings-buttons {
            display: flex;
            justify-content: flex-end;
            gap: 1rem;
            margin-top: 1.5rem;
        }
        .settings-btn-save,
        .settings-btn-cancel {
            padding: 0.8rem 1.5rem;
            border-radius: 6px;
            cursor: pointer;
            font-size: 1rem;
            transition: all 0.4s;
        }
        .settings-btn-save {
            background: linear-gradient(135deg, var(--mountain-light), var(--mountain-dark));
            color: white;
            border: none;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        .settings-btn-save:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        }
        .settings-btn-cancel {
            background: none;
            border: 1px solid var(--mountain-light);
            color: var(--ink-medium);
        }
        .settings-btn-cancel:hover {
            background: rgba(64, 64, 64, 0.08);
            color: var(--accent-color);
        }
        /* 老子生平弹窗样式 */
        .laozi-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: var(--overlay-color);
            z-index: 1100;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
        }
        .laozi-modal-content {
            background: var(--modal-bg);
            width: 90%;
            max-width: 700px;
            border-radius: 8px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
            overflow: hidden;
            animation: modal-appear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
            border: 1px solid rgba(64, 64, 64, 0.15);
        }
        .laozi-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.2rem 1.5rem;
            border-bottom: 1px solid rgba(64, 64, 64, 0.15);
            background: rgba(64, 64, 64, 0.08);
        }
        .laozi-modal-header h3 {
            font-size: 1.6rem;
            color: var(--ink-dark);
            margin: 0;
        }
        .close-laozi-modal {
            background: none;
            border: none;
            font-size: 1.8rem;
            color: var(--ink-medium);
            cursor: pointer;
            transition: color 0.3s;
        }
        .close-laozi-modal:hover {
            color: var(--accent-color);
        }
        .laozi-modal-body {
            padding: 2rem;
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            max-height: 60vh;
            overflow-y: auto;
        }
        .laozi-portrait {
            width: 120px;
            height: 120px;
            border-radius: 8px;
            object-fit: cover;
            border: 2px solid var(--mountain-light);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            float: left;
            margin: 0 20px 10px 0;
            filter: grayscale(100%); /* 添加灰度滤镜，实现黑白效果 */
        }
        .laozi-bio p {
            line-height: 1.8;
            margin-bottom: 1rem;
            text-align: justify;
            color: var(--ink-dark);
        }
        .laozi-modal-footer {
            padding: 1.5rem;
            text-align: center;
            border-top: 1px solid rgba(64, 64, 64, 0.1);
            background: rgba(64, 64, 64, 0.03);
        }
        .laozi-quote {
            font-style: italic;
            color: var(--ink-medium);
        }
/* 增强移动端适配 */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2.8rem;
        letter-spacing: 0.3rem;
    }
    
    .toolbar {
        top: 10px;
        right: 10px;
    }
    
    .search-container {
        width: 95%;
        margin: 2rem auto;
    }
    
    .chat-message {
        max-width: 90%;
    }
    
    .chat-modal {
        align-items: flex-start;
    }
    
    .chat-content {
        width: 100%;
        height: 95vh;
        max-width: none;
        border-radius: 8px;
    }
    
    .settings-content, .laozi-modal-content {
        width: 95%;
    }
}

/* 小屏手机适配 */
@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
        letter-spacing: 0.2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .landscape-container {
        height: 150px;
    }
    
    .message-avatar {
        width: 36px;
        height: 36px;
    }
    
    .chat-title h3 {
        font-size: 1.2rem;
    }
    
    .chat-controls {
        gap: 6px;
    }
    
    .chat-control-btn, .close-chat-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .message-bubble {
        padding: 0.9rem 1.1rem;
        font-size: 1rem;
    }
    
    .chat-header, .chat-footer {
        padding: 0.8rem;
    }
    
    .chat-body {
        padding: 1rem;
    }
    
    .send-btn {
        padding: 0.8rem 1rem;
    }
    
    .laozi-portrait {
        width: 80px;
        height: 80px;
        float: none;
        margin: 0 auto 15px;
        display: block;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.8rem;
    }
}

/* 解决iOS底部安全区域问题 */
@supports (-webkit-touch-callout: none) {
    .chat-footer {
        padding-bottom: calc(0.8rem + env(safe-area-inset-bottom));
    }
}

/* 优化移动端交互体验 */
@media (max-width: 768px) {
    .question-tag, .category-card, .refresh-wisdom, .send-btn {
        min-height: 44px;
    }
    
    .search-btn, .tool-btn, .chat-control-btn, .close-chat-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .chapter-analyze-btn {
        bottom: 15px;
        left: 15px;
        width: 38px;
        height: 38px;
    }
    
    .analyze-panel {
        width: 90%;
        left: 5%;
        height: 50vh;
        bottom: 20px;
    }
    
    /* 调整聊天输入框和按钮在移动端的布局 */
    .chat-input {
        padding: 0.8rem;
        font-size: 1rem;
    }
    
    /* 优化类别卡片在移动端的显示 */
    .categories-container {
        gap: 1rem;
    }
    
    .category-card {
        width: 120px;
        height: 90px;
    }
    
    .category-name {
        font-size: 1.1rem;
    }
}

/* 针对超小屏幕的额外优化 */
@media (max-width: 360px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .chat-controls {
        gap: 4px;
    }
    
    .category-card {
        width: 100px;
        height: 80px;
    }
    
    .wisdom-quote {
        font-size: 1rem;
    }
}
