.aurora-theme-toggle {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.12);
    background: #fff;
    color: #1f2937;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
    flex: none;
}

.aurora-theme-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(7,193,96,.46);
    color: #07c160;
}

.aurora-theme-toggle svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .aurora-theme-toggle {
        display: inline-flex !important;
        width: 34px;
        height: 34px;
        border-radius: 10px;
        order: 99;
        margin-left: 0;
    }

    .aurora-theme-toggle svg {
        width: 16px;
        height: 16px;
    }
}

html[data-theme='dark'] {
    color-scheme: dark;
    --aurora-night-bg: #0b1220;
    --aurora-night-text: #e5e7eb;
    --aurora-night-card: #111827;
    --aurora-night-soft: #0f172a;
    --aurora-night-muted: #94a3b8;
    --aurora-night-border: rgba(148,163,184,.22);
}

html[data-theme='dark'] body,
html[data-theme='dark'] .page-wrapper {
    background: var(--aurora-night-bg);
    color: var(--aurora-night-text);
}

html[data-theme='dark'] body {
    background-image:
        radial-gradient(circle at 10% 10%, rgba(56,189,248,.08), transparent 35%),
        radial-gradient(circle at 90% 20%, rgba(99,102,241,.10), transparent 40%);
    background-attachment: fixed;
}

html[data-theme='dark'] .aurora-header,
html[data-theme='dark'] .aurora-header.is-scrolled {
    background: rgba(15,23,42,.86);
    border-bottom: 1px solid rgba(148,163,184,.18);
    box-shadow: 0 12px 24px rgba(0,0,0,.22);
}

html[data-theme='dark'] .brand-text,
html[data-theme='dark'] .page-title,
html[data-theme='dark'] .recent-header .page-title,
html[data-theme='dark'] .hotlist-hero .page-title,
html[data-theme='dark'] .side-title,
html[data-theme='dark'] .result-title,
html[data-theme='dark'] .dialog-header h3,
html[data-theme='dark'] .aurora-modal .dialog-header h3,
html[data-theme='dark'] .footer-col .footer-title,
html[data-theme='dark'] .brand-new .brand-title,
html[data-theme='dark'] .bottom-left,
html[data-theme='dark'] .footer-link,
html[data-theme='dark'] .meta-value,
html[data-theme='dark'] .nav-external,
html[data-theme='dark'] .nav-external a {
    color: #f8fafc;
}

html[data-theme='dark'] .page-desc,
html[data-theme='dark'] .result-desc,
html[data-theme='dark'] .meta-item,
html[data-theme='dark'] .side-text,
html[data-theme='dark'] .side-rank,
html[data-theme='dark'] .dialog-header p,
html[data-theme='dark'] .aurora-modal .dialog-header p,
html[data-theme='dark'] .notice-text,
html[data-theme='dark'] .brand-new .brand-desc,
html[data-theme='dark'] .footer-intro-mobile,
html[data-theme='dark'] .loading-desc,
html[data-theme='dark'] .empty-desc {
    color: var(--aurora-night-muted);
}

html[data-theme='dark'] .aurora-theme-toggle {
    background: #0f172a;
    border-color: rgba(148,163,184,.28);
    color: #e5e7eb;
}

html[data-theme='dark'] .aurora-theme-toggle:hover {
    color: #4ade80;
    border-color: rgba(74,222,128,.55);
}

html[data-theme='dark'] .ghost-btn {
    background: #0f172a;
    border-color: rgba(148,163,184,.30);
    color: #dbeafe;
}

html[data-theme='dark'] .primary-btn {
    box-shadow: 0 8px 20px rgba(7,193,96,.20);
}

html[data-theme='dark'] .icon-btn {
    background: #0f172a;
    border: 1px solid rgba(148,163,184,.28);
}

html[data-theme='dark'] .icon-btn span {
    background: #e5e7eb;
}

html[data-theme='dark'] .mobile-panel {
    background: #0f172a;
    border-left: 1px solid rgba(148,163,184,.24);
    box-shadow: -12px 0 24px rgba(0,0,0,.28);
}

html[data-theme='dark'] .mobile-link,
html[data-theme='dark'] .mobile-external a {
    background: #0f172a;
    border: 1px solid rgba(148,163,184,.22);
    color: #e5e7eb;
}

html[data-theme='dark'] .mobile-link:hover,
html[data-theme='dark'] .mobile-external a:hover {
    background: rgba(34,197,94,.16);
    color: #86efac;
}

