        /* 自定义字体 - 稳健版路径 */
        /* @font-face {
            font-family: 'huis_font';
            src: url('../font/whouy.woff2') format('woff2'),
                 url('/static/font/whouy.woff2') format('woff2');
            font-weight: normal;
            font-style: normal;
            font-display: swap;
        } */

        /* 主题配色 - 亮色 */
        :root {
            --bg-color: #eaeaea;
            --result-color: white;
            --text-bg: rgba(255, 255, 255, 1);
            --text-color: #333;
            --text-color: #333;
            --brand-color: #9aa6af;
            --brand-shadow-color: none;
            --scrollbar-color: #a2a0a0;
            --main-text-color: white;
            --main-bg: rgba(0, 0, 0, 0.8);
            --main-shadow-color: rgb(0 0 0 / 10%);
            --tabel-th-color: lightgray;
            --tabel-a-color: #a4dcff;
            --domain-color: #26caff;
            --search-box-color: #7f8eb0;
            --price-box-color: whitesmoke;
            --search-input-color: white;
            --search-input-text-color: black;
            --search-button-text-color: #fff;
            --search-button-color1: rgb(3, 169, 244);
            --search-button-color2: rgb(244, 65, 165);
            --search-button-color3: rgb(255, 235, 59);
            --search-button-color4: rgb(9, 168, 244);
            --home-label-color: black;
            --cost-color: gainsboro;
            --footer-color: #7f8eb0;
            --whois-db-time-color: rgba(255, 255, 255, 0.2);
            --watermark-color: rgba(200, 200, 200, 1);
            --open-history-svg-color: #576a96;
            --twentyyears-before-color1: white;
            --twentyyears-before-color2: #0b4ee617;
            --twentyyears-after-color1: rgb(3, 169, 244);
            --twentyyears-after-color2: rgb(244, 65, 165);
        }

        html {
            line-height: 1.2;
            height: 100%;
            width: 100%;
            position: fixed;
            overflow-y: hidden;
        }

        body {
            display: flex;
            justify-content: center;
            margin: 0;
            height: 100%;
            overflow-y: hidden;
        }

        .background {
            width: 100vw;
            height: 100vh;
            background-color: var(--bg-color);
            background-image: linear-gradient(90deg, #3c0a1e0a 3%, transparent 0), linear-gradient(1turn, #3c0a1e0a 3%, transparent 0);
            background-size: 20px 20px;
            z-index: -1;
            position: absolute;
        }

        /* 主布局容器 */
        .search {
            font-family: Avenir, Helvetica, Arial, sans-serif;
            max-width: 630px;
            width: 100%;
            height: 100%;
            margin-top: 10px;
        }

        /* 搜索区域顶部 */
        .search_box {
            background-color: var(--search-box-color);
            padding: 15px;
            border-radius: 10px 10px 0 0;
        }

        .head {
            position: relative;
            display: flex;
            justify-content: space-between;
            top: 10px;
            height: 20px;
            margin-right: -3px;
        }

        .home_label {
            /* position: absolute; */
            /* top: 5px; */
            /* left: 5px; */
            font-size: 28px;
            color: var(--main-text-color);
            text-decoration: none;
            cursor: pointer;
        }

        /* 首页打开历史记录和DNS的图标 */
        #open-history-btn, #dns-search-btn {
            width: 30px;
            height: 30px;
            flex-shrink: 0; /* 防止由于空间不足导致被压缩 */
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
            fill: var(--main-text-color);
            vertical-align: middle;
            margin-left: 10px;
            transition: opacity 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--main-text-color);
        }

        #open-history-btn:hover, #dns-search-btn:hover {
            opacity: 0.8;
        }

        #dns-search-btn svg, #open-history-btn svg {
            width: 28px;
            height: 28px;
        }

        /* 侧边栏内的图标样式 */
        .history-close-btn svg {
            width: 24px;
            height: 24px;
            fill: currentColor;
            display: block;
        }

        /* 历史记录遮罩层 */
        #history-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 99;
            display: none;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        /* 历史记录侧边栏 */

        #history {
            position: fixed;
            top: 0;
            right: -350px; /* 默认隐藏位置 */
            width: 320px;
            height: 100%;
            background: var(--bg-color); /* 跟随主题背景 */
            z-index: 120;
            box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
            transition: right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            display: flex;
            flex-direction: column;
            color: var(--main-text-color);
            font-family: Avenir, Helvetica, Arial, sans-serif;
        }

        #history.show {
            right: 0 !important;
        }

        /* 移动端适配 */
        @media screen and (max-width: 630px) {
             #history { width: 85vw; right: -85vw; }
             #history.show { right: 0 !important; }
        }

        /* 历史记录头部 */
        .history-header {
            padding: 20px;
            font-size: 20px;
            font-weight: 600;
            border-bottom: 1px solid var(--tabel-th-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: var(--home-label-color);
        }

        .history-close-btn {
            background: none;
            border: none;
            cursor: pointer;
            padding: 5px;
            color: var(--home-label-color);
            opacity: 0.6;
            transition: opacity 0.2s;
        }
        .history-close-btn:hover { opacity: 1; }
        
        /* 历史记录搜索框 */
        .history-search-container {
            padding: 10px 20px;
            background: rgba(128, 128, 128, 0.05);
            border-bottom: 1px solid rgba(128, 128, 128, 0.1);
        }

        .history-search-box {
            position: relative;
            display: flex;
            align-items: center;
        }

        #history-search-input {
            width: 100%;
            height: 36px;
            padding: 0 35px 0 12px;
            border-radius: 18px;
            border: 1px solid rgba(128, 128, 128, 0.2);
            background: var(--search-input-color);
            color: var(--search-input-text-color);
            font-size: 14px;
            outline: none;
            transition: all 0.3s ease;
        }

        #history-search-input:focus {
            border-color: var(--domain-color);
            box-shadow: 0 0 0 3px rgba(38, 202, 255, 0.1);
        }

        #history-search-clear {
            position: absolute;
            right: 10px;
            width: 20px;
            height: 20px;
            background: rgba(128, 128, 128, 0.1);
            border-radius: 50%;
            display: none;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: #999;
            transition: all 0.2s;
        }

        #history-search-clear:hover {
            background: rgba(128, 128, 128, 0.2);
            color: #666;
        }

        /* 历史记录列表容器 */
        #history-list-container {
            flex: 1;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding: 10px 0;
        }

        /* 历史记录底部提示 */
        .history-footer {
            padding: 12px 20px;
            font-size: 11px;
            color: #9a9898;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            text-align: center;
            opacity: 0.8;
            letter-spacing: 0.3px;
        }

        /* 侧边栏内的图标样式 */
        .history-close-btn svg {
            width: 20px;
            height: 20px;
            stroke: currentColor;
            fill: none;
            display: block;
        }

        /* 列表项样式 */
        .history-group {
            border-bottom: 1px solid rgba(128, 128, 128, 0.1);
        }

        .history-group-title {
            padding: 15px 20px;
            font-size: 13px;
            color: #9c9a9a;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(128, 128, 128, 0.02);
        }

        .history-group-title:hover {
            background: rgba(128, 128, 128, 0.05);
        }

        .history-group-title::after {
            content: '▼';
            font-size: 10px;
            transition: transform 0.3s;
            opacity: 0.5;
        }

        .history-group.collapsed .history-group-title::after {
            transform: rotate(-90deg);
        }

        .history-items-container {
            max-height: 1000px;
            overflow: hidden;
            transition: max-height 0.3s ease-in-out;
        }

        .history-group.collapsed .history-items-container {
            max-height: 0;
        }

        .history-item {
            padding: 12px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            transition: background-color 0.2s;
            border-bottom: 1px solid rgba(128, 128, 128, 0.1);
        }

        .history-item:hover {
            background-color: rgba(128, 128, 128, 0.05);
        }

        .history-item-domain {
            font-size: 16px;
            font-weight: 500;
            color: #272b2d;
            margin-bottom: 2px;
        }

        .history-item-time {
            font-size: 12px;
            color: #9a9898;
        }

        .history-item-status {
            font-size: 11px;
            padding: 4px 8px;
            border-radius: 4px;
            background: rgba(128, 128, 128, 0.1);
            color: #403636;
            font-weight: 500;
        }

        .status-unregistered {
            background: rgba(50, 198, 50, 0.15);
            color: #2e7d32;
        }

        .status-reserved {
            background: rgba(255, 0, 0, 0.1);
            color: #d32f2f;
        }

        /* 滚动条美化 */
        #history-list-container::-webkit-scrollbar {
            width: 4px;
        }
        #history-list-container::-webkit-scrollbar-thumb {
            background: var(--scrollbar-color);
            border-radius: 2px;
        }

        /* 搜索框容器 */
        .search_box {
            position: relative;
            width: 100%;
            max-width: 630px; /* 限制最大宽度，与底栏一致 */
            margin: 0 auto;
            box-sizing: border-box; /* 防止 padding 撑大宽度 */
        }


        /* 搜索输入区域 */
        .input_btn {
            display: flex; /* 改为 flex */
            margin-top: 45px;
            width: 100%;
            justify-content: flex-start; /* 强制靠左对齐 */
            box-sizing: border-box; /* 防止宽度溢出 */
        }

        .input-container {
            position: relative;
            flex: 1; /* 自动撑满剩余空间 */
            display: flex;
            align-items: center;
        }

        #search_input {
            border: none;
            outline: none;
            position: relative;
            height: 48px;
            width: 100%; /* 撑满容器 */
            border-radius: 5px 0 0 5px;
            font-size: 21px;
            padding: 0 45px 0 10px; /* 右侧留出清除按钮空间 */
            background-color: var(--search-input-color);
            color: var(--search-input-text-color);
            box-sizing: border-box; /* 强行在 PC 端也开启 */
        }

        #clear-input-btn {
            position: absolute;
            right: 12px;
            width: 22px;
            height: 22px;
            background: rgba(128, 128, 128, 0.2);
            border-radius: 50%;
            display: none; /* 初始隐藏 */
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
            transition: all 0.2s;
            user-select: none;
        }

        #clear-input-btn:hover { background: rgba(128, 128, 128, 0.3); }
        #clear-input-btn svg { width: 12px; height: 12px; stroke: var(--main-text-color); }

        /* 搜索按钮 */
        #search_button {
            position: relative;
            height: 48px;
            width: 85px; /* 固定宽度，确保对齐 */
            border: 0;
            cursor: pointer;
            color: var(--search-button-text-color);
            border-radius: 0 5px 5px 0;
            background: linear-gradient(to right, rgb(107 131 183), rgb(83 101 141));
            background-size: 400%;
            z-index: 1;
            font-size: 15px;
            box-sizing: border-box;
        }

        @keyframes streamer {
            100% { background-position: -400% 0; }
        }

        /* 价格信息栏 */
        #price_box {
            /* font-weight: 600; */
            font-size: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            z-index: 2;
            position: relative;
            top: 10px;
            overflow: visible;
            color: var(--price-box-color);
        }

        #price_load {
            /* font-weight: 600; */
            font-size: 15px;
            display: none; /* 默认隐藏，查询时改为 flex */
            justify-content: flex-start;
            align-items: center;
            z-index: 2;
            position: relative;
            top: 10px;
            color: var(--price-box-color);
            line-height: 20px;
            /* height: 42px; */
            width: 100%;
        }

        #premium, #register, #renew, #status {
            visibility: hidden;
            height: 20px;
            line-height: 20px;
        }

        #register, #renew {
            display: flex;
            align-items: center;
            position: relative;
        }

        #query-time {
            color: var(--watermark-color);
            white-space: nowrap;
        }

        /* 结果区域 */
        #result {
            background-color: var(--result-color);
            color: #2c3e50;
            position: relative;
            height: calc(100% - 170px);
            width: auto;
            font-family: Avenir, Helvetica, Arial, sans-serif;
            font-weight: 500;
            font-size: 16px;
            overflow-y: auto; /* 改为 auto */
            word-break: break-word;
            -webkit-overflow-scrolling: touch;
            /* 隐藏滚动条 */
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* IE/Edge */
        }
        
        #result::-webkit-scrollbar {
            display: none; /* Chrome/Safari/Webkit */
        }
        
        /* 动态查询背景 - 仅在显示结果时应用 */
        body.querying-bg #result {
            background: radial-gradient(circle at 60% 90%, #2e67a1, transparent 60%), radial-gradient(circle at 20px 20px, #2e67a1, transparent 25%);
        }

        /* 背景水印 - 加载和结果页均显示 */
        #result-watermark {
            left: 50%;
            transform: translate(-50%, -50%);
            user-select: none;
            pointer-events: none;
            z-index: 0;
            display: none;
            position: fixed;
            width: 100%;
            top: 400px;
            text-align: center;
            color: #9aa6af;
        }

        #result-watermark svg, #brand svg {
            width: 300px;
            height: auto;
            max-height: 200px;
        }

        @keyframes svg-draw {
            from {
                stroke-dasharray: 0, 15000;
                stroke-dashoffset: 0;
            }
            to {
                stroke-dasharray: 15000, 0;
                stroke-dashoffset: 0;
            }
        }

        @keyframes svg-fill {
            from {
                fill: transparent;
            }
            to {
                fill: currentColor;
            }
        }

        .animate-path {
            stroke-dasharray: 0, 15000;
            stroke-dashoffset: 0;
            fill: transparent;
            animation: svg-draw 4s ease-in-out forwards, svg-fill 0.8s ease-in-out 3.5s forwards;
        }

        #brand svg {
            /* 首页 Logo 可以更明显 */
            filter: drop-shadow(0 0 10px var(--brand-shadow-color));
        }
        
        /* 当品牌 Logo 消失（即进入查询/结果态）时，显示水印 */
        body.querying-bg #result-watermark,
        #result:has(#loader[style*="display: block"]) #result-watermark,
        #result:has(#loader:not([style*="display: none"])) #result-watermark {
            display: block;
        }

        /* 避免两个 Logo 同时出现：当正在加载或已有结果背景时，首页 Logo 强制隐藏 */
        #result:is(.show-watermark, .querying-bg) #brand,
        #result:has(#loader:not([style*="display: none"])) #brand {
            display: none !important;
        }

        /* 兼容性更好的 JS 控制显示逻辑 */
        .show-watermark #result-watermark {
            display: block;
        }

        .animate-path {
            stroke-dasharray: 0, 15000;
            stroke-dashoffset: 0;
            fill: transparent;
            stroke: currentColor;
            stroke-width: 100;
        }

        /* 为圆点 (第3个path) 设置独特的高亮色 */
        #result-watermark path:nth-child(3),
        #brand path:nth-child(3) {
            color: #ff5722 !important; /* 独特的橙红色点缀 */
        }

        /* 动画方案 1: 毛笔书写感 (缓慢上色) */
        .anim-brush {
            opacity: 0.9;
            animation: brush-draw 4.5s ease-out forwards;
        }
        @keyframes brush-draw {
            0% { stroke-dasharray: 0, 15000; fill: transparent; }
            60% { stroke-dasharray: 15000, 0; fill: transparent; }
            100% { stroke-dasharray: 15000, 0; fill: currentColor; }
        }

        /* 动画方案 2: 霓虹闪烁上色 */
        .anim-neon {
            opacity: 0.9;
            animation: neon-draw 3.5s ease-in forwards;
        }
        @keyframes neon-draw {
            0% { stroke-dasharray: 0, 15000; fill: transparent; filter: brightness(1) drop-shadow(0 0 0 transparent); }
            70% { stroke-dasharray: 15000, 0; fill: transparent; filter: brightness(2) drop-shadow(0 0 5px currentColor); }
            100% { stroke-dasharray: 15000, 0; fill: currentColor; filter: brightness(1) drop-shadow(0 0 0 transparent); }
        }

        /* 动画方案 3: 渐变扩散描写效果 */
        .anim-flow {
            opacity: 0.9;
            animation: flow-draw 5s linear forwards;
        }
        @keyframes flow-draw {
            0% { stroke-dasharray: 0, 15000; fill: transparent; }
            70% { stroke-dasharray: 15000, 0; fill: transparent; }
            100% { stroke-dasharray: 15000, 0; fill: currentColor; }
        }

        /* 僅在結果正式顯示（.show-result）時淡化背景背景背景 */
        .show-result #result-watermark .animate-path {
            stroke-dasharray: none !important;
            stroke-dashoffset: 0 !important;
            fill: currentColor !important;
            animation: none !important;
            opacity: 0.15 !important;
        }



        /* 结构化信息卡片 */
        #main {
            box-shadow: 2px 3px 8px var(--main-shadow-color);
            background: var(--main-bg);
            border-radius: 0.8rem;
            font-size: 15px;
            display: none;
            position: relative;
            z-index: 10; /* 调高一点，确保标签可见 */
            word-break: break-word;
            border-spacing: 0 13px;
            width: 98%;
            max-width: 630px;
            margin: 10px auto; /* 增加展示时的间距 */
            padding: 15px 23px; /* 增加内边距，使内容不贴边 */
            box-sizing: border-box;
        }

        /* 结果卡片右上角的 HU.iS 标签 */
        .brand-pendant {
            position: absolute;
            top: 15px;
            right: 20px;
            font-family: 'huis_font', serif; /* 修改为 huis_font */
            font-size: 20px;
            color: #9aa6af;
            opacity: 0.6;
            user-select: none;
            pointer-events: none;
            letter-spacing: 1px;
            font-style: normal; /* 字体自带斜体可不用 italic */
            white-space: nowrap;
        }

        #main tbody th {
            text-align: right;
            color: var(--tabel-th-color);
        }

        #main tbody td {
            padding-left: 0.8rem;
            padding-right: 0.8rem;
            font-size: 15px;
            color: var(--main-text-color);
            word-break: break-word;
        }

        #main tr:nth-child(n + 2) td {
            line-height: 20px;
        }

        #main a {
            color: var(--main-text-color);
            text-decoration-color: var(--tabel-a-color);
            text-decoration-line: underline;
        }

        /* 元数据控制按钮 */
        #metadata-toggle-box {
            text-align: center;
            margin: 15px 0;
            display: none;
            transition: margin-bottom 0.3s;
        }

        /* 当元数据隐藏时，增加底部边距，避免被 Footer 遮挡 */
        #metadata-toggle-box.metadata-hidden {
            margin-bottom: 50px;
        }

        /* 元数据控制按钮 - 3D 风格支持 */
        #metadata-toggle-box {
            text-align: center;
            margin: 10px 0;
            display: none;
            transition: margin-bottom 0.3s;
        }

        .switch-3d-cyan {
            --w: 85px;  /* 从 110px 缩小 */
            --h: 30px;  /* 从 40px 缩小 */
            --knob-size: 16px; /* 从 20px 缩小 */
            --offset: 7px;   /* 从 10px 缩小 */
            --cyan: #00ffff;
            --white-glow: #ffffff;
            --bg-off: #1a2a2a;
            --bg-on: #0f0f1a;
            --half-size: calc(var(--knob-size) / 2);
            position: relative;
            display: inline-block;
            width: var(--w);
            height: var(--h);
            cursor: pointer;
        }

        .switch-input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .switch-track {
            position: absolute;
            inset: 0;
            background-color: var(--bg-off);
            border-radius: var(--h);
            border: 1px solid #444;
            transition: all 0.5s ease;
            overflow: hidden;
            box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
        }

        .track-text {
            position: absolute;
            font-family: "Arial", sans-serif;
            font-size: 11px; /* 从 13px 缩小 */
            font-weight: 800;
            color: var(--white-glow);
            text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
            transition: opacity 0.4s ease, transform 0.4s ease;
            pointer-events: none;
            white-space: nowrap;
        }

        .text-3d { left: 32px; opacity: 1; } /* 调整偏移 */
        .text-2d { left: 12px; opacity: 0; transform: translateX(-8px); }

        .switch-knob {
            position: absolute;
            top: var(--offset);
            left: var(--offset);
            width: var(--knob-size);
            height: var(--knob-size);
            perspective: 1200px;
            pointer-events: none;
            transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            z-index: 2;
        }

        .cube {
            width: 100%;
            height: 100%;
            position: relative;
            transform-style: preserve-3d;
            animation: spin 3s infinite linear;
        }

        .face {
            position: absolute;
            width: 100%;
            height: 100%;
            background: rgba(0, 255, 255, 0.1);
            border: 1px solid var(--cyan);
            box-shadow: 0 0 4px var(--cyan), inset 0 0 4px var(--cyan);
            opacity: 0.8;
            backface-visibility: visible;
            transition: all 0.5s ease;
        }

        .front { transform: translateZ(var(--half-size)); }
        .back { transform: rotateY(180deg) translateZ(var(--half-size)); }
        .right { transform: rotateY(90deg) translateZ(var(--half-size)); }
        .left { transform: rotateY(-90deg) translateZ(var(--half-size)); }
        .top { transform: rotateX(90deg) translateZ(var(--half-size)); }
        .bottom { transform: rotateX(-90deg) translateZ(var(--half-size)); }

        .switch-input:checked ~ .switch-track .switch-knob {
            transform: translateX(calc(var(--w) - var(--knob-size) - (var(--offset) * 2)));
        }

        .switch-input:checked ~ .switch-track .text-3d { opacity: 0; transform: translateX(10px); }
        .switch-input:checked ~ .switch-track .text-2d { opacity: 1; transform: translateX(0); }

        .switch-input:checked ~ .switch-track {
            background-color: var(--bg-on);
            border-color: var(--cyan);
            box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
        }

        .switch-input:checked ~ .switch-track .face {
            background: rgba(0, 255, 255, 0.15);
            box-shadow: 0 0 8px var(--cyan), inset 0 0 8px var(--cyan);
        }

        @keyframes spin {
            0% { transform: rotateX(0deg) rotateY(0deg); }
            100% { transform: rotateX(360deg) rotateY(360deg); }
        }

        /* 元数据卡片 */
        #metadata-card {
            box-shadow: 2px 4px 8px var(--main-shadow-color);
            background: var(--main-bg);
            border-radius: 0.8rem;
            width: 98%;
            margin: 0 auto 20px auto;
            padding: 15px;
            box-sizing: border-box;
            display: none;
            color: var(--main-text-color);
            margin-bottom: 70px;
            position: relative; /* 确保 z-index 生效 */
            z-index: 10; /* 提升层级，遮盖底层水印 */
        }

        .meta-header {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 10px;
            border-bottom: 1px solid rgba(128,128,128,0.2);
            padding-bottom: 5px;
        }

        /* 原始文本区域 */
        #text {
            white-space: pre-wrap;
            word-wrap: break-word;
            font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
            font-size: 14px;
            color: #eee;
            margin: 0;
            padding: 15px;
            overflow-y: auto;
            max-height: 200px;
            border: none;
            display: block;
        }

        /* 滚动条美化 */
        ::-webkit-scrollbar {
            width: 4px;
            height: 4px;
        }
        ::-webkit-scrollbar-track {
            background: transparent;
        }
        ::-webkit-scrollbar-thumb {
            background: rgba(128, 128, 128, 0.3);
            border-radius: 2px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: rgba(128, 128, 128, 0.5);
        }

        /* 品牌 */
        #brand {
            font-family: huis_font;
            position: fixed;
            width: 100%;
            top: 200px;
            text-align: center;
            font-size: 60px;
            color: var(--brand-color);
            text-shadow: 0 0 10px var(--brand-shadow-color), 0 0 20px var(--brand-shadow-color), 0 0 40px var(--brand-shadow-color), 0 0 80px var(--brand-shadow-color);
            z-index: 0;
            white-space: nowrap;
        }

        /* 域名标题 */
        #domain_href {
            color: var(--domain-color) !important;
            text-decoration: none !important;
            font-weight: 600;
            cursor: pointer;
            font-size: 19px;
            word-break: break-all;
            margin-right: 5px;
            line-height: 16px;
            width: fit-content;
        }

        #domain_href:hover {
            text-shadow: 0 0 10px var(--domain-color), 0 0 20px var(--domain-color), 0 0 30px var(--domain-color), 0 0 40px var(--domain-color);
        }

        /* 时间格式 */
        .TimeZone {
            font-size: 10px;
            color: var(--tabel-th-color);
            word-break: keep-all;
            white-space: pre;
            display: inline-block;
            line-height: 10px;
        }

        .TimeStr {
            display: inline-block;
            white-space: pre-wrap;
            vertical-align: middle;
        }

        .whois-db-time {
            position: absolute;
            right: 12px;
            bottom: 8px;
            color: var(--whois-db-time-color);
            font-size: 12px;
        }

        /* 标签样式 */
        .label {
            padding: 0 4px;
            font-size: 11px;
            font-family: "Microsoft JhengHei", "Apple LiGothic Medium,Microsoft YaHei", "Arial", cursive;
            border-radius: 4px;
            margin-right: 5px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            vertical-align: middle;
            height: 20px;
            line-height: 1;
            box-sizing: border-box;
            position: relative;
            top: -1px;
        }

        .TwentyYearsOld {
            position: relative;
            z-index: 0;
            overflow: hidden;
            border-radius: 3px;
            padding: 0 4px;
            text-align: center;
            font-size: 11px;
            font-family: "Microsoft JhengHei", "Apple LiGothic Medium,Microsoft YaHei", "Arial", cursive;
            transition: .2s all linear;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            vertical-align: middle;
            color: #fff;
            height: 20px;
            line-height: 1;
            box-sizing: border-box;
            margin-right: 5px;
            top: -1px;
        }

        .TwentyYearsOld:before {
            content: "";
            position: absolute;
            z-index: -2;
            left: -50%;
            top: -50%;
            width: 200%;
            height: 200%;
            background: conic-gradient(from 90deg, #0000 70%, #0b4ee617 80%, white);
            animation: rotate20 3s linear infinite;
        }

        .TwentyYearsOld::after {
            background: linear-gradient(85.95deg, rgb(3, 169, 244) 10.96%, rgb(244, 65, 165) 89.04%);
            content: '';
            position: absolute;
            z-index: -1;
            left: 2px;
            top: 2px;
            width: calc(100% - 4px);
            height: calc(100% - 4px);
            border-radius: 3px;
        }

        @keyframes rotate20 {
            to { transform: rotate(360deg) }
        }

        .TenYearsOld {
            background-color: #d614d6;
            color: white;
            padding: 0 4px;
            font-size: 11px;
            border-radius: 3px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            vertical-align: middle;
            height: 20px;
            line-height: 1;
            box-sizing: border-box;
            margin-right: 5px;
            top: -1px;
            position: relative;
        }

        .FiveYearsOld {
            background-color: #2196F3;
            color: white;
            padding: 0 4px;
            font-size: 11px;
            border-radius: 3px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            vertical-align: middle;
            height: 20px;
            line-height: 1;
            box-sizing: border-box;
            margin-right: 5px;
            top: -1px;
            position: relative;
        }

        .AuthLabel {
            padding: 0 6px;
            font-size: 11px;
            border-radius: 4px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            vertical-align: middle;
            height: 20px;
            line-height: 1;
            box-sizing: border-box;
            margin-right: 5px;
            top: -1px;
            position: relative;
        }

        /* DNSSEC SVG */
        #dnssec-svg {
            height: 22px;
            width: 22px;
            display: inline !important;
            vertical-align: middle;
        }

        /* 预加载动画 */
        @keyframes gb-loader-animation-expand {
            0% { transform: rotate(0deg); }
            70%, 80%, 90%, 100% { transform: rotate(720deg); }
            80%, 90% { top: calc(50% - .5em); box-shadow: 0 0 0 0 currentColor, 0 0 0 0 currentColor; }
            0%, 20%, 30%, 80%, 100% { top: calc(50% - 2em); box-shadow: -1.35em 2.25em 0 0 currentColor, 1.35em 2.25em 0 0 currentColor; }
            0%, 20%, 30%, 100% { animation-timing-function: cubic-bezier(0.45, 0.1, 0.15, 1); }
        }

        .global-loader-scope .gb-loader {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            vertical-align: top;
        }

        .global-loader-scope .gb-loader::after {
            position: absolute;
            width: 1em;
            height: 1em;
            content: "";
            background-color: currentColor;
            border-radius: 50%;
            transform-origin: 50% 2em;
        }

        .global-loader-scope .gb-loader--lg {
            width: 64px;
            height: 64px;
            top: 60px; /* 调整高度，避免与 Logo 重叠 */
            left: calc(50% - 32px);
        }

        .global-loader-scope .gb-loader--lg::after {
            will-change: transform, box-shadow;
            backface-visibility: hidden;
            animation-name: gb-loader-animation-expand;
            animation-duration: 2s;
            animation-iteration-count: infinite;
            color: rgb(154, 166, 175);
            font-size: 16px;
        }

        .global-loader-scope {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: none;
        }

        /* 滚动条 */
        #result::-webkit-scrollbar-track {
            border-radius: 5px;
            background-color: transparent;
        }

        #result::-webkit-scrollbar-track-piece {
            background-color: transparent;
        }

        #result::-webkit-scrollbar-thumb {
            border-radius: 5px;
            background: var(--scrollbar-color);
        }

        #result::-webkit-scrollbar-thumb:hover {
            background-color: dimgrey;
        }

        /* 状态标签颜色（已注册/未注册等） */
        .status-registered {
            color: #282828;
        }

        /* PC 端 */
        @media screen and (min-width: 630px) {
            #price_box, #price_load { width: 580px; margin-left: 5px; margin-right: 5px; }
            /* #price_load { top: 2px; } */
            #main {padding: 10px 0;margin: 10px auto 10px auto;box-sizing: border-box;}
            #main tbody th, #main tbody td { font-weight: normal; min-width: 5rem; }
            #main tbody th { width: 100px; }
            #result::-webkit-scrollbar { width: 5px; }
        }

        /* 移动端 */
        @media screen and (max-width: 630px) {
            .search { height: 100%; margin: 0; }
            .input_btn { width: 100%; }
            .search_box { border-radius: 0; }
            #search_button { width: 85px; flex-shrink: 0; } /* 移动端按钮也保持固定宽度 */
            .head { top: 12px; }
            .home_label { top: 6px; }
            #main tbody th, #main tbody td { font-weight: normal; }
            #main tbody th { width: 88px; }
            #main { padding: 5px 10px 5px 10px; margin: 5px auto 10px auto; width: 98%; }
            #text { padding: 15px 10px 15px 10px; font-weight: 400; }
            #result::-webkit-scrollbar { width: 0; }
        }

        /* Tooltip 提示框 (Popover) */
        #tooltip {
            visibility: hidden;
            background-color: #fff;
            color: #333;
            text-align: left;
            border-radius: 4px;
            padding: 8px 12px;
            position: absolute;
            z-index: 2000;
            font-size: 14px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            border: 1px solid #ccc;
            opacity: 0;
            transition: opacity 0.2s;
            pointer-events: none;
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        #tooltip.show {
            visibility: visible;
            opacity: 1;
        }

        /* 警告图标样式 */
        .tooltip-icon {
            width: 20px;
            height: 20px;
            background-color: #ff9800;
            color: #fff;
            border-radius: 2px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 16px;
            flex-shrink: 0;
        }

        /* 小三角 - 默认位于气泡上方 (pos-bottom 模式) */
        #tooltip.pos-bottom::before {
            content: "";
            position: absolute;
            bottom: 100%;
            left: 20px;
            border-width: 8px;
            border-style: solid;
            border-color: transparent transparent #ccc transparent;
        }

        #tooltip.pos-bottom::after {
            content: "";
            position: absolute;
            bottom: 100%;
            left: 21px;
            border-width: 7px;
            border-style: solid;
            border-color: transparent transparent #fff transparent;
        }

        /* 兼容逻辑：如果以后需要显示在上方，或者不带 pos-bottom 类时 */
        #tooltip:not(.pos-bottom)::before {
            top: 100%;
            border-color: #ccc transparent transparent transparent;
        }
        #tooltip:not(.pos-bottom)::after {
            top: 100%;
            border-color: #fff transparent transparent transparent;
        }

        /* 小屏手机 */
        @media only screen and (max-width: 380px) {
            #main { font-size: 13px; }
            #main tbody td { font-size: 15px; padding-left: 0.6rem; }
            #main tr:nth-child(n + 2) td { line-height: 18px; }
            #main tbody th { width: 70px; }
            #domain_href { font-size: 17px; }
            #result { font-size: 15px; height: calc(100% - 140px); }
            #text { line-height: 19px; }
            .search_box { height: 140px; }
            .head { top: 8px; }
            .home_label { font-size: 25px; }
            .input_btn { margin-top: 35px; }
            #search_input { height: 43px; font-size: 18px; padding-right: 35px; }
            #search_button { height: 43px; width: 70px; font-size: 14px; flex-shrink: 0; }
            #clear-input-btn { right: 8px; width: 18px; height: 18px; }
            #price_box { font-size: 13px; height: 33px; top: 0px;}
            #price_load { font-size: 13px; height: 33px; top: 0px; }
            #premium, #register, #renew, #status { height: 16px; line-height: 16px; }
        }

        /* 火狐兼容 */
        @-moz-document url-prefix() {
            #result {
                scrollbar-color: var(--scrollbar-color) rgba(0, 0, 0, 0);
                scrollbar-width: thin;
            }
        }
        /* 底部版权信息 - 首页默认样式 */
        #footer-info {
            position: fixed;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            max-width: 630px;
            text-align: center;
            color: #8c8c8c;
            font-size: 13px;
            font-weight: 300;
            z-index: 110;
            letter-spacing: 1px;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            padding: 15px 0;
            background: rgb(235 231 231 / 20%);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-top: 1px dashed rgba(255, 255, 255, 0.1);
            user-select: none;
            box-sizing: border-box;
            transition: all 0.3s ease;
        }

        /* 底部版权信息 - 查询/渐变背景时的样式 */
        body.querying-bg #footer-info {
            color: rgba(255, 255, 255, 1);
            background: rgba(0, 0, 0, 0.2);
            border-top: 1px dashed rgba(255, 255, 255, 0.1);
        }

        @media (max-width: 630px) {
            #footer-info {
                max-width: 100%;
                font-size: 12px;
                padding: 12px 10px;
                left: 0;
                transform: none;
                width: 100%;
            }
        }
