/* ==========================================================================
 * AkiDAY. | Digital Nexus v3.0
 * Design System: Ligne Flux × Lumen Riot
 * * © AkiDAY. All rights reserved.
 * Source code is proprietary. Visual design and UI are licensed under CC BY-NC-ND 4.0.
 * Unauthorized UI cloning or commercial usage is strictly prohibited.
 * ========================================================================== */
:root {
    --bg-light: #FAFAFA;
    --bg-dark: #0A0A0A;
    --text-dark: #111111;
    --text-light: #FAFAFA;
    --neon-green: #39FF14;
    --neon-blue: #0055FF;
    --neon-purple: #B026FF;
    --neon-magenta: #FF004D;
    --font-base: 'Lexend', system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro SC', 'PingFang SC', 'Noto Sans SC', 'Source Han Sans CN', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
    --font-script: 'Pacifico', cursive; 
}

html, body { 
    scroll-behavior: smooth; 
    width: 100%; 
    margin: 0; 
    padding: 0; 
    overflow-x: hidden;
}

body { 
    background-color: var(--bg-light); 
    color: var(--text-dark); 
    font-family: var(--font-base); 
    /* 禁止全站文字被选中，去文字光标 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* ==========================================================================
   LAYER 1: 首屏 Hero 区域
   ========================================================================== */
.hero-extreme { 
    position: relative; 
    height: 100vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    padding: 0 5vw;
}

/* --- 流式错位排版 --- */
.hero-title-wrapper {
    position: relative;
    display: block; 
    width: 100%;
    margin-top: -11.5vh;
}

.huge-stroke-text {
    position: relative;
    font-size: clamp(5rem, 20vw, 25rem);
    font-weight: 900;
    color: transparent;
    
    /* 采用极黑原色，保持极强的重量感和品牌视觉霸权 */
    -webkit-text-stroke: 2px var(--text-dark); 
    
    line-height: 0.8;
    margin-left: -2vw;
    z-index: 1;
    
    /* 错位的淡阴影和高光，增加一点版画叠印的错位感 */
    filter: drop-shadow(3px 4px 4px rgba(0,0,0,0.15)) drop-shadow(-1px -1px 1px rgba(255,255,255,0.7));
}

.huge-solid-text {
    position: relative;
    font-size: clamp(3rem, 10vw, 12rem);
    font-weight: 900;
    color: var(--text-dark);
    line-height: 0.8;
    margin-top: -18.4vw; /* 手动调整的完美上下错位 */
    margin-left: 10vw;   /* 完美的文字右偏移 */
    z-index: 2;
    /* 光影体积感：极其浓重的近景黑影 + 巨大的远景扩散阴影 */
    text-shadow: 0 5px 10px rgba(0,0,0,0.4), 0 25px 50px rgba(0,0,0,0.1);
}

/* ==========================================================================
   Slogan 景深跑马灯
   ========================================================================== */
.slogan-wrapper {
    position: fixed; 
    bottom: 5vh; 
    left: -50vw; 
    width: 200vw; 
    height: 20vh;
    pointer-events: none; 
    transform: rotate(-3deg); 
    overflow: hidden; 
    z-index: -1;
}

.slogan-marquee {
    display: inline-block; 
    white-space: nowrap; 
    font-size: 8rem; 
    font-weight: 900; 
    color: rgba(0, 0, 0, 0.4); 
    letter-spacing: -2px; 
    filter: blur(8px);
    animation: scrollSlogan 30s linear infinite;
}

@keyframes scrollSlogan { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-50%); } 
}

/* ==========================================================================
   UI & INTERACTION
   ========================================================================== */
#cursor-glow {
    position: fixed; 
    width: 300px; 
    height: 300px; 
    border-radius: 50%;
    background: transparent;
    pointer-events: none; 
    transform: translate(-50%, -50%); 
    z-index: 9999; 
    transition: transform 0.2s ease, background 0.2s ease, opacity 0.3s ease; 
    will-change: left, top, transform, background, opacity;
    opacity: 0; /* 默认完全隐藏！ */
}

/* --- i18n 智能加粗 --- */
.lang-en, .lang-zh {
    font-weight: 300; 
    transition: font-weight 0.3s ease;
}

