/* 全局样式 */
:root {
    --primary-color: #27ae60;
    --primary-dark: #219a52;
    --primary-light: #e8f5e9;
    --border-color: #ddd;
    --bg-color: #f5f5f5;
    --white: #fff;
}

/* 亮色主题文字颜色 */
body.light-theme {
    --text-color: #ffffff;
    --text-light: rgba(255, 255, 255, 0.8);
}

/* 暗色主题文字颜色 */
body.dark-theme {
    --text-color: #333333;
    --text-light: #666666;
}

body {
    background: var(--bg-color);
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 通用容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部栏样式 */
.top-bar {
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

.top-bar .left,
.top-bar .right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
}

.top-bar a:hover {
    color: var(--primary-color);
}

/* Logo样式 */
.logo {
    text-align: center;
    margin: 30px 0;
}

.logo img {
    width: 400px;
    height: auto;
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.02);
}

/* 搜索区域样式 */
.search-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
    position: relative;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

/* 搜索引擎选择器和类型选择器的基础样式 */
.engine-select,
.type-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer;
    outline: none;
}

/* 搜索引擎选择器 */
.engine-select {
    width: 70px;
    height: 33px;
    text-align: center;
    padding: 8px 10px 8px 0px;
    border-radius: 4px;
}

/* 类型选择器 */
.type-select {
    padding: 8px;
    border: none;
    font-size: 13px;
}

/* 亮色主题下拉列表 */
body.light-theme .engine-select,
body.light-theme .type-select {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-color) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

body.light-theme .engine-select option,
body.light-theme .type-select option {
    background-color: rgba(0, 0, 0, 0.8) !important;
    color: white !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

/* 暗色主题下拉列表 */
body.dark-theme .engine-select,
body.dark-theme .type-select {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-color) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

body.dark-theme .engine-select option,
body.dark-theme .type-select option {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: var(--text-color) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

/* 下拉箭头图标 */
body.light-theme .engine-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
}

body.dark-theme .engine-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
}

/* 搜索框包装器 */
.search-input-wrapper {
    display: flex;
    align-items: center;
    width: 480px;
    height: 33px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--white);
}

/* 搜索输入框 */
#searchInput {
    flex: 1;
    padding: 8px;
    border: none;
    outline: none;
    font-size: 14px;
    min-width: 0; /* 防止输入框溢出 */
}

/* 搜索按钮 */
.search-button {
    margin-left: 10px;
    padding: 8px 20px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-light);
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
}

.search-button:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* 分类标签容器 */
.categories {
    display: flex;          /* 弹性布局 */
    flex-wrap: wrap;        /* 自动换行 */
    gap: 0;                 /* 移除间距 */
    margin-bottom: 15px;    /* 底部外边距 */
    max-width: 1200px;      /* 最大宽度 */
    margin-left: auto;      /* 左侧自动外边距 */
    margin-right: auto;     /* 右侧自动外边距 */
    justify-content: center;  /* 水平居中 */
}

/* 分类标签 */
.category-tab {
    padding: 0 12px;        /* 左右内边距12px */
    height: 35px;           /* 高度35px */
    border-radius: 8px 8px 0 0;  /* 上边圆角8px */
    cursor: pointer;        /* 鼠标指针 */
    text-decoration: none;  /* 移除下划线 */
    transition: all 0.3s;   /* 过渡动画 */
    display: flex;          /* 弹性布局 */
    align-items: center;    /* 垂直居中 */
    justify-content: center;  /* 水平居中 */
    white-space: nowrap;    /* 文字不换行 */
    backdrop-filter: var(--frosted-blur);         /* 磨砂效果 */
    -webkit-backdrop-filter: var(--frosted-blur);  /* Safari磨砂效果 */
}

/* 亮色主题标签 */
body.light-theme .category-tab {
    background: var(--frosted-bg-light);          /* 亮色背景 */
    border: 1px solid var(--frosted-border-light);  /* 亮色边框 */
    border-right: none;     /* 移除右边框 */
    color: var(--light-text);  /* 亮色文字 */
}

body.light-theme .category-tab:last-child {
    border-right: 2px solid var(--frosted-border-light);  /* 最后一个标签右边框2px */
}

body.light-theme .category-tab:hover,
body.light-theme .category-tab.active {
    background: var(--light-hover);  /* 亮色悬停背景 */
}

/* 暗色主题标签 */
body.dark-theme .category-tab {
    background: var(--frosted-bg-dark);           /* 暗色背景 */
    border: 1px solid var(--frosted-border-dark);   /* 暗色边框 */
    border-right: none;     /* 移除右边框 */
    color: var(--dark-text);  /* 暗色文字 */
}

body.dark-theme .category-tab:last-child {
    border-right: 2px solid var(--frosted-border-dark);  /* 最后一个标签右边框2px */
}

body.dark-theme .category-tab:hover,
body.dark-theme .category-tab.active {
    background: var(--dark-hover);  /* 暗色悬停背景 */
}

