        :root {
            --bg: #fafafa;
            --card-bg: #ffffff;
            --text: #333333;
            --text-light: #666666;
            --primary: #4299e1;
            --border: #e0e0e0;
            --hover: #f5fafe;
            --shadow: 0 1px 4px rgba(0,0,0,0.04);
            --radius: 10px;
            --spacing: 20px;
        }
        [data-theme="dark"] {
            --bg: #121212;
            --card-bg: #1e1e1e;
            --text: #f5f5f5;
            --text-light: #aaaaaa;
            --primary: #64b5f6;
            --border: #333333;
            --hover: #2d3748;
            --shadow: 0 1px 4px rgba(0,0,0,0.2);
        }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
        }
        body {
            background-color: var(--bg);
            color: var(--text);
            min-height: 100vh;
            line-height: 1.4;
        }
        .container {
            max-width: 1100px;
            margin: 0 auto;
            padding: 16px;
        }
        
        #snowContainer {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
        }
        
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: var(--spacing);
            padding-bottom: 12px;
            border-bottom: 1px solid var(--border);
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 19px;
            font-weight: 600;
            color: var(--primary);
        }
        
        header a img {
            display: block;
            width: 32px;
            height: 32px;
            object-fit: contain;
        }
        
        .logo-text {
            line-height: 1;
        }
        .header-right {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        #themeToggle {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            border: none;
            background: var(--card-bg);
            color: var(--text);
            font-size: 16px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow);
            transition: background 0.2s;
        }
        #themeToggle:hover {
            background: var(--hover);
        }
        
        #weatherBadge {
            padding: 5px 10px;
            border-radius: 18px;
            background: var(--card-bg);
            box-shadow: var(--shadow);
            font-size: 12px;
            min-width: 90px;
            text-align: center;
        }
        .weather-location {
            font-weight: 500;
            margin-bottom: 2px;
        }
        .weather-info {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            font-size: 13px;
            margin-bottom: 2px;
        }
        .weather-extra {
            font-size: 11px;
            color: var(--text-light);
        }
        
        .search-box {
            position: relative;
            margin-bottom: var(--spacing);
        }
        
        #searchInput {
            width: 100%;
            padding: 12px 18px;
            border-radius: var(--radius);
            border: 1px solid var(--border);
            background: var(--card-bg);
            color: var(--text);
            font-size: 14px;
            outline: none;
            box-shadow: var(--shadow);
            transition: border 0.2s;
        }
        #searchInput:focus {
            border-color: var(--primary);
        }
        
        #searchSuggestions {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            margin-top: 4px;
            border-radius: var(--radius);
            background: var(--card-bg);
            box-shadow: var(--shadow);
            max-height: 240px;
            overflow-y: auto;
            z-index: 100;
            display: none;
        }
        
        .suggestion-item {
            padding: 8px 18px;
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
        }
        .suggestion-item:hover {
            background: var(--hover);
        }
        .suggestion-icon {
            color: var(--text-light);
            font-size: 13px;
        }
        .engine-switch {
            margin-left: auto;
            font-size: 11px;
            color: var(--text-light);
            background: var(--hover);
            padding: 2px 6px;
            border-radius: 4px;
        }
        
        #hitokoto {
            padding: 12px 18px;
            border-radius: var(--radius);
            background: var(--card-bg);
            box-shadow: var(--shadow);
            text-align: center;
            font-size: 14px;
            color: var(--text-light);
            margin-bottom: var(--spacing);
        }
        
        .content-wrapper {
            display: grid;
            grid-template-columns: 3fr 1fr;
            gap: 16px;
            margin-bottom: var(--spacing);
        }
        .widget {
            border-radius: var(--radius);
            background: var(--card-bg);
            box-shadow: var(--shadow);
            padding: 16px;
        }
        .widget-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 1px solid var(--border);
            flex-wrap: wrap;
            gap: 8px;
        }
        .widget-title {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 15px;
            font-weight: 600;
        }
        .widget-title i {
            color: var(--primary);
            font-size: 16px;
        }
        
        .tabs {
            display: flex;
            gap: 6px;
        }
        .tab-btn {
            padding: 3px 9px;
            border-radius: 14px;
            border: 1px solid var(--border);
            background: transparent;
            color: var(--text-light);
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .tab-btn.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        
        #hotSearchList {
            display: flex;
            flex-direction: column;
            gap: 8px; 
            max-height: 320px; 
            overflow-y: auto;
            padding: 0 4px 4px; 
        }
        
        #hotSearchList::-webkit-scrollbar {
            width: 4px;
            height: 4px;
        }
        #hotSearchList::-webkit-scrollbar-track {
            background: transparent;
        }
        #hotSearchList::-webkit-scrollbar-thumb {
            border-radius: 2px;
            background: var(--border);
        }
        #hotSearchList::-webkit-scrollbar-thumb:hover {
            background: var(--primary);
        }
        
        .hot-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 10px;
            border-radius: 6px;
            cursor: pointer;
            transition: background 0.2s;
            min-height: 36px; 
        }
        .hot-item:hover {
            background: var(--hover);
        }
        .hot-rank {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 600;
            background: var(--hover);
            flex-shrink: 0;
        }
        .hot-rank.top3 {
            background: var(--primary);
            color: white;
        }
        .hot-content {
            flex: 1;
            font-size: 13px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .hot-heat {
            padding: 2px 6px;
            border-radius: 6px;
            background: var(--hover);
            color: var(--text-light);
            font-size: 10px;
            flex-shrink: 0;
        }
        
        .music-player-widget {
            display: flex;
            flex-direction: column;
        }
        
        #currentTrack {
            text-align: center;
            font-size: 13px;
            margin-bottom: 12px;
            color: var(--text-light);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            padding: 0 6px;
        }
        .player-controls {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin-bottom: 12px;
        }
        
        .player-btn {
            width: 32px;
            height: 32px;
            border-radius: 100%;
            border: none;
            background: var(--hover);
            color: var(--text);
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
        }
        .player-btn:hover {
            background: rgba(66, 153, 225, 0.1);
        }
        #playPause {
            width: 40px;
            height: 40px;
            background: var(--primary);
            color: white;
            font-size: 16px;
        }
        .progress-bar {
            width: 100%;
            height: 5px;
            border-radius: 3px;
            background: var(--hover);
            position: relative;
            cursor: pointer;
            margin-bottom: 14px;
        }
        
        #progress {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            border-radius: 3px;
            background: var(--primary);
            width: 0%;
        }
        
        #playlist {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
            gap: 8px;
            max-height: 160px;
            overflow-y: auto;
            padding-right: 4px;
        }
        #playlist::-webkit-scrollbar {
            width: 3px;
        }
        #playlist::-webkit-scrollbar-thumb {
            border-radius: 2px;
            background: var(--border);
        }
        
        .playlist-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            padding: 5px;
            border-radius: 6px;
            cursor: pointer;
            transition: background 0.2s;
        }
        .playlist-item.active {
            background: rgba(66, 153, 225, 0.1);
            border: 1px solid var(--primary);
        }
        .playlist-item:hover:not(.active) {
            background: var(--hover);
        }
        .track-cover {
            width: 55px;
            height: 55px;
            border-radius: 5px;
            overflow: hidden;
            background: var(--hover);
        }
        .track-cover img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .track-name {
            font-size: 11px;
            font-weight: 500;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            width: 100%;
            text-align: center;
        }
        .track-artist {
            font-size: 10px;
            color: var(--text-light);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            width: 100%;
            text-align: center;
        }
        
        
        #linkContainer {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 14px;
            margin-bottom: var(--spacing);
        }
        
        .link-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 14px;
            border-radius: var(--radius);
            background: var(--card-bg);
            box-shadow: var(--shadow);
            text-align: center;
            text-decoration: none;
            color: var(--text);
            min-height: 50px;
            transition: transform 0.2s, box-shadow 0.2s;
            position: relative;
        }
        .link-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 3px 8px rgba(0,0,0,0.08);
        }
        
        .link-status {
            position: absolute;
            top: 6px;
            right: 6px;
            padding: 1px 5px;
            border-radius: 4px;
            font-size: 10px;
            background: var(--hover);
            color: var(--text-light);
        }
        .status-ok {
            background: rgba(46, 204, 113, 0.1);
            color: #2ecc71;
        }
        .status-slow {
            background: rgba(243, 156, 18, 0.1);
            color: #f39c12;
        }
        .status-error {
            background: rgba(231, 76, 60, 0.1);
            color: #e74c3c;
        }
        .link-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--hover);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 8px;
            overflow: hidden;
        }
        .link-icon img {
            width: 60%;
            height: 60%;
            object-fit: contain;
        }
        .link-title {
            font-size: 14px;
            font-weight: 600;
        }
        .card-search {
            width: 100%;
            margin-top: 8px;
        }
        .card-search-input {
            width: 100%;
            padding: 6px 10px;
            border-radius: 14px;
            border: 1px solid var(--border);
            background: var(--hover);
            color: var(--text);
            font-size: 12px;
            outline: none;
            transition: border 0.2s;
        }
        .card-search-input:focus {
            border-color: var(--primary);
        }
        
        
        #jumpModal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.2s, visibility 0.2s;
        }
        #jumpModal.show {
            opacity: 1;
            visibility: visible;
        }
        .modal-content {
            width: 90%;
            max-width: 400px;
            padding: 18px;
            border-radius: var(--radius);
            background: var(--card-bg);
            box-shadow: var(--shadow);
            text-align: center;
        }
        .modal h3 {
            font-size: 15px;
            margin-bottom: 10px;
            font-weight: 600;
        }
        
        #jumpUrl {
            padding: 7px 10px;
            border-radius: 6px;
            background: var(--hover);
            margin-bottom: 14px;
            font-size: 11px;
            text-align: left;
            word-break: break-all;
            max-height: 70px;
            overflow-y: auto;
            color: var(--text-light);
        }
        .modal-buttons {
            display: flex;
            justify-content: center;
            gap: 10px;
        }
        
        .modal-btn {
            padding: 7px 18px;
            border-radius: 16px;
            border: none;
            font-size: 13px;
            cursor: pointer;
            transition: opacity 0.2s;
        }
        .modal-btn:hover {
            opacity: 0.9;
        }
        .confirm {
            background: var(--primary);
            color: white;
        }
        .cancel {
            background: var(--hover);
            color: var(--text);
        }
        /* 10. 加载/错误状态：JS依赖（类名完全匹配） */
        .loading-spinner {
            text-align: center;
            padding: 16px;
            color: var(--text-light);
            font-size: 13px;
        }
        .error-message {
            text-align: center;
            padding: 16px;
            color: #e74c3c;
            font-size: 13px;
        }
        .retry-btn {
            background: var(--hover);
            border: none;
            color: var(--primary);
            padding: 5px 12px;
            border-radius: 14px;
            cursor: pointer;
            font-size: 12px;
            margin-top: 8px;
            transition: background 0.2s;
        }
        .retry-btn:hover {
            background: rgba(66, 153, 225, 0.1);
        }
        
        footer {
            text-align: center;
            padding: 12px 0;
            margin-top: 24px;
            border-top: 1px solid var(--border);
            font-size: 11px;
            color: var(--text-light);
        }
        
        @media (max-width: 992px) {
            .content-wrapper {
                grid-template-columns: 1fr;
            }
            #linkContainer {
                grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            }
        }
        @media (max-width: 768px) {
            header {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
                margin-bottom: 16px;
                padding-bottom: 10px;
            }
            .header-right {
                width: 100%;
                justify-content: space-between;
            }
            .tabs {
                width: 100%;
                justify-content: center;
                margin-top: 6px;
            }
            #linkContainer {
                grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
                gap: 12px;
            }
            
            #hotSearchList {
                max-height: 280px;
                gap: 7px;
            }
            .hot-item {
                padding: 8px 9px;
            }
            .modal-buttons {
                flex-direction: column;
                gap: 8px;
            }
            .modal-btn {
                width: 100%;
            }
        }