/* 全局样式（从原index.php复制） */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
            transition: background 0.3s, color 0.3s;
        }
        /* 暗主题 */
        body.dark-mode {
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
        }
        body.dark-mode .container {
            background: #222831;
            color: #eee;
        }
        body.dark-mode .header {
            background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
        }
        body.dark-mode .step {
            background: #2d4059;
            border-left-color: #0f3460;
        }
        body.dark-mode .step h2 {
            color: #eee;
        }
        body.dark-mode .form-control {
            background: #393e46;
            border-color: #4ecca3;
            color: #eee;
        }
        body.dark-mode .btn {
            background: linear-gradient(135deg, #4ecca3 0%, #00917c 100%);
        }
        body.dark-mode .btn-secondary {
            background: #5c636a;
        }
        body.dark-mode .alert-info {
            background: #1e3a5f;
            color: #a0d2ff;
            border-color: #2e5a8a;
        }
        body.dark-mode .alert-warning {
            background: #5f4b2e;
            color: #ffd966;
            border-color: #b68b40;
        }
        body.dark-mode .alert-success {
            background: #1e4620;
            color: #a3d9a5;
            border-color: #2e6b31;
        }
        body.dark-mode .alert-danger {
            background: #5f2e2e;
            color: #f5b5b5;
            border-color: #b34b4b;
        }
        body.dark-mode .tab-nav {
            background: #222831;
            border-bottom-color: #444;
        }
        body.dark-mode .tab-item {
            color: #aaa;
        }
        body.dark-mode .tab-item:hover {
            color: #fff;
            border-bottom-color: #4ecca3;
        }
        body.dark-mode .tab-item.active {
            color: #4ecca3;
            border-bottom-color: #4ecca3;
        }
        body.dark-mode .transaction-details {
            background: #2d4059;
        }
        body.dark-mode .nameservers-list {
            background: #2d4059;
            color: #eee;
        }
        .nameservers-list h3 {
            margin-top: 10px;
            margin-bottom: 20px;  /* 可根据需要调整数值 */
        }

        .nameservers-list p {
            margin-top: 0;        /* 可选：重置上方外边距 */
            margin-bottom: 20px;  /* 如果需要下方也有间距可设置 */
        }
        body.dark-mode .nameservers-list .form-control {
            background: #393e46;
            border-color: #4ecca3;
            color: #eee;
        }

        body.dark-mode .nameservers-list .btn-danger {
            background-color: #dc3545;
            border-color: #dc3545;
            color: #fff;
        }
        body.dark-mode .nameservers-list .btn-danger:hover {
            background-color: #c82333;
        }

        body.dark-mode .nameservers-list .btn-success {
            background-color: #28a745;
            border-color: #28a745;
        }
        body.dark-mode .nameservers-list .btn-success:hover {
            background-color: #218838;
        }

        body.dark-mode .nameservers-list .btn-secondary {
            background-color: #6c757d;
            border-color: #6c757d;
        }
        body.dark-mode .nameservers-list .btn-secondary:hover {
            background-color: #5a6268;
        }

        body.dark-mode .nameservers-list .btn-primary {
            background: linear-gradient(135deg, #4ecca3 0%, #00917c 100%);
            border: none;
        }
        body.dark-mode .nameservers-list .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(78, 204, 163, 0.3);
        }
        body.dark-mode .supported-domains-box {
            background: #2d4059;
            border-color: #4ecca3;
        }
        body.dark-mode .domain-suffix {
            background: #393e46;
            color: #eee;
        }
        body.dark-mode .domain-suffix:hover {
            background: #4ecca3;
            color: #222;
        }

        .container {
            max-width: 70%;
            margin: 0 auto;
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            overflow: hidden;
            transition: background 0.3s;
        }
        .header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 40px 30px;
            text-align: center;
            transition: background 0.3s;
        }
        .header h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
        }
        .header p {
            opacity: 0.9;
            font-size: 1.1rem;
        }
        /* 导航栏容器，使用flex布局 */
        .nav-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: white;
            padding: 0 20px;
            border-bottom: 1px solid #dee2e6;
        }
    	body.dark-mode .nav-bar {
        		background: #1e1e2f;      /* 深色背景，可根据需要调整 */
       		border-bottom-color: #444; /* 深色边框 */
    	}
        .tab-nav {
            display: flex;
            flex-wrap: wrap;
        }
        .tab-item {
            padding: 15px 25px;
            margin-right: 5px;
            cursor: pointer;
            color: #6c757d;
            font-weight: 500;
            border-bottom: 3px solid transparent;
            transition: all 0.2s;
        }
        .tab-item:hover {
            color: #495057;
            border-bottom-color: #dee2e6;
        }
        .tab-item.active {
            color: #667eea;
            border-bottom-color: #667eea;
            font-weight: 600;
        }
        .tab-item a {
            text-decoration: none;
            color: inherit;
            display: block;
        }
        /* 主题切换按钮 */
        .theme-toggle {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 10px;
            border-radius: 50%;
            width: 45px;
            height: 45px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.3s;
            color: #667eea;
        }
        .theme-toggle:hover {
            background: rgba(102, 126, 234, 0.1);
        }
        body.dark-mode .theme-toggle {
            color: #4ecca3;
        }
        body.dark-mode .theme-toggle:hover {
            background: rgba(78, 204, 163, 0.2);
        }

        .ns-action-bar {
        margin-top: 10px;
        }

        .ns-save-bar {
            margin-top: 20px;
        }

        .content {
            padding: 40px;
            transition: background 0.3s;
        }
        .step {
            margin-bottom: 40px;
            padding: 25px;
            background: #f8f9fa;
            border-radius: 15px;
            border-left: 5px solid #667eea;
            transition: background 0.3s;
        }
        .step h2 {
            color: #333;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1.4rem;
        }
        .step-number {
            background: #667eea;
            color: white;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }
        .form-group {
            margin-bottom: 20px;
        }
        .form-group label {
            float:left;
            display: block;
            margin-bottom: 8px;
            color: #aaa;
            font-weight: 500;
        }
        .form-control {
            width: 70%;
            padding: 12px 15px;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            font-size: 16px;
            transition: border-color 0.3s, background 0.3s;
        }
        .form-control:focus {
            outline: none;
            border-color: #667eea;
        }
        .form-control-phonenumber {
            max-width: 100px;
        }
        .btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 14px 30px;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
        }
        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
        }
        .btn-secondary {
            background: #6c757d;
        }
        .btn {
            padding: 10px 20px;
            border: none;
            background: #007bff;
            color: #fff;
            cursor: pointer;
            transition: 0.3s;
        }

        .btn:hover {
            background: #0056b3;
        }

        .btn:disabled {
            background: #ccc;
            cursor: not-allowed;
            opacity: 0.6;
        }

        .availability-result {
            padding: 15px;
            border-radius: 10px;
            margin: 20px 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .available {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }
        .unavailable {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }
        .status {
            font-weight: bold;
            font-size: 1.1rem;
        }
        .price {
            font-size: 1.2rem;
            font-weight: bold;
            color: #28a745;
        }
        .alert {
            padding: 15px;
            border-radius: 10px;
            margin: 20px 0;
        }
        .alert-success {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }
        .alert-danger {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }
        .form-actions {
            display: flex;
            gap: 10px;
            margin-top: 20px;
        }
        .record-type-selector {
            display: flex;
            gap: 20px;
            margin: 20px 0;
        }
        .record-type {
            flex: 1;
            text-align: center;
        }
        .record-type input[type="radio"] {
            display: none;
        }
        .record-type label {
            display: block;
            padding: 20px;
            background: white;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s;
        }
        .record-type input[type="radio"]:checked + label {
            border-color: #667eea;
            background: rgba(102, 126, 234, 0.1);
        }
        .record-type .icon {
            font-size: 2rem;
            margin-bottom: 10px;
            color: #667eea;
        }
        .record-type .type-name {
            font-weight: bold;
            font-size: 1.1rem;
            color: #333;
        }
        .record-type .type-desc {
            font-size: 0.9rem;
            color: #666;
            margin-top: 5px;
        }
        .help-text {
            font-size: 0.9rem;
            color: #666;
            margin-top: 5px;
        }
        .transaction-details {
            background: #e9ecef;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
        }
        .contact-form {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin-top: 20px;
        }
        .contact-form .full-width {
            grid-column: 1 / -1;
        }

    /* 隐私声明区域 */
    .privacy-note {
        margin-top: 20px;
        padding: 15px;
        background: #e9ecef;
        border-radius: 8px;
        transition: background 0.3s, color 0.3s;
    }

    .privacy-text {
        margin-bottom: 0;
        font-size: 0.9rem;
    }

    /* 暗主题下的隐私声明 */
    body.dark-mode .privacy-note {
        background: #2d4059;
        color: #eee;
    }

    .site-footer {
        text-align: center;
        padding: 20px;
        background: #6e77c7;
        margin-top: 40px;
        transition: background 0.3s;
    }

	/* 暗主题下的底部样式 */
	body.dark-mode .site-footer {
    		background: #2d4059;   /* 深色背景 */
    		color: #eee;
	}

    /* 折叠面板暗主题 */
    body.dark-mode .collapse-panel {
        border-color: #444;
    }

    body.dark-mode .collapse-header {
        background-color: #2d4059;
        color: #eee;
        border-bottom-color: #444;
    }

    body.dark-mode .collapse-header:hover {
        background-color: #1e2a3a;
    }

    body.dark-mode .collapse-content {
        background: #222831;
        border-top-color: #444;
    }

    body.dark-mode .collapse-content .form-control {
        background: #393e46;
        border-color: #4ecca3;
        color: #eee;
    }

    body.dark-mode .collapse-content label {
        color: #ccc;
    }

    /* 如果希望箭头也变色 */
    body.dark-mode .collapse-header .arrow {
        color: #4ecca3;
    }

    /* 域名表格样式 */
    .domain-table {
        width: 100%;
        border-collapse: collapse;
    }

    .table-header {
        background: #f2f2f2;
    }

    .table-header th {
        padding: 10px;
        text-align: left;
    }

    .domain-cell {
        padding: 10px;
        border-bottom: 1px solid #ddd;
    }


    /* 暗主题下的表格样式 */
    body.dark-mode .table-header {
        background: #2d4059;
        color: #eee;
    }

    body.dark-mode .domain-cell {
        border-bottom-color: #444;
        color: #ddd;
    }

    body.dark-mode .domain-cell a {
        color: #4ecca3; /* 链接颜色 */
    }

    /* 域名列表中的链接 */
    body.dark-mode #domain-list-body a {
        color: #4ecca3;  /* 亮绿色，与暗主题协调 */
    }

    body.dark-mode #domain-list-body a:hover {
        color: #7ae9c5;  /* 悬停时稍亮的绿色 */
    }
    /* 全局移除所有链接的下划线 */
    a {
        text-decoration: none;
    }

    /* 或只针对域名列表中的链接移除下划线 */
    #domain-list-body a {
        text-decoration: none;
    }

    /* DNS 记录表格暗主题 */
    body.dark-mode .table {
        background-color: #222831;
        border-color: #444;
    }

    body.dark-mode #dns-records-tbody .view-mode {
        background-color: #222831;
        color: #eee;
        border-color: #444 !important; /* 覆盖可能的内联边框 */
    }

    body.dark-mode #dns-records-tbody .form-control {
        background-color: #393e46;
        border-color: #4ecca3;
        color: #eee;
    }

    /* 按钮暗主题 */
    body.dark-mode .btn-primary {
        background-color: #4ecca3;
        border-color: #4ecca3;
        color: #222;
    }
    body.dark-mode .btn-primary:hover {
        background-color: #45b893;
        border-color: #45b893;
    }

    body.dark-mode .btn-danger {
        background-color: #dc3545;
        border-color: #dc3545;
        color: #fff;
    }
    body.dark-mode .btn-danger:hover {
        background-color: #c82333;
        border-color: #bd2130;
    }

    body.dark-mode .btn-success {
        background-color: #28a745;
        border-color: #28a745;
        color: #fff;
    }
    body.dark-mode .btn-success:hover {
        background-color: #218838;
        border-color: #1e7e34;
    }

    body.dark-mode .btn-secondary {
        background-color: #6c757d;
        border-color: #6c757d;
        color: #fff;
/*        max-width: 20%;*/
    }

    body.dark-mode .btn-secondary .exit {
        background-color: #6c757d;
        border-color: #6c757d;
        color: #fff;
    }
    body.dark-mode .btn-secondary:hover {
        background-color: #5a6268;
        border-color: #545b62;
    }

    /* 新增行模板暗主题 */
    body.dark-mode #new-record-row td {
        background-color: #222831;
        color: #eee;
    }
    body.dark-mode #new-record-row .form-control {
        background-color: #393e46;
        border-color: #4ecca3;
        color: #eee;
    }
    body.dark-mode table thead th {
        background-color: #2d4059;
        color: #eee;
        border-color: #444;
    }
    /* 展开手柄暗主题 */
    body.dark-mode .expand-handle {
        color: #4ecca3;  /* 亮绿色，与暗主题协调 */
    }

    body.dark-mode .expand-handle:hover {
        color: #7ae9c5;  /* 悬停时稍亮的绿色 */
        text-decoration: underline;
    }
    /* 退出链接包装器 */
    .logout-link-wrapper {
        margin-top: 20px;
        text-align: center;
    }

    /* 退出链接亮主题样式 */
    .logout-link {
        text-decoration: none;
        color: #007bff;  /* 亮主题下的颜色，可自定义 */
    }

    .logout-link:hover {
        color: #0056b3;
    }

    /* 暗主题下的退出链接样式 */
    body.dark-mode .logout-link {
        color: #4ecca3;  /* 与暗主题其他链接一致 */
    }

    body.dark-mode .logout-link:hover {
        color: #7ae9c5;
    }
    
    body.dark-mode .ns-action-bar {
        margin-top: 10px;
    }

    body.dark-mode .ns-save-bar {
        margin-top: 20px;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1rem;
    }

    /* 确保 nameserver-item 允许换行 */
    .nameserver-item {
        display: flex;
        gap: 10px;
        margin-bottom: 10px;
        flex-wrap: wrap;  /* 关键：允许换行 */
        align-items: center;
    }

    /* 输入框尽可能占用剩余宽度，但保留最小宽度 */
    .nameserver-item .nameserver-input {
        flex: 1 1 200px;     /* 可以增长和收缩，基础宽度200px */
        min-width: 150px;    /* 防止过窄，保留可读性 */
    }

    .tab-btn{
            flex: 1;                  /* 让按钮等宽，如果不想要等宽可改为 flex: 0 1 auto */
            padding: 12px 30px;       /* 上下12px，左右30px，使按钮宽大 */
            border: none;
            border-radius:10px 10px 0 0;
/*            background: transparent;*/
            color: #666;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
    }
    .tab-btn active{
        background: #667eea; 
    }

    .tab-btn:hover {
        background: #667eea;       /* 激活状态背景色 */
        color: white;
        font-weight: 600;
        box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3); /* 可选阴影 */
    }

    /* 窄屏幕下（例如小于600px）可以调整基础宽度，让换行更合理 */
    @media (max-width: 600px) {
            .nameserver-item .nameserver-input {
                flex-basis: 100%;  /* 基础宽度改为100%，强制换行 */
            }
            .nameserver-item .btn {
                flex: 0 0 auto;    /* 按钮保持自动宽度，不增长 */
                margin-left: 0;
            }
        .nav-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: white;
            padding: 0 20px;
            border-bottom: 1px solid #dee2e6;
            flex-wrap: wrap;
            gap: 10px;
        }


        /* 登录/注册选项卡 */
        .auth-tabs {
            display: flex;
            gap: 10px;                /* 按钮之间的间距 */
            margin-bottom: 20px;
            background: #f5f7fa;      /* 可选：整个选项卡区域背景 */
            padding: 8px;             /* 可选：内部留白 */
            border-radius: 40px;      /* 如果想让整个容器也圆润 */
            width: fit-content;       /* 宽度根据内容自适应 */
        }

        .tab-btn{
            flex: 1;                  /* 让按钮等宽，如果不想要等宽可改为 flex: 0 1 auto */
            padding: 12px 30px;       /* 上下12px，左右30px，使按钮宽大 */
            border: none;
            border-radius:10px 10px 0 0;
            background: transparent;
            color: #666;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
        }
        .tab-btn:hover {
            background: #667eea;       /* 激活状态背景色 */
            color: white;
            font-weight: 600;
            box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3); /* 可选阴影 */
        }

        .tab-btn.active {
            border-bottom-color: #667eea;
            color: #333;
        }

        .tab-btn:not(.active) {
            color: #6c757d;
        }
    }

    /* 平板及以下 (max-width: 992px) */
    @media (max-width: 992px) {
        .container {
            max-width: 90%;  /* 容器宽度稍大，但仍留边距 */
        }
        .header h1 {
            font-size: 2rem;
        }
        .tab-item {
            padding: 12px 18px;  /* 稍微缩小内边距 */
        }
    }

    /* 手机 (max-width: 768px) */
    @media (max-width: 768px) {
        .container {
            max-width: 100%;
            margin: 0 10px;
            border-radius: 15px;
        }
        .header {
            padding: 25px 15px;
        }
        .header h1 {
            font-size: 1.8rem;
            gap: 8px;
        }
        .header p {
            font-size: 1rem;
        }
        .content {
            padding: 15px;
        }
        .step {
            padding: 15px;
        }
        .step h2 {
            font-size: 1.2rem;
        }
        .form-group label {
            font-size: 0.95rem;
        }
        .form-control {
            padding: 10px 12px;
            font-size: 15px;
        }
        .btn {
            padding: 12px 20px;
            font-size: 15px;
        }
        .tab-nav {
            flex-wrap: wrap;
            justify-content: center;
        }
        .tab-item {
            padding: 10px 12px;
            font-size: 0.9rem;
        }
        .nav-bar {
            flex-wrap: wrap;
            gap: 10px;
        }
        .theme-toggle {
            width: 40px;
            height: 40px;
            font-size: 1.3rem;
        }

        /* 联系人表单改为单列 */
        .contact-form {
            grid-template-columns: 1fr;
        }

        /* 域名表格允许横向滚动 */
        .domain-table-wrapper {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }
        .domain-table {
            min-width: 600px;  /* 保证表格不压缩，允许横向滚动 */
        }

        /* DNS 记录表格区域 */
        .step .table {
            font-size: 0.9rem;
        }
        .step .table th,
        .step .table td {
            padding: 6px;
        }
        .btn-sm {
            padding: 5px 8px;
            font-size: 0.8rem;
        }

        .nameserver-item .btn {
            align-self: flex-start;
        }
        .nameserver-item .form-control {
            width: calc(100% - 50px);  /* 留出删除按钮位置 */
        }

         #dns-records-tbody .btn-sm {
            display: block;
            width: 100%;
            margin-bottom: 5px;
        }
        #dns-records-tbody td:last-child {
            white-space: normal;  /* 允许按钮换行 */
        }

        /* 支持的后缀折叠框 */
        .supported-domains-content {
            max-height: 4.5em;  /* 手机屏小，适当调整 */
        }
        .domain-suffix {
            padding: 2px 4px;
            font-size: 0.85rem;
        }

        /* 交易详情、提示等 */
        .transaction-details,
        .alert {
            padding: 12px;
            font-size: 0.9rem;
        }


        /* 所有按钮在窄屏幕下宽度 100% */
        .step .btn {
            width: 100%;
        }
    }

    /* 小手机 (max-width: 480px) */
    @media (max-width: 480px) {
        .header h1 {
            font-size: 1.5rem;
        }
        .header p {
            font-size: 0.9rem;
        }
        .tab-item {
            padding: 8px 10px;
            font-size: 0.85rem;
        }
        .step-number {
            width: 25px;
            height: 25px;
            font-size: 0.9rem;
        }
        .btn {
            width: 100%;  /* 按钮全宽，方便点击 */
        }
        .form-actions {
            flex-direction: column;
            gap: 8px;
        }
        .logout-link-wrapper {
            text-align: center;
        }
        .auth-tabs {
            flex-direction: column;
            border-bottom: none;
        }
        .tab-btn {
            width: 100%;
            border-bottom: 1px solid #dee2e6;
        }
        .tab-btn.active {
            border-bottom: 3px solid #667eea;
        }
    }

    /* 域名登录框 */
        .domain-login-box {
            border: 1px solid #ddd;
            padding: 20px;
            margin-bottom: 30px;
            border-radius: 5px;
            background: #f9f9f9;
            max-width: 500px;
            margin-left: auto;
            margin-right: auto;
        }

        .domain-login-box h3 {
            margin-top: 0;
            margin-bottom: 15px;
            color: #333;
        }

        .domain-login-box p {
            margin-bottom: 20px;
            color: #666;
        }

        .login-error {
            color: #dc3545;
            margin-bottom: 15px;
            padding: 8px;
            background: #f8d7da;
            border-radius: 4px;
            border: 1px solid #f5c6cb;
        }

        .domain-login-form .form-group {
            margin-bottom: 15px;
        }

        .domain-login-form label {
            display: block;
            margin-bottom: 5px;
            font-weight: 500;
            color: #555;
        }

        .domain-login-form input[type="text"],
        .domain-login-form input[type="password"] {
            width: 100%;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 4px;
            font-size: 16px;
            box-sizing: border-box;
        }

        .domain-login-form input:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 2px rgba(102,126,234,0.2);
        }

        .captcha-group {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 10px;
        }

        .captcha-group label {
            flex: 0 0 auto;
            margin-bottom: 0;
        }

        .captcha-text {
            font-weight: bold;
            background: #e9ecef;
            padding: 8px 15px;
            border-radius: 4px;
            font-size: 1.2rem;
            letter-spacing: 2px;
            flex: 0 0 auto;
        }

        .captcha-group input {
            flex: 1 1 150px;
            min-width: 100px;
        }

        .btn-block {
            width: 100%;
            padding: 12px;
            font-size: 16px;
        }

        /* 暗主题适配（如果已启用） */
        body.dark-mode .domain-login-box {
            background: #2d4059;
            border-color: #444;
        }

        body.dark-mode .domain-login-box h3,
        body.dark-mode .domain-login-box p {
            color: #eee;
        }

        body.dark-mode .domain-login-form label {
            color: #ccc;
        }

        body.dark-mode .domain-login-form input {
            background: #393e46;
            border-color: #4ecca3;
            color: #eee;
        }

        body.dark-mode .captcha-text {
            background: #222831;
            color: #4ecca3;
        }

        /* 窄屏幕适配 */
        @media (max-width: 768px) {
            .domain-login-box {
                padding: 15px;
            }

            .captcha-group {
                flex-direction: column;
                align-items: stretch;
            }

            .captcha-group label {
                margin-bottom: 5px;
            }

            .captcha-text {
                text-align: center;
                margin-bottom: 5px;
            }

            .captcha-group input {
                width: 100%;
            }

            .btn-block {
                padding: 12px;
                font-size: 16px;
            }
        }

        @media (max-width: 480px) {
            .domain-login-box {
                padding: 10px;
            }

            .domain-login-form input {
                font-size: 14px;
            }

            .btn-block {
                font-size: 14px;
                padding: 10px;
            }
        }
    .login-mode-wrapper {
        display: flex;
        justify-content: center;   /* 水平居中 */
        align-items: center;       /* 垂直居中 */
        gap: 10px;
        margin-bottom: 20px;
    }

    .mode-btn {
        flex: 1;
        max-width: 200px;          /* 控制按钮最大宽度 */
    }

    .login-form {
        padding-left:20%;
    }