        * { margin: 0; padding: 0; box-sizing: border-box; }
        html, body { height: 100%; }
        body {
            min-height: 100%;
            background: linear-gradient(135deg, #833ab4 0%, #e1306c 50%, #fcb045 100%);
            font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        .card {
            background: rgba(255,255,255,0.75);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
            border-radius: 24px;
            padding: 40px 32px 32px;
            width: min(460px, 100%);
            max-width: 460px;
            min-height: 420px;
            box-shadow: 0 12px 40px rgba(0,0,0,0.25);
            border: 1px solid rgba(255,255,255,0.4);
            flex: 0 0 auto;
            display: flex;
            flex-direction: column;
        }
        /* logo 图标 + 标题 同一行 */
        .title-row {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 14px;
            margin-bottom: 6px;
        }
        .logo-wrapper {
            width: 80px;
            height: 80px;
            border-radius: 22px;
            background: linear-gradient(135deg, #8b5cf6, #a855f7);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            box-shadow: 0 6px 20px rgba(139,92,246,0.45);
        }
        .logo-wrapper .logo-icon {
            color: #fff;
            font-size: 44px;
            font-weight: 800;
            line-height: 1;
        }
        .logo {  /* 标题文字 */
            font-size: 36px;
            font-weight: 800;
            color: #8b5cf6;
            letter-spacing: 2px;
        }
        .logo span { color: #06b6d4; }
        .traffic-tip {
            text-align: center;
            color: #ef4444;
            font-size: 13px;
            font-weight: 500;
            margin: 22px auto 24px;   /* 上边距加大, 与标题隔开 */
            padding: 11px 20px;
            border-radius: 50px;                    /* 圆角线圈 */
            border: 1px solid rgba(239,68,68,0.2);  /* 红色细边框 */
            background: rgba(239,68,68,0.08);       /* 淡红底 */
            width: fit-content;
            max-width: 100%;
            box-sizing: border-box;
        }
        .warning-dot {
            display: inline-block;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #ef4444;
            margin-right: 2px;
            vertical-align: 1px;
        }
        /* 输入行: 输入框 + @按钮 + 确认按钮 */
        .input-row {
            display: flex;
            gap: 8px;
            align-items: center;
            position: relative;  /* 下拉定位基准 */
        }
        .input-wrap {
            position: relative;
            flex: 1;
        }
        /* 清除按钮 (输入内容时显示) */
        .clear-btn {
            display: none;
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            width: 26px;
            height: 26px;
            border-radius: 50%;
            background: rgba(139,92,246,0.15);
            color: #8b5cf6;
            font-size: 14px;
            line-height: 24px;
            text-align: center;
            cursor: pointer;
            user-select: none;
            z-index: 5;
        }
        .clear-btn:hover { background: rgba(139,92,246,0.3); }
        #password.has-text { padding-right: 44px; }
        #password {
            width: 100%;
            padding: 17px 16px;
            border-radius: 16px;
            border: 2px solid #ddd6fe;
            background: #faf8ff;
            color: #333;
            font-size: 18px;
            font-weight: 500;
            outline: none;
            box-shadow: 0 2px 12px rgba(0,0,0,0.06);
            transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
        }
        #password::placeholder { color: #bbb; font-weight: 400; }
        #password:focus {
            border-color: #8b5cf6;
            background: #fff;
            box-shadow: 0 0 0 3px rgba(139,92,246,0.15), 0 2px 16px rgba(0,0,0,0.08);
        }
        .at-btn {
            width: 54px;
            height: 56px;
            border-radius: 16px;
            background: #faf8ff;
            border: 2px solid #ddd6fe;
            color: #8b5cf6;
            font-size: 22px;
            font-weight: 700;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: background 0.2s;
            user-select: none;
        }
        .at-btn:hover { background: #f3effe; }
        .at-btn:active { background: #e9e2fd; }
        .go-btn {
            height: 56px;
            padding: 0 26px;
            border-radius: 16px;
            background: linear-gradient(135deg, #8b5cf6, #a855f7);
            border: none;
            color: #fff;
            font-size: 17px;
            font-weight: 700;
            cursor: pointer;
            flex-shrink: 0;
            transition: transform 0.1s, box-shadow 0.2s;
            box-shadow: 0 4px 14px rgba(139,92,246,0.4);
        }
        /* 手机窄屏适配: 输入框优先占满, 按钮紧凑 */
        @media (max-width: 480px) {
            .at-btn {
                width: 48px;
                height: 52px;
                font-size: 22px;
                border-radius: 14px;
            }
            .go-btn {
                height: 52px;
                padding: 0 16px;
                font-size: 16px;
                border-radius: 14px;
            }
            #password {
                padding: 14px 12px;
                font-size: 16px;  /* >=16px 防止 iOS 点击自动缩放 */
            }
            .input-row {
                gap: 6px;
            }
            .card {
                padding: 30px 22px 26px;
            }
        }
        .go-btn:hover { box-shadow: 0 6px 18px rgba(139,92,246,0.55); }
        .go-btn:active { transform: scale(0.97); }
        /* 下拉候选 (全屏居中弹层) */
        .dropdown {
            display: none;
            position: absolute;   /* 相对 input-row 定位, 不遮挡输入框 */
            top: calc(100% + 8px);
            left: 0;
            background: #ffffff;
            border: 1px solid #ddd6fe;
            border-radius: 12px;
            padding: 8px;
            z-index: 999;
            box-shadow: 0 10px 30px rgba(255,94,98,0.18);
            max-height: 320px;
            overflow-y: auto;
        }
        .dropdown.show { display: block; }
        /* 第一行: 映射完整网址 */
        .dd-map {
            padding: 10px 12px;
            color: #333;
            font-size: 13px;
            cursor: pointer;
            border-radius: 8px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
            word-break: break-all;
            background: #faf8ff;
            margin-bottom: 6px;
        }
        .dd-map:hover { background: #f3effe; }
        .dd-map .tag {
            font-size: 11px;
            color: #8b5cf6;
            border: 1px solid rgba(139,92,246,0.4);
            border-radius: 6px;
            padding: 1px 7px;
            white-space: nowrap;
            flex-shrink: 0;
        }
        /* 后缀横向平铺 */
        .dd-suffixes {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
        }
        .dd-suffix {
            padding: 4px 9px;
            border-radius: 7px;
            background: #faf8ff;
            border: 1px solid #ddd6fe;
            color: #666;
            font-size: 12px;
            cursor: pointer;
            transition: background 0.15s, color 0.15s;
            user-select: none;
        }
        .dd-suffix:hover, .dd-suffix.hover { background: #ff5e62; color: #fff; border-color: #8b5cf6; }
        /* 自定义按钮 (下拉底部) */
        .dd-custom-btn {
            margin-top: 8px;
            padding: 7px;
            border-radius: 8px;
            background: #fff;
            border: 1px dashed #c4b5fd;
            color: #999;
            font-size: 12px;
            text-align: center;
            cursor: pointer;
            transition: background 0.15s, color 0.15s;
            user-select: none;
        }
        .dd-custom-btn:hover { background: #faf8ff; color: #8b5cf6; }
        /* 显示更多按钮 */
        .dd-more-btn {
            margin-top: 6px;
            padding: 6px;
            border-radius: 8px;
            background: #faf8ff;
            border: 1px solid #ddd6fe;
            color: #8b5cf6;
            font-size: 12px;
            text-align: center;
            cursor: pointer;
            user-select: none;
            transition: background 0.15s;
        }
        .dd-more-btn:hover { background: #f3effe; }
        /* 后缀管理面板 */
        .dd-manage {
            display: none;
        }
        .dd-manage.show { display: block; }
        .dd-manage-title {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 2px 4px 8px;
            color: #333;
            font-size: 13px;
            font-weight: 600;
            border-bottom: 1px solid #ddd6fe;
            margin-bottom: 8px;
        }
        .dd-manage-done {
            font-size: 12px;
            color: #8b5cf6;
            cursor: pointer;
            font-weight: 500;
            padding: 2px 8px;
            border: 1px solid rgba(139,92,246,0.4);
            border-radius: 6px;
        }
        .dd-manage-done:hover { background: #f3effe; }
        .dd-mg-list {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            max-height: 160px;
            overflow-y: auto;
            margin-bottom: 8px;
        }
        .dd-mg-item {
            padding: 5px 10px;
            border-radius: 7px;
            font-size: 12px;
            cursor: pointer;
            user-select: none;
            background: #faf8ff;
            border: 1px solid #ddd6fe;
            color: #666;
            transition: all 0.15s;
        }
        .dd-mg-item.on { background: #ff5e62; border-color: #8b5cf6; color: #fff; }
        .dd-mg-item.off { opacity: 0.45; text-decoration: line-through; }
        .dd-mg-item:hover { opacity: 1; }
        .dd-mg-add {
            display: flex;
            gap: 6px;
        }
        .dd-mg-add input {
            flex: 1;
            padding: 7px 10px;
            border-radius: 8px;
            border: 1px solid #ddd6fe;
            background: #faf8ff;
            color: #333;
            font-size: 13px;
            outline: none;
        }
        .dd-mg-add input::placeholder { color: #bbb; }
        .dd-mg-add button {
            padding: 7px 14px;
            border-radius: 8px;
            border: none;
            background: #38bdf8;
            color: #0c2433;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
        }
        .dd-mg-add button:hover { background: #0ea5e9; }
        /* 提示 */
        .hint {
            margin-top: 14px;
            margin-bottom: auto;
            text-align: center;
            color: #666;
            font-size: 14px;
            line-height: 1.7;
        }
        .hint b { color: #8b5cf6; }
        /* 底部板块: 密码大全 = 重要广告位 (独立一行, 最醒目) */
        .links {
            margin-top: auto;   /* 卡片 flex 布局: 推到底部 */
            padding-top: 14px;
            text-align: center;
        }
        /* 密码大全: 独立一行, 居中, 显眼广告位 */
        .password-link {
            display: block;
            margin: 0 auto 12px;
            max-width: 100%;
            padding: 9px 16px;   /* 缩小 */
            border-radius: 10px;
            background: rgba(245,166,35,0.85);   /* 黄色 */
            border: 1px solid rgba(255,255,255,0.4);
            color: #5b3a00;
            font-size: 16px;
            font-weight: 800;
            text-decoration: none;
            letter-spacing: 1px;
            box-shadow: 0 4px 16px rgba(245,166,35,0.4);
            transition: transform 0.15s, box-shadow 0.2s;
            text-align: center;
        }
        .password-link:hover {
            color: #5b3a00;
            text-decoration: none;
            transform: scale(1.03);
            box-shadow: 0 6px 22px rgba(245,166,35,0.55);
        }
        .password-link .password-badge {
            font-size: 11px;
            font-weight: 600;
            background: rgba(91,58,0,0.12);
            border: 1px solid rgba(91,58,0,0.3);
            border-radius: 6px;
            padding: 1px 8px;
            margin-left: 8px;
            vertical-align: 2px;
        }
        /* 资源更新提示 */
        .links .note {
            color: #8b5cf6;        /* 紫色 (参考站同款) */
            font-size: 15px;
            font-weight: 500;
            margin-top: 12px;
            margin-bottom: 6px;
        }
        .links .note-time {
            display: inline-block;
            color: #8b5cf6;                    /* 紫色 */
            font-size: 14px;
            font-weight: 500;
            background: rgba(139,92,246,0.1);  /* 紫色胶囊背景 */
            border-radius: 50px;
            padding: 6px 14px;
            margin-bottom: 14px;
        }
        .link-row {
            display: flex;
            justify-content: space-between;
            gap: 8px;
        }
        .link-row a {
            color: #555;
            font-size: 15px;
            text-decoration: none;
            font-weight: 500;
            padding: 9px 6px;
            border-radius: 10px;
            background: #faf8ff;
            border: 1px solid #ddd6fe;
            transition: all 0.2s;
            display: inline-block;
            flex: 1;
            text-align: center;
            white-space: nowrap;
        }
        .link-row a:hover {
            color: #8b5cf6;
            background: #f3effe;
            border-color: rgba(255,209,102,0.4);
            text-decoration: none;
        }
        /* 居中 toast 提示 */
        .toast {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: #ffffff;
            color: #333;
            padding: 12px 22px;
            border-radius: 12px;
            font-size: 14px;
            font-weight: 600;
            z-index: 99999;
            box-shadow: 0 8px 30px rgba(139,92,246,0.25);
            border: 2px solid #ddd6fe;
            opacity: 0;
            transition: opacity 0.25s;
            pointer-events: none;
            text-align: center;
            max-width: 92vw;
            white-space: nowrap;   /* 单行不换行 */
            text-overflow: ellipsis;
            overflow: hidden;
        }
        .toast.show { opacity: 1; }
        .toast.toast-error { border-color: #f87171; color: #dc2626; }
        .toast.toast-ok { border-color: #34d399; color: #059669; }
    