:root {
    --primary: #00ff88;
    --primary-dark: #00cc6a;
    --text: #ffffff;
    --text-secondary: rgba(255,255,255,0.7);
    --text-muted: rgba(255,255,255,0.5);
    --bg: #0a0f1c;
    --card: #0d1320;
    --border: rgba(0,255,136,0.2);
    --radius: 12px;
}

* {
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Roboto', 'ZCOOL XiaoWei', '微软雅黑', Arial, sans-serif;
    overflow-x: hidden;
}

/* 通用容器：限制宽度并居中，避免内容贴边 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== 栅格系统（替代 Bootstrap，桌面多列 / 移动单列） ===== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.row.justify-content-center {
    justify-content: center;
}

[class*="col-"] {
    padding: 0 0.75rem;
    width: 100%;
}

/* 所有列均独占一整行（PC 与移动端一致） */
.col-6, .col-md-3, .col-lg-2 {
    width: 100%;
}

.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* ===== Navbar ===== */
.navbar-custom {
    background: rgba(10,15,28,0.92) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,255,136,0.08);
    padding: 0.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    border-bottom: 1px solid var(--border);
}

.navbar-brand-custom {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--text) !important;
}

.brand-icon {
    font-size: 2rem;
    line-height: 1;
    color: var(--primary);
    filter: drop-shadow(0 0 8px rgba(0,255,136,0.4));
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name-cn {
    font-family: 'Ma Shan Zheng', 'ZCOOL XiaoWei', '微软雅黑', Arial, sans-serif;
    font-weight: bold;
    font-size: 1.6rem;
    letter-spacing: 3px;
    color: var(--text);
}

.brand-name-en {
    font-family: 'Zhi Mang Xing', 'ZCOOL XiaoWei', cursive;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: none;
}

.navbar-nav-custom .nav-link {
    color: var(--text-secondary) !important;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}

.navbar-nav-custom .nav-link:hover,
.navbar-nav-custom .nav-link.active {
    color: var(--primary) !important;
}

/* 右侧 CTA 描边按钮 */
.nav-cta {
    display: inline-block;
    margin-left: 1.5rem;
    padding: 0.55rem 1.4rem;
    border: 1px solid var(--primary);
    border-radius: 8px;
    color: var(--primary);
    font-size: 0.92rem;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s;
}

.nav-cta:hover {
    background: var(--primary);
    color: var(--bg);
    box-shadow: 0 0 18px rgba(0,255,136,0.35);
}

/* 导航栏布局：菜单与按钮靠右 */
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#navMenu {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.navbar-nav-custom {
    display: flex;
    flex-direction: row;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-toggler-custom {
    border: 1px solid var(--border);
    padding: 0.3rem 0.5rem;
    background: transparent;
    display: none;
}

.navbar-toggler-custom span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary);
    margin: 4px 0;
    border-radius: 2px;
}

/* ===== Hero Section with Canvas Background ===== */
.hero-section {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, #0a1628 0%, #0d1b2a 50%, #1b263b 100%);
    overflow: hidden;
    padding: 80px 1rem 60px;
}

/* Canvas 背景 */
#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
}

.hero-title {
    font-family: 'Impact', 'Arial Black', '微软雅黑', Arial, sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: 8px;
    color: var(--text);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    text-shadow: 0 0 30px rgba(0,255,136,0.3);
    line-height: 1.1;
}

.hero-title .accent {
    color: var(--primary);
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn-primary {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--primary);
    color: #0a1628 !important;
    font-weight: bold;
    font-size: 1.05rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(0,255,136,0.3);
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,255,136,0.5);
    background: var(--primary-dark);
}

.hero-btn-secondary {
    display: inline-block;
    padding: 1rem 3rem;
    background: transparent;
    color: var(--primary) !important;
    font-weight: bold;
    font-size: 1.05rem;
    border: 2px solid var(--primary);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.hero-btn-secondary:hover {
    background: rgba(0,255,136,0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,255,136,0.2);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--primary);
    font-size: 2rem;
    animation: bounce 2s infinite;
    text-decoration: none;
}

@keyframes bounce {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-12px); }
}

/* ===== Sections ===== */
.section-title {
    font-family: 'ZCOOL XiaoWei', '微软雅黑', Arial, sans-serif;
    font-size: 2.2rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--text);
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-title .accent {
    color: var(--primary);
}

.section-subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

.section-dark {
    background: var(--bg);
    padding: 100px 0;
}

.section-card {
    background: var(--card);
    padding: 100px 0;
}

