/* ==================== CSS 变量定义 ==================== */
:root {
    /* 品牌色 */
    --line-green: #06C755;
    --white: #ffffff;
    --black: #111111;
    
    /* 视觉效果 */
    --glass: rgba(255, 255, 255, 0.15);
    --ease-wipe: cubic-bezier(0.77, 0, 0.175, 1);
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* 文本色 */
    --text-black: #111111;
    --text-gray: #666;
    
    /* 背景色 */
    --card-white: #ffffff;
    --bg-footer: #f9f9f9;
}

/* ==================== 全局重置与基础设置 ==================== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft YaHei", sans-serif;
    background: #fff;
    color: var(--black);
    -webkit-font-smoothing: antialiased;
    
    /* 使用 flex 布局确保页脚始终在底部 */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.page-light .lang-btn{color: var(--black); }

.page-light .header .nav__link {
    color: var(--black);
}
/* ==================== 导航栏 (Header) ==================== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.5s var(--ease-out);
    padding: 0 60px;
}

/* 滚动后导航栏样式 */
.header--scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* 导航容器：三段式布局 */
.nav {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 100px 1fr 200px;
    align-items: center;
}

/* Logo 样式 */
.logo svg { 
    width: 84px; 
    fill: var(--white); 
    transition: fill 0.4s; 
}
.header--scrolled .logo svg { 
    fill: var(--line-green); 
}

/* 导航菜单 - 居中 */
.nav__menu {
    display: flex;
    justify-content: center;
    gap: 40px;
    list-style: none;
}

.nav__link {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s;
}
.header--scrolled .nav__link { 
    color: var(--black); 
}
.nav__link:hover { 
    color: var(--line-green) !important; 
}

/* 右侧语言切换区域 */
.nav__right { 
    display: flex; 
    justify-content: flex-end; 
}

.lang-selector { 
    position: relative; 
    cursor: pointer; 
    padding: 10px 0; 
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s;
}

.header--scrolled .lang-btn { 
    color: var(--black); 
}

.lang-btn svg { 
    width: 18px; 
    fill: currentColor; 
}

/* 语言下拉菜单 */
.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 160px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s var(--ease-out);
}
.lang-selector:hover .lang-dropdown { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
}
.lang-dropdown a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--black);
    font-size: 14px;
    transition: 0.2s;
}
.lang-dropdown a:hover { 
    color: var(--line-green); 
    background: #f9f9f9; 
}

/* ==================== 主视觉 Hero ==================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
}

/* 背景图片容器 */
.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transform: scale(1.15); /* 初始放大效果 */
    transition: transform 0.1s linear;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

/* 内容容器 - 居左对齐 */
.hero__container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.hero__content { 
    max-width: 710px; 
}

/* 擦拭文字动画效果 */
.wipe-text {
    clip-path: inset(0 100% 0 0);
    display: block;
    color: var(--white);
}

