/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    background-color: #f5f7fa;
    min-height: 100vh;
}

/* 横幅样式 */
.banner {
    background-color: #0079fe;
    color: white;
    padding: 20px 15px;
    text-align: center;
    position: relative;
    /* overflow: hidden; */
    height: 80px;
}

.banner .left-logo {
    position: absolute;
    top: 60%;
    left: 5%;
    transform: translateY(-50%);
    width: 200px;
}


.banner .right-logo {
    position: absolute;
    top: 92%;
    right: 10%;
    transform: translateY(-50%);
    width: 65px;
}

.banner-bottom {
    height: 10px;
    background-color: yellow;
}


/* 主表单区域 */
.main-form {
    padding: 15px;
    /* margin-top: 20px; */
}

.form-title {
    text-align: center;
    padding: 15px;
}

.form-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: #000;
}

/* 镂空渐变动态文字效果 */
.gradient-text {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(90deg, #0079fe, #00c6ff, #0079fe, #0056b3, #0079fe);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px #0079fe;
    animation: gradientFlow 3s ease infinite;
    letter-spacing: 2px;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 部分标题 */
.section {
    margin-bottom: 20px;
}

.section-header {
    background-color: #0079fe;
    padding: 12px 15px;
    border-radius: 10px 10px 0 0;
    margin-bottom: 0;
}

.section-header h3 {
    font-size: 17px;
    font-weight: 600;
    color: white;
}

/* 卡片列表 */
.card-list {
    background: white;
    border-radius: 0 0 10px 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Grid布局 - 宽屏时一行两个 */
.card-list.grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 768px) {
    .card-list.grid-layout {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .card-list.grid-layout .form-card {
        margin-bottom: 0;
    }
}

/* 表单卡片 */
.form-card {
    background: #fafbfc;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid #e8eaed;
    transition: all 0.3s ease;
}

.form-card:last-child {
    margin-bottom: 0;
}

.form-card:active {
    transform: scale(0.995);
}

/* 表单标签 */
.form-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #0079fe;
    margin-bottom: 12px;
    line-height: 1.5;
}

/* 输入框样式 - 只有下边框 */
.form-input {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 2px solid #ddd;
    font-size: 16px;
    background: transparent;
    transition: all 0.3s ease;
    outline: none;
    color: #333;
}

.form-input::placeholder {
    color: #aaa;
    font-size: 14px;
}

.form-input:focus {
    border-bottom-color: #0079fe;
}

.form-input:focus::placeholder {
    color: #ccc;
}

/* 多行输入框 */
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    resize: vertical;
    min-height: 120px;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
    line-height: 1.6;
}

.form-textarea:focus {
    border-color: #0079fe;
    box-shadow: 0 0 0 3px rgba(0, 121, 254, 0.1);
}

.form-textarea::placeholder {
    color: #aaa;
}

/* 输入行（多个输入框并排） */
.input-row {
    display: flex;
    gap: 10px;
}

.input-row .form-input {
    flex: 1;
}

.input-row.three-col .form-input {
    text-align: center;
}

/* 其他输入框 */
.other-input {
    margin-top: 10px;
}

.sub-inputs {
    margin-top: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    transition: all 0.3s ease;
    width: 100%;
    padding: 10px;
    background: #f0f4ff;
    border-radius: 8px;
    border: 1px solid #d0e0ff;
}

.sub-inputs.hidden {
    display: none;
}

.sub-inputs .inline-input {
    flex: 1;
    min-width: 60px;
    max-width: none;
}

/* 内联输入框样式 */
.radio-with-input,
.checkbox-with-input {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 2px;
    font-size: 12px;
    white-space: nowrap;
    overflow-x: auto;
}

.inline-input {
    width: auto;
    min-width: 35px;
    max-width: 80px;
    padding: 2px 4px;
    border-bottom: 1px solid #ddd;
    font-size: 12px;
    margin: 0 1px;
    flex: 0 0 auto;
}

.inline-input.small-input {
    min-width: 25px;
    width: 30px;
}

.inline-input:focus {
    border-bottom-color: #0079fe;
}

.input-suffix,
.input-prefix {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

/* 下拉选择框样式 */
.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 20px;
    cursor: pointer;
}

.form-select:focus {
    border-bottom-color: #0079fe;
}

/* 日期选择器样式 */
.date-picker {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM9 10H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm-8 4H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 25px;
    cursor: pointer;
}

/* 年月选择器样式 */
.month-picker {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM9 10H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 25px;
    cursor: pointer;
}

/* 单选按钮组 */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.radio-group.vertical {
    flex-direction: column;
    gap: 12px;
}

/* PC端单选按钮水平排列 */
@media (min-width: 768px) {
    .radio-group.vertical {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .radio-group.vertical .radio-item {
        min-width: 140px;
    }
}

.radio-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 8px 0;
}

.radio-item input[type="radio"] {
    display: none;
}

/* 圆点样式 */
.radio-dot {
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: white;
    flex-shrink: 0;
}

.radio-dot::after {
    content: '';
    width: 10px;
    height: 10px;
    background: #0079fe;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.2s ease;
}

.radio-item input[type="radio"]:checked + .radio-dot {
    border-color: #0079fe;
}

.radio-item input[type="radio"]:checked + .radio-dot::after {
    transform: scale(1);
}

.radio-text {
    font-size: 15px;
    color: #333;
}

.radio-item input[type="radio"]:checked ~ .radio-text {
    color: #0079fe;
    font-weight: 500;
}

/* 复选框组 */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-group.vertical {
    flex-direction: column;
    gap: 12px;
}

/* PC端复选框水平排列 */
@media (min-width: 768px) {
    .checkbox-group.vertical {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .checkbox-group.vertical .checkbox-item {
        min-width: 180px;
    }
}

/* 年龄段选择 - 移动端一行两个 */
.radio-group.age-range-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.radio-group.age-range-group .radio-item {
    padding: 5px 0;
}

/* PC端年龄段恢复一行显示 */
@media (min-width: 768px) {
    .radio-group.age-range-group {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }
}

/* 宽屏时增加单选/多选选项间隔 */
@media (min-width: 1024px) {
    .radio-group {
        gap: 60px;
    }

    .checkbox-group {
        gap: 60px;
    }
}

/* 协议勾选框样式 */
.agreement-card {
    background: #f8f9fa;
    border: 1px solid #e8eaed;
}

.agreement-item {
    align-items: flex-start;
    padding: 5px 0;
}

.agreement-item .checkbox-dot {
    margin-top: 2px;
}

.agreement-text {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 8px 0;
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

/* 复选框圆点样式 */
.checkbox-dot {
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 4px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: white;
    flex-shrink: 0;
}

.checkbox-dot::after {
    content: '✓';
    font-size: 14px;
    color: white;
    transform: scale(0);
    transition: transform 0.2s ease;
}

.checkbox-item input[type="checkbox"]:checked + .checkbox-dot {
    border-color: #0079fe;
    background: #0079fe;
}

.checkbox-item input[type="checkbox"]:checked + .checkbox-dot::after {
    transform: scale(1);
}

.checkbox-text {
    font-size: 15px;
    color: #333;
}

.checkbox-item input[type="checkbox"]:checked ~ .checkbox-text {
    color: #0079fe;
    font-weight: 500;
}

/* 确认卡片 */
.confirmation-card {
    background: white;
    border-radius: 0 0 10px 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.confirmation-card p {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
}

/* 日期区域 */
.date-section {
    margin-top: 15px;
}

/* 百万计划 */
.million-plan {
    text-align: center;
    margin: 25px 0;
    padding: 20px 15px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 100%);
    border-radius: 12px;
    border: 2px dashed #0079fe;
}

.million-plan-title {
    font-size: 18px;
    font-weight: 700;
    color: #0079fe;
    letter-spacing: 1px;
}

/* 最终标语 */
.final-slogan {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #0079fe;
    margin: 25px 0;
    padding: 15px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 10px;
    border: 1px solid #a5d6a7;
}

/* 联系我们 */
.contact-section {
    position: fixed;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: calc(100% - 30px);
    max-width: 400px;
    text-align: center;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #0079fe;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    animation: pulseScale 2s ease-in-out infinite;
    transition: all 0.3s ease;
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
}

.contact-btn:hover {
    transform: scale(1.05);
}

.contact-btn:active {
    transform: scale(0.95);
}

.contact-btn i {
    font-size: 14px;
    color: #0079fe;
}

/* 放大缩小动效 */
@keyframes pulseScale {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

/* 提交按钮 */
.submit-section {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: calc(100% - 30px);
    max-width: 400px;
    text-align: center;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #0079fe 0%, #0056b3 50%, #0079fe 100%);
    background-size: 200% 100%;
    color: white;
    border: 3px solid transparent;
    padding: 16px 30px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(0, 121, 254, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 跑道内圈效果 */
.submit-btn::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 2px dashed rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    pointer-events: none;
}

/* 流光动画效果 */
.submit-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: trackFlow 2s linear infinite;
}

@keyframes trackFlow {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.submit-btn:hover {
    background-position: 100% 0;
    box-shadow: 
        0 6px 20px rgba(0, 121, 254, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}

.submit-btn:active {
    transform: translateY(2px) scale(0.98);
    box-shadow: 
        0 2px 8px rgba(0, 121, 254, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    animation: none;
}

.submit-btn:disabled::after {
    animation: none;
}

/* 弹窗样式 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 320px;
    width: 90%;
    text-align: center;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: white;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.modal-text {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 25px;
}

.modal-btn {
    width: 100%;
    padding: 14px 24px;
    background: #0079fe;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    background: #0056b3;
}

/* 底部间距，避免被固定按钮遮挡 */
.form-bottom-spacing {
    height: 100px;
}

/* 平板适配 */
@media (min-width: 768px) {
    .container {
        max-width: 100%;
    }
    
    .banner {
        height: 120px;
    }
    
    .banner .left-logo {
        width: 300px;
    }
    
    .banner .right-logo {
        width: 100px;
    }
    
    .main-form {
        padding: 20px 40px;
    }
    
    .form-title h2 {
        font-size: 26px;
    }
    
    .section-header h3 {
        font-size: 18px;
    }
    
    .form-card {
        padding: 20px;
    }
    
    .form-label {
        font-size: 16px;
    }
}

/* PC端宽屏适配 */
@media (min-width: 1024px) {
    .container {
        max-width: 100%;
    }
    
    .banner {
        height: 150px;
    }
    
    .banner .left-logo {
        width: 380px;
    }
    
    .banner .right-logo {
        width: 120px;
    }
    
    .main-form {
        padding: 30px 60px;
    }
    
    .form-title h2 {
        font-size: 28px;
    }
    
    .section-header {
        padding: 15px 20px;
    }
    
    .section-header h3 {
        font-size: 20px;
    }
    
    .card-list {
        padding: 20px;
    }
    
    .form-card {
        padding: 25px;
        margin-bottom: 15px;
    }
    
    .form-label {
        font-size: 17px;
    }
    
    .form-input {
        font-size: 17px;
    }
    
    .radio-text,
    .checkbox-text {
        font-size: 16px;
    }
    
    .submit-btn {
        max-width: 500px;
        padding: 18px 50px;
        font-size: 20px;
    }

    /* PC端盈利模型计算器适配 */
    .profit-calculator-section {
        max-width: 900px;
        margin: 40px auto 0;
    }

    .submit-btn {
        max-width: 500px;
        padding: 18px 50px;
        font-size: 20px;
    }
}

/* 大屏幕PC适配 */
@media (min-width: 1440px) {
    .container {
        max-width: 100%;
    }
    
    .banner {
        height: 180px;
    }
    
    .banner .left-logo {
        width: 450px;
    }
    
    .banner .right-logo {
        width: 150px;
    }
    
    .main-form {
        padding: 40px 80px;
    }
    
    .form-title h2 {
        font-size: 32px;
    }
    
    .section-header {
        padding: 18px 25px;
    }
    
    .section-header h3 {
        font-size: 22px;
    }
    
    .card-list {
        padding: 25px;
    }
    
    .form-card {
        padding: 30px;
        margin-bottom: 20px;
    }
    
    .form-label {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .form-input {
        font-size: 18px;
        padding: 15px 0;
    }
    
    .radio-text,
    .checkbox-text {
        font-size: 17px;
    }
    
    .radio-item,
    .checkbox-item {
        padding: 10px 0;
    }
    
    .form-textarea {
        min-height: 150px;
        font-size: 17px;
    }
}

/* 小屏幕手机适配 */
@media (max-width: 375px) {
    .main-form {
        padding: 10px;
    }
    
    .form-card {
        padding: 12px;
    }
    
    .form-label {
        font-size: 14px;
    }
    
    .form-input {
        font-size: 15px;
    }
    
    .radio-text,
    .checkbox-text {
        font-size: 14px;
    }
    
    .banner-title h1 {
        font-size: 18px;
    }
    
    .brand-logo {
        font-size: 24px;
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .banner {
        padding: 10px 15px;
    }
    
    .banner-title h1 {
        font-size: 18px;
        margin-bottom: 4px;
    }
    
    .brand-logo {
        font-size: 22px;
    }
}
