:root {
    --text-color: rgba(255, 255, 255, 0.95);
    --shadow: 0 8px 30px rgba(0,0,0,0.12);
}

@font-face {
    font-family: 'DM Sans';
    src: url('chrome-extension://dhoenijjpgpeimemopealfcbiecgceod/fonts/DM-Sans-regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Noto Sans';
    src: url('chrome-extension://dhoenijjpgpeimemopealfcbiecgceod/fonts/Noto-Sans-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'ClockFont';
    src: url('https://at.alicdn.com/t/c/font_1010028_88aria95s0n.woff2?t=1734174896392') format('woff2');
    font-weight: bold;
    font-style: normal;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: bold;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color);
    background: #121212;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 15vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: bold;
    line-height: 1.6;
}

/* 添加关键元素的入场动画 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 时间显示动画 */
.time {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-size: 5rem;
    font-weight: 600; /* 调整字体粗细为600 */
    margin-bottom: 0.3rem; /* 减少与日期的间距 */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0; /* 初始状态不可见 */
    letter-spacing: 5px; /* 增加字母间距，使数字更加清晰 */
    line-height: 1.3; /* 略微增加行高 */
    transform: scaleY(1.2); /* 增加垂直拉伸 */
    animation: fadeInDown 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.2s forwards;
    user-select: none;
    -webkit-user-select: none;
}

.time:hover {
    opacity: 1;
    transform: translateY(-2px);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5), 0 0 30px rgba(255, 255, 255, 0.3);
}

/* 日期显示动画 */
.date {
    font-family: 'Douyin Sans Bold', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 0; /* 移除多余的上边距 */
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
    line-height: 1.2; /* 保持文本紧凑 */
    opacity: 0; /* 初始状态不可见 */
    animation: fadeInUp 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.6s forwards;
    user-select: none;
    -webkit-user-select: none;
}

.date:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.clock-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.3rem; /* 进一步减少与搜索框的间距 */
}

.quote-card {
    position: fixed;
    bottom: 2rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 90%;
    max-width: 800px;
    padding: 1.5rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), 
                background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    z-index: 1;
    text-align: center;
    font-family: 'ABeeZee', 'Noto Sans', sans-serif;
    cursor: pointer;
}

.quote-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 添加鼠标悬浮效果 */
.quote-card:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-5px) scale(1.02);
}

/* 鼠标按下效果 */
.quote-card:active {
    transform: translateY(-2px) scale(0.99);
    transition: transform 0.1s;
}

/* 为语录文本添加鼠标悬浮效果 */
.quote-card:hover .quote-text {
    color: rgba(255, 255, 255, 1);
}

/* 为来源添加鼠标悬浮效果 */
.quote-card:hover .quote-source {
    opacity: 1;
}

.quote-text {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.quote-source {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 气泡悬浮效果 */
.quote-card::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    top: -30px;
    right: 20%;
    animation: bubbleFloat 8s ease-in-out infinite;
}

/* 隐藏搜索建议小卡片的背景 */
.search-suggestions {
    backdrop-filter: none; /* 移除模糊效果 */
    background: transparent !important; /* 设置背景为透明 */
}

/* 修改搜索框折叠态样式 */
.search-container {
    position: relative;
    z-index: 1;
    width: 220px;
    margin: 0 auto;
    margin-top: -0.5rem; /* 略微下移搜索框 */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
    /* 动画时长从0.7s缩短为0.3s，延迟从1s缩短为0.1s */
    animation: fadeInScale 0.3s cubic-bezier(0.19, 1, 0.22, 1) 0.1s forwards;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: bold;
}

.search-container.active {
    width: 600px; /* 展开态宽度 */
    transform: translateY(-8px); /* 向上移动 */
    z-index: 10;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3)); /* 添加阴影效果 */
}