/* 状态标签 */
.label {
    padding: 0 4px;
    font-size: 11px;
    border-radius: 4px;
    margin-right: 5px;
    font-family: "Microsoft JhengHei", "Apple LiGothic Medium,Microsoft YaHei", "Arial", cursive;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    height: 20px;
    line-height: 1;
    box-sizing: border-box;
    position: relative;
    top: -1px;
}

.NewReg {
    background-color: #00c500;
    text-shadow: 0 0 10px var(--label-color1), 0 0 20px var(--label-color1), 0 0 30px var(--label-color1), 0 0 40px var(--label-color1);
    color: white;
}

.RedemptionPeriod {
    background-color: #25addb;
    text-shadow: 0 0 10px var(--label-color2), 0 0 20px var(--label-color2), 0 0 30px var(--label-color2), 0 0 40px var(--label-color2);
    color: white;
}

.Expired, .ExpiringSoon {
    background-color: #ff3b3b;
    text-shadow: 0 0 10px var(--label-color2), 0 0 20px var(--label-color2), 0 0 30px var(--label-color2), 0 0 40px var(--label-color2);
    color: white;
}

.PendingTransfer, .TransferPeriod {
    background-color: yellow;
    text-shadow: 0 0 10px var(--label-color3), 0 0 20px var(--label-color3), 0 0 30px var(--label-color3), 0 0 40px var(--label-color3);
    color: black;
}

