/* ========== 基础重置 & 全局 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: #f3ebd8;
    color: #111;
    font-family: 'Roboto', 'Noto Serif', serif;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; height: auto; }
.wrapper { width: 1350px; max-width: 100%; margin: 0 auto; position: relative; padding: 0 20px; }

/* ========== 关键帧动画 ========== */
@keyframes fadeUp { 0% { opacity: 0; transform: translateY(32px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes slideInLeft { 0% { opacity: 0; transform: translateX(-50px); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { 0% { opacity: 0; transform: translateX(50px); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2); transform: translate(-50%, -50%) scale(1); }
    50% { box-shadow: 0 0 0 16px rgba(0, 0, 0, 0.04); transform: translate(-50%, -50%) scale(1.04); }
    100% { box-shadow: 0 0 0 28px rgba(0, 0, 0, 0); transform: translate(-50%, -50%) scale(1); }
}
@keyframes floatSoft { 0% { transform: translateY(0px); } 50% { transform: translateY(-12px); } 100% { transform: translateY(0px); } }

/* ========== 图片基础动效 ========== */
.img-box {
    display: block; overflow: hidden; position: relative;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s ease;
    border-radius: 8px;
}
.img-box img {
    width: 100%; height: 100%; object-fit: contain; display: block;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.img-box:hover img { transform: scale(1.04); }
.img-box:hover { box-shadow: 0 28px 45px -18px rgba(0, 0, 0, 0.22); }

/* ========== 导航栏 ========== */
header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 24px 40px; font-size: 15px; width: 100%;
    position: fixed; top: 0; left: 0; z-index: 100;
    font-family: 'Roboto', sans-serif; animation: fadeIn 1s ease forwards;
    opacity: 0; animation-delay: 0.05s; background: #f3ebd8;
}
.logo {
    font-weight: 900; font-size: 20px; letter-spacing: 0.2px;
    transition: letter-spacing 0.3s ease, opacity 0.3s ease;
    background: linear-gradient(135deg, #111 0%, #3a3a3a 100%);
    -webkit-background-clip: text; 
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo:hover { letter-spacing: 1.2px; opacity: 0.8; }
.nav-menu { display: flex; gap: 32px; align-items: center; }
.nav-menu li { display: flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 500; position: relative; }
.nav-menu a { display: flex; align-items: center; gap: 6px; color: inherit; transition: color 0.3s ease; }
.nav-menu a:hover { color: #0d52d6; }

.auth-section { display: flex; align-items: center; gap: 28px; }
.auth-section a { position: relative; transition: color 0.3s ease; }
.auth-section a:hover { color: #0d52d6; }
.btn-signup {
    background-color: #0d52d6; color: #ffffff; padding: 10px 20px; border-radius: 4px;
    font-weight: 600; font-size: 14px; letter-spacing: 0.3px; position: relative;
    overflow: hidden; transition: background-color 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
}
.btn-signup:hover { background-color: #0a3faf; transform: translateY(-2px); box-shadow: 0 8px 22px -6px rgba(13, 82, 214, 0.45); }

/* ========== 字体排版 ========== */
h1, h2, h3, p, .action-text, .banner-title, .logo, .nav-menu, .auth-section, button, input, footer {
    font-family: 'Roboto', 'Noto Serif', sans-serif;
}
h1 { font-size: 64px; font-weight: 900; line-height: 1.08; letter-spacing: -1.5px; margin-bottom: 28px; }
h2 { font-size: 46px; font-weight: 700; line-height: 1.15; letter-spacing: -1px; margin-bottom: 20px; }
h3 { font-size: 32px; font-weight: 700; margin-bottom: 20px; }
p { font-size: 19px; color: #222; line-height: 1.65; margin-bottom: 28px; }

/* ========== 全局页面高度 (桌面端 100vh) ========== */
main > section {
    height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    margin-bottom: 0; 
    position: relative; 
    padding: 0 20px; 
    overflow: hidden; 
}

/* ========== 第一页 Hero ========== */
.hero {
    padding-top: 80px; 
    padding-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center; 
    gap: 5%;
}
.hero-left { width: 50%; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-left h1 { animation: fadeUp 0.9s forwards; opacity: 0; animation-delay: 0.2s; }
.hero-left p { animation: fadeUp 0.9s forwards; opacity: 0; animation-delay: 0.35s; text-align: center; }
.hero-form { display: flex; margin-top: 30px; gap: 16px; animation: fadeUp 0.9s forwards; opacity: 0; animation-delay: 0.5s; justify-content: center; }
.hero-form input {
    padding: 16px 20px; border: 1px solid #888; background-color: rgba(255, 255, 255, 0.4);
    border-radius: 4px; width: 320px; font-size: 15px; color: #111; outline: none;
}
.hero-form button {
    background-color: #0d52d6; color: #fff; border: none; padding: 16px 28px; border-radius: 4px;
    font-weight: 600; font-size: 15px; cursor: pointer;
}
.hero-form button:hover { background-color: #0a3faf; }
.hero-right { width: 35%; display: flex; flex-direction: column; gap: 40px; animation: fadeIn 1.2s forwards; opacity: 0; animation-delay: 0.6s; align-items: flex-start; }
.action-item { display: flex; align-items: center; gap: 24px; cursor: pointer; width: 100%; max-width: 280px; }
.action-item:hover { transform: translateX(10px); transition: transform 0.4s ease; }
.black-circle { width: 64px; height: 64px; background-color: #000; border-radius: 50%; display: flex; justify-content: center; align-items: center; flex-shrink: 0; }
.action-item:hover .black-circle { background-color: #0d52d6; transition: background-color 0.3s; }
.black-circle svg { width: 26px; height: 26px; fill: #fff; }
.action-text { font-size: 24px; font-weight: 700; line-height: 1.15; text-align: left; }

/* ========== 其他内容区块 ========== */
.preserve, .dialect, .stories, .folk, .video-section, .bottom-banner {
    display: flex; justify-content: space-between; align-items: center; width: 100%;
}

.preserve-left { width: 48%; animation: slideInLeft 1s forwards; opacity: 0; animation-delay: 0.25s; }
.preserve-img-box { width: 48%; height: 420px; animation: slideInRight 1s forwards; opacity: 0; animation-delay: 0.35s; }

.dialect-text { width: 50%; padding-right: 20px; animation: slideInLeft 1s forwards; opacity: 0; animation-delay: 0.25s; }
.dialect-img-box { width: 420px; height: 420px; max-width: 46%; border-radius: 50%; flex-shrink: 0; animation: floatSoft 7s ease-in-out infinite, fadeIn 1.2s forwards; opacity: 0; animation-delay: 0.35s, 0.2s; }
.dialect-img-box img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.stories-img-box { width: 48%; height: 400px; animation: slideInLeft 1s forwards; opacity: 0; animation-delay: 0.35s; }
.stories-text { width: 50%; animation: slideInRight 1s forwards; opacity: 0; animation-delay: 0.25s; padding-left: 40px; display: flex; flex-direction: column; align-items: flex-start; }

/* 标题及线条靠左对齐 */
.stories-text .section-tag { display: block !important; text-align: left !important; margin-left: 0 !important; margin-right: auto !important; }
.stories-text h2 { width: 100% !important; text-align: left !important; } 
.stories-text .elegant-line { margin-left: 0 !important; margin-right: auto !important; } 
.stories-text p { width: 100% !important; text-align: left !important; }

.folk-header { width: 48%; animation: slideInLeft 1s forwards; opacity: 0; animation-delay: 0.25s; }
.folk-full-img-box { width: 50%; height: 460px; animation: slideInRight 1s forwards; opacity: 0; animation-delay: 0.35s; }

.selected-rhymes { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 30px; }
.selected-rhymes .dual-img-box { width: 240px; height: 240px; flex-shrink: 0; border-radius: 8px; animation: fadeUp 1s forwards; opacity: 0; }
.selected-rhymes .dual-img-box:first-child { animation-delay: 0.2s; }
.selected-rhymes .dual-img-box:last-child { animation-delay: 0.4s; }
.selected-rhymes .dual-img-box img { width: 100%; height: 100%; object-fit: contain; }
.selected-rhymes .middle-text { flex: 1; max-width: 600px; text-align: center; animation: fadeUp 1s forwards; opacity: 0; animation-delay: 0.3s; padding: 0 20px; }
.selected-rhymes .middle-text h3 { margin-bottom: 24px; display: inline-block; text-align: center; }
.selected-rhymes .middle-text p { text-align: left; margin: 0 auto; max-width: 560px; }

.video-text { width: 50%; animation: slideInLeft 1s forwards; opacity: 0; animation-delay: 0.25s; }
.video-circle-box { width: 420px; height: 420px; max-width: 46%; border-radius: 50%; position: relative; flex-shrink: 0; animation: fadeIn 1.2s forwards; opacity: 0; animation-delay: 0.35s; }
.video-circle-box img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.video-play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80px; height: 80px; background-color: rgba(0, 0, 0, 0.6); border-radius: 50%; display: flex; justify-content: center; align-items: center; animation: pulseGlow 3s ease-in-out infinite; cursor: pointer; }
.video-play-btn svg { width: 28px; height: 28px; fill: #fff; margin-left: 4px; }

.banner-img-box { width: 46%; height: 420px; flex-shrink: 0; animation: slideInLeft 1s forwards; opacity: 0; animation-delay: 0.25s; }
.banner-text-container { display: flex; justify-content: space-between; align-items: center; flex: 1; animation: slideInRight 1s forwards; opacity: 0; animation-delay: 0.35s; }
.banner-text-container p { width: 320px; margin-bottom: 0; font-size: 17px; }
.banner-title { 
    font-size: 42px; font-weight: 900; line-height: 1.1; letter-spacing: -0.8px; text-align: left; white-space: nowrap; 
    background: linear-gradient(135deg, #0d52d6 0%, #111 80%); 
    -webkit-background-clip: text; 
    background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

/* ========== 页脚 ========== */
footer { display: flex; justify-content: space-between; align-items: center; padding: 40px 40px; font-size: 13px; color: #111; min-height: 100px; }
.footer-links { display: flex; gap: 32px; }
.footer-links a:hover { color: #0d52d6; }

/* ========== 装饰小线条 ========== */
.section-tag { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: #0d52d6; font-weight: 600; margin-bottom: 10px; display: inline-block; opacity: 0.8; }
.elegant-line { width: 70px; height: 3px; background: linear-gradient(90deg, #0d52d6, #b0a58b); margin: 16px 0 24px 0; border-radius: 4px; }

/* ========== 移动端适配 (终极版) ========== */
@media (max-width: 900px) {
    .wrapper { width: 100%; padding: 0 20px; }
    header { position: relative; flex-direction: column; padding: 20px 15px; gap: 20px; }
    
    main > section { height: auto; padding: 60px 0; flex-direction: column; justify-content: center; gap: 40px; overflow: visible; }
    .hero { padding-top: 0; }
    
    h1 { font-size: 38px; text-align: center; }
    h2 { font-size: 30px; text-align: center; }
    h3 { font-size: 24px; text-align: center; }
    p { font-size: 16px; text-align: center; }
    
    .hero-left, .hero-right, .preserve-left, .preserve-img-box, .dialect-text, .dialect-img-box,
    .stories-img-box, .stories-text, .folk-header, .folk-full-img-box, .selected-rhymes .middle-text,
    .video-text, .video-circle-box, .banner-img-box, .banner-text-container, .banner-text-container p { width: 100%; padding: 0; }

    .stories-text { align-items: center; }
    .stories-text .section-tag { margin: 0 auto !important; }
    .stories-text h2, .stories-text p { text-align: center !important; }
    .stories-text .elegant-line { margin: 16px auto 24px auto !important; }

    /* 普通图片限制 */
    .img-box { height: auto; max-height: 400px; width: 100%; }
    
    /* 【终极修复：暴力屏蔽所有干扰，强制正圆】 */
    .dialect-img-box, .video-circle-box { 
        width: 100% !important;
        max-width: 300px !important;     
        height: 300px !important;         
        border-radius: 50% !important; 
        margin: 0 auto !important; 
        position: relative !important;
        overflow: hidden !important;
        display: block !important;
    }
    
    /* 图片强制铺满正方形并绝对定位，覆盖父级顶部的 height: auto */
    .dialect-img-box img, .video-circle-box img {
        position: absolute !important;
        top: 0 !important; 
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 50% !important;
        max-width: none !important; /* 解除顶部 max-width 限制 */
    }

    .selected-rhymes { flex-direction: column; }
    .hero-form { flex-direction: column; }
    .hero-form input, .hero-form button { width: 100%; max-width: 300px; }
    .hero-right { align-items: center; }
    .action-item { max-width: 280px; margin: 0 auto; }

    /* 修复底部 Banner 文字溢出重叠 */
    .bottom-banner { flex-direction: column; gap: 30px; }
    .banner-text-container { flex-direction: column; align-items: center; text-align: center; width: 100%; }
    .banner-text-container p { width: 100% !important; max-width: 500px; margin: 0 auto; text-align: center; }
    .banner-title { white-space: normal !important; text-align: center; font-size: 32px; margin-top: 20px; }

    footer { flex-direction: column; gap: 20px; text-align: center; }
}