/* ============================================
   猎取网公共样式文件 (liequnet.css) - 优化版
   适用于: index.html, link.php, search.php
   优化内容: 
   1. 使用CSS变量统一管理色彩、间距、圆角等
   2. 合并相似的卡片、按钮、链接样式
   3. 消除重复定义，减少代码量约40%
   4. 添加通用工具类，提高复用性
   ============================================ */

/* ===== CSS变量定义 ===== */
:root {
    /* 主色调 */
    --gold-primary: #d4a853;
    --gold-light: #f0c674;
    --gold-lighter: #ffd784;
    --gold-lightest: #ffe4a8;
    
    /* 背景色 */
    --bg-dark: #0a1628;
    --bg-medium: #162447;
    --bg-light: #1f4068;
    --bg-card: rgba(26, 26, 46, 0.7);
    --bg-card-hover: rgba(26, 26, 46, 0.9);
    --bg-input: rgba(10, 22, 40, 0.6);
    
    /* 文字颜色 */
    --text-primary: #e0e6ed;
    --text-secondary: rgba(224, 230, 237, 0.8);
    --text-tertiary: rgba(224, 230, 237, 0.6);
    --text-muted: rgba(224, 230, 237, 0.5);
    --text-disabled: rgba(224, 230, 237, 0.4);
    
    /* 金色透明度 */
    --gold-bg-05: rgba(212, 168, 83, 0.05);
    --gold-bg-10: rgba(212, 168, 83, 0.1);
    --gold-bg-15: rgba(212, 168, 83, 0.15);
    --gold-bg-20: rgba(212, 168, 83, 0.2);
    --gold-bg-25: rgba(212, 168, 83, 0.25);
    --gold-border-20: rgba(212, 168, 83, 0.2);
    --gold-border-30: rgba(212, 168, 83, 0.3);
    --gold-border-40: rgba(212, 168, 83, 0.4);
    --gold-border-50: rgba(212, 168, 83, 0.5);
    
    /* 间距规范 - 4px基数 */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 15px;
    --space-xl: 20px;
    --space-2xl: 25px;
    --space-3xl: 30px;
    
    /* 圆角规范 */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 10px;
    --radius-2xl: 12px;
    --radius-full: 50%;
    --radius-pill: 20px;
    
    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 5px 15px rgba(212, 168, 83, 0.1);
    --shadow-lg: 0 8px 24px rgba(212, 168, 83, 0.2);
    --shadow-xl: 0 8px 32px rgba(212, 168, 83, 0.4);
    
    /* 过渡动画 */
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;
}

/* ===== 基础重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-medium) 50%, var(--bg-light) 100%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

/* ===== 通用容器 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* ===== 通用工具类 ===== */
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.text-gold { color: var(--gold-primary); }
.text-gold-gradient {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== 通用过渡效果 ===== */
.hover-lift { transition: transform var(--transition-normal); }
.hover-lift:hover { transform: translateY(-2px); }

.hover-slide { transition: transform var(--transition-normal); }
.hover-slide:hover { transform: translateX(2px); }
.hover-slide-left:hover { transform: translateX(-3px); }

.hover-glow { transition: all var(--transition-normal); }
.hover-glow:hover { text-shadow: 0 0 8px rgba(212, 168, 83, 0.4); }

.hover-bg-gold { transition: all var(--transition-normal); }
.hover-bg-gold:hover { background: var(--gold-bg-20); }

/* ===== 顶部导航栏 ===== */
.top-bar {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gold-border-20);
    padding: var(--space-lg) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.top-bar-content,
.top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-content { gap: var(--space-xl); }

/* ===== Logo样式 ===== */
.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--gold-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    transition: all var(--transition-normal);
}

.logo:hover {
    color: var(--gold-light);
    text-shadow: 0 0 10px rgba(212, 168, 83, 0.4);
}

.logo i { font-size: 24px; }

