/* 基础样式，保证各浏览器兼容 */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    background-color: #fff;
    background-image: url("https://novelapi-m3u8.vndok.online/uploads/20260318/67d92aa7b609ce34c43be2658a7fed10.webp");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
}

/* 链接基础样式 */
a {
    text-decoration: none;
}

/* 最外层页面布局，参考悦阅读书整体宽度 */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    padding: 24px 7% 0;
    margin-bottom: 35px;
}

.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 245px;
    height: 92px;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
}

/* 语言选择下拉样式，紧跟 logo 右侧，使用自定义组件而非系统 select */
.lang-switch {
    margin-left: auto;
    position: relative;
}

.lang-toggle {
    padding: 6px 30px 6px 14px;
    border-radius: 999px;
    border: 2px solid #22d3ee;
    background-color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    color: #111827;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.lang-label {
    white-space: nowrap;
}

.lang-arrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #111827;
    margin-left: 4px;
}

.lang-toggle.is-open .lang-arrow {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    right: 0;
    top: 120%;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background-color: rgba(255, 255, 255, 0.98);
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
    min-width: 120px;
    font-size: 12px;
    display: none;
    z-index: 20;
}

.lang-menu.is-open {
    display: block;
}

.lang-menu li {
    padding: 6px 14px;
    cursor: pointer;
    white-space: nowrap;
}

.lang-menu li:hover {
    background-color: rgba(34, 211, 238, 0.1);
}

.lang-menu li.is-active {
    color: #06b6d4;
}

@media (max-width: 768px) {
    .lang-toggle {
        font-size: 11px;
        padding: 4px 24px 4px 10px;
    }
}

.main {
    flex: 1;
    padding: 10px 7% 56px;
    padding-bottom: 160px;
}

.hero {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.hero-image {
    width: 504px;
    text-align: center;
    margin-bottom: 120px;
    padding-top: 80px;
}
.hero-image img{
    width: 397px;
    height: 145px;
}

.hero-top {
    margin-bottom: 120px;
}

.hero-left {
    flex: 0 0 40%;
}

.hero-title {
    font-size: 28px;
    line-height: 1.4;
    margin: 0 0 32px;
}

.download-group {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.download-btn img {
    /* 桌面端保持最大宽度，自动等比缩放，避免在小屏拉伸变形 */
    max-width: 440px;
    width: 100%;
    height: auto;
    display: block;
}

.hero-right {
    flex: 0 0 42%;
    display: flex;
    justify-content: flex-start;
    /* 让右侧手机整体比左侧文案稍微高一点 */
    margin-top: -50px;
}

.hero-phone-main {
    /* 放大手机图尺寸，更接近原设计 */
    max-width: 536px;
    width: 100%;
}

.hero-bottom {
    align-items: center;
}

.intro-left {
    flex: 0 0 42%;
    display: flex;
    justify-content: center;
}

.intro-phone {
    max-width: 390px;
    width: 100%;
}

.intro-right {
    flex: 1;
    margin-left: 100px;
        margin-top: -100px;
}

.intro-heading {
    margin: 0 0 16px;
    font-size: 50px;
    line-height: 1.5;
}

.intro-text {
    margin: 0;
    font-size: 30px;
    line-height: 1.8;
    margin-top: 40px;
}

.footer {
    padding: 16px 7% 24px;
    text-align: center;
    font-size: 12px;
    color: #4b5563;
}

@media (max-width: 960px) {
    .header {
        padding-inline: 5%;
    }

    .main {
        padding-inline: 5%;
    }

    .hero {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    .hero-top {
        margin-bottom: 60px;
    }
    .hero-left,
    .hero-right,
    .intro-left,
    .intro-right {
        flex: 1 1 auto;
    }

    /* 手机端让右侧手机整体下移，避免顶得太高 */
    .hero-right {
        margin-top: 50px;
    }

    /* 手机端调整底部文字区域位置：左移 20px，下移 30px */
    .intro-right {
        margin-left: -10px;
        margin-top: 30px;
    }

    .download-group {
        align-items: center;
    }

    .hero-bottom {
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .download-btn img {
        max-width: 220px;
        width: 100%;
        height: auto;
    }
}