/* Synvril v3.5 - Dropdown Fix & Mobile Chart Fix */

:root {
    --primary: #0ea5e9;
    --primary-hover: #0284c7;
    --primary-light: #f0f9ff;
    --text-main: #1e293b;
    --text-muted: #475569;
    --border: #f1f5f9;
}

/* 移动端溢出保护：只在 body 层面锁定，不要在 container 层面 */
html, body { 
    margin: 0; padding: 0; width: 100%; max-width: 100vw; 
    overflow-x: hidden; font-family: 'Inter', sans-serif;
    background: #fff; color: var(--text-main); line-height: 1.8;
}

* { box-sizing: border-box; }

.container { 
    width: 90%; 
    max-width: 1200px; 
    margin: 0 auto;
    /* 核心修复：移除之前的 overflow: hidden，否则下拉菜单出不来 */
}

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(15px);
    height: 80px; position: fixed; width: 100%; top: 0; z-index: 2000; /* 极高层级 */
    border-bottom: 1px solid var(--border); display: flex; align-items: center;
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo-area { display: flex; align-items: center; gap: 8px; }
.logo-area img { height: 38px; width: auto; object-fit: contain; }
.brand-name { font-size: 1.5rem; font-weight: 800; color: var(--primary); }

.nav-right { display: flex; align-items: center; gap: 15px; }
.nav-menu { list-style: none; display: flex; gap: 15px; }
.nav-menu a { text-decoration: none; color: var(--text-main); font-weight: 600; font-size: 0.9rem; }

/* 语言下拉菜单 - 确保逻辑正确 */
.lang-dropdown { position: relative; padding-bottom: 20px; margin-bottom: -20px; z-index: 3000; }
.dropbtn { background: var(--primary-light); color: var(--primary); border: none; padding: 8px 16px; border-radius: 8px; font-weight: 700; cursor: pointer; }
.dropdown-content { 
    display: none; 
    position: absolute; 
    background: #fff; 
    right: 0; 
    top: 100%; 
    min-width: 130px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); 
    border-radius: 12px; 
    border: 1px solid var(--border); 
    z-index: 4000; 
    overflow: hidden;
}
.dropdown-content a { color: var(--text-main); padding: 12px 18px; text-decoration: none; display: block; font-size: 0.9rem; transition: 0.2s; }
.dropdown-content a:hover { background: var(--primary-light); color: var(--primary); }
.lang-dropdown:hover .dropdown-content { display: block; }

/* Hero */
.hero-section { padding: 180px 0 80px; background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%); }
.hero-grid, .phi-grid, .token-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

/* 图片圆角 */
.image-wrapper { border-radius: 35px !important; overflow: hidden !important; width: 100%; line-height: 0; }
.rounded-img { width: 100%; height: auto; display: block; border-radius: 35px !important; }

/* 板块通配 */
section { padding: 100px 0; }
.section-bright { background: #fff; }
.section-alt { background: #f9fafb; border-top: 1px solid var(--border); }
.section-title { font-size: 2.6rem; font-weight: 800; margin-bottom: 25px; line-height: 1.2; }
.content-p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 25px; }

.btn-whitepaper {
    display: inline-block; background: var(--primary); color: #fff; padding: 16px 42px; border-radius: 12px; text-decoration: none; font-weight: 700; box-shadow: 0 8px 16px rgba(14, 165, 233, 0.3); transition: 0.3s;
}

/* 网格 */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.feature-card { background: #fff; padding: 40px; border-radius: 25px; box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.f-icon { font-size: 2.3rem; margin-bottom: 20px; display: block; }

/* Token 图表溢出修复 */
.chart-wrapper { 
    width: 100%; 
    max-width: 100%; 
    position: relative;
    overflow: hidden; /* 这里加 overflow 是为了保护图表不撑开页面 */
}
#chart3D { width: 100% !important; height: 400px; display: block; }

/* 团队 */
.team-grid { display: grid; grid-template-columns: 1fr; gap: 35px; }
.member-card { background: #fff; padding: 40px; border-radius: 30px; border: 1px solid var(--border); }
.member-head { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.member-name { color: var(--primary) !important; font-size: 1.5rem; font-weight: 800; }
.member-photo { width: 90px; height: 90px; border-radius: 50%; background: #eee; overflow: hidden; flex-shrink: 0; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }

/* 移动端适配 */
@media (max-width: 992px) {
    .nav-menu { display: none; }
    .hero-section { padding: 150px 0 60px; }
    .hero-grid, .phi-grid, .token-grid { grid-template-columns: 1fr; text-align: center; }
    .section-title { font-size: 2rem; }
    #chart3D { height: 320px; }
}

.footer { padding: 60px 0; text-align: center; border-top: 1px solid var(--border); color: var(--text-muted); }