/* 搜索框样式 */
.search-box {
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent; /* 设置为透明 */
    border-radius: 25px; /* 圆角 */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 搜索输入框样式 */
.search-input {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 0 50px 0 70px; /* 增加左侧内边距以避免与图标重叠 */
    font-size: 1.2rem;
    color: #000000;
    background: transparent; /* 设置为透明 */
    border: none; /* 去除边框 */
    border-radius: 25px; /* 圆角 */
    opacity: 0.8;
    transition: opacity 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: bold;
}

/* 搜索按钮样式 */
.search-btn {
    position: absolute;
    right: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none; /* 去除边框 */
    box-shadow: none; /* 去除黑线 */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: bold;
}

/* 移除可能导致问题的白色背景圆圈 */
.search-btn::before {
    display: none; /* 暂时禁用 */
}

/* 搜索按钮图标优化 */
.search-btn svg {
    width: 20px; /* 调整图标大小 */
    height: 20px;
    opacity: 0.9;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.6));
    stroke: currentColor; /* 添加描边 */
    stroke-width: 1px; /* 增加图标粗细 */
}

.search-btn:hover svg {
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
}

/* 修改搜索引擎选择器默认状态为隐藏 */
.search-engine-selector {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 2;
    user-select: none;
    -webkit-user-select: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: none; /* 默认隐藏 */
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: bold;
}

/* 当搜索框激活时显示 */
.search-container.active .search-engine-selector {
    display: flex;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 统一选择器悬停效果 */
.search-engine-selector:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.search-engine-icon {
    width: 20px;
    height: 20px;
    opacity: 1;
    filter: brightness(1) contrast(1.2);
    pointer-events: none;
}

/* 修改搜索引擎下拉菜单为白色样式 */
.search-engine-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: -5px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    padding: 6px 0;
    display: none;
    min-width: 180px;
    margin-top: 4px;
    color: #000000;
    overflow: hidden;
    z-index: 10;
    transform: translateY(4px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: bold;
}

.search-engine-option {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #000000;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    border-radius: 6px;
    margin: 0 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-size: 0.9rem;
}

.search-engine-option:last-child {
    border-bottom: none;
}

.search-engine-option:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
    color: #333333;
}

/* 修改快捷键样式以适配白色背景 */
.search-engine-option .shortcut {
    margin-left: auto;
    font-size: 0.8rem;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 改善搜索引擎图标样式 */
.search-engine-option img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.03);
    padding: 3px;
}

/* 添加从左到右滑入动画 */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 添加下拉菜单动画和显示样式 */
@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
        backdrop-filter: blur(0);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        backdrop-filter: blur(12px);
    }
}

.search-engine-dropdown.show {
    display: block;
    animation: dropdownFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

/* 应用滑入动画到搜索引擎选项 */
.search-engine-option {
    opacity: 0;
    animation: slideInFromLeft 0.3s ease-out forwards;
}

/* 为不同选项添加延迟，使它们依次滑入 */
.search-engine-option:nth-child(1) { animation-delay: 0.1s; }
.search-engine-option:nth-child(2) { animation-delay: 0.2s; }
.search-engine-option:nth-child(3) { animation-delay: 0.3s; }
.search-engine-option:nth-child(4) { animation-delay: 0.4s; }
.search-engine-option:nth-child(5) { animation-delay: 0.5s; }

/* 搜索结果样式 */
.results-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #F8FAFC;
    display: none;
    opacity: 0;
    transform: translateX(100%) scale(0.98);
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1),
                opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1000;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: bold;
}

.results-container.visible {
    transform: translateX(0) scale(1);
    opacity: 1;
}

.browser-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 10;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: bold;
}

.search-bar {
    flex: 1;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.results-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 12px 48px 12px 20px;
    font-size: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    color: #333333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: bold;
}

.results-search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: #1a73e8;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: bold;
}

.search-results-container {
    display: grid;
    grid-template-columns: minmax(300px, 400px) 1fr;
    gap: 24px;
    padding: 24px;
    height: calc(100vh - 65px);
    background: #F8FAFC;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: bold;
}

.web-results-column,
.ai-results-column {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 20px;
    height: 100%;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: bold;
}

.web-results-column {
    max-width: 400px;
    min-width: 280px;
}

.ai-results-column {
    min-width: 0;
}

.web-results-column.visible,
.ai-results-column.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.browser-controls {
    display: flex;
    gap: 5px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: bold;
}

