

    /* Left fixed-width area - 深色主题（旧边栏，已移除） */
    .tidence_left {
width: 320px;
    border-right: 1px solid #333;
    background: #202020;
    flex-shrink: 0;
    position: fixed;
    display: flex;
    height: 100%;
    overflow-y: auto;
    z-index: 100;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
    }

    .leftNav-container {
        padding: 20px 0;
        width: 100%; /* 确保容器撑满 */
    }

    .leftNav-content {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .leftNav-left {
        width: 100%;
        box-sizing: border-box;
    }

    #leftNav {
        width: 100%;
    }

    /* Logo 区域 - 深色适配 */
    .leftNav-logo {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    margin-top: 30px;
    padding-left: 30px;
    text-decoration: none;
    justify-content: flex-start;
    }

    /* 左侧边栏头部：logo 与登录按钮横向排列（logo 在前，登录按钮在后） */
    .leftNav-head {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding-left: 30px;
        margin-top: 30px;
        margin-bottom: 20px;
        gap: 15px;
    }
    .leftNav-head .leftNav-logo {
        margin: 0;
        padding: 0;
    }

    .leftNav-logo img {
        width: 48px;
        height: 48px;
        margin-right: 10px;
    }

    .leftNav-logo-text {
        font-size: 32px;
        font-weight: bold;
        color: #ffffff; /* ★★★ 改为纯白，更醒目 ★★★ */
        position: relative;
    }
   /* .leftNav-logo-text::before {
    content: "";
    position: absolute;
    height: 13rem;
    width: 80px;
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.05) 45%, rgba(255, 255, 255, 0.10) 75%, transparent 100%);
    top: -77px;
    left: -14px;
    transform: rotate(100deg);
    z-index: 1;
    }*/

    /* 主菜单 - 深色适配 */
    .leftNav-main-menu {
        margin-top: 30px;
    }
    .leftNav-main-menu ul {
        list-style: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08); /* 分割线调亮 */
        border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* 分割线调亮 */
        padding-left: 0;
    }

    .leftNav-main-menu li {
        margin-bottom: 5px;
        position: relative;
    }
    .leftNav-main-menu li:nth-child(3) a {
        color: #ff6b6b; /* 保持红色，但微调为更鲜艳的版本 */
     
    }
   /* .leftNav-main-menu li:nth-child(3) a:after {
        content: "免费";
        position: absolute;
        left: 110px;
        top: 0;
        background-color: #ff6b6b;
        color: white;
        font-size: 12px;
        padding: 2px 6px;
        border-radius: 50px 50px 50px 0;
        animation: blink 1.5s infinite;
    }*/

    /* ★★★ 核心修复：菜单链接颜色改为白色 ★★★ */
    .leftNav-main-menu a {
        display: block;
        padding: 12px 30px;
        color: #e0e0e0; /* 柔和的白色，长时间阅读不刺眼 */
        text-decoration: none;
        font-size: 18px;
        transition: all 0.3s ease;
    }

    .leftNav-main-menu a:hover {
        background-color: rgba(0, 0, 0, 0.1);
        color: #2aae67; /* 悬停时完全变白 */
    }

    .leftNav-main-menu a.active {
        border-left:5px solid #2aae67;
        color: #2aae67;
        background-color: rgba(0, 0, 0, 0.1);
    }

    .leftNav-left a:not(.leftNav-logo):not(.leftNav-main-menu a) {
        color: #aaaaaa;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    .leftNav-left a:not(.leftNav-logo):not(.leftNav-main-menu a):hover {
        color: #ffffff;
    }
    .copyright {
        color: #888888;
        font-size: 14px;
        margin-top: 10px;
        text-align: center;
    }

    /* 搜索框（如有） */
    .search-container {
        margin: 20px 0;
    }

    /* 内容区 - 全宽（旧 tidence_right，已移除） */
    .header-left {
        margin-left: 20px;
    }
    /* 顶部 header：悬浮顶部，logo 始终显示 */
    .header { display: block !important; position: sticky; top: 0; z-index: 1000; background: #ffffff; border-bottom: 1px solid #eef0f4;; }
    .logo { display: flex !important; }
    .logo img { height: 2.5rem; }
    /* 顶部导航菜单（复用 styles.css 的 main-menu 样式） */
    .header .main-menu { margin-left: 20px; }
    .header .main-menu a { font-size: 16px; }
    /* 导航条内搜索框（桌面端显示） */
    .header-search { display: flex; align-items: center; height: 38px; box-sizing: border-box; background: #f1f3f6; border-radius: 50px; overflow: hidden; padding: 0 8px 0 0; }
    .header-search__type { border: none; outline: none; background: #e7e9ee; color: #333; font-size: 13px; padding: 0 4px; height: 38px; box-sizing: border-box; border-radius: 6px 0 0 6px; cursor: pointer; flex-shrink: 0; }
    .header-search input { border: none; outline: none; background: transparent; padding: 0 4px; font-size: 14px; width: 150px; color: #333; height: 38px; box-sizing: border-box; }
    .header-search button { background: none; border: none; color: #888; cursor: pointer; font-size: 15px; padding: 0 4px; height: 38px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
    .header-search button:hover { color: #2aae67; }
    @media (max-width: 1024px) { .header-search { display: none; } }
.pc_copyright{padding-left:30px;margin-top:15px;}
    /* 移动端响应式 - 保持不变 */
    @media (max-width: 768px) {
        .header-left {
            margin-left: 0;
        }
    }

    /* =========================================================
       顶栏登录 / 用户入口（全站共享）
       ========================================================= */
    .header-right {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-right: 16px;
    }
    .header-user {
        position: relative;
        display: flex;
        align-items: center;
    }
    .header-login-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 14px;
        width: 38px;
        height: 38px;
        padding: 0;
        gap: 0;
        border-radius: 50%;
        background: none;
        color: #2b2e35;
        border: 1px solid currentColor;
        box-sizing: border-box;
        font-size: 0;
        cursor: pointer;
        transition: all .25s ease;
        white-space: nowrap;
    }
    .header-login-btn span { display: none; }
    .header-login-btn:hover {
        background: rgba(0,0,0,.06);
        transform: translateY(-1px);
    }
    .header-login-btn svg { display: block; flex-shrink: 0; width: 20px; height: 20px; }
    /* 移动端专用登录按钮：PC 默认隐藏，移动端靠右显示 */
    .header-login-btn--mobile { display: none; }

    .header-user__btn {
        cursor: pointer;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        overflow: hidden;
        border: 2px solid #fff;
        box-shadow: 0 2px 10px rgba(15,23,42,.18);
        transition: transform .2s ease;
        background: #e6fbf4;
    }
    .header-user__btn:hover { transform: scale(1.05); }
    .header-user__avatar {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 50%;
    }

    /* =========================================================
       桌面端左侧边栏：登录 / 用户入口（深色风格）
       ========================================================= */
    .leftNav-user {
        padding: 20px 30px 0;
        margin-top: 24px;
        border-top: 1px solid rgba(255,255,255,.08);
    }
    .leftNav-user-link {
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
    }
    .leftNav-user-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid rgba(255,255,255,.22);
        background: #2a2a2a;
    }
    .leftNav-user-name {
        font-size: 15px;
        font-weight: 600;
        color: #fff;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .leftNav-user-actions {
        display: flex;
        flex-direction: column;
        gap: 4px;
        margin-top: 12px;
    }
    .leftNav-user-actions a {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #b0b0b0;
        text-decoration: none;
        font-size: 14px;
        padding: 6px 0;
        transition: color .2s ease;
    }
    .leftNav-user-actions a i { width: 18px; text-align: center; color: #2aae67; }
    .leftNav-user-actions a:hover { color: #fff; }
    .leftNav-user-logout i { color: #dc3545 !important; }
    .leftNav-login-btn {
        width: 100%;
        background: none;
        color: #fff;
        border: 2px solid currentColor;
        box-sizing: border-box;
        border-radius: 10px;
        padding: 11px 0;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: all .25s ease;
    }
    .leftNav-login-btn:hover {
        background: rgba(255,255,255,.08);
        transform: translateY(-1px);
    }
    /* 放在左侧 logo 后的登录按钮：纯 SVG 圆形图标，不显示文字 */
    .leftNav-head .leftNav-login-btn {
        width: 38px;
        height: 38px;
        margin-top: 0;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
        font-size: 0;
    }
    .leftNav-head .leftNav-login-btn span { display: none; }
    .leftNav-head .leftNav-login-btn svg { display: block; flex-shrink: 0; width: 20px; height: 20px; }

    /* 侧边栏登录后：logo 后圆形头像 + 下拉菜单（与顶栏交互一致） */
    .leftNav-head .leftNav-user { position: relative; margin: 0; padding: 0; border: none; }
    .leftNav-user-avatar-wrap { width: 38px; height: 38px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
    .leftNav-head .leftNav-user-avatar { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(255,255,255,.22); background: #2a2a2a; object-fit: cover; }
    .leftNav-user-dropdown { position: absolute; right: 0; left: auto; top: calc(100% + 10px); z-index: 130; width: 210px; max-width: 90vw; background: #1e1f24; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.5); display: none; }
    .leftNav-user-dropdown.open { display: block; }
    .leftNav-user-head { display: flex; align-items: center; gap: 10px; padding: 6px 8px 10px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 6px; }
    .leftNav-user-avatar-lg { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); object-fit: cover; }
    .leftNav-user-meta strong { display: block; color: #fff; font-size: 14px; font-weight: 600; }
    .leftNav-user-meta span { color: #8a94a6; font-size: 12px; }
    .leftNav-user-dropdown a { display: flex; align-items: center; gap: 8px; color: #c6cdd8; text-decoration: none; padding: 8px; border-radius: 8px; font-size: 14px; }
    .leftNav-user-dropdown a i { width: 18px; text-align: center; color: #2aae67; }
    .leftNav-user-dropdown a:hover { background: rgba(255,255,255,.06); color: #fff; }
    .leftNav-user-dropdown a.leftNav-user-logout i { color: #dc3545; }

    /* 用户下拉菜单 */
    .user-menu__dropdown {
        position: absolute;
        right: 0;
        top: calc(100% + 8px);
        min-width: 220px;
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 16px 40px rgba(15,23,42,.16);
        padding: 8px;
        display: none;
        flex-direction: column;
        z-index: 1200;
    }
    .user-menu__dropdown.open { display: flex; }
    .user-menu__head {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border-bottom: 1px solid #eef1f5;
        margin-bottom: 6px;
    }
    .user-menu__avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
    .user-menu__meta { display: flex; flex-direction: column; }
    .user-menu__meta strong { font-size: 14px; color: #0f172a; }
    .user-menu__meta span { font-size: 12px; color: #94a3b8; }
    .user-menu__dropdown a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        font-size: 14px;
        color: #475569;
        text-decoration: none;
        border-radius: 8px;
        transition: background .2s ease;
    }
    .user-menu__dropdown a i { width: 18px; text-align: center; color: #1f8f58; }
    .user-menu__dropdown a:hover { background: #e6fbf4; color: #1f8f58; }
    .user-menu__logout { border-top: 1px solid #eef1f5; margin-top: 6px; }
    .user-menu__logout i { color: #dc3545 !important; }

    /* ===== 全站登录弹窗 ===== */
    .login-modal-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15,23,42,.55);
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
        backdrop-filter: blur(3px);
    }
    .login-modal {
        width: 400px;
        max-width: 100%;
        background: #fff;
        border-radius: 18px;
        box-shadow: 0 24px 60px rgba(0,0,0,.25);
        padding: 35px;
        position: relative;
        animation: lmPop .22s ease;
    }
    @keyframes lmPop { from{transform:translateY(14px) scale(.97);opacity:0} to{transform:none;opacity:1} }
    .login-modal__head {     display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 22px;
    margin-bottom: 35px;
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 15px; }
    .login-modal__head h3 { margin:0; font-size:18px; color:#0f172a; font-weight:600; }
    .login-modal__close { position:absolute;     top: 35px;
    right: 35px; background:none; border:none; font-size:18px; color:#94a3b8; cursor:pointer; line-height:1; padding:4px; }
    .login-modal__close:hover { color:#0f172a; }
    .login-modal__form { display:block; }
    .login-modal__field { position:relative; margin-bottom:12px; }
    .login-modal__field i { position:absolute; left:13px; top:50%; transform:translateY(-50%); color:#94a3b8; font-size:14px; }
    .login-modal__field input { width:100%; box-sizing:border-box; padding:11px 42px 11px 38px; border:1px solid #dde4eb; border-radius:50px; font-size:14px; outline:none; transition:border-color .2s; background:#fbfcfe; }
    .login-modal__field input:focus { border-color:#2aae67; background:#fff; }
    .login-modal__eye { position:absolute; right:10px; top:50%; transform:translateY(-50%); background:none; border:none; color:#94a3b8; cursor:pointer; font-size:14px; padding:0; width:28px; height:28px; display:flex; align-items:center; justify-content:center; z-index:2; line-height:1; -webkit-appearance:none; appearance:none; }
    .login-modal__eye i { position:static; left:auto; top:auto; transform:none; color:inherit; font-size:15px; }
    .login-modal__eye:hover { color:#2aae67; }
    .login-modal__msg { min-height:20px; font-size:13px; margin-bottom:6px; color:#ef4444; }
    .login-modal__msg.ok { color:#2aae67; }
    .login-modal__submit { width:100%; padding:12px 0; border:none; border-radius:50px; background:#2aae67; color:#fff; font-size:15px; font-weight:600; cursor:pointer; transition:background .2s; }
    .login-modal__submit:hover { background:#239254; }
    .login-modal__submit:disabled { opacity:.6; cursor:not-allowed; }
    .login-modal__foot { display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center; font-size:12px; color:#94a3b8; margin-top:16px; }
    .login-modal__switch { display:flex; align-items:center; gap:10px; }
    .login-modal__sep { color:#cbd5e1; }
    .login-modal__forgot { background:none; border:none; color:#2aae67; cursor:pointer; font-size:13px; padding:0; font-weight:500; }
    .login-modal__forgot:hover { text-decoration:underline; }

    /* ===== 响应式：顶栏登录按钮 ===== */
    @media (max-width: 768px) {
        .header-right { margin-right: 12px; gap: 8px; }
        .header-login-btn { padding: 0; margin-left: 0; width: 38px; height: 38px; border-radius: 50%; justify-content: center; gap: 0; font-size: 0; color: #111;border:none; }
        .header-login-btn span { display: none; }
        .header-login-btn svg { width: 20px; height: 20px; }
        .header-login-btn--pc { display: none; }
        .header-login-btn--mobile { display: flex; }
        .mobile-menu__logout i { color: #dc3545 !important; }
        .login-modal { padding: 24px 20px 18px; }
    }


/* ===== 主题切换按钮（太阳/月亮） ===== */
.theme-toggle{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:none;border:1px solid currentColor;color:#2b2e35;cursor:pointer;transition:all .25s ease;flex-shrink:0;box-sizing:border-box}
.theme-toggle:hover{background:rgba(0,0,0,.06);transform:translateY(-1px)}
.theme-toggle__icon{display:block;width:20px;height:20px}
@media (max-width:768px){.theme-toggle{width:38px;height:38px;border:none;}}

/* ===== 暗色主题适配（data-theme="dark"） ===== */
[data-theme="dark"] .header{background:#1e1e1e;box-shadow:0 2px 8px rgba(0,0,0,.4)}
[data-theme="dark"] .header-search{background:#2b2d30}
[data-theme="dark"] .header-search__type{background:#34373c;color:#dee2e6}
[data-theme="dark"] .header-search input{color:#f8f9fa}
[data-theme="dark"] .header-search input::placeholder{color:#6c757d}
[data-theme="dark"] .header-search button{color:#adb5bd}
[data-theme="dark"] .header-login-btn{color:#dee2e6}
[data-theme="dark"] .header-login-btn:hover{background:rgba(255,255,255,.08)}
[data-theme="dark"] .theme-toggle{color:#dee2e6}
[data-theme="dark"] .theme-toggle:hover{background:rgba(255,255,255,.08)}
[data-theme="dark"] .user-menu__dropdown{background:#1e1f24;box-shadow:0 16px 40px rgba(0,0,0,.5)}
[data-theme="dark"] .user-menu__head{border-bottom:1px solid #333}
[data-theme="dark"] .user-menu__meta strong{color:#f8f9fa}
[data-theme="dark"] .user-menu__dropdown a{color:#c6cdd8}
[data-theme="dark"] .user-menu__dropdown a:hover{background:rgba(255,255,255,.06);color:#fff}
[data-theme="dark"] .user-menu__logout{border-top:1px solid #333}
[data-theme="dark"] .login-modal{background:#2d363b;box-shadow:0 24px 60px rgba(0,0,0,.6)}
[data-theme="dark"] .login-modal__head {border-bottom: 1px solid #ffffff0d;}
[data-theme="dark"] .login-modal__head h3{color:#f8f9fa}
[data-theme="dark"] .login-modal__close{color:#94a3b8}
[data-theme="dark"] .login-modal__close:hover{color:#fff}
/* ===== 登录弹窗暗色主题：高优先级兜底 ===== */
html[data-theme="dark"] .login-modal .login-modal__field input,
html[data-theme="dark"] .login-modal .login-modal__field input[type="text"],
html[data-theme="dark"] .login-modal .login-modal__field input[type="password"],
html[data-theme="dark"] .login-modal .login-modal__field input[type="email"] {
  background: #2b2d30 !important;
  border: 1px solid #2e424b !important;
  color: #f8f9fa !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .login-modal .login-modal__field input:focus,
html[data-theme="dark"] .login-modal .login-modal__field input:focus-visible {
  background: #2b2d30 !important;
  border-color: #4ecb9c !important;
  color: #f8f9fa !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(78, 203, 156, .25) !important;
}

html[data-theme="dark"] .login-modal .login-modal__field input::placeholder {
  color: #8a94a6 !important;
}

/* 图标、眼睛按钮也一起兜底，避免残留亮色 */
html[data-theme="dark"] .login-modal .login-modal__field i {
  color: #6c757d !important;
}
html[data-theme="dark"] .login-modal .login-modal__eye {
  color: #94a3b8 !important;
  background: transparent !important;
}

/* 若浏览器自动填充（Chrome 黄底/白底）覆盖，强制修正 */
html[data-theme="dark"] .login-modal .login-modal__field input:-webkit-autofill,
html[data-theme="dark"] .login-modal .login-modal__field input:-webkit-autofill:hover,
html[data-theme="dark"] .login-modal .login-modal__field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f8f9fa !important;
  -webkit-box-shadow: 0 0 0 1000px #2b2d30 inset !important;
  box-shadow: 0 0 0 1000px #212b31 inset !important;
  caret-color: #f8f9fa !important;
  transition: background-color 9999s ease-out 0s !important;
}

/* ===== 修复暗色登录输入框圆角白边 ===== */
html[data-theme="dark"] .login-modal .login-modal__field {
  background: #2b2d30 !important;      /* 容器底色与输入框一致，避免圆角缝隙露出亮色 */
  border-radius: 50px !important;       /* 与 input 圆角保持一致，按实际值调整 */
  overflow: hidden !important;         /* 裁掉内层溢出，圆角不留缝 */
}

html[data-theme="dark"] .login-modal .login-modal__field input,
html[data-theme="dark"] .login-modal .login-modal__field input[type="text"],
html[data-theme="dark"] .login-modal .login-modal__field input[type="password"],
html[data-theme="dark"] .login-modal .login-modal__field input[type="email"] {
  border-radius: 50px !important;       /* 与容器一致，按实际值调整 */
  background-clip: padding-box !important;  /* 背景只在边框内侧绘制，圆角外不溢出 */
  -webkit-background-clip: padding-box !important;
}

/* 自动填充的内阴影也裁进圆角，避免出现白角 */
html[data-theme="dark"] .login-modal .login-modal__field input:-webkit-autofill,
html[data-theme="dark"] .login-modal .login-modal__field input:-webkit-autofill:hover,
html[data-theme="dark"] .login-modal .login-modal__field input:-webkit-autofill:focus {
  border-radius: 50px !important;
}
[data-theme="dark"] .login-modal__field i{color:#6c757d}
[data-theme="dark"] .login-modal__submit{background:#1f8f58}
[data-theme="dark"] .login-modal__foot{color:#94a3b8}
[data-theme="dark"] .login-modal__sep{color:#444}
[data-theme="dark"] .login-modal__forgot{color:#4ecb9c}
[data-theme="dark"] .mobile-menu-btn svg{color:#dee2e6}


/* ===== 暗色补充：导航 logo / 移动菜单 ===== */
[data-theme="dark"] .logo-text{color:#f8f9fa}
[data-theme="dark"] .mobile-menu-btn{color:#dee2e6}
