/* =========================================================
   aicong 软件资源站模板  style.css
   白底浅灰模块、黑色文字、黄色标签点缀的软件站风格
   ========================================================= */

/* ---------- 基础变量 ---------- */
:root {
    --ah-theme: #006fff;
    --aHoverColor: #0056cc;
    --ah-tag-bg: #f6e34a;
    --ah-tag-text: #5a4d00;
    --ah-page-bg: #f5f6f7;
    --ah-card-bg: #ffffff;
    --ah-text: #333333;
    --ah-text-light: #8a8f99;
    --ah-border: #e8e9eb;
    --ah-topbar-bg: #1f2a3d;
    --ah-topbar-text: #c9cdd4;
    --ah-soft-bg: #f7f8fa;
    --ah-hover-bg: #fafbfc;
    --input-border: #d1d5db;
    --input-bg: #f3f4f6;

    /* 登录弹窗依赖变量 */
    --conBgcolor: var(--ah-card-bg);
    --borderColor: var(--ah-border);
    --fontColor: var(--ah-text);
    --lightColor: var(--ah-text-light);
    --buttonBgColor: var(--ah-theme);
    --buttonTextColor: #ffffff;
    --buttonBorderColor: var(--ah-theme);
    --inputBorderColor: var(--input-border);
    --inputBgColor: var(--input-bg);
    --bodyBground: var(--ah-page-bg);
    --marRadius: 8px;
}

/* ---------- 基础重置 ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background-color: var(--ah-page-bg);
    color: var(--ah-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; border: 0; }
a { color: var(--ah-theme); text-decoration: none; }
a:hover { color: var(--aHoverColor); }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; }

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ---------- 顶部工具条 ---------- */
.ah-topbar {
    background: var(--ah-topbar-bg);
    font-size: 13px;
}
.ah-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
    flex-wrap: wrap;
}
.ah-topbar-left, .ah-topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}
.ah-top-link {
    color: var(--ah-topbar-text);
    transition: color .2s;
    white-space: nowrap;
}
.ah-top-link:hover { color: #fff; }
.ah-top-static { color: var(--ah-topbar-text); opacity: .65; cursor: default; }
.ah-top-home { font-weight: 600; color: #fff; }

/* ---------- 配色横向切换（常驻） ---------- */
.ah-theme-switch { display: inline-flex; align-items: center; gap: 7px; }
.ah-theme-label { color: var(--ah-topbar-text); font-size: 13px; white-space: nowrap; }
.ah-theme-row { display: inline-flex; align-items: center; gap: 8px; }
.ah-theme-item {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0; background: none; border: 0; cursor: pointer;
}
.ah-theme-dot {
    width: 16px; height: 16px; border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .25);
    transition: transform .15s;
}
.ah-theme-item:hover .ah-theme-dot { transform: scale(1.2); }
.ah-theme-item.active .ah-theme-dot { box-shadow: 0 0 0 2px var(--ah-topbar-text); }

/* ---------- 语言下拉 ---------- */
.ah-lang-switch { position: relative; display: inline-flex; align-items: center; }
.ah-lang-btn {
    display: inline-flex; align-items: center; gap: 4px;
    background: none; border: 0; padding: 0; cursor: pointer;
    font-size: 13px; font-family: inherit;
}
.ah-lang-ico { flex: 0 0 auto; }
.ah-lang-panel {
    position: absolute; top: calc(100% + 8px); right: 0; z-index: 1200;
    min-width: 104px; padding: 6px;
    background: var(--ah-card-bg);
    border: 1px solid var(--ah-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
    display: none;
}
.ah-lang-panel.open { display: block; }
.ah-lang-item {
    display: block; width: 100%;
    padding: 7px 10px; background: none; border: 0; border-radius: 6px;
    cursor: pointer; font-size: 13px; font-family: inherit;
    color: var(--ah-text); text-align: left;
}
.ah-lang-item:hover { background: var(--ah-soft-bg); }

/* ---------- 主头部 ---------- */
.ah-header { background: var(--ah-card-bg); border-bottom: 1px solid var(--ah-border); }
.ah-header-inner {
    display: flex;
    align-items: center;
    min-height: 84px;
    gap: 18px;
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
}
.ah-logo { font-size: 30px; font-weight: 800; color: var(--ah-text); letter-spacing: .5px; }
.ah-logo-text { font-family: inherit; }
.ah-logo:hover { color: var(--ah-theme); }
.ah-logo-img img { height: 46px; width: auto; display: block; }
.ah-slogan { color: var(--ah-text-light); font-size: 14px; padding-left: 14px; border-left: 1px solid var(--ah-border); line-height: 1.4; }
.ah-header-search { margin-left: auto; }
.ah-header-search form { display: flex; }
.ah-header-search-input {
    width: 220px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--ah-border);
    border-right: none;
    border-radius: 6px 0 0 6px;
    outline: none;
    font-size: 14px;
    background: var(--ah-card-bg);
}
.ah-header-search-input:focus { border-color: var(--ah-theme); }
.ah-header-search-btn {
    height: 38px;
    padding: 0 18px;
    border: none;
    border-radius: 0 6px 6px 0;
    background: var(--ah-theme);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}
.ah-header-search-btn:hover { opacity: .9; }

/* 移动端菜单按钮 */
.ah-header-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    margin-left: auto;
    padding: 6px;
}
.ah-header-toggle span {
    width: 24px; height: 2px; background: var(--ah-text); border-radius: 2px;
}

