/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrollbar */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    flex: 1;
}

/* 顶部样式 */
.header {
    padding: 20px 0;
    text-align: center;
}

.header-title {
    color: #333;
    font-size: 48px;
    font-weight: 600;
    letter-spacing: 2px;
    margin: 0;
    text-align: center;
    display: block;
    width: 100%;
}

.header-subtitle {
    color: #666;
    font-size: 16px;
    font-weight: 400;
    margin: 10px 0 0 0;
    text-align: center;
    display: block;
    width: 100%;
}

/* 主要内容区域 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 图片样式 */
.image-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

/* 文字容器样式 */
.text-container {
    margin: 30px 0;
    text-align: center;
}

.text-line1 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.text-line2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.text-content {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.text-icon {
    width: 30px;
    height: auto;
}

/* 说明文字容器样式 */
.instruction-container {
    margin: 20px 0;
    text-align: center;
}

.instruction-text {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 表单容器样式 */
.form-container {
    max-width: 500px;
    margin: 30px auto;
    padding: 0 20px;
}

.input-group {
    margin-bottom: 15px;
    position: relative;
}

.phone-group {
    position: relative;
    display: block;
}

.phone-input {
    width: 100%;
    padding: 16px 80px 16px 15px;
    border: 2px solid #007bff;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
    height: 50px;
}

.phone-input:focus {
    border-color: #007bff;
}

.area-code-select {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 10px;
    border: 1px solid #007bff;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    background-color: white;
    cursor: pointer;
    min-width: 60px;
}

.area-code-select:focus {
    border-color: #007bff;
}

.password-input, .captcha-input, .sms-input, .username-input {
    width: 100%;
    padding: 16px 15px;
    border: 2px solid #007bff;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
    height: 50px;
}

.password-input:focus, .captcha-input:focus, .sms-input:focus, .username-input:focus {
    border-color: #007bff;
}

.captcha-group {
    position: relative;
    display: block;
}

.captcha-input {
    padding-right: 80px;
}

.captcha-code {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

.input-group:last-child {
    position: relative;
    display: block;
}

.sms-input {
    padding-right: 100px;
}

.send-code-text {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #007bff;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    transition: color 0.3s;
}

.send-code-text:hover {
    color: #0056b3;
    text-decoration: underline;
}

.send-code-text:active {
    color: #0056b3;
}

/* 立即加入按钮样式 */
.join-btn {
    width: 100%;
    padding: 16px;
    margin-top: 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    height: 50px;
    box-sizing: border-box;
}

.join-btn:hover {
    background-color: #0056b3;
}

.join-btn:active {
    background-color: #004085;
}

/* 协议同意容器样式 */
.agreement-container {
    display: flex;
    align-items: center;
    margin-top: 15px;
    gap: 8px;
}

.agreement-radio {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.agreement-text {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    user-select: none;
    line-height: 1.4;
}

.activity-rules {
    color: #007bff;
    text-decoration: none;
    cursor: pointer;
}

.activity-rules:hover {
    text-decoration: underline;
}

.image-left {
    max-width: 100%;
    height: auto;
    flex: 0 0 auto;
}

.image-center {
    max-width: 100%;
    height: auto;
    flex: 0 0 auto;
}

img{
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    body {
        background: linear-gradient(to bottom, #e3f2fd 0%, #ffffff 100%);
        min-height: 100vh;
        position: relative;
    }
    
    .header {
        padding: 15px 10px;
        position: relative;
        z-index: 10;
    }
    
    .header-title {
        font-size: 36px;
        letter-spacing: 1px;
    }
    
    .header-subtitle {
         font-size: 16px;
         margin: 8px 0 0 0;
     }
    
    .main-content {
         padding: 15px;
         display: flex;
         flex-direction: column;
         align-items: center;
     }
     
     .image-container {
         display: flex;
         flex-direction: column;
         align-items: center;
         gap: 10px; /* Add some space between images */
         width: 100%;
     }
     
     .image-left,
     .image-center,
     .image-right {
         max-width: 80%; /* Adjust as needed for better scaling */
         height: auto;
         margin: 0 auto; /* Center images */
     }
     
     .text-container {
         width: 100%;
         text-align: center;
         margin-top: 20px; /* Adjust margin as needed */
     }
     
     .text-line1 {
         font-size: 20px;
         margin-bottom: 8px;
     }
     
     .text-line2 {
         font-size: 20px;
     }
     
     .text-content {
         font-size: 20px;
     }
     
     .text-icon {
         width: 25px;
     }
     
     .instruction-container {
         width: 90%;
         text-align: center;
         margin-top: 20px; /* Adjust margin as needed */
     }
     
     .instruction-text {
         font-size: 14px;
         color: #666;
         line-height: 1.4;
         padding: 0 10px;
     }
     
     .form-container {
         width: 90%;
         max-width: 450px;
         margin-top: 20px; /* Adjust margin as needed */
     }
     
     .phone-input {
         font-size: 14px;
         padding: 14px 70px 14px 12px;
         height: 48px;
     }
     
     .area-code-select {
         font-size: 12px;
         padding: 6px 8px;
         min-width: 55px;
     }
     
     .password-input {
         font-size: 14px;
         padding: 14px 12px;
         height: 48px;
     }
     
     .captcha-input {
         font-size: 14px;
         padding: 14px 90px 14px 12px;
         height: 48px;
     }
     
     .captcha-code {
         font-size: 12px;
         padding: 6px 12px;
     }
     
     .sms-input {
         font-size: 14px;
         padding: 14px 110px 14px 12px;
         height: 48px;
     }
     
     .send-code-text {
         font-size: 11px;
         right: 8px;
     }

     .join-btn {
         font-size: 15px;
         padding: 14px;
         height: 48px;
         margin-top: 18px;
     }

     .agreement-container {
         margin-top: 12px;
         gap: 6px;
     }

     .agreement-radio {
         width: 14px;
         height: 14px;
     }

     .agreement-text {
         font-size: 13px;
     }
}

@media screen and (max-width: 480px) {
    .header {
        padding: 12px 8px;
    }
    
    .header-title {
        font-size: 28px;
        letter-spacing: 0.5px;
    }
    
    .header-subtitle {
         font-size: 14px;
         margin: 6px 0 0 0;
     }
    
    .main-content {
         padding: 10px;
     }
     
     .image-container {
         gap: 5px; /* Adjust gap for smaller screens */
     }
     
     .image-left,
     .image-center,
     .image-right {
         max-width: 90%; /* Further adjust for smaller screens */
     }
     
     .text-container {
         margin-top: 15px;
     }
     
     .text-line1 {
         font-size: 24px;
         margin-bottom: 6px;
     }
     
     .text-line2 {
         font-size: 24px;
     }
     
     .text-content {
         font-size: 24px;
     }
     
     .text-icon {
         width: 30px;
     }
     
     .instruction-container {
         width: 95%;
         margin-top: 15px;
     }
     
     .instruction-text {
         font-size: 15px;
         line-height: 1.3;
         padding: 0 5px;
     }
     
     .form-container {
         width: 95%;
         max-width: 400px;
         margin-top: 15px;
     }
     
     .input-group {
         margin-bottom: 12px;
     }
     
     .phone-input {
         font-size: 13px;
         padding: 12px 65px 12px 10px;
         height: 44px;
     }

     .area-code-select {
         font-size: 11px;
         padding: 5px 6px;
         min-width: 50px;
     }

     .password-input {
         font-size: 13px;
         padding: 12px 10px;
         height: 44px;
     }

     .captcha-input {
         font-size: 13px;
         padding: 12px 80px 12px 10px;
         height: 44px;
     }

     .captcha-code {
         font-size: 11px;
         padding: 5px 10px;
     }

     .sms-input {
         font-size: 13px;
         padding: 12px 100px 12px 10px;
         height: 44px;
     }

     .send-code-text {
         font-size: 10px;
         right: 6px;
     }

     .join-btn {
         font-size: 14px;
         padding: 12px;
         height: 44px;
         margin-top: 16px;
     }

     .agreement-container {
         margin-top: 10px;
         gap: 5px;
     }

     .agreement-radio {
         width: 18px;
         height: 18px;
     }

     .agreement-text {
         font-size: 15px;
     }
}