/* 外观模式：白天 / 夜晚 / 跟随系统 */
.theme-mode-control {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
}

.theme-mode-toggle {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.theme-mode-toggle:hover {
    background: rgba(0, 0, 0, 0.09);
    border-color: rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}

.theme-mode-toggle:focus-visible,
.theme-mode-option:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.theme-mode-menu {
    position: absolute;
    top: calc(100% + 11px);
    right: 0;
    width: 154px;
    padding: 6px;
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 14px;
    background: var(--card-bg, rgba(255, 255, 255, 0.96));
    color: var(--text-main, #1a1a1a);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1200;
    max-width: calc(100vw - 24px);
}

.theme-mode-menu[hidden] {
    display: none !important;
}

.theme-mode-option {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--text-main, #1a1a1a);
    display: grid;
    grid-template-columns: 22px 1fr 16px;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease;
}

.theme-mode-option:hover {
    background: rgba(0, 0, 0, 0.06);
}

.theme-mode-option.is-active {
    background: rgba(99, 102, 241, 0.12);
    color: #4f46e5;
}

.theme-mode-option > i:first-child {
    width: 18px;
    text-align: center;
    font-size: 14px;
}

.theme-mode-check {
    opacity: 0;
    font-size: 11px;
}

.theme-mode-option.is-active .theme-mode-check {
    opacity: 1;
}

html[data-theme="light"] {
    color-scheme: light;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --card-bg: rgba(27, 28, 33, 0.86);
    --bg-color: #111216;
    --card-border: 1px solid rgba(255, 255, 255, 0.1);
    --text-main: #f4f4f5;
    --text-sub: #a1a1aa;
    --shadow: 0 10px 36px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] body {
    background-color: #111216 !important;
    background-image: none !important;
    color: var(--text-main);
}

html[data-theme="dark"] .navbar-wrapper {
    background: rgba(21, 22, 27, 0.88) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .nav-links li a {
    color: var(--text-sub);
}

html[data-theme="dark"] .nav-links li a:hover,
html[data-theme="dark"] .nav-links li a.active {
    color: var(--text-main);
}

html[data-theme="dark"] .nav-links li a::after {
    background: var(--text-main);
}

html[data-theme="dark"] .search-box input {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

html[data-theme="dark"] .search-box input::placeholder {
    color: #85858f;
}

html[data-theme="dark"] .search-box input:focus {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .nav-login-link {
    color: #e4e4e7;
    border-color: rgba(255, 255, 255, 0.16);
}

html[data-theme="dark"] .nav-login-link:hover {
    background: #f4f4f5;
    color: #18181b;
    border-color: #f4f4f5;
}

html[data-theme="dark"] .nav-avatar {
    border-color: rgba(255, 255, 255, 0.18);
}

html[data-theme="dark"] .theme-mode-toggle {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.13);
}

html[data-theme="dark"] .theme-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
}

html[data-theme="dark"] .theme-mode-menu {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .theme-mode-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .theme-mode-option.is-active {
    background: rgba(129, 140, 248, 0.18);
    color: #c7d2fe;
}

html[data-theme="dark"] .mobile-sidebar {
    background: rgba(24, 25, 30, 0.97);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .m-username {
    color: var(--text-main);
}

html[data-theme="dark"] .m-nav-item {
    color: #c4c4cc;
}

html[data-theme="dark"] .m-nav-item:hover,
html[data-theme="dark"] .m-nav-item.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

html[data-theme="dark"] .m-nav-item:hover i,
html[data-theme="dark"] .m-nav-item.active i {
    color: #fff;
}

html[data-theme="dark"] .m-btn {
    border-color: rgba(255, 255, 255, 0.13);
    color: var(--text-sub);
}

html[data-theme="dark"] .modal-card {
    background: #1b1c21;
}

html[data-theme="dark"] .modal-header-bar {
    background: rgba(30, 31, 37, 0.96);
    border-bottom-color: rgba(255, 255, 255, 0.09);
}

html[data-theme="dark"] .close-modal-btn {
    background: rgba(255, 255, 255, 0.09);
    color: #d4d4d8;
}

html[data-theme="dark"] .comment-section {
    background: rgba(255, 255, 255, 0.045);
}

html[data-theme="dark"] .comment-input {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-main);
}

html[data-theme="dark"] .minimal-footer,
html[data-theme="dark"] .glass-footer-card {
    background: rgba(27, 28, 33, 0.86);
    border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .f-logo {
    color: var(--text-main);
}

html[data-theme="dark"] .chess-left {
    background: #1b1c21;
    border-right-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .chess-text-content {
    background: linear-gradient(135deg, rgba(31, 32, 38, 0.98) 0%, rgba(31, 32, 38, 0.76) 60%, rgba(31, 32, 38, 0.52) 100%);
}

html[data-theme="dark"] .chess-title {
    color: #f4f4f5;
}

html[data-theme="dark"] .chess-subtitle {
    color: #b5b5bd;
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .category-bar,
html[data-theme="dark"] .glass-card {
    border-color: rgba(255, 255, 255, 0.09);
}

html[data-theme="dark"] .cat-item.active::after,
html[data-theme="dark"] .widget-title {
    border-left-color: #f4f4f5;
}

html[data-theme="dark"] .article-card {
    background: #1b1c21;
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .article-card:hover {
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] .ac-title {
    color: #f1f1f3;
}

html[data-theme="dark"] .ac-desc,
html[data-theme="dark"] .ac-stats,
html[data-theme="dark"] .ac-tag,
html[data-theme="dark"] .ac-date {
    color: #9d9da7;
}

html[data-theme="dark"] .pagination-container {
    background: #1b1c21;
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .pg-btn {
    color: #b4b4bc;
}

html[data-theme="dark"] .pg-btn:hover:not(.disabled):not(.active) {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

html[data-theme="dark"] .pg-btn.active {
    background: #f4f4f5;
    color: #18181b;
}

html[data-theme="dark"] .pg-info,
html[data-theme="dark"] .pg-info b {
    color: #d4d4d8;
}

html[data-theme="dark"] .pg-jump-wrap {
    border-left-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .pg-input {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-main);
}

html[data-theme="dark"] .pg-input:focus {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.28);
}

html[data-theme="dark"] .avatar,
html[data-theme="dark"] .m-avatar {
    border-color: rgba(255, 255, 255, 0.18);
}

html[data-theme="dark"] .social-btn {
    background: rgba(255, 255, 255, 0.09);
    color: #d4d4d8;
}

html[data-theme="dark"] .wc-back {
    background: #25262c;
    color: #f4f4f5;
}

html[data-theme="dark"] .friend-item {
    background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .friend-item:hover {
    background: rgba(255, 255, 255, 0.11);
}

html[data-theme="dark"] .tag {
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .chat-header,
html[data-theme="dark"] .chat-input-area {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .chat-input {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-main);
}

html[data-theme="dark"] .emoji-picker {
    background: rgba(31, 32, 38, 0.97);
    border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .modal-overlay .modal-card {
    background: #1b1c21 !important;
}

html[data-theme="dark"] .modal-header-bar {
    background: #2a2b31 !important;
    border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .modal-header-bar:hover {
    background: #34353c !important;
}

html[data-theme="dark"] .modal-header-bar i.close-modal-btn {
    color: #e4e4e7 !important;
}

html[data-theme="dark"] .xhs-container,
html[data-theme="dark"] .xhs-right {
    background: #1b1c21;
}

html[data-theme="dark"] .xhs-right {
    border-left-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .xhs-title,
html[data-theme="dark"] .xhs-comment-text {
    color: #ededf0;
}

html[data-theme="dark"] .xhs-article-content {
    color: #d4d4d8;
}

html[data-theme="dark"] .xhs-article-content [data-w-e-type="video"] .w-e-video-desc {
    color: #8f8f99;
}

html[data-theme="dark"] .xhs-comments-area,
html[data-theme="dark"] .xhs-bottom-bar {
    border-color: rgba(255, 255, 255, 0.09);
}

html[data-theme="dark"] .xhs-comment-body {
    border-bottom-color: rgba(255, 255, 255, 0.07);
}

html[data-theme="dark"] .xhs-input-wrap {
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .xhs-input-wrap input {
    color: var(--text-main);
}

html[data-theme="dark"] .xhs-bottom-bar {
    background: #1b1c21 !important;
}

html[data-theme="dark"] .xhs-resource-card {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .xhs-resource-card:hover {
    background: rgba(255, 255, 255, 0.075);
    border-color: rgba(255, 255, 255, 0.16);
}

html[data-theme="dark"] .res-name {
    color: #ededf0;
}

/* ==========================================================================
   登录 / 注册弹窗
   ========================================================================== */
html[data-theme="dark"] #authOverlay {
    --modal-bg: #1b1c21;
    --highlight: #f4f4f5;
    --text-sub: #a1a1aa;
    --modal-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .auth-card {
    background: #1b1c21;
}

html[data-theme="dark"] .close-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #b4b4bc;
}

html[data-theme="dark"] .close-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

html[data-theme="dark"] .auth-tabs {
    border-bottom-color: rgba(255, 255, 255, 0.09);
}

html[data-theme="dark"] .glass-input {
    background: rgba(255, 255, 255, 0.07);
    color: #f4f4f5;
}

html[data-theme="dark"] .glass-input::placeholder {
    color: #85858f;
}

html[data-theme="dark"] .glass-input:focus {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.3);
}

html[data-theme="dark"] .captcha-img-box {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .social-divider .line {
    background: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .status-alert.error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(248, 113, 113, 0.34);
    color: #fca5a5;
}

html[data-theme="dark"] .status-alert.success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(74, 222, 128, 0.32);
    color: #86efac;
}

html[data-theme="dark"] .wx-qr-wrapper {
    background: #1b1c21;
}

html[data-theme="dark"] .wx-qr-box {
    background: #fff;
    border-color: rgba(255, 255, 255, 0.16);
}

html[data-theme="dark"] .wx-qr-tip {
    color: #f4f4f5;
}

html[data-theme="dark"] .back-to-login:hover,
html[data-theme="dark"] .forgot-trigger:hover {
    color: #fff;
}

/* ==========================================================================
   文章详情页
   ========================================================================== */
html[data-theme="dark"] .art-back,
html[data-theme="dark"] .art-crumb {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.11);
    color: #b4b4bc;
}

html[data-theme="dark"] .art-back:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
    color: #fff;
}

html[data-theme="dark"] .art-title,
html[data-theme="dark"] .art-content,
html[data-theme="dark"] .art-content h1,
html[data-theme="dark"] .art-content h2,
html[data-theme="dark"] .art-content h3,
html[data-theme="dark"] .art-content h4 {
    color: #ededf0;
}

html[data-theme="dark"] .art-meta {
    color: #9d9da7;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .art-content blockquote {
    background: rgba(161, 140, 209, 0.12);
    color: #c4c4cc;
}

html[data-theme="dark"] .art-content [data-w-e-type="video"] .w-e-video-desc {
    color: #8f8f99;
}

html[data-theme="dark"] .art-content th,
html[data-theme="dark"] .art-content td {
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .art-content th {
    background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .art-content code {
    background: rgba(255, 255, 255, 0.1);
    color: #f0abfc;
}

html[data-theme="dark"] .art-like,
html[data-theme="dark"] .art-share {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.13);
    color: #d4d4d8;
}

html[data-theme="dark"] .art-like:hover,
html[data-theme="dark"] .art-share:hover {
    border-color: rgba(255, 255, 255, 0.28);
}

html[data-theme="dark"] .art-comments {
    border-top-color: rgba(255, 255, 255, 0.09);
}

html[data-theme="dark"] .art-comments-head {
    color: #ededf0;
}

html[data-theme="dark"] .art-comment-input {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
    color: #f4f4f5;
}

html[data-theme="dark"] .art-comment-input::placeholder {
    color: #85858f;
}

html[data-theme="dark"] .art-comment-body {
    background: rgba(255, 255, 255, 0.055);
}

html[data-theme="dark"] .art-comment-name {
    color: #ededf0;
}

html[data-theme="dark"] .art-comment-text {
    color: #c4c4cc;
}

html[data-theme="dark"] .art-comment-time,
html[data-theme="dark"] .art-comment-empty {
    color: #85858f;
}

html[data-theme="dark"] .art-res-title,
html[data-theme="dark"] .art-res-name {
    color: #ededf0;
}

html[data-theme="dark"] .art-res-card {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .art-res-meta {
    color: #9d9da7;
}

html[data-theme="dark"] .art-res-btn.disabled {
    background: rgba(255, 255, 255, 0.1);
    color: #85858f;
}

html[data-theme="dark"] .art-lock h2 {
    color: #f4f4f5;
}

html[data-theme="dark"] .art-lock p {
    color: #a1a1aa;
}

html[data-theme="dark"] .art-pwd-form input[type="password"] {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
    color: #f4f4f5;
}

/* ==========================================================================
   关于页
   ========================================================================== */
html[data-theme="dark"] .apple-ambient-bg {
    background: linear-gradient(-45deg, #111216, #171820, #111216, #1a1622);
    background-size: 400% 400%;
}

html[data-theme="dark"] .about-ambient-bg .blob,
html[data-theme="dark"] .apple-ambient-bg .blob {
    opacity: 0.14;
}

html[data-theme="dark"] .about-page-title {
    color: #f4f4f5;
}

html[data-theme="dark"] .f-tag {
    background: rgba(31, 32, 38, 0.86);
    border-color: rgba(255, 255, 255, 0.1);
    color: #d4d4d8;
}

html[data-theme="dark"] .f-tag:hover {
    background: rgba(45, 46, 54, 0.96);
}

html[data-theme="dark"] .f-tag i {
    color: #a1a1aa;
}

html[data-theme="dark"] .bento-card {
    background-color: rgba(27, 28, 33, 0.88);
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
    color: #c4c4cc;
}

html[data-theme="dark"] .bento-card:hover {
    background-color: rgba(35, 36, 43, 0.96);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] .bento-intro h2,
html[data-theme="dark"] .bento-motto h2,
html[data-theme="dark"] .skills-header h3,
html[data-theme="dark"] .bento-experience h3,
html[data-theme="dark"] .bento-mbti h3,
html[data-theme="dark"] .bento-tag h3,
html[data-theme="dark"] .about-footer-block h2 {
    color: #f4f4f5;
}

html[data-theme="dark"] .bento-intro p,
html[data-theme="dark"] .story-content p,
html[data-theme="dark"] .loc-current,
html[data-theme="dark"] .loc-item,
html[data-theme="dark"] .legend-item,
html[data-theme="dark"] .t-year,
html[data-theme="dark"] .skills-footer,
html[data-theme="dark"] .stat-label,
html[data-theme="dark"] .card-sm-title {
    color: #a1a1aa;
}

html[data-theme="dark"] .bento-intro .intro-badge,
html[data-theme="dark"] .bento-motto .motto-tag {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.1);
    color: #d4d4d8;
}

html[data-theme="dark"] .stat-num {
    color: #f4f4f5;
}

html[data-theme="dark"] .stat-box {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .loc-map-bg {
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 2px, transparent 2px);
}

html[data-theme="dark"] .mbti-icon {
    color: rgba(255, 255, 255, 0.07);
}

html[data-theme="dark"] .axis-line {
    background: rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   相册页
   ========================================================================== */
html[data-theme="dark"] {
    --glass-bg: rgba(27, 28, 33, 0.88);
    --glass-border: 1px solid rgba(255, 255, 255, 0.09);
}

html[data-theme="dark"] .profile-card-gallery {
    background: rgba(27, 28, 33, 0.88);
    border-color: rgba(255, 255, 255, 0.09);
}

html[data-theme="dark"] .glow-blob {
    opacity: 0.12;
}

html[data-theme="dark"] .profile-name,
html[data-theme="dark"] .stat-num {
    color: #f4f4f5;
}

html[data-theme="dark"] .profile-bio,
html[data-theme="dark"] .stat-label {
    color: #a1a1aa;
}

html[data-theme="dark"] .stat-box {
    background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .scroll-arrow {
    background: #25262c;
    border-color: rgba(255, 255, 255, 0.12);
    color: #d4d4d8;
}

html[data-theme="dark"] .folder-card {
    background: #1b1c21;
    border-color: rgba(255, 255, 255, 0.09);
}

html[data-theme="dark"] .folder-card.active {
    border-color: #f4f4f5;
}

html[data-theme="dark"] .folder-tab {
    background: rgba(27, 28, 33, 0.9);
    color: #f4f4f5;
}

html[data-theme="dark"] .art-card {
    background: #25262c;
}

html[data-theme="dark"] .art-info-panel {
    background: rgba(27, 28, 33, 0.94);
}

html[data-theme="dark"] .art-text h3 {
    color: #f4f4f5;
}

html[data-theme="dark"] .art-text p {
    color: #a1a1aa;
}

/* ==========================================================================
   友链页
   ========================================================================== */
html[data-theme="dark"] .friends-page-body {
    background-color: #111216 !important;
    background-image: none !important;
}

html[data-theme="dark"] .friends-page-body .blob {
    opacity: 0.12;
}

html[data-theme="dark"] .title-area h1 {
    color: #f4f4f5;
}

html[data-theme="dark"] .title-area p {
    color: #a1a1aa;
}

html[data-theme="dark"] .friends-canvas {
    background: rgba(27, 28, 33, 0.82);
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.48);
}

html[data-theme="dark"] .sq-card {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.08);
    color: #ededf0;
}

html[data-theme="dark"] .sq-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

html[data-theme="dark"] .sq-desc {
    color: #a1a1aa;
}

html[data-theme="dark"] .sq-time {
    color: #85858f;
}

html[data-theme="dark"] .modal-box {
    background: #1b1c21;
    border: 1px solid rgba(255, 255, 255, 0.09);
}

html[data-theme="dark"] .f-input {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f4f4f5;
}

html[data-theme="dark"] .f-input:focus {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.28);
}

/* ==========================================================================
   Love 家庭页（保留 Hero 原设计，只调整下方内容区）
   ========================================================================== */
html[data-theme="dark"] .section-content {
    background: linear-gradient(180deg, #111216 0%, #15161b 100%);
}

html[data-theme="dark"] .section-content .bg-blob {
    opacity: 0.09;
}

html[data-theme="dark"] .timeline-line {
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.13) 10%, rgba(255, 255, 255, 0.13) 90%, transparent);
}

html[data-theme="dark"] .tl-card {
    background: rgba(27, 28, 33, 0.88);
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .tl-card:hover {
    background: rgba(35, 36, 43, 0.96);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.36);
}

html[data-theme="dark"] .tl-date-badge {
    background: #25262c;
    color: #f4f4f5;
}

html[data-theme="dark"] .date-ym {
    color: #a1a1aa;
}

html[data-theme="dark"] .tl-title {
    color: #f4f4f5;
}

html[data-theme="dark"] .tl-desc {
    color: #c4c4cc;
}

html[data-theme="dark"] .tl-point {
    background: #1b1c21;
}

html[data-theme="dark"] .empty-timeline-placeholder {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.09);
}

html[data-theme="dark"] .empty-timeline-placeholder i {
    color: #85858f;
}

html[data-theme="dark"] .empty-timeline-placeholder span {
    color: #c4c4cc;
}