/* ---------- 分类导航栏 ---------- */
.ah-navbar { background: var(--ah-card-bg); border-bottom: 1px solid var(--ah-border); }
.ah-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    min-height: 46px;
}
.ah-nav-item { position: relative; }
.ah-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 18px;
    line-height: 46px;
    color: var(--ah-text);
    font-size: 15px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
}
.ah-nav-link:hover { color: var(--ah-theme); }
.ah-nav-item.ah-current > .ah-nav-link,
.ah-nav-item.ah-has-drop.ah-current > .ah-nav-link {
    color: var(--ah-theme);
    border-bottom-color: var(--ah-theme);
}
.ah-caret {
    display: inline-block;
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 2px;
}
.ah-nav-avatar { width: 24px; height: 24px; border-radius: 50%; vertical-align: middle; }
.ah-drop {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: var(--ah-card-bg);
    border: 1px solid var(--ah-border);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    padding: 6px 0;
    display: none;
    z-index: 99;
}
.ah-nav-item:hover .ah-drop { display: block; }
.ah-drop li a {
    display: block;
    padding: 8px 18px;
    color: var(--ah-text);
    font-size: 14px;
}
.ah-drop li a:hover { color: var(--ah-theme); background: var(--ah-soft-bg); }

/* ---------- 主体布局 ---------- */
.ah-main { padding: 18px 15px 30px; }
.ah-row { display: flex; gap: 18px; align-items: flex-start; }
.ah-main-col { flex: 1; min-width: 0; }
.ah-full-col { width: 100%; }
.ah-side { width: 300px; flex-shrink: 0; }

/* ---------- 通用面板 ---------- */
.ah-panel {
    background: var(--ah-card-bg);
    border-radius: 8px;
    border: 1px solid var(--ah-border);
    margin-bottom: 16px;
    overflow: hidden;
}
.ah-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--ah-soft-bg);
    border-bottom: 1px solid var(--ah-border);
}
.ah-panel-head h3 {
    font-size: 16px;
    color: var(--ah-text);
    position: relative;
    padding-left: 12px;
}
.ah-panel-head h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: var(--ah-theme);
    border-radius: 2px;
}
.ah-panel-sub { color: var(--ah-text-light); font-size: 12px; }
.ah-more { color: var(--ah-theme); font-size: 13px; }
.ah-more:hover { text-decoration: underline; }
.ah-empty { padding: 24px; text-align: center; color: var(--ah-text-light); }