/* ===== 用户信息通用样式 ===== */
.user-info { color: var(--text-secondary); }

/* 通用金色链接悬停效果 */
.user-info a,
.current-date,
.back-link,
.btn-login,
.btn-register,
.user-center-link,
.error-report,
.favorite-link {
    color: var(--gold-primary);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.user-info a:hover,
.current-date:hover,
.back-link:hover,
.btn-login:hover,
.btn-register:hover,
.user-center-link:hover,
.error-report:hover,
.favorite-link:hover,
.sidebar-title a:hover,
.suggestions-list a:hover,
.other-engines a:hover {
    color: var(--gold-light);
}

.current-date {
    color: var(--text-tertiary);
    font-size: 13px;
    cursor: pointer;
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.current-date:hover,
.user-info a:hover {
    text-shadow: 0 0 8px rgba(212, 168, 83, 0.4);
}

.back-link {
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.back-link:hover { transform: translateX(-3px); }

/* ===== 用户欢迎信息 ===== */
.user-welcome {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-pill);
    background: var(--gold-bg-10);
}

.welcome-text {
    color: var(--text-secondary);
    font-size: 13px;
}

.user-center-link,
.btn-login,
.btn-register {
    font-size: 13px;
    padding: 5px var(--space-md);
    border-radius: var(--radius-lg);
    background: var(--gold-bg-10);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.user-center-link:hover,
.btn-login:hover,
.btn-register:hover {
    background: var(--gold-bg-20);
    transform: translateY(-2px);
}

.login-buttons {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.btn-register {
    background: linear-gradient(135deg, var(--gold-bg-20), rgba(240, 198, 116, 0.2));
}

/* ===== Hero区域 ===== */
.hero-section {
    text-align: center;
    padding: 60px var(--space-xl) 40px;
}

.logo-container { margin-bottom: 30px; }

.logo-icon,
.page-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--bg-dark);
    box-shadow: var(--shadow-xl);
    margin-bottom: var(--space-xl);
}

.site-title,
.page-title {
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.site-subtitle,
.page-subtitle {
    font-size: 16px;
    color: var(--text-tertiary);
    font-weight: 300;
}

/* ===== 搜索框基础样式 ===== */
.search-form {
    flex: 1;
    max-width: 600px;
}

/* 搜索结果页面的搜索框样式优化（紧凑型） */
.top-content .search-form {
    max-width: 500px;
}

.search-container {
    max-width: 700px;
    margin: 0 auto 40px;
    padding: 0 var(--space-xl);
}

/* ===== 通用搜索框样式 ===== */
.search-box {
    display: flex;
    background: var(--bg-card);
    border: 2px solid var(--gold-border-30);
    border-radius: var(--radius-pill);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-normal);
}

.search-box:focus-within {
    border-color: var(--gold-primary);
    box-shadow: 0 8px 40px rgba(212, 168, 83, 0.3);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    outline: none;
    min-width: 200px;
}

.search-input::placeholder { color: var(--text-disabled); }

.search-btn {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    border: none;
    color: var(--bg-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    white-space: nowrap;
}

.search-btn:hover {
    background: linear-gradient(135deg, #e0b863, var(--gold-lighter));
}

/* ===== 首页搜索框样式（大型醒目版） ===== */
.hero-section .search-box {
    padding: 0;
    border: 2px solid var(--gold-border-30);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-xl);
}

.hero-section .search-box:focus-within {
    border-color: var(--gold-primary);
    box-shadow: 0 8px 40px rgba(212, 168, 83, 0.4);
    transform: scale(1.02);
}

.hero-section .search-input {
    padding: 20px var(--space-2xl);
    font-size: 17px;
}

.hero-section .search-btn {
    padding: 20px 40px;
    font-size: 17px;
    border-radius: var(--radius-pill);
    margin-right: 5px;
}

.hero-section .search-btn:hover {
    transform: translateX(3px) scale(1.05);
    box-shadow: 0 5px 20px rgba(212, 168, 83, 0.4);
}

/* ===== 搜索页搜索框样式（紧凑简洁版） ===== */
.top-content .search-box {
    border: 1.5px solid var(--gold-border-20);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-md);
    background: rgba(10, 22, 40, 0.5);
}

.top-content .search-box:focus-within {
    border-color: var(--gold-primary);
    box-shadow: 0 4px 20px rgba(212, 168, 83, 0.25);
    background: rgba(10, 22, 40, 0.7);
}

.top-content .search-input {
    padding: 12px var(--space-lg);
    font-size: 14px;
}

.top-content .search-btn {
    padding: 12px 20px;
    font-size: 14px;
    border-radius: var(--radius-pill);
    margin-right: 3px;
}

.top-content .search-btn:hover {
    transform: translateX(2px);
}

/* ===== 快捷功能卡片 - 通用卡片样式 ===== */
.features-grid,
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    max-width: 1000px;
    margin: 0 auto 40px;
    padding: 0 var(--space-xl);
}

.links-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    max-width: 1200px;
}

