 :root {
            /* 亮色模式变量 - 调整为水墨山水画风格 */
            --bg-color: #f7f4eb;
            --text-color: #2c3e50;
            --accent-color: #3a5169;
            --scroll-color: #e8e2d4;
            --ink-dark: #1c2836;
            --ink-medium: #3a5169;
            --ink-light: #b0bec5;
            --paper-dark: #d7ccc8;
            --paper-light: #f5f5f5;
            --mountain-dark: #3a4a5c;
            --mountain-light: #768fa3;
            --water-dark: #456072;
            --water-light: #7895a8;
            --jade-dark: #3a614c;
            --jade-light: #5d8772;
            --cinnabar-dark: #9c3a34;
            --cinnabar-light: #c25a50;
            --shadow-color: rgba(0, 0, 0, 0.15);
            --overlay-color: rgba(0, 0, 0, 0.3);
            --btn-text: white;
            --modal-bg: rgba(247, 244, 235, 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: #2c3e50;
            --message-bubble-user-bg: rgba(120, 143, 163, 0.2);
            --message-bubble-shadow: rgba(0, 0, 0, 0.1);
        }
        ::-webkit-scrollbar {
            display: none; /* Chrome, Safari 和 Opera */
        }
        /* 暗色模式变量 - 调整为夜晚山水画风格 */
        [data-theme="dark"] {
            --bg-color: #1d2730;
            --text-color: #d6d0c5;
            --accent-color: #768fa3;
            --scroll-color: #2a394b;
            --ink-dark: #d6d0c5;
            --ink-medium: #b6af9e;
            --ink-light: #8a8478;
            --paper-dark: #2f3e4f;
            --paper-light: #3e4f63;
            --mountain-dark: #3a4a5c;
            --mountain-light: #5a6b7d;
            --water-dark: #2d3f4d;
            --water-light: #465f73;
            --jade-dark: #2e483a;
            --jade-light: #4c6b59;
            --cinnabar-dark: #7a322c;
            --cinnabar-light: #9a5248;
            --shadow-color: rgba(0, 0, 0, 0.35);
            --overlay-color: rgba(0, 0, 0, 0.6);
            --btn-text: #e9e2d0;
            --modal-bg: rgba(35, 45, 55, 0.95);
            --current-mode: var(--light-mode-icon);
            --message-bubble-bg: rgba(47, 62, 79, 0.85);
            --message-bubble-text: #d6d0c5;
            --message-bubble-user-bg: rgba(90, 107, 125, 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);
        }
        /* 水墨山水背景 - 改进为更自然的山峦和溪流 */
       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,450 250,550 Q350,650 450,500 Q550,350 650,450 Q750,550 900,400 Q1050,250 1200,400 L1200,800 L0,800 Z' fill='%233a4a5c' fill-opacity='0.06'/%3E%3Cpath d='M0,650 Q120,600 200,650 Q280,700 400,620 Q520,540 650,600 Q780,660 950,550 Q1120,440 1200,520 L1200,800 L0,800 Z' fill='%233a4a5c' fill-opacity='0.08'/%3E%3Cpath d='M0,700 Q100,680 180,700 Q260,720 350,680 Q440,640 550,670 Q660,700 800,650 Q940,600 1200,700 L1200,800 L0,800 Z' fill='%232d3f4d' fill-opacity='0.1'/%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);
}

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

.settings-form .settings-label {
    display: block; /* 确保标签独占一行 */
    margin-bottom: 0.25rem; /* 标签和输入框之间的间距 */
    color: var(--ink-dark);
    font-weight: 500;
}

/* 统一输入框和下拉菜单的样式 */
.settings-form .settings-input {
    width: 100%;
    padding: 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: var(--input-bg);
    color: var(--ink-dark);
    font-size: 1rem;
    box-sizing: border-box; /* 确保padding不会撑大宽度 */
    transition: border-color 0.3s, box-shadow 0.3s;
}