/* ---------- 文章列表卡片 ---------- */
.ah-log-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid var(--ah-border);
    transition: background .2s;
}
.ah-log-card:hover { background: var(--ah-hover-bg); }
.ah-log-card:last-child { border-bottom: none; }
.ah-log-thumb {
    width: 128px;
    height: 84px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    display: block;
    background: var(--ah-soft-bg);
}
.ah-log-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ah-log-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ah-text-light);
}
.ah-log-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ah-log-title {
    font-size: 17px;
    line-height: 1.4;
    color: var(--ah-text);
}
.ah-log-title a { color: var(--ah-text); }
.ah-log-title a:hover { color: var(--ah-theme); }
.ah-top-badge {
    display: inline-block;
    background: var(--ah-tag-bg);
    color: var(--ah-tag-text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    padding: 3px 7px;
    border-radius: 4px;
    margin-right: 7px;
    vertical-align: 1px;
}
.ah-log-excerpt {
    color: var(--ah-text-light);
    font-size: 13px;
    margin: 6px 0 8px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ah-log-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--ah-text-light);
    margin-top: auto;
    flex-wrap: wrap;
}
.ah-log-meta a { color: var(--ah-text-light); }
.ah-log-meta a:hover { color: var(--ah-theme); }
.ah-meta-sort a {
    display: inline-block;
    background: var(--ah-tag-bg);
    color: var(--ah-tag-text);
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
}
.ah-meta-sort a:hover { color: var(--ah-tag-text); opacity: .9; }

/* ---------- 分页 ---------- */
.ah-pagination { padding: 16px; display: flex; justify-content: center; }
.ah-pagination .pagination { display: flex; gap: 6px; margin: 0; }
.ah-pagination .pagination a, .ah-pagination .pagination span,
.ah-pagination .pagination .current, .ah-pagination .pagination .page-item {
    display: inline-block;
    min-width: 34px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    padding: 0 8px;
    border: 1px solid var(--ah-border);
    border-radius: 6px;
    color: var(--ah-text);
    font-size: 13px;
    background: var(--ah-card-bg);
}
.ah-pagination .pagination .current,
.ah-pagination .pagination .active a,
.ah-pagination .pagination a:hover {
    background: var(--ah-theme);
    border-color: var(--ah-theme);
    color: #fff;
}

/* ---------- 侧边栏 ---------- */
.ah-widget-list { padding: 10px 14px; }
.ah-widget-list li { padding: 7px 0; border-bottom: 1px dashed var(--ah-border); font-size: 13px; color: var(--ah-text); }
.ah-widget-list li:last-child { border-bottom: none; }
.ah-widget-list a { color: var(--ah-text); }
.ah-widget-list a:hover { color: var(--ah-theme); }
.ah-link-icon { vertical-align: -3px; margin-right: 6px; }
.ah-sort-children { padding-left: 16px; }
.ah-blogger { text-align: center; padding: 20px 14px; }
.ah-blogger-img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.ah-blogger-name { font-size: 16px; margin-top: 8px; }
.ah-blogger-desc { color: var(--ah-text-light); font-size: 12px; margin-top: 4px; }

/* 标签云 */
.ah-tag-cloud { padding: 12px 14px; line-height: 26px; }
.ah-tag {
    display: inline-block;
    background: var(--ah-soft-bg);
    color: var(--ah-text-light);
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 4px;
    margin: 3px 4px 3px 0;
    transition: background .2s, color .2s;
}
.ah-tag:hover { background: var(--ah-theme); color: #fff; }
.ah-tag-inline {
    display: inline-block;
    background: var(--ah-soft-bg);
    color: var(--ah-text-light);
    font-size: 12px;
    padding: 2px 9px;
    border-radius: 4px;
    margin: 3px 5px 3px 0;
}
.ah-tag-inline:hover { background: var(--ah-theme); color: #fff; }

/* 公告 */
.ah-notice-list { padding: 10px 14px; }
.ah-notice-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--ah-border);
    font-size: 13px;
    color: var(--ah-text);
}
.ah-notice-list li:last-child { border-bottom: none; }
.ah-notice-list a { color: var(--ah-text); flex: 1; }
.ah-notice-list a:hover { color: var(--ah-theme); }
.ah-notice-tag {
    flex-shrink: 0;
    background: var(--ah-theme);
    color: #fff;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 3px;
    margin-top: 2px;
}

