/* AnchorTag — 主站样式 */
:root {
    --bg: #faf9f7;
    --bg-card: #fff;
    --text: #1a1a1a;
    --text-muted: #5c5c5c;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --border: #e5e3e0;
    --radius: 12px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --font-sans: "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: "JetBrains Mono", monospace;
    --transition-touch: 0.15s ease;
}

.hl,
mark.hl {
    color: #d93026; /* 搜索命中红色 */
    background: none;
    font-weight: 500;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
}

.page {
    flex: 1;
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 20px 80px;
}

/* 备案号：自适应窗口时始终贴底 */
.site-footer {
    flex-shrink: 0;
    text-align: center;
    padding: 16px 20px 24px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.site-footer a {
    color: var(--text-muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--accent);
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.04em;
}

.logo:hover {
    color: var(--accent);
}

.logo-anchor {
    font-size: 1.6rem;
    color: #0f172a;
    filter: drop-shadow(0 4px 6px rgba(15, 23, 42, 0.25));
    display: inline-block;
    animation: logo-float 3.2s ease-in-out infinite;
}

@keyframes logo-float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-4px) rotate(2deg); }
}

.logo-text {
    font-weight: 700;
}

.logo-subtitle {
    margin: 6px 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.user-bar {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

.user-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.02);
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s, border-color 0.2s, transform var(--transition-touch);
}

.user-pill:hover {
    background: rgba(37, 99, 235, 0.04);
    border-color: rgba(37, 99, 235, 0.5);
}

.user-pill:active {
    transform: scale(0.97);
}

.user-avatar {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #0f172a;
    color: #e5e7eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.user-name {
    max-width: 120px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.user-points-pill {
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--accent);
}

.user-level-icon {
    font-size: 0.85em;
}

/* 积分等级：仅锚点图标变色，分数保持蓝色（文本样式锚点 &#x2693;&#xFE0E; 才继承 color） */
.profile-points-icon.level-icon-bronze,
.user-level-icon.level-icon-bronze {
    color: #b87333 !important;
    -webkit-text-fill-color: #b87333;
}
.profile-points-icon.level-icon-silver,
.user-level-icon.level-icon-silver {
    color: #6b7280 !important;
    -webkit-text-fill-color: #6b7280;
}
.profile-points-icon.level-icon-gold,
.user-level-icon.level-icon-gold {
    color: #b45309 !important;
    -webkit-text-fill-color: #b45309;
}

.auth-card {
    max-width: 360px;
    margin: 32px auto 0;
    padding: 24px 20px;
    border-radius: 16px;
    background: var(--bg-card);
    box-shadow: var(--shadow);
}