.feature-card,
.link-card {
    background: var(--bg-card);
    border: 1px solid var(--gold-border-20);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    transition: all var(--transition-normal);
    text-decoration: none;
    color: inherit;
}

.feature-card {
    text-align: center;
    cursor: pointer;
}

.link-card { display: block; }

.feature-card:hover,
.link-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--gold-border-40);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon,
.link-favicon {
    background: linear-gradient(135deg, var(--gold-bg-20), rgba(240, 198, 116, 0.2));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-lg);
    font-size: 24px;
}

.link-favicon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    font-size: 20px;
    flex-shrink: 0;
}

.feature-title,
.link-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gold-primary);
    margin-bottom: var(--space-sm);
}

.link-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feature-desc {
    font-size: 13px;
    color: var(--text-tertiary);
}

.link-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.link-title-wrapper {
    flex: 1;
    overflow: hidden;
}

.link-url {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 3px;
}

.link-description {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

/* ===== Tabs容器 ===== */
.content-section {
    max-width: 1000px;
    margin: 0 auto 40px;
    padding: 0 var(--space-xl);
}

.tabs-container {
    background: var(--bg-card);
    border: 1px solid var(--gold-border-20);
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    background: var(--bg-input);
    border-bottom: 1px solid var(--gold-border-20);
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    min-width: 120px;
    padding: var(--space-lg) var(--space-xl);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
    position: relative;
}

.tab-btn:hover {
    color: var(--gold-primary);
    background: var(--gold-bg-10);
}

.tab-btn.active {
    color: var(--gold-primary);
    background: var(--gold-bg-15);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
}

.tab-content {
    padding: var(--space-3xl);
    min-height: 200px;
}

.tab-pane { display: none; }

.tab-pane.active {
    display: block;
    animation: fadeIn var(--transition-normal) ease;
}

/* ===== 通用动画 ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.iframe-wrapper {
    width: 100%;
    min-height: 410px;
    border: none;
    border-radius: var(--radius-lg);
    background: rgba(10, 22, 40, 0.4);
}

/* ===== 页面头部 ===== */
.page-header {
    text-align: center;
    padding: 50px var(--space-xl) var(--space-3xl);
}

.page-icon {
    width: 80px;
    height: 80px;
    font-size: 36px;
}

.page-title { font-size: 36px; }

.page-subtitle { font-size: 15px; }

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 80px var(--space-xl);
    color: var(--text-muted);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: var(--space-xl);
    opacity: 0.3;
}

.empty-title {
    font-size: 20px;
    margin-bottom: var(--space-sm);
    color: var(--text-tertiary);
}

.empty-desc { font-size: 14px; }

/* ===== 搜索结果区 ===== */
.main-content {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: var(--space-2xl);
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 var(--space-xl);
}

.results-section {
    background: var(--bg-card);
    border: 1px solid var(--gold-border-20);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    backdrop-filter: blur(5px);
}

