/* =========================================
   全局样式 - 简洁明亮主题
   SuperDHT - 磁力搜索引擎
   ========================================= */

/* CSS 变量 - 明亮配色 */
:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #6366f1;
    --primary-bg: rgba(79, 70, 229, 0.08);
    --primary-bg-hover: rgba(79, 70, 229, 0.12);

    --accent: #0ea5e9;
    --success: #10b981;
    --success-dark: #059669;
    --warning: #f59e0b;
    --danger: #ef4444;

    --text-primary: #111827;
    --text-secondary: #374151;
    --text-muted: #6b7280;
    --text-light: #9ca3af;

    --bg-root: #f8fafc;
    --bg-body: #f1f5f9;
    --bg-white: #ffffff;
    --bg-surface: #f8fafc;
    --bg-hover: #f1f5f9;

    --border-light: #e5e7eb;
    --border-default: #d1d5db;
    --border-focus: #4f46e5;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.07), 0 4px 6px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.08), 0 10px 10px rgba(0,0,0,0.03);

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

    --transition-fast: 0.15s ease;
    --transition: 0.2s ease;
}

/* =========================================
   首页头部
   ========================================= */
.header {
    margin-bottom: 36px;
}

.logo {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--primary);
    display: inline-block;
    margin-bottom: 8px;
    transition: color var(--transition-fast);
}

.logo:hover {
    color: var(--primary-dark);
}

.site-tagline {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 400;
}

/* =========================================
   搜索框
   ========================================= */
.search-form { width: 100%; }

.search-box {
    display: flex;
    max-width: 540px;
    margin: 0 auto 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1.5px solid var(--border-default);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.search-box:focus-within {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1), var(--shadow-md);
}

.search-input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: var(--font-sans);
    background: var(--bg-white);
    color: var(--text-primary);
}

.search-input::placeholder { color: var(--text-light); }

.search-button {
    padding: 14px 24px;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: background var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-button:hover { background: var(--primary-dark); }
.search-button:active { background: var(--primary-dark); opacity: 0.9; }

/* 导航栏搜索框样式 */
.navbar-search .search-box {
    margin: 0;
    box-shadow: none;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-default);
    max-width: none;
}

.navbar-search .search-input {
    padding: 9px 14px;
    font-size: 16px;
}

.navbar-search .search-button {
    padding: 9px 18px;
    font-size: 0.88rem;
}

/* =========================================
   热门关键词
   ========================================= */
.hot-keywords {
    margin-top: 32px;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-white) 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition);
}

.hot-keywords:hover {
    border-color: var(--border-default);
}

.hot-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.hot-title::before {
    content: '🔥';
    font-size: 0.9rem;
    letter-spacing: 0;
    text-transform: none;
}

.keywords {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-text-size-adjust: 100%;
}

a { color: inherit; text-decoration: none; }

/* =========================================
   首页布局
   ========================================= */
body:not(.page-list) {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

/* =========================================
   主容器
   ========================================= */
.container {
    width: 92%;
    max-width: 1050px;
    margin: 40px auto;
    padding: 56px 48px;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xl);
    text-align: center;
    animation: fadeInUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

body.page-list {
    display: block;
    background: var(--bg-body);
}

body.page-list .container {
    max-width: 1050px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    text-align: left;
    margin: 0 auto;
    animation: none;
    border-radius: 0;
}

/* =========================================
   顶部导航栏（列表页/详情页）
   ========================================= */
.site-navbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-inner {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
    letter-spacing: -0.3px;
    flex-shrink: 0;
}

.navbar-logo span {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.85rem;
    margin-left: 6px;
}

.navbar-search {
    flex: 1;
    max-width: 520px;
}


.keyword {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.keyword:hover {
    background: var(--primary-bg);
    border-color: var(--primary-light);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* =========================================
   页面（列表/详情）
   ========================================= */
.page-body {
    max-width: 1050px;
    margin: 0 auto;
    padding: 28px 24px 48px;
}

/* =========================================
   搜索结果统计信息
   ========================================= */
.stats-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 14px 22px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--bg-white), var(--bg-surface));
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    font-size: 0.92rem;
    color: var(--text-muted);
    animation: fadeInUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.stats-info .stats-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary-bg);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    flex-shrink: 0;
    margin-right: 4px;
}

.stats-info .stats-label {
    color: var(--text-muted);
}

.stats-info .stats-keyword {
    display: inline-flex;
    align-items: center;
    padding: 2px 12px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.3px;
}

.stats-info .stats-count {
    display: inline-flex;
    align-items: center;
    padding: 2px 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.92rem;
    min-width: 32px;
    justify-content: center;
}