/* 最新评论 */
.ah-comment-item { display: flex; gap: 9px; }
.ah-comment-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ah-comment-body { flex: 1; min-width: 0; }
.ah-comment-meta { display: flex; justify-content: space-between; align-items: center; }
.ah-comment-name { color: var(--ah-text-light); font-size: 12px; }
.ah-comment-time { color: var(--ah-text-light); font-size: 11px; }
.ah-comment-content {
    color: var(--ah-text); font-size: 13px; display: block;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ah-comment-content:hover { color: var(--ah-theme); }

/* 搜索 */
.ah-search-form { padding: 12px 14px; }
.ah-search-form form { display: flex; }
.ah-search-input {
    flex: 1;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--ah-border);
    border-radius: 6px 0 0 6px;
    outline: none;
    font-size: 13px;
}
.ah-search-input:focus { border-color: var(--ah-theme); }
.ah-search-btn {
    height: 36px;
    padding: 0 14px;
    border: none;
    background: var(--ah-theme);
    color: #fff;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    cursor: pointer;
}

/* 最新/热门文章 */
.ah-newlog-item { font-size: 13px; }
.ah-newlog-item a {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 首页主栏：分类最新文章 kiki 轮播（一次一屏，淡入自动切换） */
.ah-kiki { margin-bottom: 16px; padding: 0; }
.ah-kiki-slide { animation: ah-kiki-fadein .8s ease; }
@keyframes ah-kiki-fadein { from { opacity: 0; } to { opacity: 1; } }
.ah-kiki-head { padding: 16px 20px 0; }
.ah-kiki-head h3 { margin: 0; font-size: 18px; color: var(--ah-text); }
.ah-kiki-head h3 small { font-size: 13px; font-weight: 400; margin-left: 10px; }
.ah-kiki-head h3 small a { color: var(--ah-text-light); }
.ah-kiki-row { display: flex; gap: 16px; padding: 14px 20px 18px; }
.ah-kiki-item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--ah-text);
    text-align: center;
}
.ah-kiki-item img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
    border-radius: 6px;
    background: var(--ah-soft-bg);
    transition: transform .3s;
}
.ah-kiki-item:hover img { transform: scale(1.04); }
.ah-kiki-item p {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.4;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ah-kiki-item:hover p { color: var(--ah-theme); }
@media (max-width: 768px) {
    .ah-kiki-row { flex-wrap: wrap; gap: 12px; }
    .ah-kiki-item { flex: 0 0 calc(50% - 6px); }
}

/* 归档 */
.ah-archive {
    width: calc(100% - 28px);
    margin: 12px 14px;
    padding: 8px 10px;
    border: 1px solid var(--ah-border);
    border-radius: 6px;
    font-size: 13px;
    background: var(--ah-card-bg);
    color: var(--ah-text);
}

/* ---------- 文章详情页 ---------- */
.ah-log-con {
    background: var(--ah-card-bg);
    border-radius: 8px;
    border: 1px solid var(--ah-border);
    padding: 24px 28px;
}
.ah-log-con-full { margin: 0 auto; }
.ah-log-header { margin-bottom: 12px; }
.ah-log-title { font-size: 24px; line-height: 1.4; color: var(--ah-text); }
.ah-log-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--ah-text-light);
}
.ah-log-meta a { color: var(--ah-text-light); }
.ah-log-meta a:hover { color: var(--ah-theme); }
.ah-sort-badge {
    display: inline-block;
    background: var(--ah-tag-bg);
    color: var(--ah-tag-text);
    font-size: 12px;
    padding: 2px 9px;
    border-radius: 4px;
}
.ah-sort-badge:hover { color: var(--ah-tag-text); }
.ah-log-cover { margin: 10px 0; border-radius: 8px; overflow: hidden; }
.ah-log-cover img { width: 100%; display: block; }
.ah-hr { border: none; border-top: 1px solid var(--ah-border); margin: 12px 0 18px; }
.ah-article-content { font-size: 15px; line-height: 1.9; color: var(--ah-text); }
.ah-article-tags { margin: 14px 0 6px; }

