* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* 适配隐藏 - 需配合common.css实现PC/移动端切换，这里补充基础隐藏样式 */
.pc-only {
    display: block;
}
.mobile-only {
    display: none;
}
@media (max-width: 768px) {
    .pc-only {
        display: none;
    }
    .mobile-only {
        display: block;
    }
}

.regLogin-common {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px 0;
}
.regLogin {
    display: none;
}
.regLogin.active {
    display: block;
}
.regLogin h3 {
    margin-bottom: 30px;
    text-align: center;
    font-size: 20px;
}
.regLogin h4 {
    font-size: 14px;
    font-weight: normal;
    color: #666;
    margin-bottom: 10px;
}
.regLogin-input-item {
    margin-bottom: 20px;
}
.regLogin input[type="text"] {
    width: 100%;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #333;
    color: #333;
    font-size: 16px;
    border-radius: 40px;
    outline: none;
    -webkit-appearance: none;
}
.regLogin-input-item ::-webkit-input-placeholder {
    color: #999; /* 优化占位符颜色，更易区分 */
}
.regLogin-input-item .getyzCode {
    border-radius: 40px;
    height: 40px;
    background: #eee;
    border: none;
    padding: 0 15px;
    font-size: 16px;
    cursor: pointer;
    white-space: nowrap;
    -webkit-appearance: none;
    transition: background 0.3s; /* 增加hover过渡 */
}
.regLogin-input-item .getyzCode:hover {
    background: #ddd;
}
.regLogin-input-item .getyzCode.disabled {
    background: #ccc;
    cursor: not-allowed;
    color: #666;
}
.regLogin-code-row {
    display: flex;
    gap: 10px;
}
.regLogin-code-row input {
    flex: 1;
}
.regLogin button {
    height: 40px;
    padding: 0 15px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
    -webkit-appearance: none;
}
.regLogin .btn-regLogin {
    width: 100%;
    margin-top: 10px;
    height: 40px;
    border-radius: 40px;
    font-size: 16px;
    background: #DA251E;
    border: none;
    color: #fff;
    transition: background 0.3s;
}
.regLogin .btn-regLogin:hover {
    background: #c01f1a;
}
.regLogin-slogan {
    margin-top: 30px;
    text-align: center;
    font-size: 14px;
    font-family: 'FangSong', '仿宋', 'SimSun', '宋体', serif;
    line-height: 28px;
}
.switch-text {
    margin-top: 20px;
    text-align: center;
    cursor: pointer;
    color: #0066cc;
}

/* Tab标签样式 */
.regLogin-tab-wrap {
    display: flex;
    border-bottom: none;
    margin-bottom: 10px;
    gap: 20px;
}
.regLogin-tab-item {
    flex: 1;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    color: #333;
    background: #eee;
    border-radius: 40px;
    transition: background 0.3s, color 0.3s;
}
.regLogin-tab-item:last-child {
    border-right: none;
}
.regLogin-tab-item.active {
    color: #fff;
    background: #DA251E;
}
.regLogin-tab-panel {
    display: none;
}
.regLogin-tab-panel.active {
    display: block;
}

/* 单选选项样式 */
.regLogin-radio-item {
    margin: 12px 0;
    cursor: pointer;
    display: inline-block;
    margin-right: 15px;
}
/* 统一修改所有radio选中圆点颜色 */
.regLogin-radio-item input[type="radio"] {
    accent-color: #DA251E;
    transform: scale(1.1);
}
/* 弹窗样式 */
.regLogin-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}
.regLogin-mask.show {
    display: flex;
}
.regLogin-modal {
    width: 220px;
    font-size: 14px;
    background: #fff;
    padding: 20px;
    text-align: center;
    border-radius: 4px;
}
.regLogin-modal svg {
    width: 32px;
    height: 32px;
    color: #64C934;
    margin-bottom: 10px; /* 增加间距 */
}
.regLogin-modal-text {
    margin-bottom: 20px;
}
.regLogin-modal-btn {
    padding: 6px 20px;
    cursor: pointer;
}
/* 用户协议勾选行 */
.agree-row {
    display: flex;
    align-items: flex-start; /* 优化对齐 */
    margin: 15px 0;
    line-height: 24px;
}
.agree-row input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    padding: 0 !important;
    border: 1px solid #ccc !important;
    border-radius: 2px !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    margin-right: 5px;
    margin-top: 4px; /* 垂直居中 */
}
/* 勾选状态的样式 */
.agree-row input[type="checkbox"]:checked {
    background: #DA251E;
    border-color: #DA251E;
}
/* 勾选的对勾 */
.agree-row input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    color: #fff;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.agree-row span {
    font-size: 14px;
}

.protocol-link, .law-link {
    color: #0066cc;
    cursor: pointer;
    text-decoration: underline; /* 增加下划线，提示可点击 */
}

/* 协议内容弹窗 */
.protocol-modal {
    width: 100%;
    max-width: 400px;
    height: 80vh;
    background: #fff;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}
.protocol-title {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    border-bottom: 1px solid #eee;
}
.protocol-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    line-height: 1.8;
    text-align: left;
}
.protocol-close {
    padding: 15px;
    border-top: 1px solid #eee;
    text-align: center; /* 按钮居中 */
}
.protocol-close .modal-btn {
    padding: 8px 30px;
    background: #DA251E;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* 移动端 */
.mobile-only .regLogin-common {
    width: 100%;
    height: 100vh;
    background: #eee;
    padding: 0 15px;
    box-sizing: border-box;
}
.mobile-only .regLogin {
    height: 100%;
    background: #fff;
    border-radius: 5px;
    padding: 30px 15px;
}
.mobile-regLogin-logo {
    width: 160px;
    margin: 30px auto;
}
.mobile-only .regLogin-slogan {
    font-size: 13px;
}
.mobile-only .agree-row span {
    font-size: 12px;
}
/* 移动端Tab优化 */
.mobile-only .regLogin-tab-wrap {
    gap: 8px;
}
.mobile-only .regLogin-tab-item {
    font-size: 14px;
    line-height: 36px;
}
.mobile-only .regLogin-radio-item {
    display: inline-block; /* 移动端单选框独占一行 */
    margin-right: 0;
    font-size: 14px;
    margin-right: 5px;
}