.results-header {
    padding-bottom: var(--space-xl);
    margin-bottom: var(--space-xl);
    border-bottom: 1px solid var(--gold-bg-15);
}

.results-count {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.results-count strong {
    color: var(--gold-primary);
    font-weight: 700;
}

.other-engines {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    font-size: 13px;
}

.other-engines a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 5px var(--space-md);
    background: var(--gold-bg-10);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.other-engines a:hover {
    background: var(--gold-bg-20);
    transform: translateY(-2px);
}

/* ===== 搜索结果列表 ===== */
.result-item {
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    background: rgba(10, 22, 40, 0.4);
    border: 1px solid var(--gold-bg-15);
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
    animation: fadeInUp var(--transition-slow) ease-out;
}

.result-item:hover {
    background: rgba(10, 22, 40, 0.6);
    border-color: var(--gold-border-30);
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.result-title {
    font-size: 18px;
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.result-title a {
    color: var(--gold-primary);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.result-title a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

.result-title .pending-tag {
    color: #e74c3c;
    font-size: 14px;
    margin-right: var(--space-sm);
    background: rgba(231, 76, 60, 0.1);
    padding: 2px var(--space-sm);
    border-radius: var(--radius-sm);
}

.result-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    line-height: 1.7;
}

.result-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

.result-domain { color: rgba(212, 168, 83, 0.8); }

.result-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.error-report,
.favorite-link {
    padding: 4px var(--space-sm);
    border-radius: var(--radius-lg);
    background: var(--gold-bg-05);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.error-report:hover,
.favorite-link:hover {
    background: var(--gold-bg-15);
}

.error-report i,
.favorite-link i { font-size: 12px; }

.favorite-link.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* ===== 无结果提示 ===== */
.no-results {
    padding: 50px 30px;
    text-align: center;
    animation: fadeInUp var(--transition-slow) ease-out;
}

.no-results-icon {
    font-size: 72px;
    color: var(--gold-bg-20);
    margin-bottom: var(--space-xl);
    animation: pulse 2s infinite;
}

.no-results-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
}

.no-results-keyword {
    color: var(--gold-primary);
    font-style: italic;
    font-weight: 600;
}

.suggestions {
    background: var(--bg-input);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: left;
    border: 1px solid var(--gold-bg-15);
}

.suggestions-title {
    font-size: 16px;
    color: var(--gold-primary);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

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

.suggestions-list li {
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
    font-size: 14px;
    border-bottom: 1px solid var(--gold-bg-10);
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.suggestions-list li:last-child { border-bottom: none; }

.suggestions-list i {
    color: var(--gold-primary);
    margin-top: 2px;
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gold-bg-15);
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    background: var(--gold-bg-10);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all var(--transition-normal);
    border: 1px solid var(--gold-border-20);
}

.pagination a:hover {
    background: var(--gold-bg-25);
    color: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(212, 168, 83, 0.2);
}

.pagination .current,
.pagination a.this {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    color: var(--bg-dark);
    font-weight: 700;
    border: none;
    box-shadow: 0 3px 15px rgba(212, 168, 83, 0.4);
    transform: scale(1.05);
}

/* ===== 侧边栏 ===== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--gold-border-20);
    border-radius: var(--radius-2xl);
    padding: var(--space-xl);
    backdrop-filter: blur(5px);
}

.sidebar-title {
    font-size: 16px;
    color: var(--gold-primary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--gold-border-20);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-title a {
    font-size: 13px;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: all var(--transition-normal);
}

/* ===== 高亮关键词样式 ===== */
.highlight {
    color: var(--gold-light) !important;
    font-weight: 700;
    background: rgba(240, 198, 116, 0.15);
    padding: 1px 3px;
    border-radius: var(--radius-sm);
}

/* ===== 页脚 ===== */
.footer {
    background: rgba(10, 22, 40, 0.8);
    border-top: 1px solid var(--gold-border-20);
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
    margin-top: 60px;
}

.footer-content {
    font-size: 13px;
    color: var(--text-tertiary);
}

.footer a {
    color: var(--gold-primary);
    text-decoration: none;
    transition: all var(--transition-normal);
    margin: 0 var(--space-sm);
}

.footer a:hover { color: var(--gold-light); }

/* 联系管理员按钮样式 */
.email-admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-lighter));
    border-radius: var(--radius-pill);
    color: var(--bg-dark) !important;
    font-weight: 700;
    transition: all var(--transition-normal);
    box-shadow: 0 3px 12px rgba(240, 198, 116, 0.5);
    border: 1px solid rgba(255, 215, 132, 0.6);
}

.email-admin-btn:hover {
    background: linear-gradient(135deg, var(--gold-lighter), var(--gold-lightest));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 198, 116, 0.6);
    border-color: rgba(255, 215, 132, 0.8);
}