.control-btn {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
    border-radius: 10px;
    color: #4B5563;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: bold;
}

.control-btn:hover {
    background: #F8FAFC;
    border-color: rgba(96, 165, 250, 0.3);
    transform: translateX(-2px);
}

.ai-chat h2 {
    color: #202124;
    font-size: 22px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8f0fe;
    font-weight: bold;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: bold;
}

.ai-message {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    line-height: 1.7;
    color: #202124;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: bold;
}

.ai-message.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: bold;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #E5E7EB;
    border-top: 3px solid #60A5FA;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: #000000;
}

.loading-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 4px;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.dark-mode .loading-title {
    background: transparent !important;
}

.loading-dots {
    font-size: 24px;
    line-height: 1;
    height: 24px;
    color: #000000;
    font-family: monospace;
}

.web-results-column h2,
.ai-results-column h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: bold;
}

.search-result {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: bold;
}

.search-result.visible {
    opacity: 1;
    transform: translateY(0);
}

.search-result h3 {
    margin-bottom: 6px;
    font-size: 16px;
    line-height: 1.4;
}

.search-result h3 a {
    color: #2563EB;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
}

.search-result h3 a:hover {
    text-decoration: underline;
}

.search-result .result-url {
    color: #059669;
    font-size: 13px;
    margin-bottom: 4px;
    word-break: break-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.search-result .result-snippet {
    color: #4B5563;
    font-size: 14px;
    line-height: 1.5;
    margin: 6px 0;
}

.search-result .result-meta {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: #6B7280;
    margin-top: 8px;
    align-items: center;
}

.search-result .bing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
    border-radius: 4px;
    padding: 4px 8px;
    margin-top: 8px;
    font-size: 12px;
    color: #4285f4;
    text-decoration: none;
    width: fit-content;
}

