/* --- Global Styles & Variables --- */
:root {
    /*--primary-gradient: linear-gradient(99.25deg, #4A00E0 0.3%, #8E2DE2 100%);*/
    --primary-gradient: linear-gradient(35deg, rgb(6, 0, 151) 0%, rgb(130, 4, 255) 73%, rgb(193, 15, 255) 100%);
    --primary-yellow: #FDE047;
    --text-dark: #000000;
    --text-light: #6B7280;
    --bg-light-gray: #F9FAFB;
    --border-color: #E5E7EB;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #fff;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* --- 新增的代码在这里 --- */
    -webkit-text-size-adjust: 100%; /* 针对 WebKit (Safari, Chrome on iOS) */
    text-size-adjust: 100%;       /* 标准属性，针对未来的浏览器 */
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top:1rem;
    padding-bottom:1rem;
}

.section-padding {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 500;
    text-align: left;
    margin-top: 0;
    margin-bottom: 1rem;
}

.section-title-left {
    font-size: 2.25rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 2rem;
    text-align: left;
}

.btn {
    display: inline-block;
    font-weight: 600;
    text-decoration: none;
    border-radius: 9999px;
    padding: 0.875rem 2rem;
    transition: transform 0.2s ease-in-out;
}

.btn:hover {
    transform: scale(1.05);
}

.btn-primary {
    background-color: var(--primary-yellow);
    color: var(--text-dark);
}

/* --- Header & Navigation --- */
.header-main {
    background: var(--primary-gradient);
    color: #fff;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 3.5rem;
    padding-bottom: 1.5rem;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo .logo-icon {
    height: 53px;
    width: 53px;

    /* 设置我们想要的最终颜色（白色） */
    background-color: #fff;

    /* 指定用作蒙版的图片 (请确保这张图片是带透明背景的！) */
    -webkit-mask-image: url('/images/logo.png');
    mask-image: url('/images/logo.png');

    /* 确保蒙版图片正确显示 */
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

/* logo 和 span 的样式保持不变 */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo span {
    font-size: 1.5em;
    font-weight: 700;
    color: #fff;
}

.logo span {
    font-size: 1.5em;
    font-weight: 500;
    color: #fff; /* 确保文字也是白色的 */
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.nav-menu a:hover {
    opacity: 1;
}

.nav-icon {
    height: 1.5rem;
}

/* --- Hero Section --- */
.hero-section {
    display: flex;
    align-items: center;
    gap: 5rem;
    padding: 0rem 0;
    /* 新增/修改的样式，用于实现全宽和居中 */
    width: 70vw; /* 1. 设置宽度为视口宽度 (viewport width) */
    position: relative; /* 2. 启用相对定位 */
    left: 50%; /* 3. 将元素的左边缘移动到父容器的中心线 */
    transform: translateX(-50%); /* 4. 将元素向左平移自身宽度的50%，实现完美居中 */
}

/* 确保在桌面端隐藏移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
}

.hero-text {
    /*flex: 1;*/
    max-width: 50%;
    /*max-width: 800px;*/
    margin-left: auto;
    margin-right: auto;
}

.hero-text h1 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3em;
    margin: 0 0 1.5rem 0;
}

.hero-text p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin: 0 0 2.5rem 0;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* --- Systems Section --- */
.systems-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.system-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1rem 0 1.5rem 0;
}

.system-item p {
    color: var(--text-light);
    margin: 0;
    margin-top: 1rem;
}

.system-item img {
    height: 2.5rem;
}

/* --- Partners Section --- */
.partners-section {
    background-color: #fff;
    padding: 2.5rem 0;
    border-top: 0px solid var(--border-color);
    border-bottom: 0px solid var(--border-color);
}

.partners-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.partners-logos img {
    height: 9rem;
    /*filter: grayscale(100%);*/
    /*opacity: 0.7;*/
    transition: all 0.3s ease;
}

.partners-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- Services Section --- */
.services-section {
    /*background-color: var(--bg-light-gray);*/
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: #fff;
    border: 0px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.service-text ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-light);
}

.service-text ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.service-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4A00E0;
    font-weight: bold;
}

.service-image {
    text-align: center;
    /*margin-top: 2rem;*/
}

.service-image img {
    max-width: 100%;
    height: auto;
}

/* --- Dreams Section --- */
.dreams-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.dreams-text {
    flex: 1;
}

.dreams-text p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.dreams-image {
    flex: 1;
}

.dreams-image img {
    width: 100%;
    border-radius: 0.75rem;
}

/* --- Why Choose Us Section --- */
.choose-us-section {
    /*background-color: var(--bg-light-gray);*/
}

