

/* ---------- Variables & Reset ---------- */
:root{
    --bg: #000;
    --fg: #fff;
    --muted: rgba(255,255,255,0.75);
    --glass: rgba(255,255,255,0.04);
    --accent: #fff;
    --radius: 0; /* 修改: 采用直角风格 */
    --gap: 24px;
    --max-width: 1100px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
    margin:0;
    font-family: Inter, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background:var(--bg);
    color:var(--fg);
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    line-height:1.6;
    scroll-behavior:smooth;
    position: relative; /* 确保背景动画定位 */
}
a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}

/* ---------- Layout ---------- */
header{
    position:fixed;
    left:0; right:0; top:0;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:18px 28px;
    z-index:60;
    background: linear-gradient(180deg, rgba(0,0,0,0.8), rgba(0,0,0,0.3));
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.container{max-width:var(--max-width); margin:0 auto; padding:0 20px; width:100%}

.logo{
    font-weight:800; letter-spacing:2px; font-size:18px;
}

nav.desktop{display:flex; gap:10px; align-items:center}
nav.desktop a{font-size:14px; color:var(--muted); padding:8px 12px; border-radius:var(--radius)} /* 直角化 */
nav.desktop a:hover{color:var(--fg); background:var(--glass)}

/* 新增: 子导航栏样式 (桌面端悬停) */
.nav-item {
    position: relative;
}
.nav-item > a {
    display: block;
}
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 10px 0;
    min-width: 180px;
    z-index: 100;
    border-radius: var(--radius); /* 直角化 */
}
.submenu a {
    padding: 8px 16px;
    white-space: nowrap;
    display: block;
    color: var(--muted);
}
.submenu a:hover {
    background: var(--glass);
    color: var(--fg);
}
.nav-item:hover .submenu {
    display: block;
}

/* hamburger */
.mobile-toggle{display:none}
.cta-primary, .cta-ghost{
    border-radius:var(--radius); /* 修改: 直角化 */
    padding:10px 16px; font-weight:600; cursor:pointer; border:1px solid rgba(255,255,255,0.08);
    background:transparent; color:var(--fg)
}
.cta-primary{background:var(--fg); color:var(--bg); padding:10px 18px}
.cta-primary:hover{opacity:0.95}
.cta-ghost{opacity:0.9}

/* ---------- Hero ---------- */
.hero{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:120px 20px 80px; /* account for fixed header */
}
.hero-inner{max-width:920px}
.hero h1{
    margin:0;
    font-size: clamp(36px, 6.5vw, 72px);
    line-height:1.02;
    letter-spacing:-1px;
    font-weight:800;
}
.hero p{
    margin-top:18px;
    color:var(--muted);
    font-size:18px;
    max-width:780px;
    margin-left:auto; margin-right:auto;
}
.hero .actions{margin-top:28px; display:flex; gap:12px; justify-content:center; flex-wrap:wrap}

/* ---------- Sections ---------- */
section{padding:84px 20px}
section .inner{max-width:var(--max-width); margin:0 auto}
h2{font-size:28px; margin:0 0 12px 0}
.lead{color:var(--muted); margin-bottom:18px}

/* ---------- Features grid ---------- */
.features{display:grid; gap:18px; grid-template-columns:repeat(2,1fr)}
.feature{
    background: rgba(255,255,255,0.02);
    padding:18px;
    border-radius:var(--radius); /* 修改: 直角化 */
    display:flex; gap:14px; align-items:flex-start;
    border:1px solid rgba(255,255,255,0.03);
}
.feature svg{flex:0 0 44px; width:44px; height:44px; opacity:0.95}
.feature h3{margin:0; font-size:16px}
.feature p{margin:6px 0 0 0; color:var(--muted); font-size:14px; line-height:1.5}

