/* ============================================================
 * 大宗搜索 (daso) - 主样式
 * 设计原则: 清爽、专业、易于阅读
 * 严格响应式: PC / 平板 / 手机
 * ============================================================ */

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #333;
    background: #f5f7fa;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: #1a73e8; text-decoration: none; }
a:hover { color: #1557b0; }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }

/* ---------- 容器 ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.wide-container { max-width: 1400px; margin: 0 auto; padding: 0 15px; }

/* ---------- 顶部导航 ---------- */
.topbar {
    background: #fff;
    border-bottom: 1px solid #e8eaed;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.topbar-inner {
    display: flex;
    align-items: center;
    height: 60px;
    gap: 20px;
}
.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a73e8;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.logo .icon {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px;
}
.top-nav { display: flex; gap: 20px; flex: 1; }
.top-nav a {
    color: #5f6368;
    font-size: 0.95rem;
    padding: 8px 4px;
    border-bottom: 2px solid transparent;
    transition: all .2s;
}
.top-nav a:hover, .top-nav a.active { color: #1a73e8; border-bottom-color: #1a73e8; }
.top-user { display: flex; gap: 10px; align-items: center; }
.top-user a.btn { font-size: 0.85rem; padding: 6px 14px; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    line-height: 1.4;
}
.btn-primary { background: #1a73e8; color: #fff; }
.btn-primary:hover { background: #1557b0; color: #fff; }
.btn-outline { background: transparent; border: 1px solid #1a73e8; color: #1a73e8; }
.btn-outline:hover { background: #1a73e8; color: #fff; }
.btn-success { background: #34a853; color: #fff; }
.btn-warning { background: #fbbc04; color: #333; }
.btn-danger { background: #ea4335; color: #fff; }
.btn-sm { padding: 4px 12px; font-size: 0.8rem; }
.btn-lg { padding: 12px 32px; font-size: 1rem; }
.btn-block { display: block; width: 100%; }

/* ---------- 搜索框 ---------- */
.search-box {
    display: flex;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.search-box:focus-within {
    border-color: #1a73e8;
    box-shadow: 0 2px 16px rgba(26,115,232,0.2);
}
.search-box input[type="text"] {
    flex: 1;
    border: none;
    padding: 14px 24px;
    font-size: 1.05rem;
    outline: none;
    background: transparent;
}
.search-box button {
    background: #1a73e8;
    color: #fff;
    border: none;
    padding: 0 32px;
    font-size: 1rem;
    cursor: pointer;
    transition: background .2s;
}
.search-box button:hover { background: #1557b0; }

/* 主页大搜索 */
.search-hero {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    padding: 80px 0 60px;
    text-align: center;
    color: #fff;
}
.search-hero h1 { font-size: 2.2rem; margin-bottom: 12px; font-weight: 600; }
.search-hero p { opacity: 0.9; margin-bottom: 32px; }
.search-hero .search-box { max-width: 680px; margin: 0 auto; }
.search-hero .search-box input { font-size: 1.1rem; }

/* ---------- 热门关键词 ---------- */
.hot-keywords {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.hot-keywords a {
    padding: 4px 14px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    color: #fff;
    font-size: 0.85rem;
    transition: background .2s;
}
.hot-keywords a:hover { background: rgba(255,255,255,0.35); color: #fff; }

/* ---------- 分类导航 ---------- */
.category-nav {
    background: #fff;
    border-bottom: 1px solid #e8eaed;
    padding: 12px 0;
    position: sticky;
    top: 60px;
    z-index: 50;
}
.category-nav .container {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
}
.category-nav a {
    padding: 6px 16px;
    border-radius: 20px;
    color: #5f6368;
    font-size: 0.88rem;
    transition: all .2s;
    flex-shrink: 0;
}
.category-nav a:hover, .category-nav a.active {
    background: #e8f0fe;
    color: #1a73e8;
}

/* ---------- 文章列表 ---------- */
.result-header {
    padding: 16px 0;
    color: #5f6368;
    font-size: 0.9rem;
}
.result-header .keyword { color: #1a73e8; font-weight: 500; }
.sort-bar { display: flex; gap: 10px; margin-left: auto; }
.sort-bar a { color: #5f6368; padding: 4px 8px; border-radius: 4px; }
.sort-bar a.active, .sort-bar a:hover { background: #e8f0fe; color: #1a73e8; }

.article-item {
    background: #fff;
    padding: 20px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #e8eaed;
    transition: box-shadow .2s, border-color .2s;
}
.article-item:hover {
    border-color: #1a73e8;
    box-shadow: 0 2px 12px rgba(26,115,232,0.1);
}
.article-item h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.5;
}
.article-item h3 a { color: #1a0dab; }
.article-item h3 a:hover { text-decoration: underline; }
.article-item .summary {
    color: #4d5156;
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.6;
}
.article-item .meta {
    display: flex;
    gap: 16px;
    color: #70757a;
    font-size: 0.8rem;
    align-items: center;
}
.article-item .site-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #f1f3f4;
    border-radius: 4px;
    color: #5f6368;
}
.article-item .price {
    color: #d93025;
    font-weight: 600;
}

/* ---------- 侧边栏 ---------- */
.sidebar { position: sticky; top: 140px; }
.sidebar-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8eaed;
    padding: 20px;
    margin-bottom: 16px;
}
.sidebar-card h4 {
    font-size: 1rem;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8eaed;
}

/* ---------- 广告 ---------- */
.ad-badge {
    display: inline-block;
    padding: 1px 6px;
    font-size: 0.7rem;
    background: #fbbc04;
    color: #333;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}
.ad-item {
    background: #fff;
    border: 2px solid #fbbc04;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}
.ad-item h3 a { color: #1a73e8; }
.ad-banner-top {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border: 1px solid #ffcc80;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ---------- 分页 ---------- */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 24px 0;
}
.pagination a, .pagination span {
    padding: 6px 14px;
    border: 1px solid #e8eaed;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all .2s;
}
.pagination a:hover { border-color: #1a73e8; color: #1a73e8; }
.pagination .current { background: #1a73e8; color: #fff; border-color: #1a73e8; }
.pagination .disabled { color: #ccc; cursor: not-allowed; }

/* ---------- 消息提示 ---------- */
.flash-msg {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 6px;
    color: #fff;
    z-index: 999999;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    animation: slideDown .3s ease;
    max-width: 90%;
    z-index: 999999;
}
.flash-success { background: #34a853; }
.flash-error { background: #ea4335; }
.flash-info { background: #1a73e8; }
@keyframes slideDown {
    from { transform: translate(-50%, -100px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

/* ---------- 表单 ---------- */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #5f6368;
    font-size: 0.9rem;
    font-weight: 500;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #dadce0;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color .2s, box-shadow .2s;
    background: #fff;
    font-family: inherit;
}
.form-control:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.15);
}
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6368' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px; }

/* ---------- 卡片 ---------- */
.card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8eaed;
    padding: 24px;
    margin-bottom: 20px;
}
.card-title {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8eaed;
}

/* ---------- 表格 ---------- */
.table {
    width: 100%;
    border-collapse: collapse;
}
.table th, .table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #f1f3f4;
    font-size: 0.88rem;
}
.table th {
    background: #f8f9fa;
    color: #5f6368;
    font-weight: 500;
}
.table tr:hover td { background: #fafbfc; }
.table-actions { display: flex; gap: 8px; }

/* ---------- 状态标签 ---------- */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 500;
}
.badge-green { background: #e6f4ea; color: #137333; }
.badge-red { background: #fce8e6; color: #c5221f; }
.badge-blue { background: #e8f0fe; color: #1967d2; }
.badge-yellow { background: #fef7e0; color: #b06000; }
.badge-gray { background: #f1f3f4; color: #5f6368; }

/* ---------- 网格布局 ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-main-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 24px; }

/* ---------- 空状态 ---------- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9aa0a6;
}
.empty-state .icon { font-size: 3rem; margin-bottom: 16px; }

/* ---------- 页脚 ---------- */
.footer {
    background: #fff;
    border-top: 1px solid #e8eaed;
    padding: 40px 0 24px;
    margin-top: 60px;
    color: #5f6368;
    font-size: 0.88rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}
.footer-grid h5 { color: #333; margin-bottom: 12px; font-size: 0.95rem; }
.footer-grid a { display: block; padding: 4px 0; color: #5f6368; }
.footer-bottom { border-top: 1px solid #e8eaed; padding-top: 20px; text-align: center; }

/* ---------- 统计卡片 ---------- */
.stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e8eaed;
}
.stat-card .label { color: #70757a; font-size: 0.85rem; margin-bottom: 8px; }
.stat-card .value { font-size: 1.6rem; font-weight: 600; color: #1a73e8; }

/* ---------- 推荐站点 ---------- */
.site-list { display: flex; flex-direction: column; gap: 4px; }
.site-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 6px;
    transition: all .2s;
    color: inherit;
    text-decoration: none;
}
.site-item:hover { background: #e8f0fe; color: #1a73e8; }
.site-name { color: #333; font-size: 0.9rem; }
.site-count { color: #9aa0a6; font-size: 0.8rem; }

/* ---------- 用户中心侧边栏 ---------- */
.user-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.user-sidebar {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8eaed;
    padding: 16px 0;
    height: fit-content;
}
.user-sidebar .profile {
    text-align: center;
    padding: 16px;
    border-bottom: 1px solid #e8eaed;
    margin-bottom: 12px;
}
.user-sidebar .avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 auto 10px;
}
.user-sidebar .balance {
    color: #d93025;
    font-size: 1.2rem;
    font-weight: 600;
}
.user-sidebar .balance-label { color: #70757a; font-size: 0.78rem; }
.user-sidebar ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #5f6368;
    font-size: 0.9rem;
    transition: all .2s;
}
.user-sidebar ul li a:hover, .user-sidebar ul li a.active {
    background: #e8f0fe;
    color: #1a73e8;
    border-right: 3px solid #1a73e8;
}

/* ---------- 登录注册 ---------- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    padding: 20px;
}
.auth-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.auth-card h2 { text-align: center; margin-bottom: 8px; font-size: 1.5rem; }
.auth-card .subtitle { text-align: center; color: #70757a; margin-bottom: 28px; font-size: 0.9rem; }

/* ---------- 后台布局 ---------- */
.admin-layout { min-height: 100vh; }
.admin-sidebar {
    background: #1f2937;
    color: #d1d5db;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100vh;
    overflow-y: auto;
    z-index: 50;
}
.admin-sidebar .brand {
    padding: 0 20px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    border-bottom: 1px solid #374151;
    margin-bottom: 16px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
}
.admin-sidebar .brand .dot { width: 10px; height: 10px; background: #34a853; border-radius: 50%; display: inline-block; margin-right: 8px; flex-shrink: 0; vertical-align: middle; }
.admin-sidebar .menu-sep { border-top: 1px solid #374151; margin: 16px 20px; }
.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: #d1d5db;
    font-size: 0.9rem;
    transition: all .2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
    background: #374151;
    color: #fff;
}
.admin-sidebar a .icon { font-size: 1rem; flex-shrink: 0; }
.admin-main { margin-left: 190px; padding: 24px; background: #f5f7fa; min-height: 100vh; width: calc(100vw - 220px); max-width: 100%; }
.admin-header {
    background: #fff;
    border-radius: 8px;
    padding: 16px 24px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e8eaed;
}
.admin-header .page-title { margin: 0; font-size: 1.1rem; font-weight: 500; color: #1f2937; }
.admin-header .admin-info { color: #70757a; font-size: 0.85rem; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }

/* ============================================================
 * 百度设计系统 - 统一变量
 * ============================================================ */
:root {
    --bd-blue:       #286ee0;   /* 百度蓝 */
    --bd-blue-dark:  #1f5bc4;
    --bd-red:        #eb3b2a;   /* 热搜红 */
    --bd-text:       #333333;
    --bd-text-2:     #5f6368;
    --bd-text-3:     #9aa0a6;
    --bd-border:     #e8eaed;
    --bd-bg:         #ffffff;
    --bd-bg-gray:     #f8f9fa;
    --bd-radius:     23px;     /* 搜索框圆角 */
    --bd-font:       -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
}

/* 全局重置 (仅限百度模板上下文) */
.baidu-home *,
.baidu-hot-page * { box-sizing: border-box; }

/* ============================================================
 * 首页 - 百度风格 100% 复刻 (对标图一)
 * ============================================================ */
.baidu-home-body {
    background: #fff;
    color: var(--bd-text);
    font-family: var(--bd-font);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}
.baidu-home {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 顶部链接条 */
.baidu-toplinks {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
    padding: 18px 40px 0 0;
    font-size: 13px;
    color: #333;
    flex-wrap: wrap;
}
.baidu-toplinks a {
    color: #333;
    text-decoration: none;
}
.baidu-toplinks a:hover { color: #286ee0; }
.baidu-toplinks .toplinks-sep {
    display: inline-block;
    width: 1px;
    height: 14px;
    background: #e0e0e0;
    margin: 0 4px;
    vertical-align: middle;
}

/* 中央 */
.baidu-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 40px;
}

/* Logo - 四字符拆分像百度那样 */
.baidu-logo {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    text-decoration: none;
    margin-bottom: 32px;
    user-select: none;
    font-family: var(--bd-font);
}
.baidu-logo-char {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    letter-spacing: 0;
    line-height: 1;
}
.baidu-logo-char.accent { color: var(--bd-blue); }

/* 搜索框 */
.baidu-search {
    width: 100%;
    max-width: 640px;
}
.baidu-search-wrap {
    display: flex;
    align-items: center;
    border: 2px solid var(--bd-blue);
    border-radius: var(--bd-radius);
    overflow: hidden;
    background: #fff;
    transition: box-shadow .2s;
}
.baidu-search-wrap:focus-within {
    box-shadow: 0 2px 12px rgba(40,110,224,0.18);
}
.baidu-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 20px;
    height: 44px;
    font-size: 16px;
    background: transparent;
    color: #333;
    font-family: var(--bd-font);
}
.baidu-search-input::placeholder { color: #9aa0a6; }
.baidu-search-btn {
    background: var(--bd-blue);
    color: #fff;
    border: none;
    padding: 0 32px;
    height: 44px;
    font-size: 16px;
    cursor: pointer;
    font-family: var(--bd-font);
    letter-spacing: 2px;
    transition: background .12s;
}
.baidu-search-btn:hover { background: #1f5bc4; }

/* AI 百宝箱提示 */
.baidu-aibar {
    margin-top: 10px;
    display: flex;
    gap: 14px;
    font-size: 13px;
    color: #5f6368;
}
.baidu-aibar-item {
    padding: 2px 0;
    border-bottom: 1px dashed #ccc;
    cursor: pointer;
}
.baidu-aibar-item:hover { color: var(--bd-blue); border-color: var(--bd-blue); }

/* ============================================================
 * 首页 - 百度首页热搜面板 (图一红框 → 图二蓝框)
 * ============================================================ */

/* 热搜榜面板 - 100% 对标百度首页"百度热搜" */
.baidu-hotboard {
    width: 100%;
    max-width: 640px;
    margin-top: 16px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}
.baidu-hotboard-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #f5f5f5;
}
.baidu-hotboard-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.baidu-hotboard-fire { font-size: 18px; }
.baidu-hotboard-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
}
.baidu-hotboard-enter { color: #999; font-size: 14px; margin-left: 2px; }
.baidu-hotboard-refresh {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 13px; color: #2932e1; text-decoration: none;
    cursor: pointer; user-select: none;
    transition: opacity .15s;
}
.baidu-hotboard-refresh:hover { opacity: .75; }
.baidu-hotboard-refresh.spin svg {
    animation: hotRefreshSpin 0.35s ease-out 1;
}
@keyframes hotRefreshSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.baidu-hotboard-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-wrap: wrap;
}
.baidu-hotboard-item {
    width: 50%;
    display: flex; align-items: center; gap: 8px;
    padding: 12px 18px; font-size: 14px;
    box-sizing: border-box; transition: background .12s;
}
.baidu-hotboard-item:hover { background: #fafbfc; }

/* 排名 - 真实百度: 纯文字颜色 (不是背景色!) */
.hboard-rank {
    width: 18px; text-align: center;
    font-size: 15px; font-weight: 700;
    color: #9195A3; letter-spacing: -1px;
    flex-shrink: 0; font-family: var(--bd-font);
}
.hboard-rank-1 { color: #FE2D46; }
.hboard-rank-2 { color: #F60; }
.hboard-rank-3 { color: #FAA90E; }
.hboard-rank-4 { color: #9195A3; }

.hboard-link {
    flex: 1; color: #222; text-decoration: none;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.baidu-hotboard-item:hover .hboard-link { color: #2932e1; }

.hboard-label {
    font-size: 11px; padding: 1px 6px; border-radius: 3px;
    font-weight: 500; flex-shrink: 0; white-space: nowrap;
}
.hboard-label-red    { background: #EB3B2A; color: #fff; }
.hboard-label-orange { background: #F60;    color: #fff; }
.hboard-label-blue   { background: #286EE0; color: #fff; }

.hboard-value { font-size: 12px; color: #9195A3; flex-shrink: 0; }

/* 底部 */
.baidu-footer {
    text-align: center; padding: 30px 20px 20px;
    font-size: 12px; color: #9195A3; font-family: var(--bd-font);
}
.baidu-footer .fsep { margin: 0 6px; color: #ddd; }

/* ============================================================
 * 热搜榜独立页 - 100% 对标 https://top.baidu.com/board
 * 抓取自真实站点的精确 CSS 数值
 * ============================================================ */

/* ============================================================
 * /hot 热榜页 — 100% 复刻 top.baidu.com/board
 * 抓取自真实站点的精确 CSS 数值 (2026-10-06)
 * ============================================================ */
.bdhot-page {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei", sans-serif;
    background: #fff;
    min-height: 100vh;
    color: #222;
    position: relative;
}
/* 渐变背景 — 延伸到 banner + tab 区域 */
.bdhot-page::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 320px;
    background: linear-gradient(rgb(244,78,22) 0%, rgb(255,255,255) 88%);
    z-index: 0;
    pointer-events: none;
}
.bdhot-page > * {
    position: relative;
    z-index: 1;
}
/* ========== Banner (141px + 延伸覆盖 topbar) ========== */
.bdhot-banner {
    height: 141px;
    display: flex;
    align-items: center;
    margin-top: -60px; /* 向上延伸覆盖 main layout 的 header (约60px高) */
    padding-top: 60px; /* 补回高度 */
    background: linear-gradient(rgb(244,78,22) 0%, #FF6B3A 55%, rgb(255,255,255) 100%);
    position: relative;
    z-index: 5;
}
.bdhot-banner-inner {
    width: 1088px;
    margin: 0 auto;
    padding: 0 20px;
}
.bdhot-banner-title {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px 0;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.bdhot-banner-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    margin: 0;
}

/* ========== Tab 导航 (sticky) ========== */
.bdhot-tabs {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.bdhot-tabs-inner {
    width: 1088px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 48px;
    gap: 8px;
}
.bdhot-tab {
    font-size: 16px;
    color: #222;
    padding: 8px 18px;
    text-decoration: none;
    border-radius: 15.5px;
    transition: all 0.2s;
    position: relative;
    line-height: 1;
}
.bdhot-tab:hover {
    color: #FF4D4D;
}
.bdhot-tab.active {
    color: #FF4D4D;
    background: #fff;
    border-radius: 15.5px;
}
.bdhot-tab.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: #FF4D4D;
    border-radius: 2px;
}

/* ========== 主容器 1088px ========== */
.bdhot-container {
    width: 1088px;
    margin: 0 auto;
    padding: 16px 0 40px;
}

/* ========== 上半部分 ========== */
.bdhot-top-row {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
}

/* ========== 左: 热搜榜 368px ========== */
.bdhot-col-left {
    width: 368px;
    flex-shrink: 0;
}
.bdhot-main-card {
    background: #fff;
    padding: 20px 24px 24px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.bdhot-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.bdhot-card-title {
    font-size: 18px;
    font-weight: 400;
    color: #FF4D4D;
}
.bdhot-card-sub {
    font-size: 12px;
    color: #9195A3;
}
.bdhot-card-link {
    font-size: 13px;
    color: #FF4D4D;
    text-decoration: none;
}
.bdhot-card-link:hover {
    text-decoration: underline;
}

/* 热搜列表 */
.bdhot-list {
    display: block;
}
.bdhot-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    text-decoration: none;
    color: #222;
    line-height: 23px;
    transition: background 0.15s;
}
.bdhot-item:hover {
    background: #fafafa;
}
.bdhot-item-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.bdhot-rank {
    width: 20px;
    height: 20px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    flex-shrink: 0;
    line-height: 20px;
}
.bdhot-rank-1 { color: #FE2D46; }
.bdhot-rank-2 { color: #FE2D46; }
.bdhot-rank-3 { color: #FE2D46; }
.bdhot-rank-4 { color: #9195A3; font-weight: 500; }

.bdhot-item-content {
    flex: 1;
    min-width: 0;
}
.bdhot-item-title {
    font-size: 14px;
    line-height: 16px;
    color: #222;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bdhot-item-label {
    font-size: 12px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 2px;
    flex-shrink: 0;
    line-height: 18px;
}
.bdhot-label-boil { color:#fff; background:#FE2D46; }   /* 沸: 红 */
.bdhot-label-hot   { color:#fff; background:#FF6B00; }   /* 热: 橙 */
.bdhot-label-new   { color:#fff; background:#4E6EF2; }   /* NEW: 蓝 */

/* ========== 右: 672px ========== */
.bdhot-col-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bdhot-side-card {
    background: rgba(255,255,255,0.95);
    padding: 16px 20px;
    border-radius: 8px;
}
.bdhot-side-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}
.bdhot-side-title {
    font-size: 14px;
    color: #222;
    font-weight: 400;
}
.bdhot-side-sub {
    font-size: 12px;
    color: #9195A3;
}

/* 脉搏 SVG (100% 百度式: 两层 CSS animation 无缝滚动) */
.bdhot-pulse-box {
    width: 100%;
    overflow: hidden;
    background: #fff;
}
.bdhot-pulse-scroller {
    position: relative;
    width: 100%;
    height: 234px;
    overflow: hidden;
}
.bdhot-pulse-svg {
    width: 640px;
    height: 234px;
    display: block;
    flex-shrink: 0;
}

/* ===== 关键词滚动 marquee (百度风格) ===== */
.bdhot-pulse-marquee {
    width: 100%;
    overflow: hidden;
    height: 32px;
    margin-bottom: 6px;
    border-radius: 6px;
    background: linear-gradient(90deg, #4E6EF208, #7A3BFF08);
    border: 1px solid #4E6EF215;
    display: flex;
    align-items: center;
}
.bdhot-pulse-marquee-track {
    display: inline-flex;
    gap: 8px;
    white-space: nowrap;
    padding: 0 12px;
    animation: bdhot-marquee-scroll 30s linear infinite;
}
.bdhot-marquee-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid;
    flex-shrink: 0;
}
@keyframes bdhot-marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 热点活动 Banner 网格 — 2×2 */
.bdhot-banner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.bdhot-banner-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    min-height: 56px;
}
.bdhot-banner-emoji {
    font-size: 24px;
    flex-shrink: 0;
}
.bdhot-banner-text {
    flex: 1;
    min-width: 0;
}
.bdhot-banner-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}
.bdhot-banner-sub {
    font-size: 11px;
    opacity: 0.85;
}

/* ========== 下半部分: 三等分 ========== */
.bdhot-bottom-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}
.bdhot-third-card {
    background: #fff;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.bdhot-third-list {
    display: block;
}
.bdhot-third-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    text-decoration: none;
    color: #222;
    font-size: 14px;
    line-height: 20px;
    border-bottom: 1px solid #f5f5f5;
}
.bdhot-third-item:last-child {
    border-bottom: none;
}
.bdhot-third-item:hover {
    color: #FF4D4D;
}
.bdhot-third-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 空状态 */
.bdhot-empty {
    padding: 40px 20px;
    text-align: center;
    color: #9aa0a6;
    font-size: 13px;
}

/* ========== 响应式 ========== */
@media (max-width: 1088px) {
    .bdhot-banner-inner,
    .bdhot-tabs-inner,
    .bdhot-container { width: 100%; padding-left: 20px; padding-right: 20px; }
    .bdhot-top-row { flex-direction: column; }
    .bdhot-col-left { width: 100%; }
    .bdhot-bottom-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .bdhot-banner-grid { grid-template-columns: 1fr; }
}
/* ============================================================
 * 搜索结果页 — 百度风格
 * ============================================================ */
:root {
    --bd-blue: #2932e1;
    --bd-blue-hover: #3137e0;
    --bd-link: #1f56d9;
    --bd-link-visited: #6800a0;
    --bd-text: #222;
    --bd-text-sub: #595959;
    --bd-text-muted: #9195a3;
    --bd-border: #e1e3e5;
    --bd-bg: #f6f8fa;
    --bd-card-radius: 8px;
}

/* ========== Header ========== */
.baidu-result-header {
    background: #fff;
    border-bottom: 1px solid var(--bd-border);
    padding: 18px 20px 0;
}
.baidu-result-bar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}
.baidu-result-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--bd-text);
    text-decoration: none;
    white-space: nowrap;
}
.baidu-result-logo .logo-accent {
    color: var(--bd-blue);
}
.baidu-result-searchform {
    flex: 1;
    display: flex;
    max-width: 640px;
    height: 40px;
}
.baidu-result-input {
    flex: 1;
    border: 1px solid #c4c7ce;
    border-right: none;
    border-radius: 10px 0 0 10px;
    padding: 0 14px;
    font-size: 14px;
    outline: none;
    background: #f6f8fa;
    transition: background 0.15s, border-color 0.15s;
}
.baidu-result-input:focus {
    background: #fff;
    border-color: var(--bd-blue);
}
.baidu-result-btn {
    width: 100px;
    border: 1px solid var(--bd-blue);
    border-radius: 0 10px 10px 0;
    background: var(--bd-blue);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s;
}
.baidu-result-btn:hover {
    background: var(--bd-blue-hover);
}
.baidu-result-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--bd-text-sub);
    white-space: nowrap;
}
.baidu-result-user a {
    color: var(--bd-text-sub);
    text-decoration: none;
}
.baidu-result-user a:hover {
    color: var(--bd-blue);
}
.baidu-result-user .sep {
    color: #ccc;
}

/* 分类 Tab */
.baidu-result-tabs {
    max-width: 1200px;
    margin: 14px auto 0;
    padding-bottom: 0;
    display: flex;
    gap: 0;
    border-bottom: 1px solid transparent;
}
.baidu-result-tabs a {
    padding: 8px 18px;
    font-size: 14px;
    color: var(--bd-text-sub);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s;
}
.baidu-result-tabs a:hover {
    color: var(--bd-blue);
}
.baidu-result-tabs a.active {
    color: var(--bd-blue);
    border-bottom-color: var(--bd-blue);
    font-weight: 500;
}

/* ========== Body 两栏布局 ========== */
.baidu-result-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px 40px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
    background: #fff;
    min-height: calc(100vh - 160px);
}
.baidu-result-content {
    min-width: 0;
}
.baidu-result-sidebar {
    width: 300px;
    position: sticky;
    top: 20px;
    align-self: start;
}

/* ========== 结果头部 ========== */
.baidu-result-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--bd-border);
}
.baidu-result-stat {
    font-size: 13px;
    color: var(--bd-text-muted);
}
.baidu-result-stat strong {
    color: var(--bd-text);
    font-weight: 600;
}
.baidu-result-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}
.baidu-result-sort a {
    color: var(--bd-text-sub);
    text-decoration: none;
}
.baidu-result-sort a:hover {
    color: var(--bd-blue);
}
.baidu-result-sort a.active {
    color: var(--bd-blue);
    font-weight: 500;
}
.baidu-result-sort .sep {
    color: #ccc;
}

/* ========== 结果卡片 ========== */
.baidu-result-card {
    padding: 0 0 20px;
    margin-bottom: 4px;
    line-height: 1.5;
}
.baidu-result-title {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 6px;
    line-height: 1.4;
}
.baidu-result-title a {
    color: var(--bd-link);
    text-decoration: none;
}
.baidu-result-title a:hover {
    text-decoration: underline;
}
.baidu-result-title a:visited {
    color: var(--bd-link-visited);
}
.baidu-result-meta-line {
    font-size: 13px;
    color: var(--bd-text-muted);
    margin-bottom: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.baidu-result-site {
    color: var(--bd-text-sub);
}
.baidu-result-time {
    color: var(--bd-text-muted);
}
.baidu-result-price {
    color: #c73e00;
    font-weight: 500;
}
.baidu-result-desc {
    font-size: 13px;
    color: var(--bd-text-sub);
    line-height: 1.65;
    margin: 0;
}

/* ========== 广告 ========== */
.baidu-result-adblock {
    margin-bottom: 20px;
}
.baidu-ad-row {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    background: #fafbfc;
    border: 1px solid var(--bd-border);
    border-radius: var(--bd-card-radius);
    margin-bottom: 10px;
}
.baidu-ad-tag {
    font-size: 11px;
    color: #fff;
    background: #c73e00;
    padding: 2px 6px;
    border-radius: 3px;
    height: fit-content;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 3px;
}
.baidu-ad-body {
    flex: 1;
    min-width: 0;
}
.baidu-ad-title {
    font-size: 14px;
    margin: 0 0 4px;
    font-weight: 500;
}
.baidu-ad-title a {
    color: var(--bd-link);
    text-decoration: none;
}
.baidu-ad-title a:hover {
    text-decoration: underline;
}
.baidu-ad-desc {
    font-size: 13px;
    color: var(--bd-text-sub);
    margin: 0 0 3px;
    line-height: 1.55;
}
.baidu-ad-url {
    font-size: 12px;
    color: var(--bd-text-muted);
}

/* 竞价广告图片 (搜索结果页) */
.baidu-ad-img-link {
    flex-shrink: 0;
    display: block;
}
.baidu-ad-img {
    width: 120px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    background: #f2f4f7;
    border: 1px solid #eee;
}

/* 搜索结果页顶部横幅广告 (position=top, 与左侧内容列对齐) */
.baidu-top-banner-wrap {
    margin-bottom: 16px;
}
.baidu-top-banner {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 8px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
}
.baidu-top-banner-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}
.baidu-top-banner-text {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #fff;
}
.baidu-top-banner-title {
    font-size: 15px;
    font-weight: 600;
    flex-shrink: 0;
}
.baidu-top-banner-desc {
    font-size: 13px;
    opacity: 0.85;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 首页顶部 LOGO (从后台 settings 读取 site_logo) */
.baidu-home-logo-wrap {
    max-width: 640px;
    margin: 16px auto 8px;
    padding: 0 16px;
    text-align: center;
}
.baidu-home-logo-img {
    max-width: 100%;
    max-height: 90px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    display: inline-block;
}

/* ========== 空状态 ========== */
.baidu-noresult {
    padding: 60px 20px;
    text-align: center;
    background: #fafbfc;
    border-radius: var(--bd-card-radius);
    border: 1px dashed var(--bd-border);
}
.baidu-noresult-icon {
    font-size: 48px;
    margin-bottom: 10px;
}
.baidu-noresult h3 {
    font-size: 18px;
    color: var(--bd-text);
    margin: 0 0 10px;
    font-weight: 500;
}
.baidu-noresult p {
    font-size: 13px;
    color: var(--bd-text-sub);
    margin: 0 0 8px;
}
.baidu-noresult ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
    font-size: 13px;
    color: var(--bd-text-muted);
    display: inline-block;
    text-align: left;
}
.baidu-noresult li {
    padding: 2px 0;
}

/* ========== 分页 ========== */
.baidu-result-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--bd-border);
}
.baidu-pager-btn,
.baidu-pager-num,
.baidu-pager-cur,
.baidu-pager-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    font-size: 13px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.15s;
}
.baidu-pager-btn,
.baidu-pager-num {
    color: var(--bd-text-sub);
    border: 1px solid var(--bd-border);
    background: #fff;
}
.baidu-pager-btn:hover,
.baidu-pager-num:hover {
    color: var(--bd-blue);
    border-color: var(--bd-blue);
}
.baidu-pager-cur {
    color: #fff;
    background: var(--bd-blue);
    border: 1px solid var(--bd-blue);
}
.baidu-pager-dots {
    color: var(--bd-text-muted);
}

/* ========== 侧边栏 ========== */
.baidu-sidebar-card {
    background: #fff;
    border: 1px solid var(--bd-border);
    border-radius: var(--bd-card-radius);
    padding: 14px 16px;
    margin-bottom: 16px;
}
.baidu-sidebar-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
    color: var(--bd-text);
    margin: 0 0 12px;
}
.baidu-sidebar-title .title-icon {
    margin-right: 4px;
}
.baidu-sidebar-title .title-more {
    font-size: 12px;
    color: var(--bd-text-muted);
    text-decoration: none;
    font-weight: 400;
}
.baidu-sidebar-title .title-more:hover {
    color: var(--bd-blue);
}
.baidu-sidebar-hot {
    list-style: none;
    padding: 0;
    margin: 0;
}
.baidu-sidebar-hot li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}
.baidu-sidebar-hot li:last-child {
    border-bottom: none;
}
.sidebar-rank {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--bd-text-muted);
    flex-shrink: 0;
}
.sidebar-rank.top {
    color: #fe2d46;
}
.baidu-sidebar-hot a {
    flex: 1;
    min-width: 0;
    color: var(--bd-text);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.baidu-sidebar-hot a:hover {
    color: var(--bd-blue);
}
.sidebar-value {
    font-size: 12px;
    color: var(--bd-text-muted);
    flex-shrink: 0;
}
.baidu-sidebar-sites {
    list-style: none;
    padding: 0;
    margin: 0;
}
.baidu-sidebar-sites li {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}
.baidu-sidebar-sites li:last-child {
    border-bottom: none;
}
.baidu-sidebar-sites a {
    color: var(--bd-link);
    text-decoration: none;
}
.baidu-sidebar-sites a:hover {
    text-decoration: underline;
}
.baidu-sidebar-sites span {
    color: var(--bd-text-muted);
    font-size: 12px;
}

/* ========== 响应式 ========== */
@media (max-width: 960px) {
    .baidu-result-body {
        grid-template-columns: 1fr;
    }
    .baidu-result-sidebar {
        width: 100%;
        position: static;
    }
    .baidu-result-bar {
        flex-wrap: wrap;
        gap: 12px;
    }
    .baidu-result-searchform {
        order: 3;
        width: 100%;
        max-width: none;
    }
}
@media (max-width: 600px) {
    .baidu-result-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .baidu-result-tabs a {
        flex-shrink: 0;
        padding: 8px 14px;
    }
}
/* ============================================================
 * 后台管理完整样式 (补缺失)
 * ============================================================ */

/* 通用 danger 链接 */
.danger {
    color: #ea4335;
    text-decoration: none;
}
.danger:hover {
    color: #d32f2f;
    text-decoration: underline;
}

/* admin-page 容器 */
.admin-page {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}
.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 10px;
}
.admin-page-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    flex-shrink: 0;
}
.admin-page-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* admin-tabs */
.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.admin-tabs a {
    padding: 8px 16px;
    font-size: 14px;
    color: #5f6368;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all 0.15s;
    flex-shrink: 0;
}
.admin-tabs a:hover {
    color: #286ee0;
}
.admin-tabs a.active {
    color: #286ee0;
    border-bottom-color: #286ee0;
    font-weight: 600;
}

/* admin-table */
.admin-table,
.admin-cat-list table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.admin-table thead th,
.admin-cat-list thead th {
    text-align: left;
    padding: 12px 14px;
    font-weight: 600;
    font-size: 13px;
    color: #5f6368;
    background: #f8f9fa;
    border-bottom: 1px solid #e8eaed;
}
.admin-table tbody td,
.admin-cat-list tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #f0f0f0;
    color: #1f2937;
    vertical-align: middle;
}
.admin-table tbody tr:hover,
.admin-cat-list tbody tr:hover {
    background: #fafbfc;
}
.admin-table .empty,
.admin-cat-list .empty {
    text-align: center;
    color: #9aa0a6;
    padding: 40px 20px !important;
}

/* 表格内操作链接 */
.admin-table tbody td a {
    color: #FFFFF;
    text-decoration: none;
    margin-right: 12px;
    font-size: 13px;
}
.admin-table tbody td a:hover {
    text-decoration: underline;
}
.admin-table tbody td a.danger,
.admin-cat-list tbody td a.danger {
    color: #ea4335;
}

/* admin-form */
.admin-form {
    background: #fff;
    border-radius: 8px;
}
.form-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.form-label {
    font-size: 14px;
    color: #5f6368;
    min-width: 140px;
    flex-shrink: 0;
}
.form-input {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid #dadce0;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    min-height: 36px;
    width: 100%;
    box-sizing: border-box;
}
.form-input:focus {
    border-color: #286ee0;
    box-shadow: 0 0 0 3px rgba(40,110,224,0.1);
}
select.form-input {
    flex: 1;
}

/* btn-sm 修复 — 保证删除按钮有可见文字 */
.btn-sm {
    padding: 5px 12px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 50px !important;
    height: auto !important;
    white-space: nowrap !important;
    text-align: center !important;
    border-radius: 4px !important;
}
.btn-danger {
    background: #ea4335 !important;
    color: #fff !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
}
.btn-danger:hover {
    background: #d32f2f !important;
    color: #fff !important;
}

/* admin-cat-list */
.admin-cat-list {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

/* htag (热榜标签) */
.htag {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
    line-height: 1.4;
}
.htag-b { background: #eb3b2a; color: #fff; }
.htag-h { background: #ff9800; color: #fff; }
.htag-n { background: #1976d2; color: #fff; }
.htag-g { background: #f1f3f4; color: #70757a; }
/* ============================================================
 * 用户中心 — 商业化风格 (统一 Google Material 风)
 * ============================================================ */

/* user-layout 整体两栏 */
.user-layout {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

/* 左侧导航卡片 */
.user-sidebar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    padding: 20px 0;
    position: sticky;
    top: 20px;
}
.user-profile {
    text-align: center;
    padding: 0 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}
.user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(102,126,234,0.3);
}
.user-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px;
}
.user-email {
    font-size: 12px;
    color: #9aa0a6;
    margin: 0;
    word-break: break-all;
}
.user-balance {
    margin-top: 12px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #f8faff, #eef2ff);
    border-radius: 8px;
    text-align: left;
}
.user-balance .bl-label {
    font-size: 12px;
    color: #5f6368;
}
.user-balance .bl-value {
    font-size: 20px;
    font-weight: 700;
    color: #286ee0;
}

/* user-nav */
.user-nav {
    list-style: none;
    padding: 8px;
    margin: 0;
}
.user-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #5f6368;
    text-decoration: none;
    transition: all 0.15s;
    margin-bottom: 2px;
}
.user-nav li a:hover {
    background: #f1f3f4;
    color: #1f2937;
}
.user-nav li a.active {
    background: #e8f0fe;
    color: #286ee0;
    font-weight: 500;
}
.user-nav li a .nav-icon {
    width: 20px;
    text-align: center;
    font-size: 15px;
}

/* 主内容区 */
.user-main {
    min-width: 0;
}
.user-page-title {
    font-size: 22px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 20px;
}

/* ===== 统一卡片 ===== */
.u-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    padding: 20px;
    margin-bottom: 20px;
}
.u-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.u-card-title .more-link {
    font-size: 12px;
    font-weight: 400;
    color: #286ee0;
    text-decoration: none;
}
.u-card-title .more-link:hover {
    text-decoration: underline;
}

/* ===== 统计卡片网格 ===== */
.u-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
@media (max-width: 720px) {
    .u-stat-grid { grid-template-columns: repeat(2, 1fr); }
}
.u-stat {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.u-stat:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.u-stat::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
}
.u-stat.s-blue::before   { background: #286ee0; }
.u-stat.s-green::before  { background: #34a853; }
.u-stat.s-orange::before { background: #fbbc04; }
.u-stat.s-red::before    { background: #ea4335; }
.u-stat.s-purple::before { background: #7b1fa2; }
.u-stat.s-teal::before   { background: #00897b; }

.u-stat-label {
    font-size: 13px;
    color: #5f6368;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.u-stat-icon {
    font-size: 16px;
}
.u-stat-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}
.u-stat.s-blue   .u-stat-value { color: #286ee0; }
.u-stat.s-green  .u-stat-value { color: #1e8e3e; }
.u-stat.s-orange .u-stat-value { color: #e37400; }
.u-stat.s-red    .u-stat-value { color: #d32f2f; }
.u-stat.s-purple .u-stat-value { color: #7b1fa2; }
.u-stat.s-teal   .u-stat-value { color: #00796b; }
.u-stat-sub {
    font-size: 12px;
    color: #9aa0a6;
    margin-top: 6px;
}

/* ===== 两栏下半 ===== */
.u-half-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 720px) {
    .u-half-grid { grid-template-columns: 1fr; }
}

/* ===== user-table ===== */
.u-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.u-table thead th {
    text-align: left;
    padding: 10px 12px;
    font-weight: 600;
    font-size: 12px;
    color: #5f6368;
    background: #f8f9fa;
    border-bottom: 1px solid #e8eaed;
}
.u-table tbody td {
    padding: 11px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #1f2937;
}
.u-table tbody tr:last-child td {
    border-bottom: none;
}
.u-table tbody tr:hover {
    background: #fafbfc;
}
.u-table .empty-row {
    text-align: center;
    color: #9aa0a6;
    padding: 32px 12px !important;
    font-size: 13px;
}

/* 金额颜色 */
.tx-in  { color: #1e8e3e; font-weight: 500; }
.tx-out { color: #d32f2f; font-weight: 500; }

/* ===== badge ===== */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 500;
}
.badge-green  { background: #e6f4ea; color: #1e8e3e; }
.badge-red    { background: #fce8e6; color: #d32f2f; }
.badge-yellow { background: #fef7e0; color: #b06000; }
.badge-gray   { background: #f1f3f4; color: #5f6368; }
.badge-blue   { background: #e8f0fe; color: #1967d2; }

/* ===== empty state ===== */
.u-empty {
    text-align: center;
    padding: 32px 16px;
    color: #9aa0a6;
    font-size: 13px;
}
.u-empty .u-empty-icon {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.5;
}
.u-empty a {
    color: #286ee0;
    text-decoration: none;
}
.u-empty a:hover {
    text-decoration: underline;
}

/* ===== user form ===== */
.u-form-page {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    padding: 28px;
    max-width: 560px;
}
.u-form-row {
    margin-bottom: 18px;
}
.u-form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #5f6368;
    margin-bottom: 6px;
}
.u-form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
.u-form-input:focus {
    border-color: #286ee0;
    box-shadow: 0 0 0 3px rgba(40,110,224,0.1);
}
.u-form-hint {
    font-size: 12px;
    color: #9aa0a6;
    margin-top: 4px;
}
.u-btn-row {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}
/* ============================================================
 * 后台 admin-table 防右侧溢出
 * ============================================================ */
.admin-page { overflow: hidden; }
.admin-table-wrap { overflow-x: auto; }
.admin-table,
.admin-cat-list table {
    min-width: 1100px;
    width: 100%;
    border-collapse: collapse;
}
.admin-cat-list table { min-width: 600px; }

/* 操作列按钮: flex 布局防破碎 + 压紧间距 */
.admin-row-actions {
    display: flex;
    gap: 5px;
    white-space: nowrap;
}
.admin-row-actions .btn {
    flex-shrink: 0;
    padding: 4px 10px;
    font-size: 12px;
    line-height: 1.4;
    border-radius: 4px;
}

/* ============================================================
 * 认证页（登录/注册）统一风格
 * ============================================================ */
.auth-wrapper {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    padding: 36px 40px;
    width: 100%;
    max-width: 440px;
}
.auth-logo {
    text-align: center;
    margin-bottom: 28px;
}
.auth-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 14px;
    box-shadow: 0 4px 14px rgba(102,126,234,0.4);
}
.auth-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 6px;
}
.auth-subtitle {
    font-size: 13px;
    color: #9aa0a6;
    margin: 0;
}

/* Tab 切换 */
.auth-tab-bar {
    display: flex;
    background: #f1f3f4;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 24px;
}
.auth-tab {
    flex: 1;
    padding: 10px 12px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: #5f6368;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}
.auth-tab:hover { color: #286ee0; }
.auth-tab.active {
    background: #fff;
    color: #286ee0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.tab-icon { font-size: 15px; }

/* 表单 */
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field-row { flex-direction: row; gap: 12px; }
.auth-field-half { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.auth-label {
    font-size: 13px;
    font-weight: 500;
    color: #5f6368;
}
.auth-input {
    padding: 11px 14px;
    border: 1px solid #dadce0;
    border-radius: 10px;
    font-size: 14px;
    background: #f8f9fa;
    outline: none;
    transition: all 0.15s;
    box-sizing: border-box;
    width: 100%;
}
.auth-input:focus {
    background: #fff;
    border-color: #286ee0;
    box-shadow: 0 0 0 3px rgba(40,110,224,0.1);
}
.auth-fields-group {
    padding: 14px;
    background: #fafbfc;
    border: 1px solid #e8eaed;
    border-radius: 10px;
}
.auth-submit {
    padding: 13px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: transform 0.15s, box-shadow 0.15s;
}
.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.4);
}
.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #9aa0a6;
}
.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}
.auth-footer a:hover { text-decoration: underline; }

/* ============================================================
 * 热榜列表 - 编辑/删除按钮同一行 (已重写 hot/index.php)
 * ============================================================ */
.admin-table td .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px;
}
/* ============================================================
 * /hot/board 全量榜页 — 复刻 top.baidu.com/board?tab=teleplay
 * 左栏 (筛选+标题) + 右栏 (单列长卡流)
 * ============================================================ */

.bdhot-board-layout {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    max-width: 1200px !important;
}
@media (max-width: 860px) {
    .bdhot-board-layout {
        grid-template-columns: 1fr;
    }
}

/* ========== 左栏 ========== */
.bdhot-board-left {
    position: sticky;
    top: 24px;
    align-self: start;
}
.bdhot-board-sidecard {
    background: linear-gradient(160deg, #1a2a6c 0%, #286ee0 100%);
    border-radius: 12px;
    padding: 24px 18px;
    color: #fff;
    box-shadow: 0 4px 16px rgba(26,42,108,0.25);
}
.bdhot-board-side-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bdhot-board-side-title .side-emoji {
    font-size: 24px;
}
.bdhot-board-tags {
    margin-bottom: 20px;
}
.bdhot-board-tags .side-label {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 8px;
}
.side-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.side-tag {
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 12px;
    background: rgba(255,255,255,0.15);
    cursor: pointer;
    transition: background 0.15s;
}
.side-tag:hover { background: rgba(255,255,255,0.25); }
.side-tag.active {
    background: #fff;
    color: #1a2a6c;
    font-weight: 500;
}
.bdhot-board-stats {
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}
.bdhot-board-stats .stat-num {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
}
.bdhot-board-stats .stat-label {
    font-size: 12px;
    opacity: 0.7;
}

/* ========== 右栏 ========== */
.bdhot-board-right {
    min-width: 0;
}
.bdhot-board-path {
    font-size: 13px;
    color: #5f6368;
    margin-bottom: 18px;
}
.bdhot-board-path .sep {
    margin: 0 6px;
    color: #ccc;
}
.bdhot-board-path .dim {
    color: #9aa0a6;
}

/* ========== 卡片流 ========== */
.bdhot-board-card {
    display: grid;
    grid-template-columns: 120px 100px 1fr;
    gap: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    margin-bottom: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.bdhot-board-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* A: 封面区 (左 120px) */

.bbc-cover {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.bbc-cover-inner {
    text-align: center;
}
.bbc-cover-emoji {
    font-size: 48px;
    line-height: 1;
}
.bbc-border {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(0,0,0,0.05);
    pointer-events: none;
}
/* rank 号盖在封面左上角 */
.bbc-rank {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    z-index: 2;
}
.bbc-rank-1 { background: linear-gradient(135deg, #FE2D46, #FF6B3A); }
.bbc-rank-2 { background: linear-gradient(135deg, #FF6600, #FFB347); }
.bbc-rank-3 { background: linear-gradient(135deg, #FAA90E, #FFD54F); }
.bbc-rank-4, .bbc-rank-5 { background: #9195A3; }
.bbc-rank-6, .bbc-rank-7, .bbc-rank-8, .bbc-rank-9, .bbc-rank-10 { background: #B8BEC6; }

/* B: 热度趋势 (中 100px) */
.bbc-trend {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px 10px;
    border-left: 1px solid #f0f0f0;
    position: relative;
}
.bbc-trend-icon {
    font-size: 20px;
}
.bbc-hot-value {
    font-size: 18px;
    font-weight: 700;
    color: #FE2D46;
    line-height: 1;
}
.bbc-trend-label {
    font-size: 11px;
    color: #9aa0a6;
}
.bbc-line {
    display: none; /* 用边框代替 */
}

/* C: 正文 (右 剩) */
.bbc-content {
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}
.bbc-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.bbc-title:hover {
    color: #4E6EF2;
}
.bbc-intro {
    font-size: 12px;
    color: #9aa0a6;
    line-height: 1.4;
}
.bbc-desc {
    font-size: 13px;
    color: #5f6368;
    line-height: 1.55;
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bbc-look-more {
    color: #4E6EF2;
    text-decoration: none;
    font-size: 12px;
    margin-left: 4px;
}
.bbc-look-more:hover { text-decoration: underline; }

/* 响应式 */
@media (max-width: 720px) {
    .bdhot-board-card {
        grid-template-columns: 80px 80px 1fr;
    }
    
    .bbc-cover-emoji { font-size: 32px; }
}

/* 空状态 */
.bdhot-board-empty {
    background: #fff;
    border-radius: 12px;
    padding: 80px 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.bdhot-board-empty .empty-icon { font-size: 48px; margin-bottom: 12px; }
.bdhot-board-empty .empty-title { font-size: 18px; color: #1f2937; margin-bottom: 4px; font-weight: 500; }
.bdhot-board-empty .empty-sub { font-size: 13px; color: #9aa0a6; margin-bottom: 18px; }
/* board 页封面图片 */
.bbc-override {
    display: block;
    position: relative;
    width: 120px;
    height: 160px;
    background: #f0f0f0;
    text-decoration: none;
    overflow: hidden;
}
.bbc-cover {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.bbc-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bbc-cover-fallback {
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bbc-cover-inner {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bbc-cover-emoji {
    font-size: 40px;
    line-height: 1;
}
.bbc-rank-10 ~ .bbc-cover .bbc-cover-fallback { background: linear-gradient(135deg, #5F6368, #9AA0A6); }

/* img 封面 */
.bbc-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* emoji 颜色 (白) */
.bbc-cover-inner .bbc-cover-emoji,
.bbc-cover-fallback .bbc-cover-emoji { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.2); }
/* ========== board 页封面渐变 (rank 1-10) ========== */
.bbc-override {
    display: block;
    position: relative;
    width: 120px;
    height: 160px;
    text-decoration: none;
    overflow: hidden;
}
.bbc-cover {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
}
.bbc-cover-inner, .bbc-cover-fallback {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    width: 100%; height: 100%;
}
.bbc-cover-emoji { font-size: 42px; line-height: 1; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.bbc-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* rank 徽章 */
.bbc-rank {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    width: 30px; height: 30px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700; color: #fff;
}

/* rank 1-3 彩色 */
.bbc-override.rank-1 .bbc-rank { background: linear-gradient(135deg, #FE2D46, #FF6B3A); }
.bbc-override.rank-2 .bbc-rank { background: linear-gradient(135deg, #FF6600, #FFB347); }
.bbc-override.rank-3 .bbc-rank { background: linear-gradient(135deg, #FAA90E, #FFD54F); }
.bbc-override.rank-4 .bbc-rank { background: #8B95A1; }
.bbc-override.rank-5 .bbc-rank { background: #8B95A1; }
.bbc-override.rank-6 .bbc-rank { background: #A4ADB8; }
.bbc-override.rank-7 .bbc-rank { background: #A4ADB8; }
.bbc-override.rank-8 .bbc-rank { background: #A4ADB8; }
.bbc-override.rank-9 .bbc-rank { background: #A4ADB8; }
.bbc-override.rank-10 .bbc-rank { background: #A4ADB8; }

/* rank 1-10 封面渐变 */
.bbc-override.rank-1 .bbc-cover-inner, .bbc-override.rank-1 .bbc-cover-fallback { background: linear-gradient(135deg, #FE2D46, #FF6B3A); }
.bbc-override.rank-2 .bbc-cover-inner, .bbc-override.rank-2 .bbc-cover-fallback { background: linear-gradient(135deg, #FF6600, #FFB347); }
.bbc-override.rank-3 .bbc-cover-inner, .bbc-override.rank-3 .bbc-cover-fallback { background: linear-gradient(135deg, #FAA90E, #FFD54F); }
.bbc-override.rank-4 .bbc-cover-inner, .bbc-override.rank-4 .bbc-cover-fallback { background: linear-gradient(135deg, #667eea, #764ba2); }
.bbc-override.rank-5 .bbc-cover-inner, .bbc-override.rank-5 .bbc-cover-fallback { background: linear-gradient(135deg, #34a853, #6FD68C); }
.bbc-override.rank-6 .bbc-cover-inner, .bbc-override.rank-6 .bbc-cover-fallback { background: linear-gradient(135deg, #00B4D8, #48CAE4); }
.bbc-override.rank-7 .bbc-cover-inner, .bbc-override.rank-7 .bbc-cover-fallback { background: linear-gradient(135deg, #7A3BFF, #B07BFF); }
.bbc-override.rank-8 .bbc-cover-inner, .bbc-override.rank-8 .bbc-cover-fallback { background: linear-gradient(135deg, #EA4335, #FF6B6B); }
.bbc-override.rank-9 .bbc-cover-inner, .bbc-override.rank-9 .bbc-cover-fallback { background: linear-gradient(135deg, #286EE0, #4B9FFF); }
.bbc-override.rank-10 .bbc-cover-inner, .bbc-override.rank-10 .bbc-cover-fallback { background: linear-gradient(135deg, #5F6368, #9AA0A6); }

.bbc-border {
    position: absolute; inset: 0;
    border: 1px solid rgba(0,0,0,0.05);
    pointer-events: none;
}

/* ============================================================
 * 商业化用户中心 v2 (整体风格: 深蓝渐变 / 精致卡片 / 数据面板)
 * ============================================================ */

/* ---------- 顶栏 ---------- */
.uc-body { background: #f1f4f9; }
.uc-topbar {
    background: linear-gradient(90deg, #1a237e 0%, #283593 50%, #3949ab 100%);
    color: #fff;
    padding: 0 0;
    height: 56px;
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 12px rgba(26,35,126,0.18);
}
.uc-topbar-inner {
    max-width: 1440px; margin: 0 auto;
    display: flex; align-items: center; gap: 24px;
    height: 100%; padding: 0 24px;
}
.uc-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 600; }
.uc-logo-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: rgba(255,255,255,0.18);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 15px;
    backdrop-filter: blur(6px);
}
.uc-logo-text { font-size: 17px; letter-spacing: 0.5px; }
.uc-logo-divider { color: rgba(255,255,255,0.35); font-size: 18px; }
.uc-logo-sub { font-size: 13px; color: rgba(255,255,255,0.7); font-weight: 500; }
.uc-top-nav { flex-shrink: 0; }
.uc-top-link { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 13px; padding: 6px 12px; border-radius: 6px; transition: all 0.15s; }
.uc-top-link:hover { background: rgba(255,255,255,0.12); color: #fff; }
.uc-top-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.uc-top-search input {
    width: 220px; background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18); border-radius: 20px;
    padding: 7px 14px; color: #fff; font-size: 13px;
    outline: none; transition: all 0.15s;
}
.uc-top-search input::placeholder { color: rgba(255,255,255,0.55); }
.uc-top-search input:focus { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.4); width: 240px; }
.uc-top-user { display: flex; align-items: center; gap: 10px; }
.uc-top-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ffa502);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; color: #fff;
    border: 2px solid rgba(255,255,255,0.35);
}
.uc-top-avatar-img {
    width: 36px; height: 36px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    object-fit: cover; display: block;
}
.uc-top-info { line-height: 1.3; }
.uc-top-name { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.uc-top-sub { font-size: 11px; color: rgba(255,255,255,0.7); }
.uc-top-bal { color: #ffeb3b; font-weight: 600; }
.uc-badge { padding: 1px 6px; border-radius: 10px; font-size: 10px; font-weight: 600; }
.uc-badge-company { background: rgba(79,195,247,0.28); color: #4fc3f7; }
.uc-badge-personal { background: rgba(129,199,132,0.28); color: #81c784; }
.uc-logout {
    color: rgba(255,255,255,0.8); text-decoration: none;
    font-size: 12px; padding: 5px 12px; border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.22);
    transition: all 0.15s;
}
.uc-logout:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ---------- 主布局 ---------- */
.uc-wrap {
    max-width: 1440px; margin: 24px auto; padding: 0 24px;
    display: grid; grid-template-columns: 260px 1fr; gap: 24px;
}

/* ---------- 侧边栏 ---------- */
.uc-sidebar { display: flex; flex-direction: column; gap: 20px; }
.uc-user-card {
    background: #fff; border-radius: 14px; overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.uc-user-gradient { height: 72px; background: linear-gradient(135deg, #1a237e, #3949ab, #5c6bc0); }
.uc-user-info { padding: 0 20px 16px; margin-top: -30px; text-align: center; }
.uc-avatar-lg {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ffa502);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 700; color: #fff;
    border: 3px solid #fff; margin: 0 auto;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.uc-avatar-lg-img {
    width: 64px; height: 64px; border-radius: 50%;
    border: 3px solid #fff; margin: 0 auto;
    object-fit: cover; display: block;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.uc-username { margin: 10px 0 4px; font-size: 16px; font-weight: 600; color: #1f2937; }
.uc-company { font-size: 12px; color: #5f6368; margin-bottom: 4px; }
.uc-status { font-size: 11px; padding: 2px 10px; border-radius: 10px; display: inline-block; font-weight: 500; }
.uc-verified { background: rgba(76,175,80,0.1); color: #2e7d32; }
.uc-unverified { background: rgba(255,152,0,0.12); color: #e65100; }
.uc-bal-card {
    margin: 0 14px 14px; padding: 14px 16px;
    background: linear-gradient(135deg, #f5f7fa, #eef2f8);
    border-radius: 10px;
}
.uc-bal-label { font-size: 11px; color: #5f6368; }
.uc-bal-amount { font-size: 22px; font-weight: 700; color: #1a237e; margin: 4px 0 10px; }
.uc-bal-actions { display: flex; gap: 8px; }

/* 导航分组 */
.uc-nav-group { background: #fff; border-radius: 12px; padding: 8px 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.04); }
.uc-nav-title { font-size: 11px; font-weight: 600; color: #9aa0a6; padding: 6px 12px; letter-spacing: 0.5px; text-transform: uppercase; }
.uc-nav { list-style: none; padding: 0; margin: 0; }
.uc-nav li a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 8px;
    text-decoration: none; color: #4b5563; font-size: 13.5px; font-weight: 500;
    transition: all 0.15s; margin-bottom: 2px;
}
.uc-nav li a:hover { background: #f1f4f9; color: #1a237e; }
.uc-nav li a.active {
    background: linear-gradient(90deg, rgba(26,35,126,0.08), rgba(57,73,171,0.04));
    color: #1a237e; font-weight: 600;
    border-left: 3px solid #3949ab; padding-left: 9px;
}
.uc-ni { font-size: 15px; width: 20px; text-align: center; }

/* 帮助框 */
.uc-help-box {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-radius: 12px; padding: 16px; text-align: center;
    border: 1px solid rgba(255,152,0,0.2);
}
.uc-help-title { font-size: 14px; font-weight: 600; color: #e65100; }
.uc-help-text { font-size: 12px; color: #bf360c; margin: 4px 0 10px; }
.uc-help-btn {
    display: block; padding: 7px 14px; border-radius: 6px;
    background: #ff9800; color: #fff; text-decoration: none;
    font-size: 12px; font-weight: 600; transition: background 0.15s;
}
.uc-help-btn:hover { background: #f57c00; }

/* ---------- 主内容 ---------- */
.uc-main { min-width: 0; }
.uc-page-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 20px;
}
.uc-page-title {
    font-size: 22px; font-weight: 700; color: #1a237e; margin: 0;
    display: flex; align-items: center; gap: 12px;
}
.uc-greet { font-size: 13px; font-weight: 500; color: #5f6368; }
.uc-page-sub { font-size: 13px; color: #9aa0a6; margin: 6px 0 0; }
.uc-quick-actions { display: flex; gap: 10px; }

/* ---------- 按钮 ---------- */
.uc-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 7px 14px; border-radius: 8px; border: none;
    font-size: 13px; font-weight: 600; text-decoration: none;
    cursor: pointer; transition: all 0.15s; line-height: 1.4;
    font-family: inherit;
}
.uc-btn-sm { padding: 6px 12px; font-size: 12px; }
.uc-btn-lg { padding: 10px 22px; font-size: 14px; }
.uc-btn-primary { background: linear-gradient(135deg, #1a237e, #3949ab); color: #fff; box-shadow: 0 2px 8px rgba(26,35,126,0.25); }
.uc-btn-primary:hover { box-shadow: 0 3px 12px rgba(26,35,126,0.35); transform: translateY(-1px); }
.uc-btn-primary-lg { background: linear-gradient(135deg, #1a237e, #3949ab); color: #fff; padding: 10px 24px; font-size: 14px; border-radius: 8px; text-decoration: none; font-weight: 600; box-shadow: 0 2px 10px rgba(26,35,126,0.3); }
.uc-btn-primary-lg:hover { box-shadow: 0 4px 16px rgba(26,35,126,0.4); }
.uc-btn-ghost { background: rgba(26,35,126,0.08); color: #1a237e; border: 1px solid rgba(26,35,126,0.15); }
.uc-btn-ghost:hover { background: rgba(26,35,126,0.14); }
.uc-btn-outline-lg {
    background: #fff; color: #1a237e; padding: 10px 24px; font-size: 14px;
    border-radius: 8px; border: 1.5px solid #c5cae9; text-decoration: none; font-weight: 600;
    transition: all 0.15s;
}
.uc-btn-outline-lg:hover { background: #e8eaf6; border-color: #1a237e; }
.uc-btn-ghost-lg {
    background: transparent; color: #5f6368; padding: 10px 24px; font-size: 14px;
    border-radius: 8px; border: 1px solid #e0e0e0; text-decoration: none; font-weight: 500;
}
.uc-btn-ghost-lg:hover { background: #f5f5f5; color: #1a237e; border-color: #c5cae9; }

/* ---------- 统计卡片 8 张 ---------- */
.uc-stat-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px;
}
.uc-stat-card {
    background: #fff; border-radius: 14px; padding: 18px 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    position: relative; overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.uc-stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.uc-sc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.uc-sc-ic {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px;
}
.uc-sc-label { font-size: 12px; color: #9aa0a6; font-weight: 500; }
.uc-sc-val { font-size: 24px; font-weight: 700; color: #1f2937; margin-bottom: 4px; letter-spacing: -0.5px; }
.uc-sc-foot { font-size: 11px; color: #9aa0a6; }
.uc-sc-bar {
    position: absolute; bottom: 0; left: 0; height: 3px;
    border-radius: 0 2px 2px 0;
    transition: width 0.4s;
}

/* 8 种色彩变体 */
.uc-sc-blue  .uc-sc-ic { background: #e8eaf6; color: #3949ab; }
.uc-sc-blue  .uc-sc-bar { background: linear-gradient(90deg, #1a237e, #5c6bc0); }
.uc-sc-green .uc-sc-ic { background: #e8f5e9; color: #43a047; }
.uc-sc-green .uc-sc-bar { background: linear-gradient(90deg, #2e7d32, #81c784); }
.uc-sc-orange.uc-sc-ic { background: #fff3e0; color: #fb8c00; }
.uc-sc-orange.uc-sc-bar { background: linear-gradient(90deg, #ef6c00, #ffb74d); }
.uc-sc-red   .uc-sc-ic { background: #ffebee; color: #e53935; }
.uc-sc-red   .uc-sc-bar { background: linear-gradient(90deg, #c62828, #ef9a9a); }
.uc-sc-purple.uc-sc-ic { background: #f3e5f5; color: #8e24aa; }
.uc-sc-purple.uc-sc-bar { background: linear-gradient(90deg, #6a1b9a, #ba68c8); }
.uc-sc-teal  .uc-sc-ic { background: #e0f2f1; color: #00897b; }
.uc-sc-teal  .uc-sc-bar { background: linear-gradient(90deg, #00695c, #4db6ac); }
.uc-sc-pink  .uc-sc-ic { background: #fce4ec; color: #ec407a; }
.uc-sc-pink  .uc-sc-bar { background: linear-gradient(90deg, #c2185b, #f48fb1); }
.uc-sc-gold  .uc-sc-ic { background: #fff8e1; color: #f9a825; }
.uc-sc-gold  .uc-sc-bar { background: linear-gradient(90deg, #f57f17, #ffca28); }

/* ---------- 横幅 ---------- */
.uc-promo-banner {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa502 100%);
    border-radius: 14px; padding: 18px 24px; margin-bottom: 20px;
    display: flex; justify-content: space-between; align-items: center;
    color: #fff; box-shadow: 0 4px 14px rgba(255,107,107,0.25);
}
.uc-promo-title { font-size: 16px; font-weight: 700; }
.uc-promo-sub { font-size: 13px; opacity: 0.9; margin-top: 3px; }
.uc-promo-btn {
    background: #fff; color: #e53935; padding: 9px 20px;
    border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 13px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); transition: all 0.15s;
}
.uc-promo-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }

/* ---------- 下半面板 ---------- */
.uc-main-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.uc-panel {
    background: #fff; border-radius: 14px; padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.uc-panel-6 {}
.uc-panel-full { grid-column: 1 / -1; margin-bottom: 20px; }
.uc-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.uc-panel-title { font-size: 15px; font-weight: 700; color: #1f2937; display: flex; align-items: center; gap: 8px; }
.uc-panel-dot { width: 8px; height: 8px; border-radius: 50%; }
.uc-dot-blue { background: #3949ab; }
.uc-dot-purple { background: #8e24aa; }
.uc-dot-teal { background: #00897b; }
.uc-dot-orange { background: #fb8c00; }
.uc-panel-more { font-size: 12px; color: #3949ab; text-decoration: none; font-weight: 500; }
.uc-panel-more:hover { text-decoration: underline; }

/* ---------- 交易列表 ---------- */
.uc-tx-list { display: flex; flex-direction: column; gap: 10px; }
.uc-tx-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 10px;
    background: #fafbfc; transition: background 0.15s;
}
.uc-tx-item:hover { background: #f1f4f9; }
.uc-tx-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.uc-tx-icon.tx-in { background: #e8f5e9; }
.uc-tx-icon.tx-out { background: #ffebee; }
.uc-tx-main { flex: 1; min-width: 0; }
.uc-tx-title { font-size: 13px; font-weight: 600; color: #1f2937; }
.uc-tx-time { font-size: 11px; color: #9aa0a6; margin-top: 2px; }
.uc-tx-amt { font-size: 14px; font-weight: 700; flex-shrink: 0; }
.uc-tx-amt.tx-in { color: #2e7d32; }
.uc-tx-amt.tx-out { color: #c62828; }

/* ---------- 广告列表 ---------- */
.uc-ad-list { display: flex; flex-direction: column; gap: 10px; }
.uc-ad-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 10px;
    background: #fafbfc; transition: background 0.15s;
}
.uc-ad-item:hover { background: #f1f4f9; }
.uc-ad-emoji { font-size: 16px; width: 30px; text-align: center; flex-shrink: 0; }
.uc-ad-main { flex: 1; min-width: 0; }
.uc-ad-title { font-size: 13px; font-weight: 600; color: #1f2937; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-ad-meta { font-size: 11px; color: #9aa0a6; margin-top: 2px; display: flex; gap: 6px; }
.uc-ad-status {
    font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 10px; flex-shrink: 0;
}
.as-green { background: #e8f5e9; color: #2e7d32; }
.as-yellow { background: #fff3e0; color: #ef6c00; }
.as-red { background: #ffebee; color: #c62828; }
.as-gray { background: #f5f5f5; color: #616161; }

/* ---------- 空状态 ---------- */
.uc-empty { text-align: center; padding: 36px 20px; }
.uc-empty-illu { font-size: 36px; margin-bottom: 10px; }
.uc-empty-title { font-size: 15px; font-weight: 600; color: #1f2937; margin-bottom: 4px; }
.uc-empty-desc { font-size: 12px; color: #9aa0a6; margin-bottom: 14px; }

/* ---------- 个人信息 ---------- */
.uc-profile-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px;
}
.uc-profile-row {
    display: flex; align-items: center; padding: 10px 0;
    border-bottom: 1px solid #f1f4f9;
}
.uc-profile-row:last-child { border-bottom: none; }
.uc-profile-label { width: 90px; font-size: 12px; color: #9aa0a6; flex-shrink: 0; }
.uc-profile-value { font-size: 13px; color: #1f2937; font-weight: 500; }
.uc-chip { padding: 2px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.uc-chip-blue { background: #e8eaf6; color: #283593; }
.uc-chip-green { background: #e8f5e9; color: #2e7d32; }
.uc-chip-orange { background: #fff3e0; color: #ef6c00; }
.uc-chip-gray { background: #f5f5f5; color: #616161; }

/* ---------- 表单 ---------- */
.uc-profile-form { }
.uc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.uc-form-item { display: flex; flex-direction: column; gap: 6px; }
.uc-form-item-full { grid-column: 1 / -1; }
.uc-form-item label { font-size: 12px; color: #5f6368; font-weight: 500; }
.uc-input {
    padding: 10px 14px; border-radius: 8px; border: 1.5px solid #e0e0e0;
    font-size: 13px; color: #1f2937; background: #fff;
    outline: none; transition: all 0.15s; font-family: inherit;
}
.uc-input:focus { border-color: #3949ab; box-shadow: 0 0 0 3px rgba(57,73,171,0.1); }
.uc-input-disabled { background: #f5f7fa; color: #9aa0a6; cursor: not-allowed; }
.uc-form-hint { font-size: 11px; color: #9aa0a6; }
.uc-form-actions { display: flex; gap: 12px; margin-top: 16px; padding: 0 2px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
    .uc-stat-grid { grid-template-columns: repeat(4, 1fr); }
    .uc-wrap { grid-template-columns: 220px 1fr; }
}
@media (max-width: 900px) {
    .uc-wrap { grid-template-columns: 1fr; }
    .uc-sidebar { order: 2; }
    .uc-stat-grid { grid-template-columns: repeat(3, 1fr); }
    .uc-main-grid { grid-template-columns: 1fr; }
    .uc-profile-grid { grid-template-columns: 1fr; }
    .uc-form-grid { grid-template-columns: 1fr; }
    .uc-top-search { display: none; }
}
@media (max-width: 600px) {
    .uc-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .uc-top-right .uc-top-info { display: none; }
}

/* ============================================================
 * 头像上传 + 身份证上传
 * ============================================================ */
.uc-avatar-upload {
    display: flex; align-items: center; gap: 28px;
    padding: 14px 0 6px;
}
.uc-avatar-preview {
    width: 96px; height: 96px; border-radius: 50%;
    overflow: hidden; flex-shrink: 0;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
    border: 3px solid #fff;
}
.uc-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.uc-avatar-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #ff6b6b, #ffa502);
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; font-weight: 700; color: #fff;
}
.uc-avatar-info { flex: 1; }
.uc-avatar-title { font-size: 15px; font-weight: 600; color: #1f2937; margin-bottom: 4px; }
.uc-avatar-desc { font-size: 12px; color: #9aa0a6; margin-bottom: 12px; }
.uc-file-label { cursor: pointer; }
.uc-file-has { margin-top: 8px; }
.uc-file-ok { font-size: 11px; color: #2e7d32; background: #e8f5e9; padding: 2px 10px; border-radius: 10px; }

/* 身份证上传 2 格 */
.uc-idcard-upload {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
    margin-top: 16px;
}
.uc-idcard-box { }
.uc-idcard-title { font-size: 13px; font-weight: 600; color: #1f2937; margin-bottom: 10px; }
.uc-idcard-label {
    display: block; width: 100%; aspect-ratio: 1.58/1;
    border: 2px dashed #d0d0d0; border-radius: 10px;
    overflow: hidden; cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    background: #fafbfc;
    position: relative;
}
.uc-idcard-label:hover { border-color: #3949ab; background: #f1f4f9; }
.uc-idcard-label img {
    width: 100%; height: 100%; object-fit: cover;
}
.uc-idcard-empty {
    width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #9aa0a6; font-size: 12px; gap: 8px;
}
.uc-idcard-plus { font-size: 36px; opacity: 0.5; }
.uc-idcard-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(0,0,0,0.5); color: #fff;
    font-size: 11px; text-align: center; padding: 6px;
    opacity: 0; transition: opacity 0.15s;
}
.uc-idcard-label:hover .uc-idcard-overlay { opacity: 1; }
.uc-form-hint-block { margin-top: 14px; font-size: 11px !important; color: #5f6368 !important; padding: 10px 14px; background: #fff8e1; border-radius: 8px; border-left: 3px solid #fbc02d; }

@media (max-width: 600px) {
    .uc-idcard-upload { grid-template-columns: 1fr; }
    .uc-avatar-upload { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
 * 隐藏 file input —— 用 opacity 方式保证 label 可点击触发
 * ============================================================ */
.uc-hidden-file {
    position: absolute; width: 1px; height: 1px;
    opacity: 0; pointer-events: none;
}
/* 需要父级是 position: relative */
.uc-file-label { position: relative; display: inline-block; }
.uc-cert-label-box, .uc-idcard-label, .uc-file-label { cursor: pointer; }

/* ============================================================
 * 企业资质上传 (营业执照 + 法人身份证)
 * ============================================================ */
.uc-cert-section { margin-top: 20px; padding: 20px; background: #fafbfc; border-radius: 12px; border: 1px solid #f0f0f0; }
.uc-cert-title { font-size: 14px; font-weight: 700; color: #1a237e; margin-bottom: 14px; }
.uc-cert-title-sub { margin-top: 24px; font-size: 13px; color: #283593; }
.uc-cert-row { display: flex; align-items: flex-start; gap: 16px; }
.uc-cert-label { font-size: 12px; color: #5f6368; padding-top: 8px; width: 90px; flex-shrink: 0; }
.uc-cert-label-box {
    display: block; flex: 1; max-width: 420px; aspect-ratio: 1.7/1;
    border: 2px dashed #c5cae9; border-radius: 10px;
    overflow: hidden; cursor: pointer; position: relative;
    transition: all 0.15s; background: #fff;
}
.uc-cert-label-box:hover { border-color: #3949ab; background: #f5f7ff; box-shadow: 0 2px 10px rgba(57,73,171,0.12); }
.uc-cert-label-box img { width: 100%; height: 100%; object-fit: cover; }
.uc-cert-empty {
    width: 100%; height: 100%; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 6px;
    color: #9aa0a6; font-size: 12px; text-align: center;
}
.uc-cert-plus { font-size: 44px; opacity: 0.45; }
.uc-cert-hint { font-size: 11px; color: #c5cae9; }
.uc-cert-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(26,35,126,0.7); color: #fff;
    font-size: 12px; text-align: center; padding: 7px;
    opacity: 0; transition: opacity 0.15s; font-weight: 500;
}
.uc-cert-label-box:hover .uc-cert-overlay { opacity: 1; }

@media (max-width: 700px) {
    .uc-cert-row { flex-direction: column; }
    .uc-cert-label { width: auto; padding-top: 0; }
    .uc-cert-label-box { max-width: 100%; }
}

/* ============================================================
 * dz.png LOGO — 全部正方形四角圆角 8px
 * ============================================================ */
.logo-img,
.uc-logo-img,
.admin-brand-img {
    height: 32px !important;
    width: 32px !important;
    max-height: 32px !important;
    max-width: 32px !important;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    display: inline-block;
    flex-shrink: 0;
    vertical-align: middle;
}
.admin-brand-img { margin-right: 8px; }

/* 后台侧边栏 brand 对齐 */
.admin-sidebar .brand {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 移动端 auth logo */
.bm-auth-logo-img {
    height: 40px;
    width: 40px;
    max-height: 40px;
    max-width: 40px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    flex-shrink: 0;
}



/* ====== 侧边栏固定广告位 (12 宫格) ====== */
.baidu-sidebar-adcard { overflow: hidden; }
.baidu-sidebar-grid-wrap { padding-top: 4px; }
.baidu-sidebar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    transition: max-height .25s ease;
}
/* 默认折叠: 只显示第 1 行 (4 个) */
.baidu-sidebar-grid-wrap:not(.expanded) .baidu-sidebar-grid {
    max-height: 88px;
    overflow: hidden;
}
/* 展开后: 显示全部 3 行 (最多 12 个) */
.baidu-sidebar-grid-wrap.expanded .baidu-sidebar-grid {
    max-height: 300px;
    overflow: hidden;
}
.baidu-sidebar-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    padding: 6px 3px;
    border-radius: 8px;
    background: #fafbff;
    border: 1px solid #eef0f7;
    transition: box-shadow .15s, transform .15s, border-color .15s;
    position: relative;
}
.baidu-sidebar-grid-item:hover {
    box-shadow: 0 3px 10px rgba(41,50,225,.12);
    transform: translateY(-1px);
    border-color: #c5caff;
}
.baidu-sidebar-grid-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    background: #f2f4f7;
    display: block;
}
.baidu-sidebar-grid-icon {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border-radius: 6px;
    background: linear-gradient(135deg,#eef2ff,#f0f4ff);
}
.baidu-sidebar-grid-title {
    font-size: 10px;
    color: #1a1a2e;
    margin-top: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
}
.baidu-sidebar-grid-toggle {
    text-align: center;
    font-size: 12px;
    color: #5f6368;
    cursor: pointer;
    padding: 8px 0 2px;
    user-select: none;
    transition: color .15s;
}
.baidu-sidebar-grid-toggle:hover {
    color: #1a73e8;
}
.baidu-sidebar-adinfo { display: flex; flex-direction: column; gap: 2px; }
.baidu-sidebar-adtitle {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.baidu-sidebar-adtitle:hover { color: #2932E1; }
