:root {
    --primary-color: #3b82f6;
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #7c3aed 100%);
    --primary-dark: #2563eb;
    --secondary-color: #64748b;
    --accent-color: #8b5cf6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-secondary: #475569;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --header-height: 72px;
    --sidebar-width: 260px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 全局重置 */
* { box-sizing: border-box; outline: none; }
html {
    overflow-x: hidden; /* 防止横向滚动 */
    width: 100%;
}
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* 防止横向滚动 */
    width: 100%;
    max-width: 100vw; /* 确保不超出视口宽度 */
}
a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; display: block; }

/* ------------------ 
   通用组件
   ------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    font-size: 0.95rem;
}
.btn-primary { background: var(--primary-color); color: white; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { border-color: var(--border-color); background: white; color: var(--text-main); }
.btn-outline:hover { border-color: var(--primary-color); color: var(--primary-color); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: rgba(0,0,0,0.05); color: var(--text-main); }

.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.badge {
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-green { background: #d1fae5; color: #065f46; }

/* ------------------ 
   首页专用样式 (Home Hero)
   ------------------ */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 1.5rem;
    background-image: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(124, 58, 237, 0.05) 0px, transparent 50%);
    margin-top: -130px; /* Offset for navbar */
}

.navbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1.5rem 2rem;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
}
.navbar .nav-link { 
    margin-left: 1.5rem;
    font-weight: 500; 
    color: var(--text-secondary); 
}
.navbar .nav-link:hover { color: var(--primary-color); }
.navbar .btn-login { 
    background: var(--text-main); 
    color: #fff; 
    padding: 0.6rem 1.4rem; 
    border-radius: 99px; 
}

.brand-logo { text-align: center; margin-bottom: 3rem; animation: fadeDown 0.8s ease-out; }
.brand-logo h1 {
    font-size: 5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}
.brand-logo .site-logo-img {
    max-width: 300px;
    max-height: 120px;
    height: auto;
    width: auto;
    margin-bottom: 0.5rem;
    display: inline-block;
}
.brand-logo p { color: var(--text-light); font-size: 1.2rem; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 500; }

.search-wrapper { width: 100%; max-width: 680px; position: relative; animation: fadeUp 0.8s ease-out 0.2s backwards; }
.search-types { display: flex; justify-content: center; gap: 1rem; margin-bottom: 1.5rem; }
.type-btn {
    background: transparent; border: none; color: var(--text-light); font-size: 1rem;
    font-weight: 500; padding: 0.5rem 1rem; cursor: pointer; border-radius: 99px; transition: var(--transition);
}
.type-btn.active, .type-btn:hover { background: rgba(255, 255, 255, 0.6); color: var(--primary-color); box-shadow: var(--shadow-sm); }

.search-box {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 99px;
    padding: 0.8rem 1.5rem;
    display: flex; align-items: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}
.search-box:focus-within, .search-box:hover {
    box-shadow: var(--shadow-glow), var(--shadow-lg);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}
.search-icon { color: var(--text-light); width: 24px; height: 24px; margin-right: 1rem; }
.search-input { flex: 1; border: none; background: transparent; font-size: 1.1rem; color: var(--text-main); font-weight: 400; padding: 0.5rem 0; }
.search-btn {
    background: var(--primary-gradient); border: none; width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer; margin-left: 0.5rem;
    transition: var(--transition); color: white;
}
.search-btn:hover { transform: rotate(90deg) scale(1.1); }
.search-btn svg { width: 20px; height: 20px; }

.footer { position: absolute; bottom: 0; width: 100%; padding: 2rem; text-align: center; color: var(--text-light); font-size: 0.85rem; }
.footer-links { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 0.5rem; 
}
.footer-links a { 
    color: var(--text-light); 
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-main); }
.footer-separator {
    color: var(--text-light);
    margin: 0 0.25rem;
}
.footer-links span:not(.footer-separator) {
    color: var(--text-light);
}

/* ------------------ 
   认证页面 (登录/注册)
   ------------------ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 2rem;
}
.auth-container {
    width: 100%;
    max-width: 420px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.5);
}
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-logo { font-size: 2rem; font-weight: 800; color: var(--primary-color); letter-spacing: -1px; display: block; margin-bottom: 0.5rem; }
.auth-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.auth-subtitle { color: var(--text-secondary); font-size: 0.95rem; }

.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); }
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all 0.2s;
    background: #f8fafc;
}
.form-input:focus { border-color: var(--primary-color); background: white; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }

/* ------------------ 
   搜索结果页布局
   ------------------ */