/* 响应式布局 */
@media (max-width: 768px) {
    .category-tab {
        height: 32px;       /* 移动端更小的高度 */
        padding: 0 10px;    /* 移动端更小的内边距 */
        font-size: 13px;    /* 移动端更小的字体 */
    }
}

/* 内容区域样式 */
.content-area {
    padding: 30px 20px;
    margin-top: -1px;  /* 确保与标签栏缝连接 */
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 180px);  /* 6列，每列180px（1200/6=200，留出间距） */
    gap: 15px;                /* 间距15px */
    max-width: 1200px;        /* 最大宽度1200px */
    margin: 0 auto;           /* 容器居中 */
    justify-content: center;   /* 网格居中 */
    padding: 0 15px;          /* 两侧内边距 */
}

@media (max-width: 1200px) {
    .links-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 180px));  /* 5列 */
    }
}

@media (max-width: 992px) {
    .links-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 160px));  /* 4列 */
    }
}

@media (max-width: 768px) {
    .links-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 150px));  /* 3列 */
    }
}

@media (max-width: 576px) {
    .links-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 140px));  /* 2列 */
    }
}

.link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    justify-content: flex-start;  /* 内容左对齐 */
}

.link-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.link-item img.favicon {
    width: 32px;              /* 图标尺寸 */
    height: 32px;             /* 图标尺寸 */
    object-fit: contain;      /* 保持比例 */
    flex-shrink: 0;           /* 防止图标缩小 */
}

.link-item .link-name {
    flex: 1;                  /* 占据剩余空间 */
    width: 100%;              /* 宽度100% */
    text-align: center;       /* 文字居中 */
    white-space: nowrap;      /* 文字不换行 */
    overflow: hidden;         /* 超出隐藏 */
    text-overflow: ellipsis;  /* 显示省略号 */
    padding: 0 0px;           /* 左右内边距 */
}

/* 搜索建议和历史记录样式 */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 220px;
    width: 480px;
    margin-top: 5px;
    border-radius: 4px;
    overflow: hidden;
    z-index: 1000;
}

