/* 添加全局样式重置 */
* {
    outline: none;
    box-sizing: border-box;
}

/* 添加在文件开头 */
:root {
    --mobile-scale: 0.8; /* 降低缩放比例 */
    --mobile-padding: 8px;
    --mobile-font-size-base: 12px;
    --mobile-font-size-title: 18px;
}

/* 确保移动端适配 */
@media screen and (max-width: 576px) {
    html {
        font-size: calc(16px * var(--mobile-scale));
        -webkit-text-size-adjust: 100%;
    }
    
    body {
        width: 100%;
        overflow-x: hidden;
        min-height: 100vh;
        max-width: 100vw;
    }
    
    #container {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        transform-origin: top center;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: url('../images/bg_coze.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

div {
    display: block;
    unicode-bidi: isolate;
}
.footer-icp a {
    font-size: 14px;
}

/* 顶部导航栏样式 */

.navbar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding-left: 32px;
    padding-top: 26px;
}

.navbar img {
    cursor: pointer;
    display: block;
    max-height: 40px;
}

.navbar-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    margin-right: auto;
    margin-left: 10px;
}

.navbar-right {
    margin-right: 41px;
    margin-top: 8px;
    width: 106px;
    display: flex;

}

.nav-link {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    line-height: 15px;
}

.nav-link:hover {
    color: #4e73df;
}

.svg-icon {
    color: #80838A;
    font-size: 16px;
    transition: all .1s linear;
    display: flex;

}

/* 主容器样式 */
.container-main {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    height: calc(100vh - 125px);
    justify-content: center;
    margin: 0 auto;
    max-width: 1200px;
    min-height: 650px;
    padding: 0 40px;
    margin-top: 70px; /* 为固定导航栏留出空间 */
}


/* 左侧内容样式 */
.left-content {
    align-items: center;/* 各元素在各自行中水平居中 */
    display: flex;
    flex: 1;
    height: 100%;
    position: relative;
    justify-content: center;

    flex-direction: column;/* 子元素垂直居中 */
}

.content-wrapper {
    width: 100%;
    /* height: 100%; 导致子元素垂直居中后，图片外元素会超出容器 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.2;
}

.gradient-text{
    background: linear-gradient(to right, #2C80FF, #8C78FF);
    -webkit-background-clip: text; /* Chrome/Safari 兼容 */
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.feature-tag {
    background: rgba(78, 115, 223, 0.1);
    color: #4e73df;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(78, 115, 223, 0.2);
}

.create-app-btn {
    position: relative; /* 为伪元素定位提供参考 */
    background: transparent; /* 透明背景 */
    /* background: line-gradient(135deg, #4e73df 0%, #6f42c1 100%);
    color: white; */
    /* 渐变边框,默认不继承border-radius */
    border: 1px solid transparent;
    border-image: linear-gradient(to right, #5397FE, #BD8AFE) 1;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
    /* border:none; */
    /* 这三行宽度限制  */
    /* max-width: 233px;
    width: 100%;
    text-align: center; */
    /* 左对齐关键代码 */
    margin-right: auto;
    margin-left: 60px;
    overflow:hidden;/* 防止伪元素超出圆角边界 */
}

/* 文字渐变色（兼容主流浏览器） */
.create-app-btn {
    background: linear-gradient(to right, #5397FE, #BD8AFE);/* (to right, #4e73df, #6f42c1); */
    -webkit-background-clip: text; /* WebKit 内核（Chrome/Safari） */
    -webkit-text-fill-color: transparent;
    background-clip: text; /* CSS 标准属性 */
    color: transparent; /* 避免文字颜色覆盖 */
}

.create-app-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 115, 223, 0.3);

}

.btn-icon {
    font-size: 18px;
}

.content-image {
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.content-img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}


/* 右侧内容样式 */
.right-content {
    width: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    flex-shrink: 0;
}

.login-container {
    box-sizing: border-box;
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.1);
    background: white;
}

.btn-primary {
    width: 100%; /* 强制全宽 */
    background: linear-gradient(135deg, #4e73df 0%, #6f42c1 100%);
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(78, 115, 223, 0.3);
}

/* 标签页样式 */
.nav-tabs {
    border-bottom: 1px solid #e1e5e9;
    margin-bottom: 25px;
}

.nav-tabs .nav-link {
    border: none;
    color: #666;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 8px 8px 0 0;
}

.nav-tabs .nav-link.active {
    background: #4e73df;
    color: white;
    border-color: #4e73df;
}

.captcha-group {
    display: flex;
    gap: 10px;
}

.captcha-image {
    height: 38px;
    cursor: pointer;
    border-radius: 4px;
}

/* 调整验证码组件布局 */
.captcha-group {
    display: flex;
    align-items: center; /* 垂直居中 */
    gap: 10px;
}

.captcha-image {
    height: 40px; /* 与输入框高度匹配 */
    width: auto; /* 自动计算宽度保持比例 */
    border: 1px solid #e1e5e9; /* 添加边框与输入框对齐 */
    border-radius: 8px; /* 圆角与输入框一致 */
}

/* 补充表单提示文字样式 */
.form-group small.text-muted {
    color: #666; /* 与登录页一致性 */
    font-size: 12px;
    display: block;
    margin-top: 2px;
}

/* 滑动拼图验证样式 */
.slider-captcha {
    width: 100%;
    margin: 15px 0;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    background: #f9f9f9;
    padding: 15px;
}

.slider-captcha-title {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}

.slider-captcha-canvas-container {
    position: relative;
    width: 100%;
    height: 155px;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 6px;
}

.slider-captcha-canvas-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 6px;
}

