/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 微信图标 */
.linkedin-icon {
    position: fixed;
    right: 20px;
    bottom: 210px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
    z-index: 1000;
}

.linkedin-icon:hover {
    transform: translateY(-5px);
}

.linkedin-icon i {
    width: 36px;
    height: 36px;
    transition: transform 0.3s ease;
}

.linkedin-icon:hover i {
    transform: translateY(-3px);
}

/* 微信悬停图片 */
.linkedin-hover-image {
    position: absolute;
    right: 100%;
    bottom: 0;
    margin-right: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    pointer-events: none;
}

.linkedin-hover-image img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.linkedin-icon:hover .linkedin-hover-image {
    opacity: 1;
    visibility: visible;
}

/* 微信客服图标 */
.wechat-icon {
    position: fixed;
    right: 20px;
    bottom: 150px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
    z-index: 1000;
}

.wechat-icon:hover {
    transform: translateY(-5px);
}

.wechat-icon i {
    width: 36px;
    height: 36px;
    transition: transform 0.3s ease;
}

.wechat-icon:hover i {
    transform: translateY(-3px);
}

/* 微信客服悬停图片 */
.wechat-hover-image {
    position: absolute;
    right: 100%;
    bottom: 0;
    margin-right: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    pointer-events: none;
}

.wechat-hover-image img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.wechat-icon:hover .wechat-hover-image {
    opacity: 1;
    visibility: visible;
}

/* 打印机图标 */
.printer-icon {
    position: fixed;
    right: 20px;
    bottom: 90px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
    z-index: 1000;
}

.printer-icon:hover {
    transform: translateY(-5px);
}

.printer-icon a {
    color: inherit;
    text-decoration: none;
}

.printer-icon a:hover {
    color: inherit;
}

.printer-icon i {
    width: 36px;
    height: 36px;
    transition: transform 0.3s ease;
}

.printer-icon:hover i {
    transform: translateY(-3px);
}

/* 打印机悬停图片 */
.printer-hover-image {
    position: absolute;
    right: 100%;
    bottom: 0;
    margin-right: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    pointer-events: none;
}

.printer-hover-image img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.printer-icon:hover .printer-hover-image {
    opacity: 1;
    visibility: visible;
}

/* 返回顶部小火箭 */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

.back-to-top i {
    width: 36px;
    height: 36px;
    color: #4CAF50;
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-3px);
}

/* 暗色主题下的小火箭 */
body.dark-mode .back-to-top i {
    color: #45a049;
}

/* 动画效果 */
@keyframes rocket-pulse {
    0% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.7;
    }
}

.back-to-top.scrolled {
    animation: rocket-pulse 2s infinite;
}

/* 页面基础样式 - 默认白天主题 */
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-image: url('../icons/2596090.svg');
    background-repeat: repeat-y;
    background-size: 100% auto;
    background-color: #f8f9fa;
    color: #333;
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* 夜间主题样式 */
body.dark-mode {
    background-image: url('../icons/2596090.svg');
    background-repeat: repeat-y;
    background-size: 100% auto;
    background-color: #1a1a1a;
    color: #e0e0e0;
}