/* ---------- How it works (Dynamic Flow Showcase) ---------- */
.dynamic-flow-showcase {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr; /* 三栏布局 */
    gap: 24px;
    margin-top: 40px;
}
/* 媒体展示区 */
.media-display {
    background: var(--glass);
    padding: 15px;
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: var(--radius); /* 直角化 */
}
#flow-image-placeholder {
    min-height: 250px;
    background: rgba(255,255,255,0.01);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}

/* 交互 Q&A 区 */
.interactive-qna h3 {
    font-size: 18px;
    margin-bottom: 12px;
}
.qna-card {
    background: var(--glass);
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.05);
}
.qna-prompt {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--fg);
}
.qna-response {
    background: rgba(255,255,255,0.02);
    padding: 6px 10px;
    font-size: 14px;
    margin-bottom: 12px;
    border-left: 3px solid var(--accent);
}
.qna-status {
    text-align: center;
    margin-top: 15px;
    font-style: italic;
    font-size: 14px;
}

/* 流程步骤列表 */
.flow-steps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.step-item {
    background: rgba(255,255,255,0.02);
    padding: 15px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: var(--radius); /* 直角化 */
}
.step-item:hover, .step-item.active {
    background: rgba(255,255,255,0.05);
    border-left-color: var(--fg);
}
.step-item .num {
    font-weight: 700;
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
}
.step-item p {
    font-size: 13px;
    margin: 0;
    color: var(--muted);
}

/* ---------- For Organizers & Pricing ---------- */
.row{display:grid; grid-template-columns:1fr 420px; gap:28px; align-items:start}
.card{background: rgba(255,255,255,0.02); padding:22px; border-radius:var(--radius); /* 修改: 直角化 */ border:1px solid rgba(255,255,255,0.03)}
.price{font-size:24px; font-weight:700}

/* ---------- Footer ---------- */
footer{padding:40px 20px; text-align:center; color:rgba(255,255,255,0.5); font-size:13px}

/* ---------- 背景动画 (紫色浮动圆圈) ---------- */
.purple-bg-animation {
    position: fixed;
    inset: 0;
    z-index: -1; /* 确保在所有内容之下 */
    overflow: hidden;
}
.circle {
    position: absolute;
    border-radius: 50%;
    background: #544984; /* 纯紫色色调 */
    opacity: 0.2;
    filter: blur(80px); /* 模糊效果 */
    animation: float 20s infinite ease-in-out alternate;
}

.c1 { width: 300px; height: 300px; top: 10%; left: 5%; animation-duration: 25s; }
.c2 { width: 450px; height: 450px; bottom: 15%; right: 10%; background: #6b5c96; animation-duration: 30s; }
.c3 { width: 200px; height: 200px; top: 50%; left: 40%; background: #453a70; animation-duration: 18s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-50px, 30px) scale(1.1); }
    66% { transform: translate(40px, -60px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* ---------- Subtle animations ---------- */
.reveal{opacity:0; transform:translateY(8px); animation:reveal 700ms ease forwards}
.reveal.delay-1{animation-delay:120ms}
.reveal.delay-2{animation-delay:240ms}
.reveal.delay-3{animation-delay:360ms}
@keyframes reveal{to{opacity:1; transform:none}}

/* ---------- Utility ---------- */
.muted{color:var(--muted)}
.flex{display:flex; gap:12px; align-items:center}


/* -------------------------------------------------------------------------- */
/* ---------- 移动菜单覆盖层样式 (修复了桌面端显示问题) ---------- */
/* -------------------------------------------------------------------------- */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    /* 修复：确保在移动端占据整个视口，否则 transform 无法正确平移 */
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 90;
    transform: translateX(100%);
    transition: transform 0.4s ease-out;
    padding: 20px;
    overflow-y: auto;
    /* 默认在桌面端隐藏 */
    display: none;
}
.mobile-nav-overlay.open {
    transform: translateX(0);
}
.mobile-nav-overlay .menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    margin-bottom: 20px;
}
.mobile-nav-overlay .close-btn {
    background: transparent;
    border: 0;
    color: var(--fg);
    font-size: 30px;
    font-weight: 200;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-nav-list > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
}

/* 移动端主链接样式 */
.mobile-nav-list > li > a {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: var(--fg);
}

/* 移动端子菜单处理 (折叠/展开) */
.mobile-nav-list .menu-parent-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
    color: var(--fg);
}
.mobile-nav-list .submenu-toggle {
    font-size: 14px;
    margin-left: 10px;
    transition: transform 0.3s ease;
    padding: 5px;
}
.mobile-nav-list .submenu-toggle.rotated {
    transform: rotate(45deg);
}
.mobile-nav-list .submenu-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: var(--glass);
    margin-top: 10px;
    padding: 0 10px;
}
.mobile-nav-list .submenu-content a {
    display: block;
    padding: 10px 0;
    font-size: 16px;
    color: var(--muted);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}