.puzzle-canvas {
    z-index: 10;
    background-color: transparent !important;
}

.slider-captcha-slider {
    position: relative;
    width: 100%;
    height: 40px;
}

.slider-captcha-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: #e6e6e6;
    border-radius: 20px;
    text-align: center;
    line-height: 40px;
    color: #999;
    font-size: 13px;
}

.slider-captcha-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    background: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s;
    user-select: none;
}

.slider-captcha-thumb:hover {
    background: #3e8e41;
    transform: scale(1.05);
}

.slider-captcha-result {
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
    height: 20px;
    font-weight: 500;
}

.slider-captcha-success {
    color: #4CAF50;
}

.slider-captcha-fail {
    color: #f44336;
}


/* 页脚样式 */
.footer {
    /* background: rgba(255, 255, 255, 0.95); */
    backdrop-filter: blur(10px);
    /* border-top: 1px solid rgba(0, 0, 0, 0.1); */
    padding: 20px 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-content p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #4e73df;
}


/* 错误提示样式 */
.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 8px;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 防止文本选中 */
.slider-captcha-track,
.slider-captcha-thumb,
.slider-captcha-icon {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .left-content {
        padding: 20px;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .right-content {
        width: 100%;
        background: none;
    }

    .login-container {
        margin: 20px;
    }

    .navbar-nav {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .captcha-group {
        flex-direction: column;
        align-items: stretch;
    }
    .captcha-image {
        width: 100%;
        margin-top: 8px;
    }
}
/* 添加在响应式设计部分之前 */

/* 确保所有图片响应式缩放 */
img {
    max-width: 100%;
    height: auto;
}

/* 确保表单元素在小屏幕上不会溢出 */
input, button, select, textarea {
    max-width: 100%;
    box-sizing: border-box;
}

/* 防止内容溢出容器 */
#container {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* 修改现有的响应式设计部分 */
@media (max-width: 992px) {
    .container-main {
        flex-direction: column;
        padding: 10px;
        height: auto;
        min-height: auto;
        margin-top: 10px;
        width: 100%;
    }

    .left-content {
        width: 100%;
        padding: 5px;
        margin-bottom: 10px;
    }

    .right-content {
        width: 100%;
        padding: 5px;
    }

    .login-container {
        max-width: 100%;
        padding: 15px 10px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px;
    }
    
    .navbar-title {
        font-size: 18px;
    }
    
    .navbar-right {
        margin-right: 10px;
        font-size: 14px;
    }

    .main-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
        text-align: center;
    }

    .feature-tags {
        justify-content: center;
        gap: 8px;
    }

    .create-app-btn {
        margin: 0 auto 20px;
        padding: 8px 16px;
        font-size: 14px;
    }

    .content-image {
        max-width: 100%;
    }

    .content-img {
        max-height: 250px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .footer-icp{
        font-size: 10px;
    }
    
    .captcha-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .captcha-image {
        width: 100%;
        height: auto;
        margin-top: 8px;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 5px;
    }
    
    .navbar img {
        max-height: 20px;
    }
    
    .navbar-title {
        font-size: 14px;
    }
    
    .navbar-right {
        margin-right: 5px;
        font-size: 12px;
        width: auto;
    }
    
    .main-title {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .feature-tag {
        padding: 3px 8px;
        font-size: 10px;
        margin-bottom: 0;
    }
    
    .feature-tags {
        gap: 5px;
        margin-bottom: 10px;
    }
    
    .create-app-btn {
        padding: 6px 12px;
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .login-container {
        padding: 10px 8px;
        border-radius: 10px;
    }
    
    .form-control {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .slider-captcha {
        padding: 5px;
        margin: 8px 0;
    }
    
    .slider-captcha-canvas-container {
        height: 100px;
    }
    
    .slider-captcha-slider {
        height: 30px;
    }
    
    .slider-captcha-track {
        height: 30px;
        line-height: 30px;
        font-size: 11px;
    }
    
    .slider-captcha-thumb {
        width: 30px;
        height: 30px;
    }
    
    .footer {
        padding: 5px 0;
    }
    
    .footer-content p {
        font-size: 10px;
    }
    
    .footer-links a {
        font-size: 10px;
    }
    
    .footer-icp {
        font-size: 10px;
    }
    
    .footer-icp a {
        font-size: 10px;
    }
    
    /* 调整表单元素大小 */
    .form-group {
        margin-bottom: 8px;
    }
    
    .form-group small.text-muted {
        font-size: 10px;
    }
    
    .btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    /* 调整标签页样式 */
    .nav-tabs .nav-link {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    /* 调整内容间距 */
    .container-main {
        margin-top: 5px;
        padding: 5px;
    }
}