.results-page { 
    background: #fff; 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}
.results-header {
    height: var(--header-height);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}
.header-left { 
    display: flex; 
    align-items: center; 
    gap: 2rem; 
    flex: 1; 
    min-width: 0; /* 防止flex子元素溢出 */
}
.logo-result { 
    font-size: 1.8rem; 
    font-weight: 800; 
    color: var(--primary-color); 
    letter-spacing: -1px; 
    margin-right: 1rem; 
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.logo-result-img {
    max-height: 40px;
    max-width: 200px;
    height: auto;
    width: auto;
    display: block;
}
.search-bar-result {
    flex: 1;
    max-width: 680px;
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0; /* 防止flex子元素溢出 */
}
.search-bar-result input {
    width: 100%;
    height: 46px;
    padding: 0 3.5rem 0 3rem;
    border-radius: 99px;
    border: 2px solid #3b82f6;
    background: #ffffff;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    color: var(--text-main);
}
.search-bar-result input:focus { 
    background: white; 
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25), 0 4px 12px rgba(0, 0, 0, 0.15); 
    border-color: #2563eb;
    outline: none;
    transform: scale(1.01);
}
.search-bar-icon { position: absolute; left: 1.2rem; color: var(--text-light); z-index: 1; }
.search-btn-result {
    position: absolute;
    right: 0.5rem;
    background: var(--primary-gradient);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
    z-index: 10;
}
.search-btn-result:hover {
    transform: rotate(90deg) scale(1.1);
}
.search-btn-result svg {
    width: 18px;
    height: 18px;
}
.header-right { display: flex; align-items: center; gap: 1rem; margin-left: 2rem; }
.user-avatar {
    width: 36px; height: 36px; border-radius: 50%; background: var(--primary-color); color: white;
    display: flex; align-items: center; justify-content: center; font-weight: 600; cursor: pointer;
}

.results-nav { 
    padding: 0 2rem 0 160px; 
    border-bottom: 1px solid var(--border-color); 
    background: #fff;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.nav-tabs { display: flex; gap: 1.5rem; }
.nav-tab {
    padding: 0.8rem 0.2rem; font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; border-bottom: 3px solid transparent;
    display: flex; align-items: center; gap: 6px;
}
.nav-tab.active { color: var(--primary-color); border-bottom-color: var(--primary-color); }
.nav-tab:hover { color: var(--text-main); }

.container-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px; /* 左侧自适应，右侧固定360px */
    gap: 4rem;
    max-width: 1400px;
    padding: 1.5rem 2rem 1.5rem 160px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}
@media (max-width: 1200px) {
    .container-grid { 
        padding-left: 2rem; 
        padding-right: 2rem;
        grid-template-columns: 1fr; 
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    .results-nav { 
        padding-left: 2rem; 
        padding-right: 2rem;
        width: 100%;
        max-width: 100vw;
    }
}

/* 左侧结果列表 */
.result-card { margin-bottom: 2rem; animation: fadeIn 0.5s ease-out; }
.result-meta { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; font-size: 0.9rem; color: var(--text-main); }
.result-favicon { width: 16px; height: 16px; border-radius: 2px; }
.result-site-name { font-weight: 600; }
.result-url { color: var(--text-secondary); font-size: 0.85rem; }
.result-title {
    font-size: 1.25rem; line-height: 1.4; margin-bottom: 0.4rem; font-weight: 500;
}
.result-title a { color: #1a0dab; }
.result-title a:hover { text-decoration: underline; }
.result-desc { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; max-width: 800px; }
.result-sitelinks {
    margin-top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.sitelink-tag {
    font-size: 0.85rem;
    color: var(--primary-color);
    background: #eff6ff;
    padding: 2px 10px;
    border-radius: 4px;
    text-decoration: none !important;
}
.sitelink-tag:hover { background: #dbeafe; }

/* 右侧侧边栏 */
.sidebar-widget { margin-bottom: 2rem; background: #fff; border-radius: var(--radius-md); overflow: hidden; }
.widget-title { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; color: var(--text-main); }
.ad-box {
    background: #f8fafc; border: 1px dashed var(--border-color); border-radius: var(--radius-md);
    height: 250px; display: flex; align-items: center; justify-content: center; flex-direction: column;
    color: var(--text-light); font-size: 0.9rem;
}
.related-list { display: flex; flex-direction: column; gap: 0.5rem; }
.related-item {
    display: flex; align-items: center; gap: 0.8rem; padding: 0.5rem; border-radius: var(--radius-sm); cursor: pointer;
}
.related-item:hover { background: #f1f5f9; }
.related-icon { color: var(--text-light); }

/* ------------------ 
   仪表盘 (Admin & User)
   ------------------ */
.dashboard-layout { display: flex; min-height: 100vh; background: #f1f5f9; }
.dash-sidebar {
    width: var(--sidebar-width);
    background: #0f172a;
    color: white;
    flex-shrink: 0;
    position: fixed;
    height: 100vh;
}
.dash-header { padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.dash-brand { font-size: 1.5rem; font-weight: 700; color: white; display: flex; align-items: center; gap: 0.5rem; }
.dash-nav { padding: 1.5rem 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.dash-link {
    display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 1rem;
    color: #94a3b8; border-radius: var(--radius-sm); transition: all 0.2s;
}
.dash-link:hover, .dash-link.active { background: var(--primary-color); color: white; }
.dash-main { flex: 1; margin-left: var(--sidebar-width); padding: 2rem; }

.dash-topbar {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem;
}
.page-title { font-size: 1.8rem; font-weight: 700; color: var(--text-main); }

.data-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.data-card { background: white; padding: 1.5rem; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.data-value { font-size: 2rem; font-weight: 700; margin-top: 0.5rem; color: var(--text-main); }
.data-label { color: var(--text-secondary); font-size: 0.9rem; }

/* ------------------ 
   关于我们、隐私政策、服务条款页面
   ------------------ */
.dashboard-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}
.dashboard-header .header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-small {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
}
.logo-small-img {
    max-height: 40px;
    max-width: 200px;
    height: auto;
    width: auto;
    display: block;
}
.logo-icon {
    font-size: 1.5rem;
}
.logo-text {
    color: var(--primary-color);
}
.dashboard-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.dashboard-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.dashboard-nav a:hover {
    color: var(--primary-color);
}
.dashboard-nav a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.about-page,
.privacy-page,
.terms-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.about-main,
.privacy-main,
.terms-main {
    flex: 1;
    padding: 3rem 0;
    background: var(--bg-body);
}

.about-container,
.privacy-container,
.terms-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
}

.about-container h1,
.privacy-container h1,
.terms-container h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.about-section,
.privacy-section,
.terms-section {
    margin-bottom: 2.5rem;
}

.about-section h2,
.privacy-section h2,
.terms-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.about-section p,
.privacy-section p,
.terms-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-section ul,
.privacy-section ul,
.terms-section ul {
    list-style: disc;
    padding-left: 2rem;
    margin: 1rem 0;
}

.about-section li,
.privacy-section li,
.terms-section li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .dashboard-header .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    .dashboard-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .about-container,
    .privacy-container,
    .terms-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    .about-container h1,
    .privacy-container h1,
    .terms-container h1 {
        font-size: 2rem;
    }
}

/* ------------------ 
   响应式适配 & 动画
   ------------------ */
@media (max-width: 1200px) {
    .container-grid { 
        padding-left: 2rem; 
        padding-right: 2rem;
        grid-template-columns: 1fr; 
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    .results-nav { 
        padding-left: 2rem; 
        padding-right: 2rem;
        width: 100%;
        max-width: 100vw;
    }
    .sidebar-widget { display: none; } /* 移动端隐藏侧边栏 */
    .results-header {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}
@media (max-width: 768px) {
    .brand-logo h1 { font-size: 3rem; }
    .navbar { justify-content: center; }
    .results-nav {
        padding: 0.5rem 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nav-tabs {
        gap: 0.5rem;
    }
    .nav-tab {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    .results-main {
        padding: 1rem;
    }
    .result-card {
        padding: 0.75rem 0;
    }
    .result-title-large {
        font-size: 1rem;
    }
    .result-body {
        font-size: 0.85rem;
    }
    /* 移动端搜索框优化 - 合并到现有媒体查询 */
    .results-header {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
    }
    .header-left {
        width: 100%;
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }
    .logo-result {
        display: none; /* 移动端隐藏Logo文字 */
    }
    .search-bar-result {
        flex: 1;
        max-width: none;
        min-width: 0;
    }
    .search-bar-result input {
        color: #000311;
        height: 50px;
        padding: 0 4.5rem 0 2.8rem;
        font-size: 1.1rem;
        border-radius: 10px;
        border: 2px solid #3b82f6;
        background: #ffffff;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    .search-bar-result input:focus {
        border-color: #2563eb;
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15);
        transform: scale(1.01);
    }
    .search-bar-icon {
        left: 1rem;
        width: 18px;
        height: 18px;
        color: #64748b;
        z-index: 2;
    }
    .search-btn-result {
        position: absolute;
        right: 0.3rem;
        width: auto;
        min-width: 55px;
        height: 38px;
        padding: 0 16px;
        border-radius: 10px;
        font-size: 0.9rem;
        font-weight: 600;
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
        box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
        z-index: 2;
    }
    .search-btn-result svg {
        display: none;
    }
    .search-btn-result::after {
        content: '搜索';
        color: white;
        font-weight: 500;
    }
    .search-btn-result:hover,
    .search-btn-result:active {
        transform: scale(0.98);
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    }
    .header-right {
        display: none; /* 移动端隐藏用户头像和登录按钮 */
    }
    .header-left {
        gap: 0; /* Logo隐藏后，移除gap */
        width: 100%;
        max-width: 100%;
    }
    /* 确保底部搜索框与顶部宽度完全一致 */
    .mobile-bottom-search {
        padding: 0.75rem 1rem;
    }
    .results-header {
        padding: 0.75rem 1rem;
        flex-wrap: nowrap;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    .results-nav {
        padding: 0.5rem 1rem;
        padding-left: 1rem;
        width: 100%;
        max-width: 100vw;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }
    .container-grid {
        padding: 1rem;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    .results-main {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    .result-card {
        width: 100%;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .result-title-large a {
        word-break: break-word;
    }
    .result-body {
        word-break: break-word;
    }
    .result-footer {
        word-break: break-all;
    }
    
    /* 分页器间距调整 */
    .pagination-wrapper {
        margin-top: 1.5rem !important;
    }
    
    /* 移动端底部内容 - 只在移动端显示，宽度与顶部一致 */
    .mobile-bottom-content {
        display: block;
        margin-top: 2rem;
        padding: 0;
        border-top: 1px solid #e2e8f0;
        box-sizing: border-box;
    }
    
    /* 移动端关联搜索 */
    .mobile-related-searches {
        margin-top: 2rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    .mobile-related-title {
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-main);
        margin-bottom: 1rem;
        padding-left: 0.5rem;
    }
    .mobile-related-tags {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .mobile-related-tag {
        display: inline-block;
        padding: 0.6rem 1rem;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        font-size: 0.9rem;
        color: var(--text-main);
        text-decoration: none;
        transition: all 0.2s;
        text-align: left;
        line-height: 1.4;
    }
    .mobile-related-tag:hover,
    .mobile-related-tag:active {
        background: #f1f5f9;
        border-color: #cbd5e1;
        color: #3b82f6;
    }
    
    /* 移动端底部搜索框 - 使用顶部搜索框样式，宽度与顶部一致 */
    .mobile-bottom-search {
        padding: 0.75rem 1rem;
        background: #fff;
        width: 100%;
        box-sizing: border-box;
    }
    .mobile-bottom-search .search-bar-result {
        width: 100%;
        max-width: 100%;
        flex: 1;
        min-width: 0;
        box-sizing: border-box;
    }
    /* 确保底部搜索框输入框和按钮的宽度与顶部完全一致 */
    .mobile-bottom-search .search-bar-result {
        position: relative;
    }
    .mobile-bottom-search .search-bar-result input {
        width: 100%;
        padding-right: 4.5rem; /* 确保为按钮留出空间，与顶部一致 */
    }
    .mobile-bottom-search .search-btn-result {
        position: absolute;
        right: 0.3rem;
        width: auto;
        min-width: 55px;
        height: 34px;
        padding: 0 16px;
    }
    
    /* 三个文字按钮 */
    .mobile-footer-links {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        margin: 1.5rem 0;
        padding: 0 1rem;
    }
    .mobile-footer-link {
        font-size: 0.85rem;
        color: #64748b;
        text-decoration: none;
        transition: color 0.2s;
    }
    .mobile-footer-link:hover {
        color: #3b82f6;
    }
    .mobile-footer-links span.mobile-footer-link {
        color: #64748b;
    }
    .mobile-footer-separator {
        color: #cbd5e1;
        font-size: 0.85rem;
    }
    
    /* Logo和版权信息 */
    .mobile-footer-logo {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    .mobile-logo-img {
        height: 40px;
        width: auto;
        max-width: 200px;
    }
    .mobile-footer-copyright {
        font-size: 0.75rem;
        color: #94a3b8;
        text-align: center;
    }
}

/* 搜索页PC端Footer */
.results-footer {
    width: 100%;
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);

}

/* 桌面端隐藏移动端底部内容 */
@media (min-width: 769px) {
    .mobile-bottom-content {
        display: none;
    }
    .mobile-related-searches {
        display: none; /* 桌面端隐藏，因为侧边栏已显示 */
    }
    .results-footer {
        display: block;
    }
}

/* 移动端隐藏PC端Footer */
@media (max-width: 768px) {
    .results-footer {
        display: none;
    }
}

@keyframes fadeDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