html[data-theme='dark'] .search-bar,
html[data-theme='dark'] .hero-search .search-bar,
html[data-theme='dark'] .resource-input,
html[data-theme='dark'] .modal-textarea {
    background: #0f172a;
    border-color: rgba(148,163,184,.22);
    color: #e5e7eb;
    box-shadow: none;
}

html[data-theme='dark'] .search-page-bar {
    background: var(--aurora-night-bg);
}

html[data-theme='dark'] .search-bar input,
html[data-theme='dark'] .resource-input,
html[data-theme='dark'] .modal-textarea {
    color: #e5e7eb;
}

html[data-theme='dark'] .search-bar input::placeholder,
html[data-theme='dark'] .resource-input::placeholder,
html[data-theme='dark'] .modal-textarea::placeholder {
    color: #94a3b8;
}

html[data-theme='dark'] .search-bar:focus-within,
html[data-theme='dark'] .hero-search .search-bar:focus-within,
html[data-theme='dark'] .resource-input:focus,
html[data-theme='dark'] .modal-textarea:focus {
    border-color: rgba(74,222,128,.55);
    box-shadow: 0 0 0 3px rgba(34,197,94,.15);
}

html[data-theme='dark'] .hero-banner,
html[data-theme='dark'] .side-card,
html[data-theme='dark'] .result-item,
html[data-theme='dark'] .detail-main,
html[data-theme='dark'] .detail-sidebar > *,
html[data-theme='dark'] .aurora-modal__card,
html[data-theme='dark'] .footer-col,
html[data-theme='dark'] .search-page .loading-state,
html[data-theme='dark'] .search-page .empty-state,
html[data-theme='dark'] .tg-result-item,
html[data-theme='dark'] .quick-card,
html[data-theme='dark'] .recent-card {
    background: var(--aurora-night-card);
    border-color: var(--aurora-night-border);
    box-shadow: 0 12px 30px rgba(0,0,0,.22);
}

html[data-theme='dark'] .search-page .loading-state {
    background:
        radial-gradient(circle at 50% 18%, rgba(56,189,248,.08), rgba(56,189,248,0) 38%),
        linear-gradient(180deg, rgba(15,23,42,.82), rgba(17,24,39,.88));
}

html[data-theme='dark'] .loading-title {
    color: #f8fafc;
}

html[data-theme='dark'] .loading-desc {
    color: #a8b4c8;
}

html[data-theme='dark'] .hero-banner {
    background:
        radial-gradient(circle at 12% 18%, rgba(56,189,248,.12), rgba(56,189,248,0) 28%),
        radial-gradient(circle at 28% 78%, rgba(99,102,241,.10), rgba(99,102,241,0) 24%),
        radial-gradient(circle at 76% 28%, rgba(74,222,128,.10), rgba(74,222,128,0) 22%),
        radial-gradient(circle at 88% 74%, rgba(16,185,129,.08), rgba(16,185,129,0) 20%),
        var(--aurora-night-card);
    position: relative;
    overflow: hidden;
}

html[data-theme='dark'] .hero-banner::before {
    content: "";
    position: absolute;
    left: -120px;
    top: -120px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,.14), rgba(59,130,246,0));
    pointer-events: none;
    filter: blur(8px);
}

html[data-theme='dark'] .hero-banner::after {
    content: "";
    position: absolute;
    right: -110px;
    bottom: -130px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34,197,94,.12), rgba(34,197,94,0));
    pointer-events: none;
    filter: blur(10px);
}

html[data-theme='dark'] .hero-banner > * {
    position: relative;
    z-index: 1;
}

html[data-theme='dark'] .hero-third-party-link__anchor {
    background: linear-gradient(180deg, rgba(15, 23, 42, .9), rgba(17, 24, 39, .96));
    border-color: rgba(148,163,184,.2);
    box-shadow: 0 18px 34px rgba(0,0,0,.22);
}

html[data-theme='dark'] .hero-third-party-link__anchor:hover {
    border-color: rgba(74,222,128,.38);
    box-shadow: 0 20px 38px rgba(0,0,0,.28);
}

html[data-theme='dark'] .hero-illustration .card,
html[data-theme='dark'] .hero-illustration .card-section {
    background: linear-gradient(180deg, rgba(15, 23, 42, .92), rgba(17, 24, 39, .98));
    border: 1px solid rgba(148,163,184,.16);
    box-shadow: 0 18px 42px rgba(0,0,0,.28);
}