/* 登录/注册页：卡片轮廓更明显 */
.auth-card-outline {
    border: 2px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.auth-page .auth-field input {
    border: 1.5px solid var(--border);
}

.auth-page .auth-field input:focus,
.auth-page .auth-field textarea:focus {
    border-color: var(--accent);
    outline: none;
}

.auth-page .auth-field textarea {
    border: 1.5px solid var(--border);
    padding: 10px 12px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 100px;
}

.auth-title {
    margin: 0 0 16px;
    font-size: 1.2rem;
    text-align: center;
}

.auth-field {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
}

.auth-field input {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 0.9rem;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-wrap input {
    width: 100%;
    padding-right: 36px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.9rem;
}

.auth-btn {
    width: 100%;
    margin-top: 6px;
}

/* 登录/注册页：注册、登录、返回搜索首页 按钮区 */
.auth-actions {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-action-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    background: var(--bg);
    color: var(--text-muted);
    border: 2px solid var(--border);
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform var(--transition-touch);
}

.auth-action-btn:hover {
    background: rgba(37, 99, 235, 0.06);
    color: var(--accent);
    border-color: var(--accent);
}

.auth-action-btn:active {
    transform: scale(0.98);
}

.profile-line {
    margin: 4px 0;
    font-size: 0.9rem;
}

.auth-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
    display: block;
}

.auth-error {
    font-size: 0.8rem;
    color: #b91c1c;
    margin: 4px 0 0;
}

.auth-hint-inline {
    display: none;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.auth-hint-inline.visible {
    display: block;
}

.profile-avatar-wrap {
    margin-bottom: 6px;
}

.profile-avatar-img {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

/* ---------- 个人中心页面 ---------- */
.profile-page .auth-card {
    max-width: 420px;
    padding: 32px 28px 36px;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--border);
}

.profile-header {
    text-align: center;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.profile-avatar-lg {
    margin: 0 auto 12px;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #1e3a5f 0%, #0f172a 100%);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.35);
}

.profile-avatar-img-lg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-initial {
    font-size: 2rem;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: -0.02em;
}

.profile-name {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.profile-points-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
}

.profile-points-icon {
    font-size: 1rem;
    opacity: 0.9;
}

.profile-next-level {
    margin: 10px 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.profile-max-level {
    color: #b45309;
    font-weight: 500;
}

.profile-messages {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.profile-message {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.profile-message-success {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.profile-message-error {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
}

.profile-message-info {
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent);
}

.profile-section {
    margin-bottom: 28px;
}

.profile-section:last-of-type {
    margin-bottom: 0;
}

.profile-section-title {
    margin: 0 0 14px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.profile-form .auth-field {
    margin-bottom: 14px;
}

.profile-form .auth-hint {
    margin-bottom: 16px;
}

.profile-avatar-field .auth-field {
    margin-bottom: 0;
}

.profile-file-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.profile-avatar-preview .profile-avatar-img {
    width: 56px;
    height: 56px;
}

.profile-file-wrap {
    position: relative;
}

.profile-file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.profile-file-label {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px dashed var(--border);
    background: var(--bg);
    color: var(--text-muted);
    font-size: 0.88rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.profile-file-label:hover {
    border-color: var(--accent);
    background: rgba(37, 99, 235, 0.06);
    color: var(--accent);
}

.profile-submit {
    margin-top: 8px;
    border-radius: 10px;
    font-weight: 500;
}

.profile-edit-link {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 14px;
    font-size: 0.88rem;
    border-radius: 8px;
    text-decoration: none;
    background: var(--bg);
    color: var(--text-muted);
    border: 1px solid var(--border);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.profile-edit-link:hover {
    background: rgba(37, 99, 235, 0.06);
    color: var(--accent);
    border-color: rgba(37, 99, 235, 0.3);
}

.profile-edit-link {
    transition: transform var(--transition-touch);
}

.profile-edit-link:active {
    transform: scale(0.98);
}

/* 个人中心 - 搜索历史 */
.search-history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.search-history-item:last-child {
    border-bottom: none;
}

.profile-history-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin-bottom: 10px;
}

.profile-history-meta {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.profile-history-clear-form {
    margin: 0;
}

.profile-history-clear-btn {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.profile-history-clear-btn:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.35);
}

.search-history-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.95rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-history-link:hover {
    text-decoration: underline;
}

.search-history-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.profile-actions-section .profile-section-title {
    margin-bottom: 12px;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-action-link {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.profile-action-logout {
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
}

.profile-action-logout:hover {
    background: rgba(239, 68, 68, 0.15);
}

.profile-action-home {
    background: var(--bg);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.profile-action-home:hover {
    background: rgba(37, 99, 235, 0.06);
    color: var(--accent);
    border-color: rgba(37, 99, 235, 0.3);
}

.profile-action-feedback {
    background: var(--bg);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.profile-action-feedback:hover {
    background: rgba(37, 99, 235, 0.06);
    color: var(--accent);
    border-color: rgba(37, 99, 235, 0.3);
}

/* Search form */
.main {
    width: 100%;
}

.search-form {
    margin-bottom: 40px;
}

.search-wrap {
    position: relative;
    display: flex;
    gap: 0;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: var(--shadow);
    overflow: visible;
    transition: border-color 0.2s, box-shadow 0.25s ease;
}

.search-wrap:focus-within {
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.suggest-box {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: var(--bg-card);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
    border: 1px solid var(--border);
    z-index: 20;
    max-height: 260px;
    overflow-y: auto;
}

.suggest-item {
    padding: 8px 14px;
    font-size: 0.9rem;
    cursor: pointer;
}

.suggest-item:hover,
.suggest-active {
    background: #eff6ff;
}

.search-input {
    flex: 1;
    min-width: 0;
    padding: 14px 20px;
    border: none;
    border-radius: 0;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    background: transparent;
}

/* 搜索框左侧圆角与容器一致 */
.search-wrap .search-input {
    border-radius: calc(var(--radius) - 2px) 0 0 calc(var(--radius) - 2px);
}

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

.search-input:focus {
    outline: none;
}

.search-btn {
    padding: 14px 24px;
    border: none;
    border-radius: 0;
    background: var(--accent);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform var(--transition-touch);
    position: relative;
    overflow: hidden;
}

.search-wrap .search-btn {
    border-radius: 0 calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0;
}

.search-btn:hover {
    background: var(--accent-hover);
}

.search-btn:active {
    transform: scale(0.98);
}

/* 点击水波纹（.btn-ripple 由 effects.js 使用） */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

/* 深色按钮（如搜索、登录提交）用白色波纹 */
.ripple {
    position: absolute;
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    pointer-events: none;
}

/* 浅色按钮/链接用蓝色波纹 */
.btn-ripple--light .ripple {
    background: rgba(37, 99, 235, 0.25);
}

.ripple--active {
    animation: ripple-expand 0.5s ease-out forwards;
}

@keyframes ripple-expand {
    to {
        transform: scale(12);
        opacity: 0;
    }
}

/* 链接加水波纹时需块级以便定位 */
a.btn-ripple {
    display: inline-block;
}

.home-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    animation: home-hint-fade 0.6s ease-out;
}

@keyframes home-hint-fade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 主页面专属：粒子网络背景 + 锚点/海洋风格 */
.page {
    position: relative;
}

/* 全站统一背景：渐变 + 粒子网络（见 base 中的 particle-network-wrap） */
.page::before {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: -2;
    background: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(37, 99, 235, 0.06) 0%, transparent 50%),
                radial-gradient(ellipse 80% 50% at 80% 60%, rgba(15, 23, 42, 0.03) 0%, transparent 45%);
    animation: home-bg-shift 12s ease-in-out infinite;
    pointer-events: none;
}

.particle-network-wrap {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.particle-network-wrap canvas {
    display: block;
    width: 100%;
    height: 100%;
    vertical-align: top;
}

@keyframes home-bg-shift {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.02); }
}

.main--home .search-form {
    animation: home-form-appear 0.5s ease-out;
}

@keyframes home-form-appear {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Results */
.results-section {
    margin-top: 8px;
}

.results-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.result-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.result-item:last-child {
    border-bottom: none;
}

.result-title {
    margin: 0 0 2px;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.35;
}

.result-title a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s, opacity var(--transition-touch);
}

.result-title a:hover {
    text-decoration: underline;
}

.result-title a:active {
    opacity: 0.8;
}

.result-meta {
    margin: 4px 0 0;
    font-size: 0.78rem;
    color: #0d9488;
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.result-site {
    word-break: break-all;
}

.result-dot {
    color: var(--text-muted);
}

.result-time {
    color: var(--text-muted);
}

.result-snippet {
    margin: 2px 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Pagination */
/* 分页：搜索结果 & 搜索历史 通用 */
.pagination,
.profile-history-pagination {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.profile-history-pagination .pagination-inner {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 6px;
}

.profile-history-pagination .pagination-link,
.profile-history-pagination .pagination-current {
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    font-size: 0.8rem;
    line-height: 28px;
}

.profile-history-pagination .pagination-prev,
.profile-history-pagination .pagination-next {
    padding: 0 8px;
}

.pagination-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    color: var(--text-muted);
    font-size: 0.9rem;
    user-select: none;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    flex-shrink: 0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 36px;
    color: var(--accent);
    text-decoration: none;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: color 0.2s, background 0.2s, border-color 0.2s, transform var(--transition-touch);
}

.pagination-link:hover {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.35);
    color: var(--accent-hover);
    text-decoration: none;
}

.pagination-link:active {
    transform: scale(0.97);
}

.pagination-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    flex-shrink: 0;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 36px;
    color: #fff;
    text-align: center;
    background: var(--accent);
    border: 1px solid var(--accent);
}

/* 上一页/下一页 略宽，便于点击 */
.pagination-prev,
.pagination-next {
    padding: 0 10px;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .pagination-link,
    .pagination-current {
        min-width: 28px;
        height: 28px;
        padding: 0 6px;
        font-size: 0.85rem;
    }
    .pagination-prev,
    .pagination-next {
        padding: 0 8px;
    }
}

/* 全页面鼠标特效：滑动光晕 + 点击涟漪（含空白区域） */
.mouse-effect-layer {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    pointer-events: none;
    overflow: hidden;
}

.mouse-glow {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(37, 99, 235, 0.045) 0%,
        rgba(37, 99, 235, 0.02) 30%,
        rgba(37, 99, 235, 0.008) 55%,
        transparent 72%
    );
    pointer-events: none;
    transition: transform 0.35s ease-out, opacity 0.35s ease-out;
    will-change: transform;
}

.mouse-click-ripple {
    position: fixed;
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.35);
    pointer-events: none;
    transform: scale(0);
}

.mouse-click-ripple--active {
    animation: mouse-ripple 0.6s ease-out forwards;
}

@keyframes mouse-ripple {
    to {
        transform: scale(14);
        opacity: 0;
    }
}

/* 404 anchor scene */
.error-hero {
    text-align: center;
    padding: 64px 12px 32px;
}

.anchor-scene {
    position: relative;
    width: 180px;
    height: 140px;
    margin: 0 auto 24px;
}

.anchor-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 90px;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.5), transparent);
    transform: translateX(-50%);
}

.anchor-icon {
    position: absolute;
    left: 50%;
    top: 40px;
    transform: translateX(-50%);
    font-size: 2.4rem;
    animation: anchor-drop 3s infinite ease-in-out;
}

.sea {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    overflow: hidden;
}

.wave {
    position: absolute;
    left: -50%;
    width: 200%;
    height: 20px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 50%;
}

.wave-1 {
    bottom: 8px;
    animation: wave-move 6s infinite linear;
}

.wave-2 {
    bottom: 0;
    background: rgba(37, 99, 235, 0.18);
    animation: wave-move 8s infinite linear reverse;
}

@keyframes anchor-drop {
    0% { transform: translate(-50%, 0); opacity: 0; }
    20% { transform: translate(-50%, 30px); opacity: 1; }
    60% { transform: translate(-50%, 50px); }
    100% { transform: translate(-50%, 0); opacity: 0; }
}

@keyframes wave-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

.error-title {
    margin: 0 0 8px;
    font-size: 1.4rem;
}

.error-text {
    margin: 4px 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 48px 24px 56px;
    color: var(--text-muted);
}

.empty-state p {
    margin: 0 0 8px;
}

.empty-hint {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 无结果小彩蛋：锚点 + 一句俏皮话 + 试试搜这些 */
.empty-state-egg {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px dashed var(--border);
}

.empty-state-anchor {
    display: inline-block;
    font-size: 2.2rem;
    opacity: 0.7;
    animation: empty-anchor-bob 2.5s ease-in-out infinite;
}

@keyframes empty-anchor-bob {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-6px) rotate(3deg); }
}

.empty-state-egg-text {
    margin: 10px 0 0;
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.85;
}

.empty-state-suggest {
    margin-top: 22px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.empty-state-suggest-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.empty-state-suggest-link {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.88rem;
    color: var(--accent);
    text-decoration: none;
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.25);
    transition: background 0.2s, border-color 0.2s;
}

.empty-state-suggest-link:hover {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.4);
}

/* Footer */
/* ---------- 管理后台页面（与主站风格一致） ---------- */
.admin-nav {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    font-size: 0.9rem;
}

.admin-nav a {
    color: var(--text-muted);
    text-decoration: none;
}

.admin-nav a:hover {
    color: var(--accent);
}

.admin-nav-current {
    color: var(--accent) !important;
    font-weight: 500;
}

.admin-stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.admin-stats-table tr {
    border-bottom: 1px solid var(--border);
}

.admin-stats-table tr:last-child {
    border-bottom: none;
}

.admin-stats-label {
    padding: 10px 12px 10px 0;
    color: var(--text-muted);
    width: 40%;
}

.admin-stats-value {
    padding: 10px 0;
    font-weight: 500;
    color: var(--text);
}

.admin-crawler-hint {
    margin-top: 16px;
    padding: 12px 14px;
    background: var(--bg-soft, #f5f5f5);
    border-radius: 8px;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.admin-crawler-hint code {
    font-family: var(--font-mono, monospace);
    font-size: 0.85em;
    padding: 2px 6px;
    background: rgba(0,0,0,0.06);
    border-radius: 4px;
}

.admin-pre {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    overflow-x: auto;
    margin: 0 0 16px;
    white-space: pre-wrap;
    word-break: break-all;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    text-align: center;
    background: var(--bg);
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
}

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

/* Responsive */
@media (max-width: 560px) {
    .search-wrap {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
    }

    .page {
        padding: 16px 16px 72px;
    }
}