html[lang="zh-CN"] .lang-zh { font-weight: 900; }
html[lang="en"] .lang-en { font-weight: 900; }

.liquid-capsule {
    background: rgba(255,255,255,0.1); 
    backdrop-filter: blur(25px); 
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1), inset 0 0 25px rgba(255,255,255,0.4);
    border-radius: 50px; 
    position: relative; 
    overflow: hidden;
    color: var(--text-dark); 
    font-weight: 900; 
    letter-spacing: 2px; 
    /* 缩短过渡时间从而获得0延迟的丝滑反色感 */
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.liquid-capsule::before {
    content: ''; 
    position: absolute; 
    top: var(--y, 50%); 
    left: var(--x, 50%); 
    transform: translate(-50%, -50%); 
    width: 200px; 
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 60%);
    opacity: 0; 
    transition: opacity 0.3s; 
    pointer-events: none; 
    mix-blend-mode: overlay; 
    z-index: 6;
}

.liquid-capsule:hover::before { opacity: 1; }

.lang-toggle { 
    position: fixed; 
    top: 30px; 
    right: 30px; 
    z-index: 10000; 
    padding: 12px 24px; 
    text-decoration: none; 
    /* 消除 Safari/WebKit 的点击高亮和轮廓线 */
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

body.on-dark-bg .lang-toggle {
    color: white; 
    border-color: rgba(255, 255, 255, 0.4); 
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3), inset 0 0 30px rgba(255,255,255,0.2);
}

.hero-glass-panel { 
    position: absolute; 
    bottom: 12%; 
    right: 5%; 
    padding: 20px 40px; 
    z-index: 10; 
    font-size: 1.2rem; 
}

/* ==========================================================================
   SECTIONS & TYPOGRAPHY
   ========================================================================== */
.block-light { 
    background-color: var(--bg-light); 
    padding: 10vw 0; 
    position: relative; 
    z-index: 10; 
}

/* 沉浸感与切角比例 */
.block-inverted {
    position: relative;
    z-index: 11;
    background-color: var(--bg-dark);
    color: var(--text-light); 
    padding: 18vw 0; 
    clip-path: polygon(0 5vw, 100% 0, 100% calc(100% - 5vw), 0 100%); 
    margin: -5vw 0; 
}

/* 防止负边距导致的底部缝隙，让白色流推上去盖住 */
.solid-white-flow {
    position: relative; 
    z-index: 3; 
    background: var(--bg-light);
    margin-top: -5vw; 
    padding-top: 5vw; 
}

.content-wrapper { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 5vw; 
    position: relative; 
    width: 100%;
    /* box-sizing: border-box 确保 padding 计算在 width: 100% 内，
     * 而非叠加在外部，防止移动端内容区右侧超出视口边界 */
    box-sizing: border-box;
}

.chaos-title { 
    font-size: clamp(3rem, 8vw, 8rem); 
    font-weight: 900; 
    line-height: 1; 
    margin-bottom: 2rem; 
    text-transform: uppercase; 
}

.aki-signature { 
    font-family: var(--font-script); 
    color: var(--neon-magenta); 
    font-weight: 400; 
    letter-spacing: 2px;
}

.brutal-text { 
    font-size: clamp(1.2rem, 2.5vw, 2.5rem); 
    font-weight: 300; 
    line-height: 1.6; 
    max-width: 1000px; 
    margin-bottom: 2rem;
}

.brutal-text strong { font-weight: 900; }

/* ==========================================================================
   GREETINGS & REVEAL ANIMATION
   ========================================================================== */
.floating-greetings { 
    position: absolute; 
    top: -12vw; 
    right: 3vw; 
    z-index: 20; 
    width: 350px; 
    height: 350px; 
    pointer-events: none; 
}

.hw-greeting {
    font-family: 'Caveat', cursive; 
    font-size: clamp(2.5rem, 5vw, 5rem); 
    position: absolute; 
    white-space: nowrap; 
    padding: 10px;
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); 
    transition: clip-path 1.2s cubic-bezier(0.76, 0, 0.24, 1);
}

