/* 1. 声明阿里巴巴普惠粗体 */
@font-face {
  font-family: "AlibabaPuHuiTi"; /* 自定义字体名称 */
  /* 从css目录出发，返回上级目录再进入fonts文件夹找到字体文件 */
  src: url("./static/fonts/ALIBABA-PUHUITI-BOLD.OTF") format("opentype");
  font-weight: 700; /* 标注为粗体字重 */
  font-style: normal;
  font-display: swap; /* 优化加载，避免空白闪烁 */
}

/* 2. 声明阿里妈妈方圆体粗体 */
@font-face {
  font-family: "AlimamaFangYuanTi"; /* 自定义字体名称 */
  src: url("./static/fonts/阿里妈妈方圆体 Bold.ttf") format("truetype");
  font-weight: 700; /* 标注为粗体字重 */
  font-style: normal;
  font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background: #f0f8ff url(./static/images/bg-page.jpg) center/cover no-repeat;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}
/* 左上角品牌logo 只保留图片 */
.brand-logo {
    position: absolute;
    top: 30px;
    left: 60px;
    display: flex;
    align-items: center;
}
.brand-logo__icon {
    width: 163px;
    height: 70px;
    background: url(./static/images/logo.png) center/contain no-repeat;
}
/* 右上角语言切换 样式修正 */
.lang-switch {
    position: absolute;
    top: 35px;
    right: 30px;
    font-size: 20px;
}
.lang-item {
    cursor: pointer;
    transition: all 0.2s ease;
    /* 未选中默认黑色 */
    color: #333333;
    text-decoration: none;
}
.lang-item.active {
    /* 选中状态蓝色 */
    color: #348fe2;
}
.lang-divider {
    margin: 0 6px;
    color: #999;
}


/* 主内容区文字样式，宽度调整为30% */
.main-content {
    position: absolute;
    top: 40%;
    left: 15%;
    transform: translateY(-50%);
    width: 40%;
    /* 保留容器整体垂直居中，给标语预留出下移空间 */
    padding-bottom: 80px;
}

/* 蓝擎 · 产业智脑 主标题：完全锁死位置，不会移动 */
.main-title {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 91px;
    font-family: "AlimamaFangYuanTi", sans-serif;
    font-weight: 700;
    background: linear-gradient(5deg, #0052d9 0%, #68c6ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0;
    text-align: justify;
    text-justify: inter-ideograph;
    -webkit-text-align-last: justify;
    text-align-last: justify;
    letter-spacing: 3px;
}

/* 全生命周期产业招商智能体 副标题：固定位置，不会上移 */
.sub-title {
    position: absolute;
    top: 130px; /* 68px主标题高度 + 40px原有间距，锁死副标题位置 */
    left: 0;
    font-size: 31px;
    color: #4a5568;
    font-family: "AlimamaFangYuanTi", sans-serif;
    font-weight: 500;
    text-align: justify;
    text-justify: inter-ideograph;
    -webkit-text-align-last: justify;
    text-align-last: justify;
    letter-spacing: 26px;
}

/* 蓝创众合品牌基因 · 驱动园区招商增长引擎：单独定位，可自由调整位置不影响上方 */
.main-content .tagline {
    position: absolute;
    /* 修改这个top值就能自由下移标语，完全不碰上方文字 */
    top: 450px; /* 108px(主+副高度)+48px(间距)，需要更大间距就直接增大这个数 */
    left: 0;
    margin: 0;
    padding: 0;
	font-family: "AlibabaPuHuiTi", sans-serif;
    font-size: 18px;
    color: rgba(255,255,255,9);
    letter-spacing: 13px;
    text-align: justify;
    text-justify: inter-ideograph;
    -webkit-text-align-last: justify;
    text-align-last: justify;
}


/* 登录注册按钮组 */
.action-group {
    position: absolute;
    top: 50%;
    right: 16%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.action-btn {
    width: 300px;
    height: 120px;
    border-radius: 8px;
    background: url(./static/images/btn-bg.png) center/cover no-repeat;;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.action-btn:hover {
    border-color: #348fe2;
    box-shadow: 0 4px 12px rgba(52, 143, 226, 0.15);
}
.action-btn__icon {
    position: relative;
}

/* 登录按钮自定义icon */
.login .action-btn__icon {
    width: 70px;
    height: 70px;
    border: none;
    background: url(./static/images/login-icon.png) center/contain no-repeat;
}
.login .action-btn__icon::before,
.login .action-btn__icon::before {
    content: none;
}

/* 注册按钮自定义icon */
.register .action-btn__icon {
    width: 70px;
    height: 70px;
    border: none;
    background: url(./static/images/register-icon.png) center/contain no-repeat;
}
.register .action-btn__icon::before,
.register .action-btn__icon::after {
    content: none;
}

.action-btn__text {
    text-align: left;
}
.action-btn__text h3 {
    font-size: 30px;
    color: #348fe2;
    font-weight: 500;
    line-height: 1.3;
}
.action-btn__text p {
    font-size: 20px;
    color: #94a3b1;
}
/* 底部渐变山峦改为图片 */
.footer-tagline {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    letter-spacing: 10px;
}


/* 弹窗蒙层 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: flex-end;
    padding-right: 16%;
}
/* 弹窗主体 */
.phone-modal {
    background: #ffffff;
    border-radius: 32px;
    border: 2px solid #64c0f8;
    padding: 60px 50px;
    position: relative;
    animation: modalScale 0.3s ease forwards;
}
@keyframes modalScale {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}
/* 弹窗标题 */
.modal-title {
    font-size: 48px;
    color: #333333;
    font-weight: 500;
    margin-bottom: 50px;
}
/* 表单组样式 */
.modal-form-group {
    margin-bottom: 80px;
}
.modal-form-group label {
    display: block;
    font-size: 32px;
    color: #333333;
    margin-bottom: 25px;
}
.modal-form-group input {
    width: 100%;
    height: 80px;
    border-radius: 40px;
    background: #f5f5f5;
    border: none;
    outline: none;
    padding: 0 30px;
    font-size: 24px;
}
/* 提交按钮 */
.modal-submit-btn {
    width: 100%;
    height: 80px;
    border-radius: 40px;
    background: linear-gradient(90deg, #165DFF 0%, #64c0f8 100%);
    border: none;
    color: #ffffff;
    font-size: 36px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.modal-submit-btn:hover {
    opacity: 0.9;
}
/* 关闭按钮 */
.modal-close {
    position: absolute;
    top: 25px;
    right: 30px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
}
.modal-close:hover {
    opacity: 1;
}
.modal-close::before,
.modal-close::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: #666;
    top: 50%;
    left: 0;
    transform: rotate(45deg);
}
.modal-close::after {
    transform: rotate(-45deg);
}

/* 响应式适配 */
/* 适配移动端断点（对应之前修复竖向排列的1024px断点） */
@media screen and (max-width: 1400px) {
    .main-content .tagline {
        font-size: 14px;
        letter-spacing: 7px;
        /* 保留两端对齐，小屏自动适配不会竖向排列 */
        text-align: justify;
        text-align-last: justify;
    }

    .main-content {
        left: 50%;
        transform: translate(-50%, -80%);
        width: 70%;
    }
    .main-title {
        font-size: 60px;
        letter-spacing: 4px;
        text-align: left;
        text-justify: auto;
        -webkit-text-align-last: auto;
        text-align-last: auto;
    }
    .sub-title {
        font-size: 20px;
        letter-spacing: 19px;
        text-align: left;
        text-justify: auto;
        -webkit-text-align-last: auto;
        text-align-last: auto;
    }
    .action-group {
        /* top: auto;
        right: 50%;*/
        bottom: 85px;
        /* transform: translateX(50%);*/
        flex-direction: column;
    }
    .action-btn {
        width: 300px;
       /* height: 100px;*/
        gap: 20px;
    }
    .action-btn__icon {
        width: 60px;
        height: 60px;
    }
    .action-btn__text h3 {
        font-size: 28px;
    }
    .action-btn__text p {
        font-size: 18px;
    }

    .modal-overlay {
        padding-right: 0;
        justify-content: center;
        align-items: center;
    }
    .phone-modal {
        padding: 40px 25px;
    }
    .modal-title {
        font-size: 32px;
        margin-bottom: 30px;
    }
    .modal-form-group label {
        font-size: 24px;
    }
    .modal-form-group input {
        height: 60px;
        font-size: 18px;
    }
    .modal-submit-btn {
        height: 60px;
        font-size: 24px;
    }
}

/* 适配最小屏640px断点 */
@media screen and (max-width: 640px) {
    .brand-logo {
        top: 15px;
        left: 20px;
    }
    .brand-logo__icon {
        width: 121px;
        height: 52px;
    }
    .lang-switch {
        top: 20px;
        right: 15px;
    }
    .main-content {
        position: absolute;
        top: 40%;
        left: 15%;
        transform: translateY(-50%);
        padding-bottom: 80px;
    }
    .main-title {
        font-size: 32px;
        text-align: left;
    }
    .sub-title {
		top:70px;
        font-size: 16px;
        text-align: left;
		letter-spacing: 6px;
    }
    .main-content .tagline {
        font-size: 11px;
        letter-spacing: 1.5px;
		top: 120px;
    }
	
	 .action-group {
        top: auto;
        right: 50%;
        bottom: 150px;
        transform: translateX(50%);
        flex-direction: column;
    }
    .action-btn {
        width: 128px;
        height: 48px;
    }
    .phone-modal {
        width: 92%;
        padding: 40px 25px;
    }
	.login .action-btn__icon {
		width: 35px;
		height: 35px;
	}
	.register .action-btn__icon {
		width: 35px;
		height: 35px;
	}
	
	.action-btn__text h3 {
        font-size: 16px;
    }
	.action-btn__text p {
        font-size: 12px;
    }
}
	
}