.WillExpire, .AutoRenewPeriod {
    background-color: #ec8c00;
    text-shadow: 0 0 10px var(--label-color4), 0 0 20px var(--label-color4), 0 0 30px var(--label-color4), 0 0 40px var(--label-color4);
    color: white;
}

.PendingDelete {
    background-color: #f52d63;
    text-shadow: 0 0 10px var(--label-color5), 0 0 20px var(--label-color5), 0 0 30px var(--label-color5), 0 0 40px var(--label-color5);
    color: white;
}

.Expired {
    background-color: #f52d63;
    color: white;
}

.ServerHold, .Inactive { /* Added .Inactive based on user request logic */
    background-color: whitesmoke;
    text-shadow: 0 0 10px var(--label-color6), 0 0 20px var(--label-color6), 0 0 30px var(--label-color6), 0 0 40px var(--label-color6);
    color: black;
    font-weight: bold;
}

.Hold {
    background-color: whitesmoke;
    color: black;
    font-weight: bold;
}

.PendingVerification {
    background-color: rgb(192, 192, 192);
    text-shadow: 0 0 10px var(--label-color7), 0 0 20px var(--label-color7), 0 0 30px var(--label-color7), 0 0 40px var(--label-color7);
    color: black;
}

.RenewTenYears {
    background-color: cyan;
    text-shadow: 0 0 10px var(--label-color8), 0 0 20px var(--label-color8), 0 0 30px var(--label-color8), 0 0 40px var(--label-color8);
    color: black;
}