.hw-1 { top: 0; left: 20px; transform: rotate(-15deg); color: var(--neon-green); transition-delay: 0.1s; }
.hw-2 { top: 70px; left: 80px; transform: rotate(10deg); color: var(--neon-blue); transition-delay: 0.3s; }
.hw-3 { top: 140px; left: 40px; transform: rotate(-5deg); color: var(--neon-magenta); transition-delay: 0.5s; }

.floating-greetings.is-visible .hw-greeting { 
    clip-path: polygon(-10% -10%, 110% -10%, 110% 110%, -10% 110%); 
}

.reveal-wrap { 
    position: relative; 
    display: inline-block; 
    overflow: hidden; 
    padding-right: 5px; 
    vertical-align: bottom; 
    /* 限制最大宽度，拒绝右侧贴边 */
    max-width: 100%; 
    white-space: normal; 
    word-wrap: break-word; 
}

.reveal-text { 
    opacity: 0; 
    transition: opacity 0.1s 0.4s; 
    display: inline-block; 
    /* 极其微小的留白防止斜体溢出被切 */
    padding: 0 0.15em 0 0.05em; 
}

.reveal-block { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: var(--neon-green); 
    transform: scaleX(0); 
    transform-origin: left; 
    z-index: 2; 
}

.block-inverted .reveal-block { background: var(--neon-green); }

.reveal-wrap.is-visible .reveal-block { 
    animation: blockReveal 0.8s cubic-bezier(0.76, 0, 0.24, 1) forwards; 
}
.reveal-wrap.is-visible .reveal-text { opacity: 1; }

@keyframes blockReveal { 
    0% { transform: scaleX(0); transform-origin: left; } 
    50% { transform: scaleX(1); transform-origin: left; } 
    50.1% { transform: scaleX(1); transform-origin: right; } 
    100% { transform: scaleX(0); transform-origin: right; } 
}

/* ==========================================================================
   PROJECTS DIRECTORY
   ========================================================================== */
.section-divider { 
    font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 900; text-align: center; 
    padding: 4vw 0 2vw; letter-spacing: 5px; color: rgba(0,0,0,0.3); 
    background: var(--bg-light); position: relative; 
}
.projects-brutal { 
    display: flex; flex-direction: column; width: 100%; 
    background: var(--bg-light); position: relative;
}
.project-row { 
    position: relative; width: 100%; min-height: 25vh; z-index: 1; 
    text-decoration: none; color: var(--text-dark); border-bottom: 2px solid var(--text-dark); 
    display: flex; align-items: center; overflow: hidden; cursor: none; 
}
.row-content { 
    position: relative; z-index: 4; display: flex; justify-content: space-between; 
    align-items: center; width: 100%; padding: 0 5vw; 
}

/* --- 跑马灯与背景动画 --- */
.row-bg { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; 
    background-color: var(--accent); transform: scaleX(0); transform-origin: left; 
    transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}
.row-marquee-bg { 
    position: absolute; top: 50%; left: 0; transform: translateY(-50%); z-index: 3; 
    font-size: clamp(6.25rem, 15vw, 11.25rem); font-weight: 900; color: rgba(255,255,255,0.4); 
    white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.4s; 
    display: flex; width: max-content;
}
.row-marquee-bg span {
    padding-right: 2vw; /* Ensure continuous spacing between texts */
    white-space: nowrap;
    flex-shrink: 0;
}
@keyframes marqueeFast { 
    0% { transform: translateY(-50%) translateX(0); } 
    100% { transform: translateY(-50%) translateX(-50%); } 
}

.project-name, .project-meta, .arrow-icon {
    transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1), color 0.4s, opacity 0.3s ease;
}
.project-name { 
    font-size: clamp(3rem, 6vw, 6rem); font-weight: 900; margin: 0; 
    line-height: 1; font-family: var(--font-base); 
}
.project-meta { 
    display: flex; align-items: center; gap: 20px; font-weight: 700; font-size: 1.2rem; 
}
.arrow-icon { 
    display: inline-flex; align-items: center; justify-content: center; 
    font-size: 1rem; font-family: var(--font-base); font-variant-emoji: text; line-height: 1; 
}

