/* =========================================================================
   V2 新设计样式 — 玻璃拟态 + 科技蓝主题 + 动效基础
   对应 new sign.md 设计稿，适配 FastAdmin ThinkPHP5 模板
   ========================================================================= */

/* ===== 设计令牌（CSS 变量） ===== */
:root {
    --ai-blue1: #0A2463;
    --ai-blue2: #1A5FCD;
    --ai-purple: #6C3CE1;
    --ai-purple2: #8B5CF6;
    --ai-cyan: #00D4FF;
    --ai-cyan2: #06B6D4;
    --ai-neon: #00FF88;
    --ai-dark-bg: #1A1A2E;
    --ai-dark-bg2: #0F0F1E;

    --glass-bg: rgba(255,255,255,0.08);
    --glass-border: rgba(255,255,255,0.12);
    --glass-hover-shadow: 0 0 20px rgba(0,212,255,0.35), 0 0 40px rgba(108,60,225,0.2);

    --font-orbitron: 'Orbitron', 'Inter', sans-serif;
    --font-sy: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --container-max: 1200px;
    --header-h: 64px;
}

/* ===== 基础重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sy);
    background: var(--ai-dark-bg2);
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== 容器 ===== */
.v2-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 16px;
}
@media (min-width: 1024px) {
    .v2-container { padding: 0 32px; }
}

/* ===== 粒子背景 ===== */
#v2-particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    background: linear-gradient(135deg, var(--ai-blue1) 0%, var(--ai-dark-bg) 100%);
}
.v2-page { position: relative; z-index: 1; }

/* ===== 玻璃拟态 ===== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    transition: transform .3s, box-shadow .3s;
    cursor: pointer;
}
.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--glass-hover-shadow);
}

/* ===== 按钮 ===== */
.btn-primary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    background: linear-gradient(135deg, var(--ai-blue1), var(--ai-purple));
    border: none;
    cursor: pointer;
    transition: transform .3s, box-shadow .3s;
}
.btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(0,255,136,0.3);
}
.btn-glass {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    color: #fff;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: background .3s;
}
.btn-glass:hover { background: rgba(255,255,255,0.15); }

/* ===== 导航栏 ===== */
.v2-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: var(--header-h);
    z-index: 100;
    transition: all .3s;
    background: transparent;
}
.v2-header.scrolled {
    background: rgba(15,15,30,0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.v2-header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
@media (min-width: 1024px) {
    .v2-header-inner { padding: 0 32px; }
}

/* Logo */
.v2-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 18px;
}
.v2-brand-logo {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--ai-blue2), var(--ai-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-orbitron);
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

/* 桌面导航 */
.v2-nav { display: none; }
@media (min-width: 1024px) {
    .v2-nav {
        display: flex;
        align-items: center;
        gap: 32px;
    }
}
.v2-nav-item {
    position: relative;
}
.v2-nav-link {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    padding: 8px 0;
    transition: color .3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}
.v2-nav-link:hover { color: var(--ai-cyan); }
.v2-nav-caret {
    font-size: 10px;
    margin-left: 2px;
    transition: transform .3s;
}
.v2-nav-item:hover .v2-nav-caret { transform: rotate(180deg); }

/* 二级下拉 */
.v2-nav-sub {
    position: absolute;
    top: 100%;
    left: -12px;
    min-width: 180px;
    background: rgba(15,15,30,0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px 0;
    display: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.v2-nav-item:hover .v2-nav-sub { display: block; }
.v2-nav-sub a {
    display: block;
    padding: 8px 16px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    transition: all .2s;
}
.v2-nav-sub a:hover {
    color: var(--ai-cyan);
    background: rgba(0,212,255,0.08);
}

/* 导航右侧 */
.v2-nav-actions { display: flex; align-items: center; gap: 12px; }
.v2-theme-toggle {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background .3s;
}
.v2-theme-toggle:hover { background: rgba(255,255,255,0.15); }

/* 移动端菜单按钮 */
.v2-menu-toggle {
    display: none;
    width: 36px; height: 36px;
    border-radius: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
@media (max-width: 1023px) {
    .v2-menu-toggle { display: flex; }
}

/* 移动端导航面板 */
.v2-nav-mobile {
    display: none;
    position: fixed;
    top: var(--header-h); left: 0;
    width: 100%;
    background: rgba(15,15,30,0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 16px;
    z-index: 99;
    border-bottom: 1px solid var(--glass-border);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
}
.v2-nav-mobile.open { display: block; }
.v2-nav-mobile .v2-nav-link {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.v2-nav-mobile .v2-nav-sub {
    position: static;
    display: block;
    background: transparent;
    border: none;
    padding: 0 0 0 16px;
    box-shadow: none;
}
.v2-nav-mobile .v2-nav-caret { display: none; }

/* ===== Hero ===== */
.v2-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-h);
    position: relative;
}
.v2-hero-logo {
    width: 80px; height: 80px;
    margin: 0 auto 32px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--ai-blue2), var(--ai-purple));
    box-shadow: 0 0 40px rgba(0,212,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-orbitron);
    font-weight: 700;
    font-size: 28px;
}
.v2-hero-title {
    font-family: var(--font-orbitron);
    font-size: clamp(2.2rem, 6vw, 5rem);
    font-weight: 700;
    margin-bottom: 16px;
    min-height: 60px;
}
.v2-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.8);
    margin-bottom: 8px;
}
.v2-hero-meta {
    font-family: var(--font-mono);
    color: var(--ai-cyan);
    font-size: 16px;
    margin-bottom: 40px;
}
.v2-hero-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}
.v2-hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 24px;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== 区块通用 ===== */
.v2-section { padding: 96px 0; position: relative; }
.v2-section.alt { background: rgba(26,26,46,0.5); }
.v2-section-title {
    font-family: var(--font-orbitron);
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 600;
    color: #fff;
    margin-bottom: 48px;
    text-align: center;
}