.search-result .bing-btn img {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

.error-message {
    text-align: center;
    padding: 2rem;
    color: #d32f2f;
    background: rgba(211, 47, 47, 0.1);
    border-radius: 8px;
    margin: 1rem 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: bold;
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.ai-message.error {
    background: rgba(211, 47, 47, 0.1);
    color: #d32f2f;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: bold;
}

.ai-message.error i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #5f6368;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: bold;
}

.no-results i {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* 思维导图样式 */
.mind-map {
    margin-top: 24px;
    padding: 0;
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: bold;
}

.mind-map.visible {
    opacity: 1;
    transform: translateY(0);
}

.mind-map h3 {
    padding: 16px 20px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mind-map-content {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.dark-mode .mind-map-content {
    background: transparent !important;
}

.mind-map-image {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

/* 适配白天模式的颜色 */
body.light-mode .mind-map.visible,
body.light-mode .loading-container {
    background-color: rgba(255, 255, 255, 0.95);
    color: #121212;
}

body.light-mode .mind-map-content {
    background-color: rgba(255, 255, 255, 0.95);
}

body.light-mode .mind-map h3,
body.light-mode .loading-title {
    color: #333;
}

body.light-mode .mind-map-image {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ================= 思维导图 loading/visible 状态适配 ================= */
.mind-map.loading,
.mind-map.visible {
    background: #fff !important;
    color: #222 !important;
}
.mind-map.loading h3,
.mind-map.visible h3,
.mind-map.loading p,
.mind-map.visible p,
.mind-map.loading span,
.mind-map.visible span,
.mind-map.loading .mind-map-content,
.mind-map.visible .mind-map-content {
    color: #222 !important;
    background: #f5f5f5 !important;
}
.mind-map.loading .mind-map-image,
.mind-map.visible .mind-map-image {
    background: #fff !important;
}

.dark-mode .mind-map.loading,
.dark-mode .mind-map.visible {
    background: #23272f !important;
    color: #f5f5f5 !important;
}
.dark-mode .mind-map.loading h3,
.dark-mode .mind-map.visible h3,
.dark-mode .mind-map.loading p,
.dark-mode .mind-map.visible p,
.dark-mode .mind-map.loading span,
.dark-mode .mind-map.visible span,
.dark-mode .mind-map.loading .mind-map-content,
.dark-mode .mind-map.visible .mind-map-content {
    color: #f5f5f5 !important;
    background: #181a20 !important;
}
.dark-mode .mind-map.loading .mind-map-image,
.dark-mode .mind-map.visible .mind-map-image {
    background: #23272f !important;
}

/* 动画 */
@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes bubbleFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* 媒体查询优化移动设备 */
@media (max-width: 768px) {
    .time {
        font-size: 4rem;
    }
    
    .date {
        font-size: 1rem;
    }
    
    .search-container.active {
        width: 90%;
        max-width: 400px;
    }
    
    .quote-card {
        width: 90%;
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .search-results-container {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }
    
    .web-results-column,
    .ai-results-column {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .time {
        font-size: 3.5rem;
    }
    
    body {
        padding-top: 10vh;
    }
    
    .date {
        font-size: 1rem;
    }
}

/* 美化滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 添加选择器显示规则 */
.search-container.active .search-engine-selector {
    display: flex;
}

/* 确保虚化效果足够强烈且明显 */
body.search-active {
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    background-color: rgba(0, 0, 0, 0.05); /* 添加极轻微的背景色以增强虚化效果 */
}

/* 修改搜索按钮在激活状态下的颜色 */
.search-container.active .search-btn {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.search-container.active .search-btn svg {
    color: #00b26b; /* 将图标颜色改为绿色 */
    opacity: 1;
}

/* 鼠标悬停效果也应该保持绿色 */
.search-container.active .search-btn:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.35);
}

/* 强制修复搜索结果布局问题 */
.web-results-column {
    max-width: 400px;
    min-width: 280px;
}

.web-results {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
}

/* 强制搜索结果不嵌套 */
.search-result {
    position: static !important; /* 强制静态定位 */
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 16px !important;
    display: block !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
    max-width: 100% !important;
    overflow: hidden;
}

/* 确保内容不会缩进嵌套 */
.search-result * {
    max-width: 100% !important;
}

/* 确保链接不会换行且省略过长部分 */
.search-result .result-url {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    display: block;
    max-width: 100%;
}

/* 确保BING图标正确显示 */
.search-result .icon-link img {
    width: 16px !important;
    height: 16px !important;
    margin-right: 4px !important;
    vertical-align: middle !important;
}

/* 当页面加载完成时，添加脉冲效果引导用户注意 */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.search-container.loaded .search-btn {
    animation: pulse 1.5s cubic-bezier(0.19, 1, 0.22, 1) 2s;
}

/* 搜索联想容器 - 增强毛玻璃效果 */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    padding: 5px;
    z-index: 100;
    max-width: 100%;
    display: none;
    animation: fadeInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.05);
}

/* 增强动画效果 */
@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(10px);
        filter: blur(8px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
        filter: blur(0);
    }
}

/* 搜索联想项 - 强化模糊效果 */
.search-suggestion-item {
    flex: 0 0 calc(33.33% - 10px);
    max-width: calc(33.33% - 10px);
    /* 增加背景不透明度 */
    background: rgba(255, 255, 255, 0.35);
    /* 极致模糊效果 */
    backdrop-filter: blur(100px);
    -webkit-backdrop-filter: blur(100px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 8px 12px;
    text-align: center;
    /* 将文字颜色改为黑色且加粗 */
    color: rgba(0, 0, 0, 0.9);
    font-size: 13px;
    font-weight: bold;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: bold;
}

/* 增强容器整体模糊效果 */
.search-suggestions {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.05);
    /* 其他现有属性保持不变 */
}

/* 悬停效果优化 */
.search-suggestion-item:hover {
    background: rgba(255, 255, 255, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    color: rgba(0, 0, 0, 1);
}

.search-suggestion-item.selected {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 1);
    color: rgba(0, 0, 0, 1);
}

.search-suggestion-item .suggestion-icon {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    color: rgba(0, 0, 0, 0.8);
    opacity: 0.9;
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.7));
}

.search-suggestion-item:hover .suggestion-icon {
    color: rgba(0, 0, 0, 1);
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.9));
}