.suggestion-section {
    padding: 10px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.suggestion-section:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.suggestion-section h3 {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
    padding: 0 15px 8px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px 8px;
}

.history-header a {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: none;
}

.history-header a:hover {
    color: var(--primary-color);
}

.search-suggestions ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-suggestions li a {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.search-suggestions li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-suggestions li i {
    margin-right: 10px;
    color: var(--text-light);
    font-size: 12px;
}

.suggestion-item i {
    color: var(--primary-color);
}

.history-item i {
    color: #95a5a6;
}

/* 页脚样式 */
.footer {
    width: 100%;
    padding: 15px 0;
    text-align: center;
    z-index: 999;
    backdrop-filter: var(--frosted-blur);
    -webkit-backdrop-filter: var(--frosted-blur);
    margin-top: auto;  /* 自动占据底部空间 */
}

/* 亮色主题页脚 */
body.light-theme .footer {
    background: var(--frosted-bg-light);
    border-top: 1px solid var(--frosted-border-light);
    color: var(--light-text);
}

/* 暗色主题页脚 */
body.dark-theme .footer {
    background: var(--frosted-bg-dark);
    border-top: 1px solid var(--frosted-border-dark);
    color: var(--dark-text);
}

/* 页脚链接 */
.footer a {
    text-decoration: none !important;
    transition: opacity 0.3s !important;
}

/* 亮色主题页脚链接 */
body.light-theme .footer a {
    color: var(--light-text) !important;
}

body.light-theme .footer a:hover {
    opacity: 0.8 !important;
}

/* 暗色主题页脚链接 */
body.dark-theme .footer a {
    color: var(--dark-text) !important;
}

body.dark-theme .footer a:hover {
    opacity: 0.8 !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .logo img {
        width: 300px;
    }
    
    .search-input-wrapper {
        width: 100%;
    }
    
    .categories {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .category-tab {
        padding: 10px 15px;
        white-space: nowrap;
    }
}

/* 登录和注册页面样式 */
.auth-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.auth-container h1 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.auth-container button {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.auth-container button:hover {
    background: var(--primary-dark);
}

.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 10px;
}

.auth-links a:hover {
    color: var(--primary-color);
}

/* 用户个人中心样式 */
.profile-container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
    display: flex;
    gap: 30px;
}

.profile-sidebar {
    width: 200px;
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.profile-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-sidebar li {
    margin-bottom: 10px;
}

.profile-sidebar a {
    display: block;
    padding: 10px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.profile-sidebar a:hover,
.profile-sidebar a.active {
    background: var(--primary-light);
    color: var(--primary-color);
}

.profile-content {
    flex: 1;
    background: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.profile-content h2 {
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}

/* 消息提示样式 */
.success {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.error {
    background: #fee2e2;
    color: #dc2626;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* 主页样式 */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* 亮色文字主题 */
body.light-theme {
    color: #fff;
}

body.light-theme .category-tab {
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.light-theme .category-tab:hover,
body.light-theme .category-tab.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

body.light-theme .search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

body.light-theme .search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

body.light-theme .search-button {
    background: rgba(255, 255, 255, 0.2);
    color: #000000;
}

body.light-theme .link-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

body.light-theme .link-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 暗色文字主题 */
body.dark-theme {
    color: #333;
}

body.dark-theme .category-tab {
    color: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-theme .category-tab:hover,
body.dark-theme .category-tab.active {
    background: rgba(0, 0, 0, 0.05);
    color: #000;
}

body.dark-theme .search-input {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #333;
}

body.dark-theme .search-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

body.dark-theme .search-button {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

body.dark-theme .link-item {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.8);
}

body.dark-theme .link-item:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* 顶部栏链接样式 */
/* 亮色主题 */
body.light-theme .top-bar a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s;
}

body.light-theme .top-bar a:hover {
    color: rgba(255, 255, 255, 1);
}

/* 暗色主题 */
body.dark-theme .top-bar a {
    color: rgba(0, 0, 0, 0.8);
    text-decoration: none;
    transition: all 0.3s;
}

body.dark-theme .top-bar a:hover {
    color: rgba(0, 0, 0, 1);
}

/* 亮色主题搜索建议 */
body.light-theme .search-suggestions {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.light-theme .search-input-wrapper {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.light-theme #searchInput {
    color: var(--text-color);
    background: transparent;
}

body.light-theme #searchInput::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

body.light-theme .type-select {
    color: var(--text-color);
    background: transparent;
}

body.light-theme .engine-select {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.light-theme .suggestion-item {
    color: var(--light-text);
}

body.light-theme .suggestion-item:not(:last-child) {
    border-bottom: 1px solid var(--light-border);
}

body.light-theme .suggestion-item:hover,
body.light-theme .suggestion-item.active {
    background: var(--light-hover);
}

/* 暗色主题搜索建议 */
body.dark-theme .search-suggestions {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-theme .search-input-wrapper {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-theme #searchInput {
    color: var(--text-color);
    background: transparent;
}

body.dark-theme #searchInput::placeholder {
    color: rgba(0, 0, 0, 0.6);
}

body.dark-theme .type-select {
    color: var(--text-color);
    background: transparent;
}

/* 搜索建议项样式 */
body.dark-theme .suggestion-section h3 {
    color: var(--text-color);
}

body.dark-theme .search-suggestions li a {
    color: var(--text-color);
}

body.dark-theme .search-suggestions li a:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* 设为主页弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);  /* 半透明背景 */
    z-index: 1000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

/* 亮色主题弹窗 */
body.light-theme .modal-content {
    background: var(--frosted-bg-light);
    border: 1px solid var(--frosted-border-light);
    color: var(--light-text);
}

/* 暗色主题弹窗 */
body.dark-theme .modal-content {
    background: var(--frosted-bg-dark);
    border: 1px solid var(--frosted-border-dark);
    color: var(--dark-text);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.close {
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.close:hover {
    opacity: 1;
}

.browser-tips {
    font-size: 14px;
    line-height: 1.6;
}

.browser-tips p {
    margin: 15px 0 5px 0;
}

.browser-tips ol {
    margin: 10px 0;
    padding-left: 20px;
}

.browser-tips li {
    margin-bottom: 5px;
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .links-grid {
        grid-template-columns: repeat(2, minmax(0, 300px));  /* 平板2列 */
        padding: 0 15px;    /* 添加内边距 */
    }
}

@media (max-width: 768px) {
    .links-grid {
        grid-template-columns: minmax(0, 300px);  /* 手机1列 */
    }
}

/* 修改页面整体布局 */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

/* 主要内容区域 */
.content-wrapper {
    flex: 1;  /* 占据剩余空间 */
}

/* 下拉列表选项样式 */
.engine-select option,
.type-select option {
    background-color: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    padding: 8px !important;
}

/* 亮色主题下拉列表选项 */
body.light-theme .engine-select option,
body.light-theme .type-select option {
    background-color: rgba(0, 0, 0, 0.8) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* 暗色主题下拉列表选项 */
body.dark-theme .engine-select option,
body.dark-theme .type-select option {
    background-color: rgba(255, 255, 255, 0.8) !important;
    color: rgba(0, 0, 0, 0.9) !important;
}

/* 下拉列表选项悬停效果 */
.engine-select option:hover,
.type-select option:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

/* 下拉列表选中状态 */
.engine-select option:checked,
.type-select option:checked {
    background-color: rgba(39, 174, 96, 0.8) !important;
    color: white !important;
}

/* 顶部栏用户链接样式 */
.user-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 顶部栏头像样式 */
.top-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 暗色主题头像边框 */
body.dark-theme .top-avatar {
    border-color: rgba(0, 0, 0, 0.1);
}