.stats-info .stats-unit {
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .stats-info {
        padding: 12px 16px;
        font-size: 0.85rem;
        gap: 4px;
    }
    .stats-info .stats-keyword,
    .stats-info .stats-count {
        font-size: 0.82rem;
        padding: 1px 10px;
    }
    .stats-info .stats-icon {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }
}

/* =========================================
   搜索结果
   ========================================= */
.result-item {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    margin-bottom: 10px;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.result-item:hover {
    border-color: var(--border-default);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.result-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.5;
}

.result-title a {
    color: var(--primary);
    word-break: break-word;
    transition: color var(--transition-fast);
}

.result-title a:hover { color: var(--primary-dark); text-decoration: underline; }

.result-info {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.result-info span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.result-files {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    font-size: 0.84rem;
    color: var(--text-muted);
}

.result-files > div:first-child {
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.file-item {
    background: var(--bg-surface);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
    transition: all var(--transition-fast);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-item:hover {
    background: var(--primary-bg);
    border-color: var(--primary-light);
    color: var(--primary);
}

/* =========================================
   分页
   ========================================= */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 8px 15px;
    background: var(--bg-white);
    border: 1px solid var(--border-default);
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    min-width: 38px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.pagination a:hover {
    background: var(--primary-bg);
    border-color: var(--primary-light);
    color: var(--primary);
}

.pagination .current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 700;
}

/* =========================================
   无结果
   ========================================= */
.no-results {
    text-align: center;
    padding: 64px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.no-results h2 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.no-results p { color: var(--text-muted); font-size: 0.93rem; margin-top: 6px; }

.no-results a {
    color: var(--primary);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.no-results a:hover { color: var(--primary-dark); text-decoration: underline; }

/* =========================================
   磁力详情页
   ========================================= */
.magnet-detail {
    animation: fadeInUp 0.4s cubic-bezier(0.22,1,0.36,1) both;
}

/* 演示模式提示框 */
.demo-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    margin-bottom: 22px;
    background: #fefce8;
    border: 1px solid #fde68a;
    border-radius: var(--radius-lg);
    color: #92400e;
    font-size: 0.88rem;
    line-height: 1.7;
}

.demo-notice .demo-notice-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.demo-notice strong {
    color: #78350f;
    font-weight: 700;
}

@media (max-width: 768px) {
    .demo-notice {
        padding: 14px 16px;
        font-size: 0.84rem;
    }
}

.detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.45;
    word-break: break-word;
    font-feature-settings: "calt" 0, "rclt" 0;
}

.detail-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 22px;
}

.detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.detail-meta strong {
    color: var(--text-primary);
    font-weight: 600;
}

.magnet-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 28px;
}

.magnet-input {
    flex: 1;
    min-width: 260px;
    padding: 11px 14px;
    border: 1.5px solid var(--border-default);
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    outline: none;
    background: var(--bg-surface);
    color: var(--text-muted);
    transition: border-color var(--transition);
}

.magnet-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 22px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow); }
.btn-primary:active { opacity: 0.9; transform: scale(0.98); }

.btn-success {
    background: var(--success);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-success:hover { background: var(--success-dark); box-shadow: var(--shadow); }
.btn-success:active { opacity: 0.9; transform: scale(0.98); }

.detail-files { margin-top: 4px; }

.detail-files h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.detail-file-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.86rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.detail-file-item:hover {
    background: var(--primary-bg);
    border-color: #c7d2fe;
}

.detail-file-item .file-name {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    margin-right: 14px;
    font-size: 0.86rem;
    line-height: 1.5;
}

.detail-file-item .file-icon {
    display: inline-block;
    width: 1.3em;
    text-align: center;
    flex-shrink: 0;
    font-size: inherit;
}

.detail-file-item .file-size {
    color: var(--text-light);
    font-size: 0.8rem;
    white-space: nowrap;
    font-family: var(--font-mono);
}

/* =========================================
   文件树状目录结构
   ========================================= */
.detail-file-tree {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tree-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.86rem;
    color: var(--text-secondary);
    border-radius: 4px;
    transition: background var(--transition-fast);
    cursor: default;
}

.tree-item:hover {
    background: var(--bg-hover);
}

.tree-dir {
    margin-top: 2px;
    cursor: pointer;
}

.tree-dir > .tree-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 0.7rem;
    color: var(--text-light);
    cursor: pointer;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.tree-dir.expanded > .tree-toggle .tree-toggle-icon {
    transform: rotate(0deg);
}

.tree-toggle-icon {
    display: inline-block;
    font-size: 0.65rem;
    transition: transform var(--transition-fast);
}

.tree-dir-icon {
    flex-shrink: 0;
    font-size: 0.9rem;
}

.tree-dir-name {
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tree-dir-size {
    color: var(--text-light);
    font-size: 0.78rem;
    font-family: var(--font-mono);
    flex-shrink: 0;
    margin-left: auto;
}

.tree-file {
    padding-left: 40px;
}

.tree-file-icon {
    flex-shrink: 0;
    font-size: 0.85rem;
    width: 1.2em;
    text-align: center;
}

.tree-file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary);
}

