/* =========================================
   1. 字体与变量
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;600&display=swap');

:root {
    --bg-color: #e2e2ec; 
    --text-main: #1a1a1a;
    --text-secondary: #5a5a62;
    --line-color: #1a1a1a;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

/* =========================================
   2. 基础设置
   ========================================= */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body, html {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* 核心修复：防止横向溢出，允许纵向滚动 */
    overflow-x: hidden;
    width: 100%;
}

/* =========================================
   3. 导航栏 (全站统一 & 移动端兼容)
   ========================================= */
nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 2.5rem 8%; 
    width: 100%;
}

.logo a { 
    font-size: 1.1rem; 
    font-weight: 600; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    text-decoration: none; 
    color: inherit; 
}

nav ul { 
    display: flex; 
    list-style: none; 
    gap: 30px; 
}

nav a { 
    text-decoration: none; 
    color: var(--text-main); 
    font-size: 0.8rem; 
    font-weight: 500; 
    text-transform: uppercase; 
    transition: opacity 0.3s;
}

nav a:hover { opacity: 0.5; }

/* 导航栏活动状态 */
nav a.active {
    border-bottom: 1px solid var(--text-main);
}

/* =========================================
   4. 通用容器与组件
   ========================================= */
.content-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 8% 100px; 
}

.page-title { 
    font-family: var(--font-serif); 
    font-size: 3.5rem; 
    font-weight: 400; 
    margin-bottom: 50px; 
}

.language-heading { 
    font-family: var(--font-serif); 
    font-size: 1.1rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    border-bottom: 1px solid var(--line-color); 
    padding-bottom: 10px; 
    margin-bottom: 30px; 
}

/* =========================================
   5. Audio & Video 列表页 (网格系统)
   ========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 60px 30px; 
}

.work-card { display: flex; flex-direction: column; }

.media-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #d1d1db; 
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
}

.media-box iframe { width: 100%; height: 100%; border: none; display: block; }

.work-card h3 { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 400; margin-bottom: 8px; }
.work-card h3 a { text-decoration: none; color: var(--text-main); transition: 0.3s; }
.work-card h3 a:hover { opacity: 0.6; }
.work-card p { font-size: 0.85rem; color: var(--text-secondary); font-weight: 300; }

/* Radio Atlas 封面卡片样式 */
.atlas-cover-link {
    display: flex; width: 100%; height: 100%; text-decoration: none;
    background: #1a1a1a; transition: background 0.3s ease; align-items: center; justify-content: center;
}
.atlas-cover-link:hover { background: #333; }
.atlas-content { text-align: center; color: #ffffff; }
.atlas-tag { display: block; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 2px; opacity: 0.7; margin-bottom: 5px; }
.atlas-brand { display: block; font-family: var(--font-serif); font-size: 1.3rem; font-style: italic; margin-bottom: 10px; }
.atlas-action { display: inline-block; font-size: 0.65rem; padding: 5px 12px; border: 1px solid rgba(255,255,255,0.3); border-radius: 20px; }

/* =========================================
   6. Video 详情页
   ========================================= */
.section-tag { font-family: var(--font-serif); color: #4a90e2; font-style: italic; text-align: center; margin-top: 40px; font-size: 1.4rem; }
.video-story-header { max-width: 800px; margin: 80px 0 40px 0; }
.video-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 25px; }
.video-intro { font-size: 0.95rem; color: var(--text-main); line-height: 1.6; max-width: 600px; }
.featured-video-wrapper { width: 100%; margin-top: 20px; }
.video-aspect-ratio { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; background: #000; }
.video-aspect-ratio iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* =========================================
   7. Tape Sync 页面
   ========================================= */
.tapesync-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 80px; align-items: start; margin-top: 40px; }
.kit-box { background: rgba(0,0,0,0.04); padding: 30px; border-left: 1px solid var(--text-main); margin: 30px 0; }
.kit-box h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; }
.kit-box ul { list-style: none; font-size: 0.9rem; }
.kit-box li { margin-bottom: 8px; }
.rate-card-btn { display: inline-block; margin-top: 20px; padding: 12px 25px; background: var(--text-main); color: #fff; text-decoration: none; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }
.rate-card-btn:hover { background: #444; }
.tapesync-players { display: flex; flex-direction: column; gap: 30px; }
.sample-label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; font-weight: 600; }

/* =========================================
   8. About 页面
   ========================================= */
.about-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 80px; align-items: start; }
.about-highlight { font-family: var(--font-serif); font-size: 1.6rem; line-height: 1.4; color: var(--text-main); margin-bottom: 40px; }
.about-body p { font-size: 1rem; color: var(--text-secondary); margin-bottom: 25px; max-width: 600px; }
.profile-photo { width: 100%; height: auto; display: block; }

/* =========================================
   9. Contact 页面
   ========================================= */
.contact-layout { max-width: 600px; margin-top: 20px; }
.contact-intro { font-size: 1.1rem; margin-bottom: 50px; }
.contact-methods { display: flex; flex-direction: column; gap: 40px; }
.contact-item .label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-secondary); margin-bottom: 10px; }
.contact-link { font-family: var(--font-serif); font-size: 1.8rem; color: var(--text-main); text-decoration: none; border-bottom: 1px solid transparent; transition: 0.3s; }
.contact-link:hover { border-bottom-color: var(--text-main); }
.social-links { display: flex; gap: 20px; }
.social-links a { font-size: 0.9rem; color: var(--text-main); text-decoration: none; font-weight: 500; border-bottom: 1px solid rgba(0,0,0,0.1); }
.social-links a:hover { border-bottom-color: var(--text-main); }