.hero__title {
    font-size: clamp(48px, 6vw, 84px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.hero__subtitle {
    font-size: clamp(18px, 1.5vw, 22px);
    margin-top: 20px;
    font-weight: 400;
    opacity: 0.9;
}

/* 激活动画 */
.is-active .wipe-text { 
    animation: wipeReveal 1.2s var(--ease-wipe) forwards; 
	text-transform: uppercase;
}
.is-active .hero__subtitle { 
    animation-delay: 0.3s; 
}

@keyframes wipeReveal {
    from { 
        clip-path: inset(0 100% 0 0); 
        transform: translateX(-30px); 
    }
    to { 
        clip-path: inset(0 0 0 0); 
        transform: translateX(0); 
    }
}

/* ==================== 下载通道矩阵 ==================== */
.download-matrix {
    margin-top: 50px;
    display: flex;
    gap: 16px;
    opacity: 0;
    transform: translateY(30px);
}

.is-active .download-matrix {
    animation: fadeInUp 0.8s var(--ease-out) forwards 0.8s;
}

.dl-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s ease;
}

.dl-card:hover {
    background: var(--line-green);
    border-color: var(--line-green);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(6, 199, 85, 0.4);
}

.dl-card svg { 
    width: 24px; 
    height: 24px; 
    fill: currentColor; 
}

.dl-info { 
    display: flex; 
    flex-direction: column; 
}
.dl-info span:first-child { 
    font-size: 11px; 
    opacity: 0.8; 
    text-transform: uppercase; 
}
.dl-info span:last-child { 
    font-size: 16px; 
    font-weight: 700; 
}

@keyframes fadeInUp {
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* ==================== 交互按钮样式 ==================== */
.btn-group { 
    display: flex; 
    gap: 12px; 
    align-items: center; 
}

.btn-link {
    height: 46px;
    padding: 0 22px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-black);
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    transition: var(--transition);
}

.btn-link:hover {
    border-color: var(--line-green);
    color: var(--line-green);
}

.square-btn {
    width: 46px;
    padding: 0;
    justify-content: center;
    font-size: 18px;
}

/* ==================== 装饰中轴线布局 ==================== */
.page-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.page-wrapper::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    border-left: 1px dashed #e5e5e5;
    z-index: 0;
}

/* 核心布局区块 */
.section-item {
    display: flex;
    align-items: center;
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-item.reverse { 
    flex-direction: row-reverse; 
}

/* 文字内容区 */
.content-wrap {
    flex: 1;
    padding: 0 6%;
}

.icon-main {
    width: 60px;
    height: 60px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 32px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.brand-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
	text-transform: uppercase;
}

.slogan {
    font-size: 20px;
    color: var(--line-green);
    font-weight: 600;
    margin-bottom: 22px;
}

.description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 35px;
    max-width: 450px;
}

/* 视觉媒体区 */
.visual-wrap {
    flex: 1.2;
    position: relative;
    padding: 0 30px;
}

.main-card-img {
    width: 100%;
    border-radius: 6px;
    display: block;
}

.mockup-phone {
    position: absolute;
    width: 40%;
    bottom: -40px;
    filter: drop-shadow(0 25px 40px rgba(0,0,0,0.2));
    transition: var(--transition);
    z-index: 10;
}

/* 定位适配 */
.section-item:not(.reverse) .mockup-phone { 
    right: 20px; 
}
.section-item.reverse .mockup-phone { 
    left: 50%; 
    transform: translateX(-50%); 
}

/* ==================== 功能展示区域 ==================== */
.main-layout-container {
    background-color: #f7f8f9;
    padding: 80px 0;
    width: 100%;
}

.intro-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

/* 标题与描述 */
.intro-section h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
	text-transform: uppercase;
}

.intro-section .sub-desc {
    font-size: 17px;
    color: #666;
    max-width: 700px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

/* 网格布局 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 40px;
    justify-items: center;
}

.feature-card {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 图片容器 */
.image-box {
    width: 100%;
    aspect-ratio: 16 / 10; /* 固定宽高比 */
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.image-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 卡片文字信息 */
.card-info {
    margin-top: 24px;
    text-align: center;
}

.card-info h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111;
}

.card-info p {
    font-size: 15px;
    color: #888;
    line-height: 1.5;
    padding: 0 10px;
}

/* ==================== Banner 区域 ==================== */
.hero-banner {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    background-color: #000;
}

/* 背景层使用伪元素实现 */
.hero-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=1600');
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

/* 鼠标悬停放大效果 */
.hero-banner:hover::before {
    transform: scale(1.1);
}

/* 文字层 */
.hero-title {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: clamp(24px, 5vw, 42px);
    font-weight: 700;
    letter-spacing: 6px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    font-family: "PingFang TC", "Microsoft YaHei", sans-serif;
    pointer-events: none; /* 防止文字阻挡鼠标事件 */
}

/* ==================== 卡片网格布局 ==================== */
.content-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-bottom: 100px;
}