/* markdown 内容 */
.markdown h1, .markdown h2, .markdown h3, .markdown h4 { margin: 22px 0 10px; color: var(--ah-text); }
.markdown h1 { font-size: 22px; } .markdown h2 { font-size: 20px; } .markdown h3 { font-size: 18px; } .markdown h4 { font-size: 16px; }
.markdown p { margin: 10px 0; }
.markdown img { border-radius: 6px; }
.markdown a { color: var(--ah-theme); }
.markdown blockquote {
    margin: 12px 0; padding: 10px 16px;
    border-left: 4px solid var(--ah-theme);
    background: var(--ah-soft-bg);
    color: var(--ah-text-light);
    border-radius: 0 6px 6px 0;
}
.markdown code {
    background: var(--ah-soft-bg); padding: 2px 6px; border-radius: 4px; font-size: 13px; color: #c0392b;
}
.markdown pre {
    background: #282c34; color: #e6e6e6; padding: 14px; border-radius: 8px; overflow: auto; font-size: 13px;
}
.markdown pre code { background: transparent; color: inherit; padding: 0; }
.markdown table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.markdown th, .markdown td { border: 1px solid var(--ah-border); padding: 8px 10px; font-size: 14px; }
.markdown th { background: var(--ah-soft-bg); }
.markdown ul, .markdown ol { margin: 10px 0; padding-left: 24px; }
.markdown ul { list-style: disc; }
.markdown ol { list-style: decimal; }

/* 相邻文章 */
.ah-neighbor-wrap {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 22px 0;
    padding: 12px 0;
    border-top: 1px dashed var(--ah-border);
    border-bottom: 1px dashed var(--ah-border);
    flex-wrap: wrap;
}
.ah-neighbor { max-width: 48%; }
.ah-neighbor a { display: block; }
.ah-neighbor-dir { color: var(--ah-theme); font-size: 13px; font-weight: 600; }
.ah-neighbor-title { color: var(--ah-text); font-size: 13px; }
.ah-neighbor a:hover .ah-neighbor-title { color: var(--ah-theme); }
.ah-neighbor-prev { text-align: left; }
.ah-neighbor-next { text-align: right; }

/* 评论区 */
.ah-comments-head { font-size: 16px; color: var(--ah-text); margin: 18px 0 10px; }
.ah-comments { margin-bottom: 10px; }
.ah-comment { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--ah-border); }
.ah-comment:last-child { border-bottom: none; }
.ah-comment-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ah-comment-main { flex: 1; min-width: 0; }
.ah-comment-head { display: flex; align-items: center; gap: 10px; }
.ah-comment-head b a { color: var(--ah-theme); }
.ah-comment-date { color: var(--ah-text-light); font-size: 12px; }
.ah-comment-content { font-size: 14px; color: var(--ah-text); margin: 4px 0; word-break: break-word; }
.ah-comment-reply { text-align: right; }
.ah-reply-btn {
    border: 1px solid var(--ah-border);
    background: var(--ah-card-bg);
    color: var(--ah-text-light);
    font-size: 12px;
    padding: 3px 12px;
    border-radius: 4px;
    cursor: pointer;
}
.ah-reply-btn:hover { color: var(--ah-theme); border-color: var(--ah-theme); }
.ah-comment-child { margin-left: 56px; }