.settings-form .settings-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(var(--accent-color-rgb), 0.2);
}

        /* 顶部工具栏 */
        .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: 30px;
            height: 30px;
            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='%233a5169' 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='%23f7f4eb'/%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='%231c2836'/%3E%3Ccircle cx='20' cy='10' r='2.5' fill='%231c2836'/%3E%3Ccircle cx='20' cy='30' r='2.5' fill='%23f7f4eb'/%3E%3C/svg%3E");
            background-size: contain;
            transition: all 0.6s ease;
            box-shadow: 0 3px 12px var(--shadow-color);
        }
        [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='%23768fa3' 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='%232a394b'/%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='%23d6d0c5'/%3E%3Ccircle cx='20' cy='10' r='2.5' fill='%23d6d0c5'/%3E%3Ccircle cx='20' cy='30' r='2.5' fill='%232a394b'/%3E%3C/svg%3E");
        }
        /* 删除原来的::after伪元素 */
        .theme-switch::after {
            content: none;
        }
        @keyframes rotate360 {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
.theme-switch.rotating {
    animation: rotate360 0.8s ease-in-out;
}
        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, 45, 55, 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, 50, 60, 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(58, 81, 105, 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;
        }
        .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/17/pEd3WvV.jpg');
            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: 10px;
            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(58, 81, 105, 0.08);
            border: 1px solid rgba(58, 81, 105, 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(58, 81, 105, 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(58, 81, 105, 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(35, 45, 55, 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(58, 81, 105, 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(58, 81, 105, 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(58, 81, 105, 0.8), rgba(58, 74, 92, 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(58, 81, 105, 0.9), rgba(58, 74, 92, 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(58, 81, 105, 0.05);
        }
        [data-theme="dark"] .conversation-card {
            background: rgba(35, 45, 55, 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='%233a5169' 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='%233a5169' 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(58, 81, 105, 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(58, 81, 105, 0.15);
            background: rgba(58, 81, 105, 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='%233a5169' 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;
        }
        .zhuangzi-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);
        }
        .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(58, 81, 105, 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='%233a5169' 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(58, 81, 105, 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='%233a5169' 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(58, 81, 105, 0.2);
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
        }
        .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(58, 81, 105, 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='%233a5169' stroke-width='0.3' stroke-opacity='0.04'/%3E%3C/svg%3E");
            pointer-events: none;
            z-index: -1;
        }
        .zhuangzi {
            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(58, 81, 105, 0.3);
        }
        .chat-footer {
            display: flex;
            gap: 0.8rem;
            padding: 1.2rem;
            border-top: 1px solid rgba(58, 81, 105, 0.15);
            background: rgba(58, 81, 105, 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='%233a5169' 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(35, 45, 55, 0.8);
            color: var(--paper-light);
        }
        .chat-input:focus {
            outline: none;
            border-color: var(--accent-color);
            box-shadow: 0 8px 15px rgba(58, 81, 105, 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(58, 81, 105, 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='%233a5169' 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); }
        }
        /* 漂浮的背景元素 */
        .floating-element {
            position: fixed;
            pointer-events: none;
            z-index: -1;
            opacity: 0.08;
            transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        .floating-element-1 {
            top: 15%;
            left: 8%;
            width: 70px;
            height: 140px;
            background-image: url("data:image/svg+xml,%3Csvg width='70' height='140' viewBox='0 0 70 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M35,10 Q50,40 35,70 Q20,100 35,130' stroke='%233a614c' stroke-width='1.5' fill='none' stroke-opacity='0.8'/%3E%3C/svg%3E");
            animation: float-slow 35s ease-in-out infinite alternate;
        }
        .floating-element-2 {
            bottom: 10%;
            right: 5%;
            width: 90px;
            height: 90px;
            background-image: url("data:image/svg+xml,%3Csvg width='90' height='90' viewBox='0 0 90 90' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='45' cy='45' r='35' fill='none' stroke='%233a5169' stroke-width='1' stroke-opacity='0.8' stroke-dasharray='3 6'/%3E%3C/svg%3E");
            animation: float-slow 30s ease-in-out infinite alternate-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); }
        }
        /* 响应式设计 */
        @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;
            }
            .bagua-decoration, .bagua-decoration-2 {
                width: 60px;
                height: 60px;
                opacity: 0.08;
            }
            .cloud-decoration, .cloud-decoration-2,
            .bamboo-decoration, .bamboo-decoration-2 {
                display: none;
            }
        }
        
        /* 设置模态框样式 */
        .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(58, 81, 105, 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(58, 81, 105, 0.15);
            background: rgba(58, 81, 105, 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: 1.5rem;
        }
        
        .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(35, 45, 55, 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(58, 81, 105, 0.08);
            color: var(--accent-color);
        }
/* 移动端适配优化 */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2.5rem;
        letter-spacing: 0.3rem;
        padding: 0 1rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .toolbar {
        top: 10px;
        right: 10px;
    }
    
    .tool-btn, .theme-switch {
        width: 36px;
        height: 36px;
    }
    
    .landscape-container {
        height: 180px;
        margin-bottom: 2rem;
    }
    
    .landscape-quote {
        font-size: 1rem;
        right: 15px;
        bottom: 15px;
        line-height: 1.5;
    }
    
    .search-container {
        margin: 1.5rem auto;
    }
    
    .search-input {
        padding: 0.9rem 1rem;
        font-size: 1rem;
    }
    
    .search-btn {
        width: 36px;
        height: 36px;
    }
    
    /* 建议问题优化 */
    .suggested-questions {
        gap: 0.8rem;
        margin: 1.5rem auto;
    }
    
    .question-tag {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }
    
    /* 道家智慧板块优化 */
    .daily-wisdom {
        padding: 1.8rem 1.2rem;
        margin: 2rem auto;
    }
    
    .wisdom-quote {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    .wisdom-source {
        font-size: 0.9rem;
    }
    
    .refresh-wisdom {
        margin-top: 1.2rem;
        padding: 0.5rem 1.2rem;
    }
    
    /* 类别和对话记录卡片优化 */
    .explore-categories, .recent-conversations {
        margin: 2.5rem auto;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .categories-container {
        gap: 1rem;
    }
    
    .category-card {
        width: calc(50% - 1rem);
        height: 90px;
        font-size: 1.1rem;
    }
    
    .conversation-card {
        width: 100%;
        padding: 1.2rem;
    }
    
    .conversation-preview {
        font-size: 0.9rem;
    }
    
    /* 聊天界面优化 */
    .chat-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
        max-width: none;
    }
    
    .chat-header {
        padding: 0.8rem 1rem;
    }
    
    .chat-title h3 {
        font-size: 1.2rem;
    }
    
    .zhuangzi-avatar {
        width: 38px;
        height: 38px;
    }
    
    .chat-control-btn, .close-chat-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .chat-message {
        max-width: 95%;
    }
    
    .message-avatar {
        width: 38px;
        height: 38px;
    }
    
    .message-bubble {
        padding: 1rem 1.2rem;
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .chat-footer {
        padding: 0.8rem;
    }
    
    .chat-input {
        padding: 0.8rem;
        font-size: 1rem;
    }
    
    .send-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
    }
    
    /* 设置和庄子介绍模态框优化 */
    .settings-content, .zhuangzi-modal-content {
        width: 95%;
        max-width: none;
        border-radius: 8px;
    }
    
    .settings-header h3, .zhuangzi-modal-header h3 {
        font-size: 1.4rem;
    }
    
    .settings-body, .zhuangzi-modal-body {
        padding: 1.5rem;
    }
    
    .zhuangzi-modal-body {
        max-height: 70vh;
    }
    
    .settings-label {
        font-size: 1rem;
    }
    
    .settings-input {
        padding: 0.8rem;
    }
    
    .settings-btn-save, .settings-btn-cancel {
        padding: 0.7rem 1.2rem;
    }
    
    /* 页脚优化 */
    footer {
        padding: 1.5rem 0;
        margin-top: 2rem;
    }
    
    .footer-links {
        gap: 1.2rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* 确保触摸区域足够大 */
    .question-tag, .refresh-wisdom, .category-card, 
    .conversation-card, .chat-control-btn, .close-chat-btn,
    .send-btn, .settings-btn-save, .settings-btn-cancel {
        min-height: 44px;
    }
    
    .tool-btn, .theme-switch, .search-btn, .continue-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .search-input, .chat-input, .settings-input {
        min-height: 44px;
        font-size: 16px; /* 防止iOS上自动缩放 */
    }
}

/* 极小屏幕设备优化 (小于375px) */
@media (max-width: 375px) {
    h1 {
        font-size: 2rem;
        letter-spacing: 0.2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .landscape-container {
        height: 150px;
    }
    
    .landscape-quote {
        font-size: 1rem;
        right: 10px;
        bottom: 10px;
    }
    
    .category-card {
        height: 80px;
        font-size: 1rem;
    }
    
    .wisdom-quote {
        font-size: 1rem;
    }
    
    .chat-controls {
        gap: 6px;
    }
    
    .chat-control-btn, .close-chat-btn {
        width: 30px;
        height: 30px;
    }
    
    .typing-indicator span {
        width: 5px;
        height: 5px;
    }
}

/* 修复移动设备上的滚动问题 */
@media (max-width: 768px) {
    .chat-modal, .settings-modal, .zhuangzi-modal {
        position: fixed;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 优化移动设备上的模态框显示 */
    @media (max-height: 600px) {
        .chat-content {
            height: 100%;
            max-height: 100%;
            border-radius: 0;
        }
        
        .chat-body {
            max-height: calc(100vh - 120px);
        }
        
        .zhuangzi-modal-body {
            max-height: 60vh;
        }
    }