.mobile-nav-list .submenu-content a:last-child {
    border-bottom: none;
}

/* 移动端底部按钮 */
.mobile-nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
    padding-bottom: 20px;
}


/* ---------- Responsive Media Queries (修复了桌面端导航栏问题) ---------- */

@media (max-width:960px){
    .features{grid-template-columns:1fr}
    .row{grid-template-columns:1fr}
    nav.desktop{display:none}
    .mobile-toggle{display:block; background:transparent; border:0; color:var(--fg); font-size:20px}

    /* 修复：在移动端视口下显示移动菜单 */
    .mobile-nav-overlay {
        display: block;
    }

    /* 流程展示适配移动端 */
    .dynamic-flow-showcase {
        grid-template-columns: 1fr; /* 小屏幕改为单栏 */
        grid-template-areas:
          "steps"
          "qna"
          "media";
    }
    .media-display { grid-area: media; }
    .interactive-qna { grid-area: qna; }
    .flow-steps-list { grid-area: steps; }
}


@media (min-width:961px){
    /* 修复：确保在桌面端隐藏移动菜单，避免窗口拉宽时出现 */
    .mobile-nav-overlay {
        display: none !important;
    }
}


@media (max-width:520px){
    .hero p{font-size:15px}
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
    *{animation:none!important; transition:none!important}
    .circle { animation:none; }
}






/* ---------- 纯 CSS 大气竖直手机外框（无框架图片版） ---------- */
.how-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 40px;
}



.phone-mockup {
    position: relative;
    max-width: 280px;                /* 控制手机宽度 */
    margin: 0 auto;
    aspect-ratio: 9 / 19.5;           /* iPhone 经典竖屏比例，更修长 */
}

/* 核心：纯 CSS 绘制手机外壳 + 屏幕 */
#phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;                /* 手机屏幕底色 */
    border-radius: 30px;             /* iPhone 大圆角 */
    overflow: hidden;

    box-sizing: border-box;
}

/* 屏幕内图片充满整个屏幕区域 */
#phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;               /* 确保截图填满，不留白 */
    display: block;
    border-radius: 30px;             /* 略小于外层，避免溢出 */
    transition: opacity 0.5s ease;
}

/* 可选美化：添加动态岛（iPhone 14 Pro 以后风格） */


/* 可选：手机外边框金属光泽（更真实） */
.phone-mockup::after {
    content: '';
    position: absolute;
    inset: -8px;
    border: 3px solid #a6a6a6;        /* 深黑金属边框 */
    border-radius: 46px;
    pointer-events: none;
    box-shadow: 0 0 30px rgb(91, 35, 232);
    z-index: -1;
}

/* 右侧内容对齐调整 */
.right-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-top: 80px;               /* 与高手机视觉对齐 */
}

/* 移动端适配 */
@media (max-width: 960px) {
    .how-showcase {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .phone-highlight-area {
        max-width: 520px;
        padding: 50px 30px;
    }
    .phone-mockup {
        max-width: 420px;
    }
    .right-content {
        padding-top: 0;
    }
}