.TenYearsOld {
    background-color: #d614d6;
    text-shadow: 0 0 10px var(--label-color9), 0 0 20px var(--label-color9), 0 0 30px var(--label-color9), 0 0 40px var(--label-color9);
    color: white;
}

.RenewPeriod {
    background-color: pink;
    text-shadow: 0 0 10px var(--label-color10), 0 0 20px var(--label-color10), 0 0 30px var(--label-color10), 0 0 40px var(--label-color10);
    color: black;
}

.ThirtyYearsOld {
    background-color: white;
    color: black;
    position: relative;
    z-index: 0;
    overflow: hidden;
    padding: 0 4px;
    font-size: 11px;
    font-family: "Microsoft JhengHei", "Apple LiGothic Medium,Microsoft YaHei", "Arial", cursive;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    height: 20px;
    line-height: 1;
    box-sizing: border-box;
    margin-right: 5px;
    margin-left: 5px;
    top: -1px;
}

@keyframes rotate30 {
    100% {
        transform: rotate(1turn);
    }
}

.ThirtyYearsOld::before {
    content: '';
    position: absolute;
    z-index: -2;
    left: -100%;
    top: -100%;
    width: 300%;
    height: 300%;
    background-repeat: no-repeat;
    background-size: 50% 50%, 50% 50%;
    background-position: 0 0, 100% 0, 100% 100%, 0 100%;
    background-image: linear-gradient(lime, lime), linear-gradient(#ff00ff, #ff00ff), linear-gradient(cyan, cyan), linear-gradient(#ff304f, #ff304f);
    animation: rotate30 4s linear infinite;
}

.ThirtyYearsOld::after {
    background-color: #ffb900;
    content: '';
    position: absolute;
    z-index: -1;
    left: 2px;
    top: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    border-radius: 5px;
    animation: opacityChange 3s infinite alternate;
}

@keyframes rotate20 {
    to {
        transform: rotate(360deg)
    }
}

.TwentyYearsOld {
    position: relative;
    z-index: 0;
    overflow: hidden;
    border-radius: 3px;
    padding: 0 4px;
    text-align: center;
    font-size: 11px;
    font-family: "Microsoft JhengHei", "Apple LiGothic Medium,Microsoft YaHei", "Arial", cursive;
    transition: .2s all linear;
    text-decoration: initial;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    color: #fff;
    height: 20px;
    line-height: 1;
    box-sizing: border-box;
    margin-right: 5px;
    top: -1px;
}

.TwentyYearsOld:before {
    content: "";
    position: absolute;
    z-index: -2;
    left: -50%;
    top: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 90deg, #0000 70%, var(--twentyyears-before-color2) 80%, var(--twentyyears-before-color1));
    animation: rotate20 3s linear infinite;
}

.TwentyYearsOld::after {
    background: linear-gradient(85.95deg, var(--twentyyears-after-color1) 10.96%, var(--twentyyears-after-color2) 89.04%);
    content: '';
    position: absolute;
    z-index: -1;
    left: 2px;
    top: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    border-radius: 3px;
}

/* DNS 解析记录表格 - 严格遵循用户提供的样式 */
.dns-table-container {
    width: 98%;
    max-width: 630px;
    margin: 10px auto 40px auto;
    background: #fff;
    border-radius: .8rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    z-index: 100;
}

#dns-main-table.dns-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background-color: #fff !important; /* 强制底色 */
}

