/* 登录按钮样式 */
.login-btn {
    padding: 6px 18px;
    background-color: var(--atf-thm-color);
    color: #fff;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}
.login-btn:hover {
    background-color: var(--atf-thm-color);
}
@media (max-width: 1200px) {
    .login-btn {
        padding: 5px 12px;
    }
}

/* 登录弹窗样式 */
.login-modal-overlay {
    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: 9999;
}
.login-modal {
    width: 90%;
    max-width: 400px;
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}
.login-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    border: none;
    background: transparent;
}
.login-modal-close:hover {
    color: #333;
}
.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.auth-tab {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    position: relative;
}
.auth-tab.active {
    color: var(--atf-thm-color);
}
.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--atf-thm-color);
}
.auth-form {
    display: none;
}
.auth-form.active {
    display: block;
}
.login-form-group {
    margin-bottom: 15px;
}
.login-form-label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}
.login-form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}
.login-form-input:focus {
    outline: none;
    border-color: var(--atf-thm-color);
}
.login-form-submit {
    width: 100%;
    padding: 12px;
    background-color: var(--atf-thm-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}
.login-form-submit:hover {
    background-color: var(--atf-thm-color);
}
.login-form-tips {
    text-align: center;
    margin-top: 15px;
    font-size: 12px;
    color: #999;
}
.error-tips {
    color: #f5222d;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-name {
    color: #333;
    font-size: 14px;
}
.logout-btn {
    padding: 4px 12px;
    background-color: #fff;
    color: var(--atf-thm-color);
    border: 1px solid var(--atf-thm-color);;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}
.logout-btn:hover {
    background-color: #fff2e8;
}

/* 单独计费标识样式（如果其他页面也用，也放这里） */
.pay-tag {
    display: inline-block;
    padding: 2px 8px;
    margin-left: 6px;
    border-radius: 20px;
    font-size: 12px;
    background-color: #fff2e8;
    color: var(--atf-thm-color);;
    font-weight: normal;
    vertical-align: middle;
}
.atf_product_content .title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


 /*新增：弹窗基础样式（确保弹窗能显示） */
.login-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.login-modal {
    background: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
}
.login-modal-close {
    float: right;
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
}
.error-tips {
    color: red;
    display: none;
    font-size: 12px;
    margin-top: 5px;
}
.login-form-group {
    margin-bottom: 15px;
}
.login-form-input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
}
.login-form-submit {
    width: 100%;
    padding: 10px;
    background: var(--atf-thm-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}