.choose-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: left;
}

.choose-us-item {
    background-color: #fff;
    /*padding: 2rem;*/
    margin-right: 2rem;
    border: 0px solid var(--border-color);
    border-radius: 0.75rem;
}

.choose-us-icon {
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.choose-us-icon img {
    height: 2.5rem;
}

.choose-us-item h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 2rem 0;
}

.choose-us-item p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* --- Founder Section --- */
.founder-container {
    text-align: center;
    max-width: 800px;
}

.founder-photo {
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    margin-bottom: 2rem;
    object-fit: cover;
}

.founder-bio {
    /*font-size: 1.5rem;*/
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.founder-name {
    font-weight: 600;
    color: var(--text-dark);
}

/* --- Final CTA Section --- */
.final-cta-section {
    background: var(--primary-gradient);
    color: #fff;
    padding: 5rem 0;
    min-height: 230px;
}

.cta-container {
    text-align: center;
}

.cta-container p {
    font-size: 1.875rem;
    font-weight: 600;
    margin: 0 0 2rem 0;
}

/* --- Footer --- */
.footer-main {
    background-color: #fff;
    padding: 2rem 0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    border-top: 1px solid var(--border-color);
}


/* 1. 设置父容器为定位锚点 */
.nav-wechat-item {
    position: relative;
}

/* 2. 设置二维码弹窗的样式和默认隐藏状态 */
.wechat-qrcode-popup {
    /* 默认隐藏 */
    opacity: 0;
    visibility: hidden;

    /* 定位：在父容器正下方居中 */
    position: absolute;
    top: 100%; /* 紧贴父容器底部 */
    left: 50%;
    transform: translateX(-50%) translateY(10px); /* 水平居中，并稍微向下移动一点 */
    margin-top: 15px; /* 与导航栏的间距 */

    /* 外观样式 */
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999; /* 确保在最上层显示 */

    /* 平滑过渡动画 */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 3. 设置二维码图片的样式 */
.wechat-qrcode-popup img {
    display: block; /* 移除图片下方的默认空隙 */
    width: 200px;   /* 您可以根据需要调整二维码大小 */
    height: 250px;
}

/* 4. 设置鼠标悬停在父容器上时，显示二维码弹窗 */
.nav-wechat-item:hover .wechat-qrcode-popup {
    /* 显示 */
    opacity: 1;
    visibility: visible;

    /* 动画效果：回到原始位置 */
    transform: translateX(-50%) translateY(0);
}


.hero-form-container {
    margin-top: 2.5rem;
}

.form-wrapper {
    margin-top: 2.5rem;
    /*max-width: 800px;
    margin-left: auto;
    margin-right: auto;*/
}

.contact-form {
    display: flex;
    flex-direction: column; /* 关键改动：将主轴方向改为垂直 */
    align-items: flex-start; /* 关键改动：让子项（按钮）在交叉轴上从左侧开始排列 */
    gap: 1rem; /* 设置输入框和按钮之间的垂直间距 */
    /* 移除背景、边框等包裹样式 */
}

.contact-form textarea {
    /* 将视觉样式从 form 移到 textarea 上 */
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem; /* 给输入框一个合适的圆角 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);

    /* 确保输入框占满整个宽度 */
    width: 100%;
    box-sizing: border-box; /* 确保 padding 不会撑破宽度 */

    /* 保留原有的字体、内边距等样式 */
    font-size: 1.125rem;
    padding: 0.9375rem 1.5rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    resize: none;
    outline: none;
    min-height: 54px;
}

.contact-form textarea::placeholder {
    color: #e0e2e3;
    font-size: 0.9rem;
}

.contact-form button {
    /* 按钮样式基本由 .btn 和 .btn-primary 控制，无需大改 */
    border: none;
    cursor: pointer;
}

/*弹窗*/
.modal-overlay {
    /* 默认隐藏 */
    opacity: 0;
    visibility: hidden;

    /* 固定定位，覆盖整个屏幕 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* 半透明黑色背景 */
    background-color: rgba(17, 24, 39, 0.6);

    /* 使用 Flexbox 将弹窗内容居中 */
    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 1000; /* 确保在最顶层 */

    /* 平滑过渡动画 */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 用于显示弹窗的 class */
.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #fff;
    padding: 2rem 2.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px; /* 弹窗最大宽度 */
    width: 90%;

    /* 配合 overlay 的 fade 动画，做一个缩放效果 */
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.visible .modal-content {
    transform: scale(1);
}

#modal-message {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-dark);
}

#modal-close-btn {
    min-width: 100px;
}