.kakao-card {
    background: var(--card-white);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.kakao-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); 
}

.card-text {
    padding: 32px 28px;
    flex-grow: 1;
    background-color: #fff;
}

.card-tag-row { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    margin-bottom: 20px; 
}
.tag-icon { 
    width: 28px; 
    height: 28px; 
    background: #f0f0f0; 
    border-radius: 6px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 12px; 
}
.tag-label { 
    background: #f5f5f5; 
    padding: 4px 12px; 
    border-radius: 6px; 
    font-size: 12px; 
    font-weight: 700; 
    color: #555; 
}

.card-title { 
    font-size: 22px; 
    font-weight: 800; 
    line-height: 1.4; 
    margin-bottom: 10px; 
}
.card-sub { 
    font-size: 14px; 
    color: #777; 
    margin-bottom: 20px; 
}
.card-hash { 
    font-size: 13px; 
    color: #bbb; 
}

.card-media { 
    width: 100%; 
    height: 220px; 
    position: relative; 
}
.card-media img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
}

/* ==================== 页脚 ==================== */
.line-footer {
    background: #ffffff;
    padding: 40px 0 60px;
    border-top: 1px solid #eeeeee;
    width: 100%;
    margin-top: auto; /* 确保页脚在页面底部 */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 顶部行：下载渠道与 Family Sites */
.footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid #f2f2f2;
    margin-bottom: 30px;
}

.download-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.footer-logo {
    width: 36px;
    height: 36px;
    margin-right: 10px;
}

.store-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-black);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: var(--transition);
}
.store-item:hover { 
    color: var(--line-green); 
}

/* Family Sites 下拉菜单 */
.popover-container { 
    position: relative; 
}

.popover-trigger {
    background: #f5f5f5;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}
.popover-trigger:hover { 
    background: #ededed; 
}

.popover-trigger i {
    font-size: 10px;
    color: #bbb;
    transition: transform 0.3s ease;
}

/* 鼠标悬停效果 */
.popover-container:hover .popover-trigger i {
    transform: rotate(45deg);
    color: var(--line-green);
}

.popover-menu {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    width: 200px;
    background: #f5f5f5;
    border-radius: 18px;
    padding: 12px 0;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.popover-container:hover .popover-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-link {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: 0.2s;
}
.menu-link:hover {
    color: var(--text-black);
    background: rgba(0,0,0,0.02);
}

/* 底部行：版权与社交图标 */
.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-group {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    font-size: 13px;
}

.copyright { 
    color: #bbb; 
    font-weight: 400; 
}

.legal-link {
    color: var(--text-black);
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}
.legal-link:hover { 
    color: var(--line-green); 
}

.social-icons {
    display: flex;
    gap: 20px;
    font-size: 20px;
    color: #333;
}
.social-icons i { 
    cursor: pointer; 
    transition: color 0.2s; 
}
.social-icons i:hover { 
    color: var(--line-green); 
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 900px) {
    .nav__menu { 
        display: none; 
    }
    .header { 
        padding: 0 24px; 
    }
    .hero__container { 
        padding: 0 24px; 
    }
    .download-matrix { 
        flex-direction: column; 
        width: fit-content; 
    }
}

@media (max-width: 768px) {
    /* 功能网格单列显示 */
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .intro-section h1 { 
        font-size: 32px; 
    }
    .feature-card { 
        max-width: 100%; 
    }
    
    /* Banner 高度调整 */
    .hero-banner { 
        height: 200px; 
    }
    
    /* 页脚布局调整 */
    .footer-top-row { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 25px; 
    }
    .popover-container { 
        width: 100%; 
    }
    .popover-trigger { 
        width: 100%; 
        justify-content: space-between; 
    }
    .footer-bottom-row { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 20px; 
    }
}

@media (max-width: 850px) {
    /* 卡片网格单列显示 */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}