/* 主题切换过渡效果 */
body.theme-transitioning {
    transition: background 0.6s ease;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* 主布局样式 */
.main-layout {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    align-items: flex-start;
}

/* 左侧边栏样式 */
.left-sidebar {
    width: 250px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    height: auto;
    min-height: auto;
    max-height: none;
    overflow: visible;
}

/* 夜间模式下的左侧边栏 */
body.dark-mode .left-sidebar {
    background: rgba(60, 60, 60, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* 边栏标题 */
.sidebar-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

body.dark-mode .sidebar-title {
    color: #e0e0e0;
}

/* 关键词列表 */
.keyword-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 关键词项 */
.keyword-item {
    margin-bottom: 10px;
}

/* 关键词链接 */
.keyword-link {
    display: block;
    padding: 8px 12px;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: rgba(240, 240, 240, 0.5);
}

body.dark-mode .keyword-link {
    color: #ccc;
    background: rgba(80, 80, 80, 0.5);
}

/* 关键词链接悬停效果 */
.keyword-link:hover {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    transform: translateX(5px);
}

body.dark-mode .keyword-link:hover {
    background: rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}

/* 关键词链接激活状态 */
.keyword-link.active {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    font-weight: bold;
}

/* 右侧内容区 */
.right-content {
    flex: 1;
    min-width: 0;
}

/* 查看图标样式 */
.view-icon {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    vertical-align: baseline;
    transition: all 0.3s ease;
}

/* 查看统计样式 */
.rank-stats {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

/* 文档关键词样式 */
.document-keywords {
    margin-bottom: 25px;
    text-align: center;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    align-items: center;
    height: auto;
    min-height: auto;
    max-height: none;
    overflow: visible;
}

/* 关键词图标样式 */
.keyword-icon {
    width: 12px;
    height: 12px;
    margin-right: 6px;
    vertical-align: middle;
    stroke-width: 2.5;
}

/* 关键词标签样式 */
.keyword-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

/* 关键词链接样式 */
.keyword-link {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* 关键词链接悬停效果 */
.keyword-link:hover {
    background: rgba(76, 175, 80, 0.4);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* 关键词标签激活状态 */
.keyword-tag.active {
    background: rgba(76, 175, 80, 0.4);
    color: white;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* 夜间模式下的关键词标签 */
body.dark-mode .keyword-tag {
    background: rgba(76, 175, 80, 0.2);
    color: #8BC34A;
}

/* 夜间模式下的关键词链接悬停效果 */
body.dark-mode .keyword-link:hover {
    background: rgba(76, 175, 80, 0.4);
    color: white;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* 夜间模式下的关键词标签激活状态 */
body.dark-mode .keyword-tag.active {
    background: rgba(76, 175, 80, 0.4);
    color: white;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* 书签样式的筛选器 */
.bookmark-filters {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 100;
    flex-wrap: wrap;
    align-items: center;
}

/* 筛选器副标题 */
.filter-subtitle {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-right: 5px;
    white-space: nowrap;
}

body.dark-mode .filter-subtitle {
    color: #e0e0e0;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;
}

/* 下拉按钮样式 */
.dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: 2px solid #333;
    border-radius: 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

body.dark-mode .dropdown-btn {
    background: transparent;
    border-color: #e0e0e0;
    color: #e0e0e0;
}

/* 下拉按钮悬停效果 */
.dropdown-btn:hover {
    border-color: #4CAF50;
    color: #4CAF50;
}

body.dark-mode .dropdown-btn:hover {
    border-color: #4CAF50;
    color: #4CAF50;
}

/* 下拉图标样式 */
.dropdown-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    vertical-align: middle;
}

/* 下拉箭头样式 */
.dropdown-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* 下拉内容样式 */
.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 8px;
    z-index: 1000;
    margin-top: 5px;
    right: 0;
}

body.dark-mode .dropdown-content {
    background: rgba(40, 40, 40, 0.95);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

/* 显示下拉内容 - 初始隐藏，通过JavaScript控制显示 */
.dropdown-content {
    display: none;
}

/* 点击显示下拉内容 */
.dropdown.active .dropdown-content {
    display: block;
}

/* 调整下拉菜单宽度与按钮一致 */
.dropdown-content {
    min-width: 100%;
    right: 0;
    left: 0;
    margin-top: 5px;
}

/* 下拉项样式 */
.dropdown-item {
    color: #333;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
    text-align: center;
}

body.dark-mode .dropdown-item {
    color: #e0e0e0;
}

/* 下拉项悬停效果 */
.dropdown-item:hover {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

body.dark-mode .dropdown-item:hover {
    background: rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}

/* 下拉项激活状态 */
.dropdown-item.active {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .dropdown-content {
        right: auto;
        left: 0;
    }
}

/* 书签筛选项 */
.bookmark-filter {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: transparent;
    border: 2px solid #333;
    border-radius: 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    box-shadow: none;
    transition: all 0.3s ease;
}

/* 夜间模式下的书签筛选项 */
body.dark-mode .bookmark-filter {
    background: transparent;
    border-color: #e0e0e0;
    color: #e0e0e0;
    box-shadow: none;
}

/* 书签筛选项激活状态 */
.bookmark-filter.active {
    background: transparent;
    border-color: #4CAF50;
    color: #4CAF50;
    box-shadow: none;
}

/* 夜间模式下的书签筛选项激活状态 */
body.dark-mode .bookmark-filter.active {
    background: transparent;
    border-color: #4CAF50;
    color: #4CAF50;
    box-shadow: none;
}

/* 书签图标 */
.bookmark-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    vertical-align: middle;
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 主布局添加相对定位，以便书签筛选器绝对定位 */
.main-layout {
    position: relative;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }
    
    .left-sidebar {
        width: 100%;
    }
    
    /* 响应式书签筛选器 */
    .bookmark-filters {
        position: static;
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 20px;
    }
}

/* 标题样式 */
.demo-title {
    text-align: center;
    margin-bottom: 40px;
}

.demo-title h2 {
    font-size: 2em;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* 打字机效果 */
.typewriter-text {
    overflow: hidden;
    border-right: .15em solid #4CAF50;
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret .75s step-end infinite;
    display: inline-block;
    min-width: 100px;
    max-width: 100%;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #4CAF50; }
}

.demo-title p {
    opacity: 0.8;
    font-size: 1.1em;
}

/* 搜索区域样式 */
.search-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* 搜索结果页面的搜索区域样式 */
body:not(.dark-mode) .search-section {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

body.dark-mode .search-section {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 排行榜页面的搜索区域样式 - 移除固定宽度限制 */
.main-layout .right-content .search-section {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

body.dark-mode .search-section {
    background: rgba(40, 40, 40, 0.9);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.search-form {
    max-width: 700px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.input-wrapper {
    flex: 1;
    position: relative;
    min-width: 250px;
}

.search-input {
    width: 100%;
    padding: 15px 40px 15px 20px;
    background: rgba(248, 249, 250, 0.7);
    border: 2px solid #e9ecef;
    border-radius: 10px;
    color: #333;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

body.dark-mode .search-input {
    background: rgba(60, 60, 60, 0.8);
    border: 2px solid #444;
    color: #e0e0e0;
}

.search-input::placeholder {
    color: #6c757d;
}

body.dark-mode .search-input::placeholder {
    color: #aaa;
}

.search-input:focus {
    border-color: #28a745;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.3);
}

body.dark-mode .search-input:focus {
    border-color: #4CAF50;
    background: rgba(60, 60, 60, 0.9);
}

/* 清空按钮样式 */
.clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #6c757d;
    font-size: 18px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.clear-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

body.dark-mode .clear-btn {
    color: #aaa;
}

body.dark-mode .clear-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* 搜索按钮样式 */
.search-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.search-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #28a745 100%);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
    transform: translateY(-2px);
}

body.dark-mode .search-btn {
    background: #4CAF50;
}

body.dark-mode .search-btn:hover {
    background: #45a049;
    box-shadow: none;
}

.search-btn:active {
    transform: translateY(0);
}

.search-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 平台标签样式 */
.platform-tags {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 10px;
    background: rgba(248, 249, 250, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

body.dark-mode .platform-tags {
    background: rgba(30, 30, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.popular-keywords-title {
    font-size: 0.9em;
    color: #aaa;
    margin-right: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

body.dark-mode .popular-keywords-title {
    color: #ccc;
}

.platform-tag {
    padding: 6px 12px;
    background: rgba(76, 175, 80, 0.2);
    color: #8BC34A;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    margin: 4px;
}

.platform-tag:hover {
    background: rgba(76, 175, 80, 0.4);
    color: #fff;
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

body.dark-mode .platform-tag {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

body.dark-mode .platform-tag:hover {
    background: rgba(76, 175, 80, 0.3);
    color: #fff;
    border-color: #4CAF50;
}

/* 热门文档排行样式 */
.popular-documents-section {
    margin-top: 20px;
    padding: 0;
}

.ranking-header {
    text-align: center;
    margin-bottom: 20px;
}

.ranking-header h3 {
    color: #333;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

body.dark-mode .ranking-header h3 {
    color: #fff;
}

.ranking-subtitle {
    color: #4CAF50;
    font-size: 14px;
    opacity: 0.8;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: rgba(248, 249, 250, 0.7);
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    justify-content: space-between;
}

body.dark-mode .ranking-item {
    background: rgba(30, 30, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ranking-item:hover {
    background: rgba(40, 167, 69, 0.2);
    border-color: rgba(40, 167, 69, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.ranking-item.rank-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.2));
    border-color: rgba(255, 215, 0, 0.5);
}

.ranking-item.rank-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.3), rgba(192, 192, 192, 0.2));
    border-color: rgba(192, 192, 192, 0.5);
}

.ranking-item.rank-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.3), rgba(205, 127, 50, 0.2));
    border-color: rgba(205, 127, 50, 0.5);
}

.rank-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.rank-number {
    background: rgba(76, 175, 80, 0.3);
    color: #4CAF50;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.rank-title {
    color: #333;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

body.dark-mode .rank-title {
    color: #fff;
}

.rank-url {
    color: #4CAF50;
    font-size: 12px;
    margin-top: 4px;
    word-break: break-all;
    opacity: 0.9;
}

.rank-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #aaa;
    margin-top: 4px;
}

.rank-stats {
    color: #4CAF50;
    font-weight: 500;
}

.rank-arrow {
    color: #666;
    transition: color 0.3s ease;
}

.ranking-item:hover .rank-arrow {
    color: #4CAF50;
}

/* 搜索结果样式 */
.search-stats {
    text-align: center;
    color: #aaa;
    margin-bottom: 20px;
    margin-top: 10px;
    font-size: 14px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

body.dark-mode .search-stats {
    color: #ccc;
}

.search-results {
    min-height: 100px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.result-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.2s ease;
    cursor: pointer;
}

body.dark-mode .result-item {
    background: rgba(60, 60, 60, 0.8);
    border: 1px solid #444;
}

.result-item:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: #28a745;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
    transform: translateY(-2px);
}

body.dark-mode .result-item:hover {
    background: rgba(70, 70, 70, 0.9);
    border-color: #4CAF50;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.result-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

body.dark-mode .result-title {
    color: #4CAF50;
}

.result-url {
    color: #28a745;
    font-size: 14px;
    margin-bottom: 5px;
    word-break: break-all;
}

body.dark-mode .result-url {
    color: #aaa;
}

.result-keywords {
    color: #6c757d;
    font-size: 13px;
}

body.dark-mode .result-keywords {
    color: #888;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pagination button {
    padding: 8px 15px;
    border: 1px solid #e9ecef;
    background: rgba(248, 249, 250, 0.7);
    color: #333;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.dark-mode .pagination button {
    border: 1px solid #444;
    background: rgba(60, 60, 60, 0.8);
    color: #e0e0e0;
}

.pagination button:hover:not(:disabled) {
    background: #4CAF50;
    color: white;
}

body.dark-mode .pagination button:hover:not(:disabled) {
    background: rgba(70, 70, 70, 0.9);
    border-color: #4CAF50;
}

.pagination-btn-current {
    background: #4CAF50;
    color: white;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 加载动画样式 */
.loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

body.dark-mode .loading {
    color: #ccc;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #4CAF50;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-size: 16px;
}

.no-results p {
    margin-bottom: 20px;
}

.no-results a {
    margin-top: 20px;
    display: inline-block;
}

body.dark-mode .no-results {
    color: #ccc;
}

.result-message {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 16px;
}

.result-message.error {
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #dc3545;
}

/* 底部样式 */
footer {
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid #e9ecef;
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    color: #6c757d;
    font-size: 14px;
    width: 100%;
}

body.dark-mode footer {
    background: rgba(30, 30, 30, 0.9);
    border-top: 1px solid #444;
    color: #aaa;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-link {
    color: #4CAF50;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #8BC34A;
    text-decoration: none;
}

.footer-divider {
    height: 1px;
    background: #e9ecef;
    margin: 15px 0;
}

body.dark-mode .footer-divider {
    background: #444;
}

.footer-copyright {
    margin-top: 15px;
    font-size: 12px;
    color: #6c757d;
}

body.dark-mode .footer-copyright {
    color: #888;
}

.beian-link {
    color: #777;
    text-decoration: none;
}

body.dark-mode .beian-link {
    color: #888;
}

.beian-link:hover {
    color: #495057;
}

body.dark-mode .beian-link:hover {
    color: #4CAF50;
}

/* 主题切换按钮样式 */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    border-radius: 0;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 5px;
}

body.dark-mode .theme-toggle {
    background: transparent;
    border: none;
}

.theme-toggle:hover {
    background: transparent;
    transform: scale(1.1);
}

body.dark-mode .theme-toggle:hover {
    background: transparent;
}

.theme-toggle i {
    width: 24px;
    height: 24px;
    color: #333; /* 默认白天模式：月亮图标黑色 */
}

body.dark-mode .theme-toggle i {
    color: #ffffff; /* 夜间模式：太阳图标白色 */
}

/* 确保SVG图标在深色模式下正确显示 */
body.dark-mode .theme-toggle i svg {
    stroke: #ffffff !important;
}

body.dark-mode .theme-toggle svg.feather-sun {
    stroke: #ffffff !important;
}

.theme-toggle i svg {
    stroke: #333 !important;
}

.theme-toggle svg.feather-moon {
    stroke: #333 !important;
}

/* Feather Icons 统一样式 */
.title-icon {
    margin-right: 10px;
    vertical-align: middle;
    width: 24px;
    height: 24px;
}

.footer-icon {
    margin-right: 3px;
    vertical-align: middle;
    width: 16px;
    height: 16px;
}

/* 弹框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #333;
    margin: 10% auto;
    padding: 0;
    border: 1px solid #444;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    animation: modalopen 0.4s;
}

body.dark-mode .modal-content {
    background-color: #2a2a2a;
}

@keyframes modalopen {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #444;
    background-color: #3a3a3a;
    border-radius: 8px 8px 0 0;
    color: #333;
}

body.dark-mode .modal-header {
    background-color: #333;
    color: #e0e0e0;
}

.close-modal {
    color: #6c757d;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: #333;
}

.modal-body {
    padding: 18px;
    color: #ddd;
    line-height: 1.5;
    font-size: 13px;
}

body.dark-mode .modal-body {
    color: #aaa;
}

body.light-mode .modal-body {
    color: #333;
}

/* 关于我们弹窗图片样式 */
.about-images {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    margin: 10px 0;
}

.image-item {
    text-align: center;
    margin: 10px;
    flex: 1;
    min-width: 120px;
}

.image-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

body.light-mode .image-item img {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

body.light-mode .image-item img:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-box {
        flex-direction: column;
    }
    
    .input-wrapper {
        min-width: 100%;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .footer-link {
        margin: 5px 10px;
        font-size: 13px;
    }
    
    .title-icon {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }
    
    .footer-icon {
        width: 14px;
        height: 14px;
        margin-right: 6px;
    }
    
    /* 打字机效果移动端适配 */
    .typewriter-text {
        font-size: 0.8em;
        border-right: .12em solid #4CAF50;
        animation: typing-mobile 3s steps(30, end), blink-caret-mobile .75s step-end infinite;
        min-width: 80px;
    }
    
    @keyframes typing-mobile {
        from { width: 0 }
        to { width: 100% }
    }
    
    @keyframes blink-caret-mobile {
        from, to { border-color: transparent }
        50% { border-color: #4CAF50; }
    }
    
    /* 弹窗移动端适配 */
    .modal-content {
        width: 90%;
        margin: 5% auto;
    }
    
    .modal-body {
        padding: 15px;
        font-size: 12px;
    }
    
    .about-images {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
    }
    
    .image-item {
        margin: 5px;
        width: 28%;
        max-width: 120px;
        min-width: 80px;
    }
}