html[data-theme='dark'] .hero-illustration .card-row,
html[data-theme='dark'] .hero-illustration .card-row strong,
html[data-theme='dark'] .hero-illustration .card-row span {
    color: #dbeafe;
}

html[data-theme='dark'] .hero-illustration .card-row .dot,
html[data-theme='dark'] .card-section-header .dot {
    box-shadow: 0 0 12px rgba(74,222,128,.55);
}

html[data-theme='dark'] .hero-metrics .metric-card {
    position: relative;
    overflow: hidden;
    padding-bottom: 26px;
    background:
        radial-gradient(circle at 76% 78%, rgba(34,197,94,.14), transparent 28%),
        linear-gradient(180deg, rgba(15,23,42,.96), rgba(17,24,39,.98));
    border: 1px solid rgba(148,163,184,.16);
    box-shadow: 0 16px 36px rgba(0,0,0,.24);
}

html[data-theme='dark'] .hero-metrics .metric-card::before {
    content: "";
    position: absolute;
    inset: auto 12px 8px 12px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(34,197,94,.9), rgba(16,185,129,.28));
    opacity: .92;
}

html[data-theme='dark'] .hero-metrics .metric-card::after {
    content: "";
    position: absolute;
    right: -26px;
    bottom: -34px;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16,185,129,.16), rgba(16,185,129,0));
    pointer-events: none;
}

html[data-theme='dark'] .metric-card strong,
html[data-theme='dark'] .metric-card .metric-number {
    position: relative;
    z-index: 1;
    color: #f8fafc;
    text-shadow: 0 0 18px rgba(34,197,94,.18);
}

html[data-theme='dark'] .metric-card span {
    position: relative;
    z-index: 1;
    color: #cbd5e1;
}

html[data-theme='dark'] .hero-stat {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 84% 22%, rgba(74,222,128,.12), rgba(74,222,128,0)),
        linear-gradient(180deg, rgba(15,23,42,.94), rgba(17,24,39,.98));
    border: 1px solid rgba(148,163,184,.16);
    box-shadow: 0 12px 30px rgba(0,0,0,.22);
}

html[data-theme='dark'] .hero-stat .stat-label {
    color: #94a3b8;
}

html[data-theme='dark'] .hero-stat .stat-value {
    color: #f8fafc;
}

html[data-theme='dark'] .hotlist-hero {
    background:
        radial-gradient(circle at 12% 14%, rgba(56,189,248,.10), rgba(56,189,248,0) 34%),
        radial-gradient(circle at 88% 22%, rgba(74,222,128,.10), rgba(74,222,128,0) 30%),
        linear-gradient(180deg, rgba(15,23,42,.94), rgba(17,24,39,.98));
    border: 1px solid rgba(148,163,184,.18);
    box-shadow: 0 16px 36px rgba(0,0,0,.24);
}

html[data-theme='dark'] .hotlist-hero::after {
    background: radial-gradient(circle, rgba(74,222,128,.12), rgba(74,222,128,0));
    opacity: .9;
}

html[data-theme='dark'] .hotlist-hero .page-title {
    color: #f8fafc;
}

html[data-theme='dark'] .hotlist-hero .page-desc {
    color: #a8b4c8;
}

html[data-theme='dark'] .hotlist-badge {
    background: rgba(34,197,94,.12);
    color: #86efac;
    border: 1px solid rgba(74,222,128,.24);
    box-shadow: 0 8px 16px rgba(34,197,94,.12);
}

html[data-theme='dark'] .hotlist-filter-bar,
html[data-theme='dark'] .hotlist-subfilters {
    background: linear-gradient(180deg, rgba(15,23,42,.94), rgba(17,24,39,.98));
    border: 1px solid rgba(148,163,184,.16);
    box-shadow: 0 12px 30px rgba(0,0,0,.22);
}

html[data-theme='dark'] .hotlist-filter-bar .filter-label,
html[data-theme='dark'] .hotlist-subfilters .subfilter-row {
    color: #e5e7eb;
}