/* ===== Bento 网格 ===== */
.v2-bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}
@media (min-width: 768px) {
    .v2-bento { grid-template-columns: 1fr 2fr; }
}
.v2-bento-text {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    font-size: 16px;
}
.v2-bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (min-width: 640px) {
    .v2-bento-grid { grid-template-columns: repeat(3, 1fr); }
}
.v2-stat-num {
    font-family: var(--font-mono);
    color: var(--ai-cyan);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}
.v2-stat-label { color: #fff; font-weight: 500; }

/* ===== 科研卡片网格 ===== */
.v2-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 768px) {
    .v2-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .v2-card-grid { grid-template-columns: repeat(3, 1fr); }
}
.v2-card {
    position: relative;
    overflow: hidden;
}
/* 扫光特效 */
.v2-card::after {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,212,255,0.18), transparent);
    transition: left .7s ease;
    pointer-events: none;
}
.v2-card:hover::after { left: 120%; }
@media (max-width: 768px) {
    .v2-card::after { display: none; }
}

.v2-card-tag {
    color: var(--ai-cyan);
    font-size: 12px;
    margin-bottom: 8px;
}
.v2-card-title {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}
.v2-card-desc {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

/* ===== 师资卡片 ===== */
.v2-faculty-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 640px) {
    .v2-faculty-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .v2-faculty-grid { grid-template-columns: repeat(4, 1fr); }
}
.v2-faculty-card .v2-faculty-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.08);
}
.v2-faculty-name { color: #fff; font-weight: 500; margin-bottom: 4px; }
.v2-faculty-research { color: var(--ai-cyan); font-size: 14px; }

/* ===== 新闻列表 ===== */
.v2-news-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 768px) {
    .v2-news-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .v2-news-list { grid-template-columns: repeat(3, 1fr); }
}
.v2-news-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.v2-news-item .v2-news-cover {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.06);
}
.v2-news-date {
    color: var(--ai-cyan);
    font-size: 12px;
    font-family: var(--font-mono);
}
.v2-news-title {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}
.v2-news-summary {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    line-height: 1.5;
}

