@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-dark: #0C0C0C;
    --text-primary: #D7E2EA;
    --accent: #6366f1;
    --font-kanit: 'Kanit', sans-serif;
    --container-max: 1300px;
    --section-py: 10rem;
    --card-radius: 40px;
}

@media (max-width: 768px) {
    :root {
        --section-py: 5rem;
        --card-radius: 24px;
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    background-color: var(--bg-dark);
    font-family: var(--font-kanit);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.5;
}

/* 响应式容器 */
.section-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 1024px) {
    .section-container { padding: 0 4rem; }
}

/* 统一标题体系 */
.hero-heading {
    background: linear-gradient(180deg, #646973 0%, #BBCCD7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    line-height: 0.85;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
}

/* 响应式按钮 */
.btn-premium {
    background: linear-gradient(123deg, #18011F 7%, #B600A8 37%, #7621B0 72%, #BE4C00 100%);
    box-shadow: 0px 4px 4px rgba(181, 1, 167, 0.15), 4px 4px 12px rgba(119, 33, 177, 0.4) inset;
    outline: 2px solid white;
    outline-offset: -3px;
    color: white !important;
    border-radius: 9999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-premium:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0px 10px 20px rgba(181, 1, 167, 0.3);
}

/* 项目叠放卡片 - 移动端优化 */
.project-card {
    position: sticky;
    top: 80px;
    height: 75vh;
    width: 100%;
    background: #111;
    border: 1px solid rgba(215, 226, 234, 0.1);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -20px 40px rgba(0,0,0,0.6);
    overflow: hidden;
}

@media (min-width: 768px) {
    .project-card { padding: 3rem; top: 120px; }
}

/* 播放器挂载点修正 - 保持容器简洁，让 js/music-player.js 内部的样式生效 */
#music-app {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 10000;
}

/* 其它组件细节 */
.char-fade { opacity: 0.1; }
.marquee-row { display: flex; gap: 1rem; will-change: transform; }

/* 移动端菜单按钮 */
.mobile-nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}
.mobile-nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s;
}