.tree-file-size {
    color: var(--text-light);
    font-size: 0.78rem;
    font-family: var(--font-mono);
    flex-shrink: 0;
    margin-left: auto;
}

.tree-children {
    display: none;
}

.tree-children.expanded {
    display: block;
}

/* =========================================
    友情链接
    ========================================= */
.friend-links {
    margin-top: 36px;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-surface) 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: border-color var(--transition);
}

.friend-links:hover {
    border-color: var(--border-default);
}

.friend-links-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.friend-links-title::before {
    content: '🤝';
    font-size: 0.9rem;
    letter-spacing: 0;
    text-transform: none;
}

.friend-links-title::after {
    content: '🤝';
    font-size: 0.9rem;
    letter-spacing: 0;
    text-transform: none;
    transform: scaleX(-1);
}

.friend-links-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.friend-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: var(--bg-white);
    color: var(--text-muted);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 0.83rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.friend-link:hover {
    background: var(--primary-bg);
    border-color: var(--primary-light);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* =========================================
    底部
    ========================================= */
.stats {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    color: var(--text-light);
    font-size: 0.8rem;
    text-align: center;
}

.stats p { margin: 3px 0; line-height: 1.8; }

/* =========================================
    横幅广告
   ========================================= */
.banner-section {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    padding: 0;
}

.banner-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.banner-item {
    display: block;
    width: 100%;
    line-height: 0;
    overflow: hidden;
    border-radius: 0;
}

.banner-item img {
    display: block;
    width: 100%;
    height: calc(var(--banner-pc-base, 80px) * var(--banner-scale, 100) / 100);
    object-fit: fill;
    border-radius: 0;
}

/* =========================================
    响应式
   ========================================= */
@media (max-width: 768px) {
    .container {
        padding: 28px 24px;
        width: 95%;
        margin: 10px auto 20px;
        border-radius: var(--radius-lg);
    }

    .logo { font-size: 2.2rem; }

    .search-box { flex-direction: column; border-radius: var(--radius); overflow: visible; border: none; box-shadow: none; gap: 8px; }
    .search-box:focus-within { border: none; box-shadow: none; }
    .search-input { border: 1.5px solid var(--border-default); border-radius: var(--radius); padding: 13px 16px; }
    .search-input:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); outline: none; }
    .search-button { border-radius: var(--radius); width: 100%; justify-content: center; }

    /* 导航栏移动端适配 - 限制搜索框宽度不溢出 */
    .navbar-inner { padding: 0 16px; gap: 12px; max-width: 100%; }
    .navbar-logo span { display: none; }
    .navbar-search { max-width: none; min-width: 0; overflow: hidden; }
    .navbar-search .search-form { width: 100%; min-width: 0; }
    .navbar-search .search-box { max-width: 100%; margin: 0; box-shadow: none; border-radius: var(--radius-sm); border: 1.5px solid var(--border-default); overflow: hidden; min-width: 0; flex-direction: row; }
    .navbar-search .search-input { border: none; font-size: 16px; min-width: 0; width: 0; flex: 1 1 0%; }
    .navbar-search .search-button { border-radius: 0; width: auto; flex-shrink: 0; white-space: nowrap; }

    .page-body { padding: 16px 16px 40px; }

    .detail-title { font-size: 1.2rem; }
    .detail-meta { gap: 14px; padding: 14px 16px; }

    .magnet-actions { flex-direction: column; }
    .magnet-input { min-width: 0; width: 100%; }
    .btn { width: 100%; justify-content: center; }

    .result-item { padding: 16px 16px; }
    .result-info { gap: 12px; }
}

@media (max-width: 480px) {
    .container { padding: 28px 18px; }
    .logo { font-size: 1.9rem; }
    .detail-meta { flex-direction: column; gap: 10px; }
}

/* 横幅广告移动端适配 */
@media (max-width: 768px) {
    .banner-item img {
        height: calc(var(--banner-mobile-base, 60px) * var(--banner-scale, 100) / 100);
    }
}