#dns-main-table.dns-table thead {
    background-color: #f9fafb !important;
}

#dns-main-table.dns-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #374151 !important;
    font-size: 14px;
    border-bottom: 2px solid #e5e7eb;
}

#dns-main-table.dns-table td {
    padding: 12px 16px;
    color: #4b5563 !important;
    font-size: 14px;
    border-bottom: 1px solid #f3f4f6;
    word-break: break-all;
    background-color: #fff !important; /* 奇数行强制白 */
}

#dns-main-table.dns-table tbody tr:nth-child(even) td {
    background-color: #f9fafb !important; /* 偶数行强制浅灰 */
}

#dns-main-table.dns-table tbody tr:hover td {
    background-color: #f3f4f6 !important;
    cursor: default;
    transition: background-color 0.2s ease;
}

.record-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.type-a { background-color: #e0f2fe !important; color: #0284c7 !important; }
.type-aaaa { background-color: #f0e7ff !important; color: #7c3aed !important; }
.type-cname { background-color: #dcfce7 !important; color: #16a34a !important; }
.type-mx { background-color: #fee2e2 !important; color: #dc2626 !important; }
.type-ns { background-color: #f3f4f6 !important; color: #4b5563 !important; }
.type-soa { background-color: #fff7ed !important; color: #ea580c !important; }
.type-txt { background-color: #fff7ed !important; color: #ea580c !important; }

@media (max-width: 768px) {
    .dns-table-container {
        width: 95%;
        overflow-x: auto;
    }
    #dns-main-table.dns-table th, #dns-main-table.dns-table td {
        padding: 10px 8px;
        font-size: 13px;
    }
}

/* 标签及反馈申请弹窗 */
#label-modal-overlay, #feedback-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 500;
    backdrop-filter: blur(3px);
}
#label-modal-overlay.show, #feedback-modal-overlay.show { display: block; }

#label-modal, #feedback-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 501;
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 380px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    color: #333;
}
#label-modal.show, #feedback-modal.show { display: block; }

.lm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #eee;
}
.lm-title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
}
.lm-close {
    cursor: pointer;
    color: #999;
    padding: 2px;
    border-radius: 6px;
    transition: all 0.2s;
}
.lm-close:hover { color: #333; background: #f0f0f0; }

.lm-section-title {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    padding: 12px 20px 6px;
    letter-spacing: 0.5px;
}

#lm-history-list {
    padding: 0 12px 8px;
}
.lm-history-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 4px;
    background: #fafafa;
    font-size: 13px;
}
.lm-history-item:hover { background: #f5f5f5; }
.lm-history-domain {
    color: #555;
    font-weight: 500;
    margin-right: 8px;
    flex-shrink: 0;
}
.lm-history-label {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    height: 18px;
    line-height: 1;
}
.lm-history-status {
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
    margin-left: auto;
    padding-left: 8px;
}
.lm-status-pending { color: #d4a017; }
.lm-status-approved { color: #2da44e; }
.lm-status-rejected { color: #e53e3e; }

.lm-form {
    padding: 12px 20px 20px;
}
.lm-field {
    margin-bottom: 14px;
}
.lm-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}
.lm-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.lm-input:focus {
    border-color: #333;
    background: #fff;
}
.lm-input::placeholder { color: #bbb; }

.lm-styles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.lm-style-opt, .lm-feedback-opt {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #eee;
    font-size: 12px;
    transition: all 0.15s;
}
.lm-style-opt:hover, .lm-feedback-opt:hover { border-color: #ccc; }
.lm-style-opt.active { border: 1px solid #111111 }
.lm-feedback-opt.active {
    border: 1px solid #111111;
    background-color: #111111;
    color: #fff;
}
.lm-msg {
    font-size: 13px;
    margin-bottom: 8px;
    min-height: 20px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s;
}
.lm-msg.show { opacity: 1; }
.lm-msg.error { color: #e53e3e; }
.lm-msg.success { color: #2da44e; }

.lm-submit {
    width: 100%;
    padding: 10px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.lm-submit:hover { background: #333; }
.lm-submit:disabled { background: #999; cursor: not-allowed; }

#label-apply-btn, #feedback-apply-btn {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    fill: var(--main-text-color);
    vertical-align: middle;
    margin-left: 10px;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-text-color);
}

/* 关于本站底部抽屉样式 */
#about-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
#about-drawer-overlay.show {
    display: block;
    opacity: 1;
}

#about-drawer {
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 630px;
    background: #fff;
    z-index: 9999;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 24px 20px 30px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    transition: bottom 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
#about-drawer.show {
    bottom: 0px;
}

body.querying-bg #about-drawer {
    background: rgba(30, 30, 30, 0.95);
    color: #eee;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}

.about-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}
body.querying-bg .about-header {
    border-bottom-color: #444;
}

.about-title {
    font-size: 18px;
    font-weight: 700;
    color: #111;
}
body.querying-bg .about-title {
    color: #fff;
}

.about-close {
    cursor: pointer;
    color: #999;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s;
    background: #f0f0f0;
}
body.querying-bg .about-close {
    background: #333;
    color: #ccc;
}
.about-close:hover {
    color: #333;
    background: #e0e0e0;
}
body.querying-bg .about-close:hover {
    color: #fff;
    background: #555;
}

.about-content {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}
body.querying-bg .about-content {
    color: #ccc;
}
.about-content p {
    margin-bottom: 12px;
    margin-top: 0;
}
.about-content strong {
    color: #111;
    font-weight: 600;
}
body.querying-bg .about-content strong {
    color: #fff;
}