/* 固定导航栏高度补偿，避免锚点跳转时标题被遮挡 */
section[id] {
    scroll-margin-top: 70px;
}

/* ===== About ===== */
.about-wrap {
    max-width: 1000px;
    margin: 0 auto;
}

/* 关于我们：标题副标题与卡片间距收紧 */
#about .section-subtitle {
    margin-bottom: 1.5rem;
}

.about-desc {
    max-width: 760px;
    margin: 0 auto 2.5rem;
    text-align: center;
    color: var(--text-secondary);
    line-height: 2;
    font-size: 1.05rem;
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.about-feature {
    flex: 1 1 0;
    min-width: 220px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem 1.4rem;
    text-align: center;
    transition: all 0.3s;
}

.about-feature:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,255,136,0.12);
}

.about-feature-icon {
    font-size: 2.2rem;
    line-height: 1;
    margin-bottom: 0.9rem;
}

.about-feature h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.about-feature p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.8;
    margin: 0;
}

.about-text h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top:1.2rem;
    margin-bottom:0.5rem;
}

.about-text p {
    color: var(--text-secondary);
    line-height:1.9;
    font-size:0.95rem;
}

.about-text a {
    color: var(--primary);
    text-decoration:none;
}

.about-text a:hover {
    text-decoration:underline;
}

/* ===== 发展历史时间线（树） ===== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 0;
}

/* 中间主干（树干） */
.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    transform: translateX(-50%);
    background: linear-gradient(180deg,
        rgba(0,255,136,0) 0%,
        var(--primary) 12%,
        var(--primary) 88%,
        rgba(0,255,136,0) 100%);
    box-shadow: 0 0 12px rgba(0,255,136,0.5);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 1.2rem 2.5rem;
    box-sizing: border-box;
}

/* 奇数项放左侧，偶数项放右侧，左右交替 */
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

/* 树干上的节点圆点 */
.timeline-dot {
    position: absolute;
    top: 1.6rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--bg);
    box-shadow: 0 0 12px rgba(0,255,136,0.7);
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

/* 从树干伸向卡片的小枝 */
.timeline-content {
    position: relative;
    display: inline-block;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.4rem;
    transition: all 0.3s;
}

.timeline-content::before {
    content: "";
    position: absolute;
    top: 1.4rem;
    width: 22px;
    height: 2px;
    background: var(--primary);
    opacity: 0.6;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -22px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -22px;
}

.timeline-content:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,255,136,0.15);
}

.timeline-date {
    display: inline-block;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.timeline-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.about-img {
    border-radius:var(--radius);
    border:1px solid var(--border);
    width:100%;
    max-width:420px;
}

.site-list {
    list-style:none;
    padding:0;
}

.site-list li {
    padding:0.4rem 0;
    color:var(--text-secondary);
}

.site-list li a {
    color:var(--primary);
}

/* 关于我们：自有两栏布局（左文字 / 右图标），整体居中 */
.about-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.about-col {
    flex: 1 1 320px;
    min-width: 0;
}

.about-col-side {
    text-align: center;
}

.about-col-side .site-list {
    display: inline-block;
    text-align: left;
}

/* ===== Team Cards ===== */
.team-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
}

.team-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,255,136,0.12);
}

.team-avatar {
    width: 90px;
    height: 90px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border);
    transition: border-color 0.3s;
}

.team-card:hover .team-avatar {
    border-color: var(--primary);
}

.team-avatar img {
    width:100%;
    height:100%;
    object-fit:cover;
}

.team-name {
    color:var(--text);
    font-size:1.05rem;
    font-weight:bold;
    margin-bottom:0.2rem;
}

.team-role {
    color:var(--primary);
    font-size:0.82rem;
    margin-bottom:0.5rem;
}

.team-motto {
    color:var(--text-muted);
    font-size:0.8rem;
    font-style:italic;
    margin-bottom:0.4rem;
    min-height:2.4em;
}

.team-desc {
    color:var(--text-secondary);
    font-size:0.82rem;
}

/* ===== Contact Cards ===== */
.contact-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
}

.contact-card:hover {
    border-color:var(--primary);
    transform:translateY(-4px);
}

.contact-icon {
    font-size:2.2rem;
    color:var(--primary);
    margin-bottom:1rem;
}

.contact-card h5 {
    color:var(--text);
    font-size:1.05rem;
    margin-bottom:0.8rem;
}

.contact-card p {
    color:var(--text-secondary);
    font-size:0.92rem;
}

.contact-card a {
    color:var(--primary);
    text-decoration:none;
}