/* =========================================
   10. 首页 (Hero Section)
   ========================================= */
.hero-section {
    min-height: calc(100vh - 120px); 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 8%;
}

.hero-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 100px;
    align-items: center;
    max-width: 1200px;
}

.hero-image-box img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 30px 30px 0px rgba(0, 0, 0, 0.05); 
}

.welcome-badge { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 3px; font-weight: 600; margin-bottom: 15px; }
.accent-line { width: 40px; height: 1px; background: var(--text-main); margin-bottom: 30px; }
.hero-statement { font-family: var(--font-sans); font-size: 2.8rem; line-height: 1.2; font-weight: 500; margin-bottom: 25px; }
.serif-italic { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.hero-description { font-size: 1.1rem; color: var(--text-secondary); max-width: 500px; font-weight: 300; margin-bottom: 40px; }
.cta-link { text-decoration: none; color: var(--text-main); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; border-bottom: 1px solid var(--text-main); padding-bottom: 5px; }

/* =========================================
   11. 响应式适配 (手机端强力修复)
   ========================================= */

/* 平板尺寸 */
@media (max-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .tapesync-layout, .about-layout, .hero-container { gap: 50px; }
    .hero-statement { font-size: 2.2rem; }
}

/* 手机尺寸核心修复 (竖屏) */
@media (max-width: 768px) {
    /* 1. 导航栏修复：Logo和菜单上下排列，防止横向挤出 */
    nav {
        padding: 1.5rem 20px;
        flex-direction: column !important;
        gap: 15px;
        text-align: center;
    }

    nav ul {
        display: flex;
        flex-wrap: wrap; 
        justify-content: center;
        gap: 10px 18px; /* 链接间距 */
    }

    nav a {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }

    /* 2. 首页修复：改为单列 */
    .hero-section {
        height: auto; 
        min-height: auto;
        padding: 40px 20px 80px; 
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-image-box {
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-image-box img { box-shadow: 15px 15px 0px rgba(0, 0, 0, 0.05); }

    .hero-statement { 
        font-size: 1.8rem; 
        padding: 0 10px;
    }

    /* 3. 其他页面标题和布局调整 */
    .page-title { 
        font-size: 2.2rem; 
        margin-bottom: 30px; 
        text-align: center;
    }

    .content-container { padding: 0 20px 60px; }

    .gallery-grid { grid-template-columns: 1fr; gap: 40px; }

    .tapesync-layout, .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-wrapper {
        order: -1; /* 图片在手机端显示在文字上方 */
        max-width: 300px;
        margin: 0 auto 30px;
    }

    .about-highlight { font-size: 1.3rem; }
    
    .contact-link { font-size: 1.4rem; }
}

/* 针对极窄手机 (iPhone SE 等) */
@media (max-width: 360px) {
    nav ul { gap: 8px 12px; }
    .hero-statement { font-size: 1.6rem; }
}