.ah-comment-post { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--ah-border); }
.ah-comment-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 14px;
    border: 1px solid var(--ah-border);
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    outline: none;
    background: var(--ah-card-bg);
    color: var(--ah-text);
    font-family: inherit;
}
.ah-comment-textarea:focus { border-color: var(--ah-theme); }
.ah-comment-info { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.ah-comment-input {
    flex: 1;
    min-width: 140px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--ah-border);
    border-radius: 6px;
    outline: none;
    font-size: 13px;
}
.ah-comment-input:focus { border-color: var(--ah-theme); }
.ah-captcha { display: flex; align-items: center; gap: 10px; }
.ah-comment-submit { display: flex; gap: 10px; margin-top: 12px; align-items: center; }
.ah-btn {
    height: 38px;
    padding: 0 26px;
    border: none;
    border-radius: 6px;
    background: var(--ah-theme);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}
.ah-btn:hover { opacity: .9; }
.ah-btn-plain { background: var(--ah-card-bg); border: 1px solid var(--ah-border); color: var(--ah-text-light); }
.ah-btn-plain:hover { color: var(--ah-theme); border-color: var(--ah-theme); opacity: 1; }
#pagenavi { text-align: center; margin-top: 14px; }

/* ---------- 页脚 ---------- */
.ah-footer { background: var(--ah-topbar-bg); color: var(--ah-topbar-text); margin-top: 20px; }
.ah-footinfo { padding: 28px 15px; }
.ah-footer-cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ah-footer-name { font-size: 20px; font-weight: 700; color: #fff; }
.ah-footer-slogan { font-size: 13px; color: var(--ah-topbar-text); opacity: .75; margin-top: 4px; }
.ah-footer-info { text-align: right; font-size: 13px; line-height: 1.9; }
.ah-footer-info a { color: var(--ah-topbar-text); }
.ah-footer-info a:hover { color: #fff; }
.ah-footer-runtime { color: var(--ah-tag-bg); font-weight: 600; }
.ah-footer-copy { word-break: break-all; }

/* ---------- 右侧工具条 ---------- */
.ah-toolbar {
    position: fixed;
    right: 18px;
    bottom: 40px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ah-tool-btn {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--ah-card-bg);
    border: 1px solid var(--ah-border);
    color: var(--ah-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
    transition: color .2s, border-color .2s;
}
.ah-tool-btn:hover { color: var(--ah-theme); border-color: var(--ah-theme); }

/* ---------- 登录弹窗（沿用 Emlog 标准交互） ---------- */
.auth-modal-mask { position: fixed; inset: 0; background: rgba(15,23,42,.52); z-index: 1090; backdrop-filter: blur(2px); }
.auth-modal { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-modal-card {
    width: 100%; max-width: 430px;
    background: var(--conBgcolor);
    border-radius: 14px;
    border: 1px solid var(--borderColor);
    box-shadow: 0 20px 60px rgba(15,23,42,.2);
    padding: 24px;
    position: relative;
}
.auth-modal-close {
    position: absolute; top: 10px; right: 12px;
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--borderColor); background: transparent;
    color: var(--fontColor); padding: 0; line-height: 1; font-size: 20px; cursor: pointer;
}
.auth-modal-close:hover { background: var(--bodyBground); }
.auth-modal-head h3 { margin-bottom: 4px; font-size: 22px; font-weight: 600; }
.auth-modal-head p { margin: 0 0 18px; color: var(--lightColor); font-size: 14px; line-height: 1.5; }
.auth-modal-alert { display: none; margin-bottom: 14px; border-radius: 10px; padding: 10px 12px; font-size: 14px; background: rgba(245,101,101,.1); color: #c53030; }
.auth-modal-alert.show { display: block; }
.auth-modal-alert.success { background: rgba(56,161,105,.15); color: #2f855a; }
.auth-switch-links { text-align: left; margin-bottom: 16px; font-size: 14px; line-height: 1.5; }
.auth-switch-link { color: var(--lightColor); text-decoration: none !important; cursor: pointer; background: transparent !important; border: none !important; padding: 0; transition: color .15s ease; }
.auth-switch-link:hover { color: var(--buttonBgColor); }
.auth-switch-link.active { color: var(--buttonBgColor); font-weight: 600; }
.auth-switch-sep { margin: 0 5px; color: var(--borderColor); font-size: 12px; }
.auth-modal button, .auth-modal .btn, .auth-modal .auth-submit, .auth-modal .auth-inline-btn, .auth-modal input, .auth-modal a { box-shadow: none !important; transform: none !important; }
.auth-form-row { margin-bottom: 12px; }
.auth-form-row input {
    width: 100%; height: 46px; padding: 0 14px;
    border: 1px solid var(--inputBorderColor) !important;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: none !important;
    outline: none;
    background: var(--ah-card-bg); color: var(--ah-text);
}
.auth-form-row input:focus { border-color: var(--buttonBgColor) !important; outline: none !important; }
.auth-captcha-row, .auth-inline-row { display: flex; gap: 10px; align-items: center; }
.auth-captcha-row input, .auth-inline-row input { flex: 1; }
.auth-captcha-row img { width: 110px; height: 46px; border-radius: 8px; border: 1px solid var(--inputBorderColor); cursor: pointer; background: var(--inputBgColor); }
.auth-inline-btn {
    margin: 0; height: 46px; line-height: 44px; white-space: nowrap; padding: 0 16px;
    border-radius: 8px; font-size: 14px; background: var(--inputBgColor); color: var(--buttonBgColor);
    border: 1px solid var(--inputBorderColor); cursor: pointer;
}
.auth-inline-btn:hover:not(:disabled) { background: var(--buttonBgColor); color: var(--buttonTextColor); border-color: var(--buttonBgColor); }
.auth-checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--lightColor); margin: 2px 0 10px; cursor: pointer; }
.auth-checkbox input { width: 16px; height: 16px; }
.auth-submit { width: 100%; margin: 4px 0 0; height: 46px; border: none; border-radius: 8px; background: var(--buttonBgColor); color: var(--buttonTextColor); font-size: 15px; cursor: pointer; }
.auth-submit:hover { opacity: .92; }
.auth-submit:disabled, .auth-inline-btn:disabled { opacity: .6; cursor: not-allowed; }
.auth-modal-switch { margin-top: 14px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.auth-modal-switch a { color: var(--buttonBgColor); }
.auth-login-ext { margin-top: 10px; display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.auth-login-ext a { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.auth-login-ext img { display: block; max-height: 28px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .ah-row { flex-direction: column; }
    .ah-side { width: 100%; }
    .ah-header-search-input { width: 150px; }
}
@media (max-width: 640px) {
    .ah-topbar-inner { height: auto; padding: 6px 15px; gap: 4px; justify-content: center; }
    .ah-topbar-left, .ah-topbar-right { flex-wrap: wrap; justify-content: center; gap: 10px; }
    .ah-header-inner { min-height: 60px; }
    .ah-header-toggle { display: flex; }
    .ah-navbar { display: none; }
    body.ah-nav-open .ah-navbar { display: block; }
    .ah-nav { flex-direction: column; align-items: stretch; padding: 6px 0; }
    .ah-nav-link { line-height: 40px; justify-content: center; border-bottom: none; }
    .ah-drop { position: static; display: none; box-shadow: none; border: none; }
    .ah-nav-item:hover .ah-drop { display: block; }
    .ah-log-thumb { width: 96px; height: 64px; }
    .ah-log-title { font-size: 15px; }
    .ah-log-con { padding: 16px; }
    .ah-log-title { font-size: 20px; }
    .ah-neighbor { max-width: 100%; width: 100%; }
    .ah-comment-child { margin-left: 12px; }
}