html[data-theme='dark'] .hotlist-filter-bar .chip,
html[data-theme='dark'] .hotlist-subfilters .chip {
    background: #0f172a;
    color: #dbeafe;
    border: 1px solid rgba(148,163,184,.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}

html[data-theme='dark'] .hotlist-filter-bar .chip:hover,
html[data-theme='dark'] .hotlist-subfilters .chip:hover {
    background: rgba(34,197,94,.12);
    color: #f8fafc;
    border-color: rgba(74,222,128,.42);
}

html[data-theme='dark'] .hotlist-filter-bar .chip.active,
html[data-theme='dark'] .hotlist-subfilters .chip.active {
    background: linear-gradient(135deg, #16a34a, #10b981);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(34,197,94,.24);
}

html[data-theme='dark'] .hotlist-subfilters .subfilter-scroll {
    background: #0f172a;
    color: #e5e7eb;
    border-color: rgba(148,163,184,.18);
}

html[data-theme='dark'] .hotlist-subfilters .subfilter-scroll:hover {
    color: #86efac;
    border-color: rgba(74,222,128,.42);
    box-shadow: 0 8px 16px rgba(34,197,94,.16);
}

html[data-theme='dark'] .waterfall-item {
    background: linear-gradient(180deg, rgba(17,24,39,.98), rgba(15,23,42,.96));
    border: 1px solid rgba(148,163,184,.16);
    box-shadow: 0 14px 32px rgba(0,0,0,.2);
}

html[data-theme='dark'] .waterfall-item-image-wrapper {
    background: linear-gradient(135deg, #111827, #1e293b);
}

html[data-theme='dark'] .waterfall-item-title {
    color: #f8fafc;
}

html[data-theme='dark'] .waterfall-item-desc,
html[data-theme='dark'] .waterfall-item-meta {
    color: #94a3b8;
}

html[data-theme='dark'] .waterfall-item-ranking,
html[data-theme='dark'] .waterfall-item-badge.ranking {
    background: linear-gradient(135deg, #16a34a, #10b981);
    color: #fff;
    box-shadow: 0 8px 16px rgba(34,197,94,.24);
}

html[data-theme='dark'] .waterfall-item-ranking.top-3,
html[data-theme='dark'] .waterfall-item-badge.ranking.top-3 {
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #0f172a;
    box-shadow: 0 10px 18px rgba(245,158,11,.24);
}

html[data-theme='dark'] .waterfall-item-hot,
html[data-theme='dark'] .waterfall-item-badge.hot {
    background: rgba(15,23,42,.78);
    color: #dbeafe;
    border: 1px solid rgba(148,163,184,.16);
}

html[data-theme='dark'] .recent-card {
    background: linear-gradient(180deg, rgba(17,24,39,.98), rgba(15,23,42,.96));
    border: 1px solid rgba(148,163,184,.16);
    box-shadow: 0 14px 34px rgba(0,0,0,.22);
}

html[data-theme='dark'] .recent-card-cover {
    background: linear-gradient(135deg, #111827, #1e293b);
}

html[data-theme='dark'] .recent-card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0) 55%, rgba(15,23,42,.32) 100%);
    pointer-events: none;
}

html[data-theme='dark'] .recent-card-title {
    color: #f8fafc;
}

html[data-theme='dark'] .recent-card-meta,
html[data-theme='dark'] .recent-card-time,
html[data-theme='dark'] .recent-card-meta .meta-icon,
html[data-theme='dark'] .recent-card-time .time-icon {
    color: #94a3b8;
}

html[data-theme='dark'] .recent-card-cover .cover-episode {
    background: linear-gradient(135deg, #16a34a, #10b981);
    box-shadow: 0 10px 18px rgba(34,197,94,.24);
}

html[data-theme='dark'] .detail-stage1-poster,
html[data-theme='dark'] .detail-stage1-poster-meta,
html[data-theme='dark'] .detail-description,
html[data-theme='dark'] .detail-play-source-trigger,
html[data-theme='dark'] .detail-play-source-modal__panel,
html[data-theme='dark'] .detail-main .box,
html[data-theme='dark'] .detail-main .public-box {
    background: linear-gradient(180deg, rgba(17,24,39,.98), rgba(15,23,42,.96));
    border-color: rgba(148,163,184,.16);
    box-shadow: 0 16px 34px rgba(0,0,0,.22);
}

html[data-theme='dark'] .detail-stage1-badge {
    background: rgba(34,197,94,.14);
    color: #86efac;
}

html[data-theme='dark'] .detail-description,
html[data-theme='dark'] .detail-description p,
html[data-theme='dark'] .detail-description span,
html[data-theme='dark'] .detail-description li {
    color: #cbd5e1;
}

html[data-theme='dark'] .detail-right .detail-meta .meta-item {
    background: rgba(15,23,42,.72);
    border: 1px solid rgba(148,163,184,.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}

html[data-theme='dark'] .detail-right .detail-meta .meta-label {
    color: #b8c6dd;
}

html[data-theme='dark'] .detail-right .detail-meta .meta-icon {
    color: #86efac;
}

html[data-theme='dark'] .detail-right .detail-meta .meta-value,
html[data-theme='dark'] .detail-right .detail-meta .code-value {
    color: #f8fafc;
}

html[data-theme='dark'] .detail-play-source-trigger {
    background:
        radial-gradient(circle at 84% 24%, rgba(74,222,128,.14), rgba(74,222,128,0)),
        linear-gradient(135deg, #133321, #0f172a);
    border: 1px solid rgba(74,222,128,.18);
}

html[data-theme='dark'] .detail-play-source-trigger__title {
    color: #f8fafc !important;
    text-shadow: 0 0 12px rgba(74,222,128,.08);
}

html[data-theme='dark'] .detail-play-source-trigger__arrow {
    color: rgba(255,255,255,.82) !important;
}

html[data-theme='dark'] .detail-play-source-logo {
    background: rgba(255,255,255,.96);
}

html[data-theme='dark'] .detail-play-source-divider {
    background: linear-gradient(90deg, rgba(74,222,128,.18), rgba(74,222,128,.04));
}

html[data-theme='dark'] .detail-page .recommend-grid .sidebar-card {
    background: linear-gradient(180deg, rgba(17,24,39,.98), rgba(15,23,42,.96)) !important;
    border: 1px solid rgba(148,163,184,.16) !important;
    box-shadow: 0 14px 30px rgba(0,0,0,.22) !important;
}

html[data-theme='dark'] .detail-page .recommend-grid .sidebar-title,
html[data-theme='dark'] .detail-page .recommend-grid .hot-item-title,
html[data-theme='dark'] .detail-page .recommend-grid .hot-item-number {
    color: #f8fafc !important;
}

html[data-theme='dark'] .detail-page .recommend-grid .hot-item {
    background: transparent !important;
    border-bottom-color: rgba(148,163,184,.12) !important;
}

html[data-theme='dark'] .detail-page .recommend-grid .hot-item:hover {
    background: rgba(255,255,255,.03) !important;
}

html[data-theme='dark'] .detail-page .recommend-grid .recommend-same .hot-item-number {
    background: linear-gradient(135deg, #16a34a, #10b981) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 18px rgba(34,197,94,.22) !important;
}

html[data-theme='dark'] .detail-page .recommend-grid .recommend-new .hot-item-number {
    background: linear-gradient(135deg, #334155, #0f172a) !important;
    color: #f8fafc !important;
    box-shadow: 0 10px 18px rgba(0,0,0,.18) !important;
}

html[data-theme='dark'] .detail-page .recommend-grid .title-icon-same,
html[data-theme='dark'] .detail-page .recommend-grid .title-icon-new {
    filter: drop-shadow(0 4px 8px rgba(74,222,128,.16));
}

html[data-theme='dark'] .aurora-footer .footer-col {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(17,24,39,.98), rgba(15,23,42,.96));
}

html[data-theme='dark'] .aurora-footer .footer-col::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34,197,94,.10), rgba(34,197,94,0));
    pointer-events: none;
}

html[data-theme='dark'] .footer-col .footer-title,
html[data-theme='dark'] .brand-new .brand-title {
    color: #f8fafc;
}

html[data-theme='dark'] .footer-col .notice-text,
html[data-theme='dark'] .brand-new .brand-desc,
html[data-theme='dark'] .footer-intro-mobile,
html[data-theme='dark'] .bottom-left {
    color: #94a3b8;
}

html[data-theme='dark'] .footer-submit-btn .footer-btn,
html[data-theme='dark'] .brand-submit-btn {
    background: linear-gradient(135deg, #16a34a, #10b981) !important;
    box-shadow: 0 12px 20px rgba(34,197,94,.22) !important;
}

html[data-theme='dark'] .result-item:hover,
html[data-theme='dark'] .side-card:hover,
html[data-theme='dark'] .tg-result-item:hover,
html[data-theme='dark'] .quick-card:hover,
html[data-theme='dark'] .recent-card:hover {
    box-shadow: 0 18px 38px rgba(0,0,0,.28);
}

html[data-theme='dark'] .side-link,
html[data-theme='dark'] .footer-link {
    color: #dbeafe;
}

html[data-theme='dark'] .side-link:hover,
html[data-theme='dark'] .footer-link:hover {
    background: rgba(34,197,94,.12);
    color: #f8fafc;
}

html[data-theme='dark'] .search-page .meta-label {
    color: #b8c6dd;
}

html[data-theme='dark'] .search-page .meta-icon {
    color: #86efac;
    stroke: currentColor;
}

html[data-theme='dark'] .search-page .result-actions .action-btn {
    background: #0f172a;
    color: #dbeafe;
    border: 1px solid rgba(148,163,184,.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}

html[data-theme='dark'] .search-page .result-actions .action-btn:hover {
    background: rgba(34,197,94,.12);
    color: #f8fafc;
    border-color: rgba(74,222,128,.36);
}

html[data-theme='dark'] .search-page .result-actions .action-btn.primary {
    background: linear-gradient(135deg, #16a34a, #10b981);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 22px rgba(34,197,94,.24);
}

html[data-theme='dark'] .search-page .result-actions .action-btn.primary:hover {
    background: linear-gradient(135deg, #22c55e, #10b981);
    color: #fff;
}

html[data-theme='dark'] .pagination-wrapper .el-pagination button,
html[data-theme='dark'] .pagination-wrapper .el-pagination .el-pager li {
    background: #0f172a;
    border: 1px solid rgba(148,163,184,.22);
    color: #dbeafe;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}

html[data-theme='dark'] .pagination-wrapper .el-pagination button:hover,
html[data-theme='dark'] .pagination-wrapper .el-pagination .el-pager li:hover {
    color: #f8fafc;
    border-color: rgba(74,222,128,.36);
    background: rgba(34,197,94,.12);
}

html[data-theme='dark'] .pagination-wrapper .el-pagination .el-pager li.is-active {
    background: linear-gradient(135deg, #16a34a, #10b981);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 18px rgba(34,197,94,.22);
}

html[data-theme='dark'] .aurora-footer {
    background: #0f172a;
    border-top: 1px solid rgba(148,163,184,.18);
    box-shadow: 0 -20px 40px rgba(0,0,0,.22);
}

html[data-theme='dark'] .footer-bottom {
    border-top-color: rgba(148,163,184,.18);
}

html[data-theme='dark'] .modal-close,
html[data-theme='dark'] .aurora-search-detail-loading__close {
    background: #0f172a !important;
    color: #f8fafc !important;
    border: 1px solid rgba(148,163,184,.28) !important;
    box-shadow: 0 8px 18px rgba(0,0,0,.18) !important;
}

html[data-theme='dark'] .modal-close:hover,
html[data-theme='dark'] .aurora-search-detail-loading__close:hover {
    background: #163047 !important;
    color: #86efac !important;
    border-color: rgba(74,222,128,.42) !important;
}

html[data-theme='dark'] .aurora-search-detail-loading__panel {
    background: #0f172a;
    border-color: rgba(148,163,184,.24);
    box-shadow: 0 18px 40px rgba(0,0,0,.28);
}

html[data-theme='dark'] .aurora-search-detail-loading__title {
    color: #f8fafc;
}

html[data-theme='dark'] .aurora-search-detail-loading__desc {
    color: #94a3b8;
}

html[data-theme='dark'] .tg-detail-page .tg-detail-hero {
    background: linear-gradient(145deg, rgba(15,23,42,.96), rgba(17,24,39,.98)) !important;
    border: 1px solid rgba(148,163,184,.18) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,.26) !important;
}

html[data-theme='dark'] .tg-detail-page .tg-cover-wrapper {
    background: linear-gradient(145deg, #0f172a, #111827) !important;
    box-shadow: 0 14px 30px rgba(0,0,0,.28) !important;
    border: 1px solid rgba(148,163,184,.16) !important;
}

html[data-theme='dark'] .tg-detail-page .tg-cover-placeholder {
    color: #86efac !important;
    border-color: rgba(74,222,128,.32) !important;
    background: rgba(255,255,255,.02) !important;
}

html[data-theme='dark'] .tg-detail-page .detail-title {
    color: #f8fafc !important;
}

html[data-theme='dark'] .tg-detail-page .tg-hero-description,
html[data-theme='dark'] .tg-detail-page .tg-hero-description .description-wrapper,
html[data-theme='dark'] .tg-detail-page .tg-hero-description .description-content,
html[data-theme='dark'] .tg-detail-page .description-wrapper {
    color: #cbd5e1 !important;
}

html[data-theme='dark'] .tg-detail-page .tg-hero-tags .tg-tag {
    background: linear-gradient(135deg, #16a34a, #10b981) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(34,197,94,.22) !important;
}

html[data-theme='dark'] .tg-detail-page .tg-hero-tags .tg-meta,
html[data-theme='dark'] .tg-detail-page .tg-hero-tags .tg-resource-type {
    background: #0f172a !important;
    color: #dbeafe !important;
    border: 1px solid rgba(148,163,184,.22) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.02) !important;
}

html[data-theme='dark'] .tg-detail-page .tg-action-buttons .tg-detail-btn {
    background: #0f172a !important;
    color: #dbeafe !important;
    border: 1px solid rgba(148,163,184,.28) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,.18) !important;
}

html[data-theme='dark'] .tg-detail-page .tg-action-buttons .tg-detail-btn:hover {
    background: rgba(34,197,94,.14) !important;
    color: #f8fafc !important;
    border-color: rgba(74,222,128,.42) !important;
    box-shadow: 0 12px 22px rgba(34,197,94,.16) !important;
}

html[data-theme='dark'] .tg-detail-page .tg-action-buttons .tg-get-btn {
    background: linear-gradient(135deg, #16a34a, #10b981) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 24px rgba(34,197,94,.24) !important;
}

html[data-theme='dark'] .tg-detail-page .tg-action-buttons .tg-get-btn:hover {
    background: linear-gradient(135deg, #22c55e, #10b981) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 26px rgba(34,197,94,.28) !important;
}

html[data-theme='dark'] .tg-detail-page .sidebar-card,
html[data-theme='dark'] .tg-detail-page .hot-block,
html[data-theme='dark'] .tg-detail-page .detail-description {
    background: linear-gradient(180deg, rgba(17,24,39,.98), rgba(15,23,42,.96)) !important;
    border-color: rgba(148,163,184,.16) !important;
    box-shadow: 0 14px 30px rgba(0,0,0,.22) !important;
}

html[data-theme='dark'] .tg-detail-page .sidebar-card h4,
html[data-theme='dark'] .tg-detail-page .sidebar-title,
html[data-theme='dark'] .tg-detail-page .hot-item-title,
html[data-theme='dark'] .tg-detail-page .hot-item-number {
    color: #f8fafc !important;
}

html[data-theme='dark'] .tg-detail-page .title-icon-same,
html[data-theme='dark'] .tg-detail-page .title-icon-new {
    filter: drop-shadow(0 4px 8px rgba(74,222,128,.16));
}

html[data-theme='dark'] .tg-detail-page .waterfall-item {
    background: linear-gradient(180deg, rgba(17,24,39,.98), rgba(15,23,42,.96)) !important;
    border: 1px solid rgba(148,163,184,.16) !important;
    box-shadow: 0 12px 26px rgba(0,0,0,.2) !important;
}

html[data-theme='dark'] .tg-detail-page .waterfall-item-title {
    color: #f8fafc !important;
}

html[data-theme='dark'] .tg-detail-page .waterfall-item-desc {
    color: #94a3b8 !important;
}

html[data-theme='dark'] .tg-detail-page .waterfall-item-image-wrapper {
    background: linear-gradient(135deg, #111827, #1e293b) !important;
}

html[data-theme='dark'] .tg-detail-page .waterfall-item-hot,
html[data-theme='dark'] .tg-detail-page .waterfall-item-badge.hot {
    background: rgba(15,23,42,.78) !important;
    color: #dbeafe !important;
    border: 1px solid rgba(148,163,184,.16) !important;
}
@media (max-width: 768px) {
    html[data-theme='dark'] body {
        background-attachment: scroll;
    }
}

@media (max-width: 768px) {
    .aurora-theme-toggle {
        display: inline-flex !important;
        width: 34px;
        height: 34px;
        border-radius: 10px;
        order: 99;
        margin-left: 0;
    }

    .aurora-theme-toggle svg {
        width: 16px;
        height: 16px;
    }

    .aurora-theme-toggle-mobile {
        display: none !important;
    }
}