/* ===== Partner Cards ===== */
.partner-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.partner-card:hover {
    border-color:var(--primary);
}

.partner-card img {
    max-height:60px;
    max-width:140px;
    object-fit:contain;
    margin-bottom:0.5rem;
}

.partner-card p {
    color:var(--text-muted);
    font-size:0.85rem;
    margin:0;
}

/* ===== Footer ===== */
.footer-custom {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 2rem 0 1rem;
    text-align: center;
}

.footer-custom p {
    color:var(--text-muted);
    font-size:0.9rem;
    margin:0.5rem 0;
    line-height: 1.8;
}

.footer-custom a {
    color:var(--primary);
    text-decoration:none;
    transition: color 0.2s;
}

.footer-custom a:hover {
    color: var(--text);
}

.footer-custom .footerweb {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    text-decoration: none;
}

.footer-custom .footerweb img {
    vertical-align: middle;
}

#localtime {
    color: var(--primary);
    font-weight: 500;
}

/* ===== Tablet（中等屏，≤991px）===== */
@media (max-width:991px) {
    .section-dark, .section-card {
        padding: 70px 0;
    }
    .hero-title {
        font-size: 3.2rem;
    }
    .about-img {
        display:block;
        margin-left:auto;
        margin-right:auto;
    }
}

/* ===== Mobile（≤767px）===== */
@media (max-width:767px) {
    .hero-title {
        font-size:2.5rem;
        letter-spacing:3px;
    }
    .hero-subtitle {
        font-size:1.1rem;
        margin-bottom:2rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    .hero-btn-primary,
    .hero-btn-secondary {
        padding:0.9rem 2.5rem;
        font-size:1rem;
    }
    .section-title {
        font-size:1.6rem;
    }
    .section-subtitle {
        font-size:0.95rem;
        margin-bottom:2rem;
    }
    .section-dark, .section-card {
        padding: 60px 0;
    }
    .contact-card {
        padding:1.5rem 1rem;
    }
    .team-motto {
        min-height:auto;
    }
    /* 移动端：导航栏换行，菜单与按钮纵向展开 */
    .nav-inner {
        flex-wrap:wrap;
    }
    .brand-name-cn {
        font-size:1.2rem;
    }
    .navbar-toggler-custom {
        display:block !important;
    }
    #navMenu {
        display:none !important;
        width:100%;
        padding-top:1rem;
        order:3;
        flex:0 0 100% !important;
        flex-direction:column;
        align-items:center;
    }
    #navMenu.open {
        display:flex !important;
    }
    #navMenu .navbar-nav-custom {
        flex-direction:column;
        align-items:center;
        width:100%;
        gap:0.4rem;
    }
    #navMenu .navbar-nav-custom li {
        width:100%;
        text-align:center;
    }
    #navMenu .nav-link {
        display:block;
        padding:0.7rem 0 !important;
        text-align:center;
    }
    .nav-cta {
        margin:0.8rem auto 0;
    }
    /* 移动端：团队成员/联系我们/合作伙伴 每行只显示一个，且铺满整行 */
    .row {
        margin: 0;
    }
    [class*="col-"] {
        padding: 0;
    }
    .col-6, .col-md-3, .col-lg-2 {
        width: 100%;
    }
    /* 移动端：关于我们特色卡堆叠成一列并铺满 */
    .about-features {
        flex-direction: column;
        gap: 1rem;
    }
    .about-feature {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
    }
    /* 移动端：时间线保持中间树干、左右交替，仅收窄间距适配小屏 */
    .timeline-item {
        padding: 1rem 1rem;
    }
    .timeline-content {
        padding: 0.8rem 1rem;
    }
    .timeline-date {
        font-size: 0.92rem;
    }
    .timeline-text {
        font-size: 0.85rem;
    }
    /* 底部适配 */
    .footer-custom {
        padding: 1.5rem 1rem;
    }
    .footer-custom p {
        font-size: 0.85rem;
        margin: 0.4rem 0;
    }
    .footer-custom .footerweb {
        display: inline-flex;
        margin: 0.5rem 0;
    }
}

/* ===== 超小屏（≤480px）：团队成员单列更易读 ===== */
@media (max-width:480px) {
    .hero-title {
        font-size:2rem;
        letter-spacing:2px;
    }
    .team-card {
        padding:1.2rem 0.8rem;
    }
}

/* ===== 雪花效果 ===== */
.snowflake {
    position: absolute;
    display: block;
    z-index: 99999;
    pointer-events: none;
    user-select: none;
}