/* 确保移动端适配良好 */
@media (max-width: 480px) {
    .search-suggestion-item {
        flex: 0 0 calc(50% - 8px);
        max-width: calc(50% - 8px);
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* 优化折叠态文字显示 */
.search-input::placeholder {
    color: rgba(0, 0, 0, 0.5); /* 设置占位符颜色 */
    font-size: 1rem; /* 调整占位符字体大小 */
    opacity: 0.8; /* 设置占位符透明度 */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: bold;
} 
/* ================= 相关信息样式适配 ================= */
.related-info {
    background: #fff;
    color: #222;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 18px 18px 12px;
    margin: 24px 0;
    transition: background 0.3s, color 0.3s, opacity 0.3s, transform 0.3s;
    opacity: 0;
    transform: translateY(10px);
}

.related-info.visible {
    opacity: 1;
    transform: translateY(0);
}

.related-info h3 {
    color: #222;
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.related-info h3 i {
    margin-right: 8px;
    color: #3b82f6;
}

/* 相关问题样式 */
.related-questions {
    margin-bottom: 20px;
}

.question-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.question-item {
    margin-bottom: 8px;
}

.question-link {
    display: block;
    padding: 10px 14px;
    background: #f5f5f5;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.question-link:hover {
    background: #e5e7eb;
    transform: translateX(5px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 来源信息样式 */
.info-sources {
    margin-bottom: 16px;
}

.source-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.source-item {
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
}

.source-index {
    color: #3b82f6;
    font-weight: bold;
    margin-right: 6px;
    flex-shrink: 0;
}

.source-link {
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 4px 0;
}

.source-link:hover {
    color: #3b82f6;
    text-decoration: underline;
}

/* API来源信息 */
.api-source {
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.9rem;
    color: #6b7280;
}

.api-source i {
    color: #9ca3af;
    margin-right: 6px;
}

/* 黑暗模式适配 */
.dark-mode .related-info {
    background: #23272f;
    color: #f5f5f5;
    box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}

.dark-mode .related-info h3 {
    color: #f5f5f5;
}

.dark-mode .question-link {
    background: #181a20;
    color: #e5e7eb;
}

.dark-mode .question-link:hover {
    background: #2d3748;
}

.dark-mode .source-link {
    color: #cbd5e0;
}

.dark-mode .source-link:hover {
    color: #60a5fa;
}

.dark-mode .api-source {
    border-top: 1px solid #2d3748;
    color: #9ca3af;
}

/* ====== loading 动画容器透明，彻底消除 loading-title 下方阴影 ====== */
.loading-dots,
.loading-bar,
.loading-content {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}
.dark-mode .loading-dots,
.dark-mode .loading-bar,
.dark-mode .loading-content {
    background: transparent !important;
}

/* ===== 相关信息加载样式 ===== */
.related-info.loading {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 24px 0 28px 0;
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 220px;
    min-height: 100px;
    transition: background 0.3s;
    opacity: 1;
    transform: translateY(0);
}

.related-info.loading .loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.related-info.loading .loading-spinner {
    width: 32px;
    height: 32px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #60A5FA;
    border-radius: 50%;
    animation: related-info-spin 1s linear infinite;
    margin: 0 auto 16px;
}

.related-info.loading .loading-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.related-info.loading .loading-title {
    color: #222;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    background: transparent;
    border: none;
    box-shadow: none;
    letter-spacing: 1px;
}

.related-info.loading .loading-dots {
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: #60A5FA;
    height: 24px;
    line-height: 24px;
}

@keyframes related-info-spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}

/* 黑暗模式适配 */
.dark-mode .related-info.loading {
    background: #23272f;
    box-shadow: 0 2px 12px rgba(0,0,0,0.20);
}

.dark-mode .related-info.loading .loading-title {
    color: #f5f5f5;
}

.dark-mode .related-info.loading .loading-spinner {
    border: 4px solid #333a45;
    border-top: 4px solid #60A5FA;
}

.dark-mode .related-info.loading .loading-dots {
    color: #60A5FA;
}

/* AI 加载 GIF 样式 */
.ai-loading-gif {
    display: block;
    margin: 0.5rem auto;
    max-width: 80px;
    width: 100%;
    height: auto;
}