/* --- 全局 Hover 逻辑 --- */
.project-row:hover { color: var(--text-light); }
.project-row:hover .row-bg { transform: scaleX(1); }
.project-row:hover .row-marquee-bg { opacity: 1; animation: marqueeFast 30s linear infinite; }
.project-row:hover .project-name { transform: translateX(1vw); }
.project-row:hover .project-meta { transform: translateX(-1vw); gap: 40px; }
.project-row:hover .arrow-icon { transform: rotate(45deg) scale(3); }

/* --- 字体变异效果 --- */
.project-row:hover[data-font="pacifico"] .project-name { font-family: var(--font-script); font-weight: 700; text-shadow: none; }
.project-row:hover[data-font="bonheur"] .project-name { font-family: 'Bonheur Royale', cursive; font-size: clamp(5rem, 8vw, 8rem); letter-spacing: 15px; }

.time-part, .slice-part { font-family: var(--font-base); font-weight: 900; transition: letter-spacing 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.project-row:hover[data-font="urbanist"] .time-part { font-family: 'Urbanist', sans-serif; font-weight: 900; letter-spacing: -4px; }
.project-row:hover[data-font="urbanist"] .slice-part { font-family: 'Urbanist', sans-serif; font-weight: 100; letter-spacing: 12px; }

/* --- 专属组件效果 (Planet Swap) --- */
.project-row[data-special="planet-swap"] .project-name { 
    display: inline-grid; 
    align-items: center; 
}
.project-row[data-special="planet-swap"] .text-default,
.project-row[data-special="planet-swap"] .text-hover { 
    grid-column: 1; 
    grid-row: 1; 
    transition: opacity 0.3s ease; 
}
.project-row[data-special="planet-swap"] .text-hover { 
    opacity: 0; 
    -webkit-text-stroke: 0; 
    pointer-events: none; 
}

/* 仅电脑端启用悬停切换隐藏文字效果 */
@media (hover: hover) and (pointer: fine) {
    .project-row:hover[data-special="planet-swap"] .text-default { opacity: 0; }
    .project-row:hover[data-special="planet-swap"] .text-hover { opacity: 1; }
}

/* ==========================================================================
   METRO MODAL (Coming Soon Alert)
   ========================================================================== */
.metro-modal-overlay {
    position: fixed; 
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(10, 10, 10, 0.7); 
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    z-index: 100000; 
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; 
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.metro-modal-overlay.is-active { 
    opacity: 1; pointer-events: auto; 
}

.metro-modal-box {
    /* 背景色由 JS 动态注入各个企划的主题色 */
    background: var(--modal-accent, var(--text-dark)); 
    color: var(--text-light);
    width: 90vw; max-width: 500px;
    padding: 3rem 2.5rem 4rem 2.5rem;
    position: relative;
    border-radius: 0; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    overflow: hidden;
    transform: translateY(40px) scale(0.98); 
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.metro-modal-overlay.is-active .metro-modal-box { 
    transform: translateY(0) scale(1); 
}

.metro-modal-close {
    position: absolute; top: 1.5rem; right: 1.5rem;
    background: none; border: 1px solid rgba(255,255,255,0.4); 
    color: white; font-family: var(--font-base); font-size: 0.8rem; font-weight: 900;
    padding: 6px 12px; cursor: pointer; transition: all 0.2s;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.metro-modal-close:hover { 
    background: white; color: black; 
}

.align-fix {
    display: inline-block;
    font-size: 1.1em;
    transform: translateY(-1px);
}

/* 弹窗内部排版与字体动态继承 */
.modal-project-title { 
    font-size: clamp(3rem, 6vw, 4rem); 
    margin: 0 0 1rem 0; line-height: 1; 
}
.modal-project-desc { 
    font-size: 1rem; font-weight: 300; line-height: 1.6; opacity: 0.9; margin: 0;
}

/* 继承 Hover 时的字体变换 */
.metro-modal-box[data-font="pacifico"] .modal-project-title { 
    font-family: var(--font-script); font-weight: 700; 
}
.metro-modal-box[data-font="bonheur"] .modal-project-title { 
    font-family: 'Bonheur Royale', cursive; font-size: clamp(4rem, 8vw, 6rem); letter-spacing: 5px; 
}
.metro-modal-box[data-font="urbanist"] .time-part { 
    font-family: 'Urbanist', sans-serif; font-weight: 900; letter-spacing: -2px; 
}
.metro-modal-box[data-font="urbanist"] .slice-part { 
    font-family: 'Urbanist', sans-serif; font-weight: 100; letter-spacing: 6px; 
}

/* 底部状态跑马灯 */
.modal-status-marquee {
    position: absolute; bottom: 0; left: 0; width: 100%; 
    background: rgba(0,0,0,0.2); padding: 6px 0; overflow: hidden; white-space: nowrap;
    display: flex;
}
.modal-status-marquee span { 
    display: inline-block; font-weight: 900; font-size: 0.8rem; letter-spacing: 2px; 
    flex-shrink: 0;
    padding-right: 1vw; /* Add slight padding so it connects smoothly */
}
.modal-status-marquee .marquee-content {
    display: flex;
    width: max-content;
    animation: marqueeFull 30s linear infinite;
}
@keyframes marqueeFull {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.connect-zone { 
    padding: 6vw 5vw 0; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    position: relative; 
    background: var(--bg-dark); 
    z-index: 10; 
    margin: 0; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    clip-path: none; 
}

.social-links-grid { 
    display: flex; 
    gap: 5vw; 
    flex-wrap: wrap; 
    justify-content: center; 
    margin-bottom: 3vw; 
}

.cool-link { 
    display: inline-block; 
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 900; 
    text-transform: uppercase; 
    text-decoration: none;
    color: var(--text-light);
    overflow: hidden; 
    position: relative; 
    padding: 0.2em 0; 
}

.link-wrapper { display: flex; }
.letter { display: inline-block; transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1); }
.letter::after { content: attr(data-letter); position: absolute; left: 0; top: 100%; color: var(--neon-magenta); }
.cool-link:hover .letter { transform: translateY(-100%); }

.copyright { 
    width: 100%; 
    text-align: center; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    padding: 20px 0; 
    margin-top: 40px; 
    font-size: 0.85rem; 
    color: rgba(255,255,255,0.3); 
    font-weight: 300;
}
.copyright p {
    letter-spacing: 0.2em;
    margin: 0; 
}

/* --- 移动端专属降级通知 --- */
.mobile-warning {
    position: absolute;
    top: 115px; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 10px 20px;
    width: 85vw; 
    max-width: 400px;
    display: none; /* 默认在桌面端隐藏 */
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: left;
    line-height: 1.4;
    color: var(--text-dark);
    animation: dropDown 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.on-dark-bg .mobile-warning {
    color: white;
    border-color: rgba(255, 255, 255, 0.4); 
    background: rgba(0, 0, 0, 0.4);
}

@keyframes dropDown {
    0% { opacity: 0; transform: translate(-50%, -20px); }
    100% { opacity: 1; transform: translate(-50%, 0); }
}

/* ==========================================================================
   MOBILE RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. 打招呼动画降级 */
    .floating-greetings { 
        position: relative; 
        top: 0; right: 0; width: 100%; height: 180px; 
        margin-bottom: 20px; display: block; 
    }
    .hw-1 { top: 0; left: 10%; transform: rotate(-10deg); }
    .hw-2 { top: 50px; left: 40%; transform: rotate(5deg); }
    .hw-3 { top: 100px; left: 20%; transform: rotate(-8deg); }
    
    /* 2. 展示区降级与防输出双层字 */
    .project-row { 
        min-height: 20vh; flex-direction: column; 
        justify-content: center; padding: 20px 5vw; align-items: flex-start;
    }
    .row-content { 
        flex-direction: column; align-items: flex-start; gap: 10px;
    }
    .arrow-icon { display: none; }
    
    .project-row[data-special="planet-swap"] .project-name { 
        display: block; 
    }
    .project-row[data-special="planet-swap"] .text-hover { 
        display: none !important; 
    }

    /* 3. Footer 链接折叠 */
    .social-links-grid { 
        flex-direction: column; align-items: center; gap: 3vw; 
    }

    /* 4. 开启顶部通知 */
    .mobile-warning {
        display: flex;
    }

}