/* ===== 合作伙伴 Logo 墙 ===== */
.v2-logo-wrap {
    overflow: hidden;
    margin-bottom: 48px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.v2-logo-inner {
    display: flex;
    gap: 32px;
    animation: v2LogoScroll 25s linear infinite;
    width: max-content;
}
.v2-logo-inner:hover { animation-play-state: paused; }
@keyframes v2LogoScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.v2-logo-item {
    flex-shrink: 0;
    padding: 12px 24px;
    white-space: nowrap;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}
.v2-logo-item img {
    height: 40px;
    width: auto;
    opacity: 0.7;
    filter: grayscale(1) brightness(1.5);
    transition: opacity .3s, filter .3s;
}
.v2-logo-item:hover img { opacity: 1; filter: none; }

/* ===== 页面 Banner ===== */
.v2-page-banner {
    min-height: 300px;
    display: flex;
    align-items: center;
    padding-top: var(--header-h);
    background: linear-gradient(135deg, var(--ai-blue1), var(--ai-dark-bg));
    position: relative;
}
.v2-page-banner h1 {
    font-family: var(--font-orbitron);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}
.v2-page-banner p {
    color: rgba(255,255,255,0.7);
    font-size: 16px;
}

/* ===== 标签筛选 ===== */
.v2-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}
.v2-tag {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.v2-tag:hover { color: var(--ai-cyan); }
.v2-tag.active {
    border-color: var(--ai-cyan);
    color: var(--ai-cyan);
}

/* ===== 分页 ===== */
.v2-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}
.v2-pagination a, .v2-pagination span {
    min-width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    padding: 0 8px;
    transition: all .2s;
}
.v2-pagination a:hover { border-color: var(--ai-cyan); color: var(--ai-cyan); }
.v2-pagination .active { border-color: var(--ai-cyan); color: var(--ai-cyan); }
.v2-pagination .disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== 页脚 ===== */
.v2-footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

/* ===== 滚动入场初始态 ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .65s ease, transform .65s ease;
}
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== AI 助手悬浮 ===== */
.v2-ai-btn {
    position: fixed;
    right: 20px; bottom: 32px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ai-blue2), var(--ai-purple));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 24px rgba(0,212,255,0.3);
    transition: transform .3s;
}
.v2-ai-btn:hover { transform: scale(1.1); }

/* ===== 文章正文 ===== */
.v2-article-content {
    color: rgba(255,255,255,0.85);
    font-size: 16px;
    line-height: 1.8;
}
.v2-article-content img { border-radius: 8px; margin: 16px 0; }
.v2-article-content p { margin-bottom: 1em; }
.v2-article-content h2, .v2-article-content h3 { margin: 1.2em 0 .6em; color: #fff; }
.v2-article-content a { color: var(--ai-cyan); }

/* ===== 工具类 ===== */
.text-cyan { color: var(--ai-cyan); }
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-48 { margin-bottom: 48px; }

/* ===== 单页布局（左栏侧边导航 + 右栏内容） ===== */
.v2-page-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
@media (min-width: 768px) {
    .v2-page-layout {
        grid-template-columns: 220px 1fr;
    }
}

/* 侧边栏 */
.v2-page-sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
}
.v2-sidebar-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 12px 16px;
    margin-bottom: 0;
    background: linear-gradient(135deg, var(--ai-blue1), var(--ai-purple));
    border-radius: 8px 8px 0 0;
}
.v2-sidebar-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-top: none;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}
.v2-sidebar-link {
    display: block;
    padding: 12px 16px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: all .2s;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.v2-sidebar-link:last-child { border-bottom: none; }
.v2-sidebar-link:hover {
    color: var(--ai-cyan);
    background: rgba(0,212,255,0.06);
    padding-left: 22px;
}
.v2-sidebar-link.active {
    color: var(--ai-cyan);
    background: rgba(0,212,255,0.1);
    border-left: 3px solid var(--ai-cyan);
    font-weight: 500;
}

/* 右栏内容区 */
.v2-page-content {
    min-width: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 32px;
}
@media (max-width: 767px) {
    .v2-page-content { padding: 20px; }
}