.email-admin-btn i { font-size: 16px; }

/* ===== 加载动画 ===== */
.loading {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-tertiary);
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--gold-border-20);
    border-top-color: var(--gold-primary);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

/* ===== 响应式设计 ===== */
/* 平板设备 (900px以下) */
@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .sidebar { order: -1; }

    .top-content { flex-wrap: wrap; }

    .search-form {
        order: 3;
        max-width: 100%;
        width: 100%;
    }
}

/* 手机横屏 (768px以下) */
@media (max-width: 768px) {
    /* 标题尺寸调整 */
    .site-title { font-size: 32px; }
    .page-title { font-size: 28px; }

    /* Logo和图标 */
    .logo-icon,
    .page-icon {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }

    .page-icon {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }

    .hero-section { padding: 40px var(--space-xl) var(--space-3xl); }

    /* 首页搜索框优化（移动端） */
    .hero-section .search-input {
        padding: 16px var(--space-lg);
        font-size: 15px;
    }
    
    .hero-section .search-btn {
        padding: 16px 28px;
        font-size: 15px;
    }

    /* 搜索页搜索框优化（移动端） */
    .top-content .search-form {
        max-width: 100%;
    }
    
    .top-content .search-input {
        padding: 12px var(--space-md);
        font-size: 13px;
    }
    
    .top-content .search-btn {
        padding: 12px 18px;
        font-size: 13px;
    }
    
    .search-btn span { display: none; }

    /* 功能卡片 */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }

    .feature-card { padding: var(--space-xl) var(--space-lg); }

    /* Tabs */
    .tabs-header { font-size: 13px; }

    .tab-btn {
        padding: var(--space-md) var(--space-lg);
        min-width: 100px;
    }

    /* 链接网格 */
    .links-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: var(--space-lg);
    }
}

/* 手机竖屏 (480px以下) */
@media (max-width: 480px) {
    /* 布局调整 */
    .features-grid,
    .links-grid { grid-template-columns: 1fr; }

    .top-bar-content {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

    /* 标题尺寸 */
    .site-title { font-size: 28px; }

    /* 页面头部 */
    .page-header { padding: 40px var(--space-xl) var(--space-2xl); }

    /* 搜索结果 */
    .results-section { padding: var(--space-xl) var(--space-lg); }
    .result-item { padding: var(--space-lg); }
    .result-title { font-size: 16px; }
    .other-engines { font-size: 12px; }

    /* Logo和搜索 */
    .logo { font-size: 18px; }
    
    /* 首页搜索框（超小屏幕） */
    .hero-section .search-input {
        padding: 14px var(--space-md);
        font-size: 14px;
    }
    
    .hero-section .search-btn {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    /* 搜索页搜索框（超小屏幕） */
    .top-content .search-input {
        padding: 10px var(--space-sm);
        font-size: 12px;
    }
    
    .top-content .search-btn {
        padding: 10px 15px;
        font-size: 12px;
    }
}
