/* =================================================================
   音创项目展示站 · NVIDIA 风液态玻璃
   配色：NVIDIA 绿 #76b900 + 黑白 + 灰阶
   字体：Arial / Helvetica / 思源黑体 备选
   液态玻璃：来自 styles-yetai.css 的多层 inset 阴影 + 模糊渐变
   ================================================================= */

/* ============== 全局重置 ============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
*::selection { background: #76b900; color: #fff; }

html, body {
    width: 100%;
    min-height: 100%;
}
body {
    font-family: "NVIDIA-EMEA", Arial, Helvetica,
                 "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #1a1a1a;
    /* NVIDIA 灰白底 + yetai 网格背景 */
    background-color: #f3f3f3;
    --grid: #e1e1e1;
    background-image:
        linear-gradient(0deg,  transparent 24%, var(--grid) 25%, var(--grid) 26%, transparent 27%, transparent 74%, var(--grid) 75%, var(--grid) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, var(--grid) 25%, var(--grid) 26%, transparent 27%, transparent 74%, var(--grid) 75%, var(--grid) 76%, transparent 77%, transparent);
    background-size: 55px 55px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ============== 全局变量 ============== */
:root {
    --green:        #76b900;        /* NVIDIA 绿 */
    --green-light:  #bff230;
    --green-dark:   #3f8500;
    --green-glow:   rgba(118,185,0,0.35);

    --black:        #000000;
    --near-black:   #1a1a1a;
    --ink:          #1a1a1a;
    --ink-2:        #4a4a4a;
    --gray-3:       #757575;
    --gray-4:       #898989;
    --gray-5:       #a7a7a7;
    --border:       #5e5e5e;
    --border-soft:  #d8d8d8;

    --white:        #ffffff;

    /* 液态玻璃参数 */
    --glass-bg:     rgba(255,255,255,0.04);
    --glass-border: rgba(51,51,51,0.08);
}

/* ============== 液态玻璃核心 .glass ==============
   把 yetai.css 的 .box 多层阴影搬过来，
   应用到所有"硬质玻璃"面板上。
================================================== */
.glass,
.glass-card {
    position: relative;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px double rgba(51, 51, 51, 0.08);
    border-radius: 6px;  /* 折中圆角 */

    /* 关键：yetai.css 的多层 inset 阴影 */
    box-shadow:
        inset  2px -2px 1px -1px rgba(255,255,255,0.9),
        inset -2px  2px 1px -1px rgba(255,255,255,0.9),
        inset  6px -6px 1px -6px rgba(255,255,255,0.55),
        inset -6px  6px 1px -6px rgba(255,255,255,0.55),
        inset  0  0  2px  rgba(0,0,0,0.08),
        0 4px 8px rgba(0,0,0,0.2);

    overflow: hidden;
}

/* 玻璃表面的"对角光斑"折射效果（来自 yetai ::after） */
.glass::after,
.glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(
        45deg,
        rgba(255,255,255,0.55) 0%,
        transparent 35%,
        transparent 65%,
        rgba(255,255,255,0.4) 100%
    );
    mix-blend-mode: screen;
    z-index: 1;
}

/* 玻璃内部内容需要在 z-index 2 之上 */
.glass > *,
.glass-card > * { position: relative; z-index: 2; }

/* ============== NVIDIA 绿高亮带 ============== */
.green-stripe {
    height: 4px;
    background: linear-gradient(90deg, #76b900 0%, #bff230 50%, #76b900 100%);
}

/* ============== 顶部导航 ============== */
.nav {
    position: sticky;
    top: 16px;
    margin: 16px auto 0;
    max-width: 1280px;
    width: calc(100% - 32px);
    border-radius: 6px;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 50;
}
.logo {
    display: flex; align-items: center; gap: 12px;
    font-weight: 700; font-size: 15px;
    letter-spacing: 1.5px; text-transform: uppercase;
}
.logo-mark {
    width: 28px; height: 28px;
    background: #76b900;
    border-radius: 2px;
    position: relative;
    box-shadow: 0 0 0 2px rgba(118,185,0,0.25);
}
.logo-mark::after {
    content: ""; position: absolute; inset: 6px;
    background: #fff; border-radius: 1px;
    clip-path: polygon(0 100%, 50% 0, 100% 100%, 70% 100%, 50% 50%, 30% 100%);
}
.logo-text { color: #1a1a1a; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
    font-size: 14px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    color: #1a1a1a;
    padding: 4px 0;
    position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -4px;
    height: 2px; background: #76b900; transform: scaleX(0);
    transform-origin: left; transition: transform .2s;
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.admin-link {
    padding: 8px 16px;
    border: 2px solid #76b900;
    border-radius: 2px;
    color: #1a1a1a;
    background: transparent;
    transition: all .2s;
}
.nav-links a.admin-link:hover {
    background: #76b900;
    color: #fff;
}
.nav-links a.admin-link::after { display: none; }

/* ============== Hero ============== */
.hero {
    max-width: 1280px; width: calc(100% - 32px);
    margin: 80px auto 60px; padding: 0 16px;
}
.hero-inner { max-width: 900px; }
.kicker {
    font-size: 12px; letter-spacing: 3px;
    color: #76b900; font-weight: 700;
    text-transform: uppercase;
    border-left: 3px solid #76b900;
    padding-left: 10px;
    display: inline-block;
}
.hero-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700; line-height: 1.1;  /* NVIDIA 紧行高 */
    margin: 22px 0 26px; letter-spacing: -1.5px;
    color: #000;
}
.hero-title .thin {
    font-weight: 700; color: #76b900;
    text-shadow: 0 0 30px rgba(118,185,0,0.2);
}
.hero-desc {
    font-size: 18px; color: #4a4a4a;
    max-width: 620px; line-height: 1.55;
    font-weight: 400;
}
.hero-stats {
    margin-top: 44px; padding: 28px 36px;
    display: flex; gap: 0; flex-wrap: wrap;
    border-radius: 6px;
}
.stat {
    flex: 1; min-width: 140px;
    padding: 0 24px;
    border-right: 1px solid rgba(0,0,0,0.08);
}
.stat:last-child { border-right: none; }
.stat-num {
    font-size: 40px; font-weight: 700;
    letter-spacing: -1px; line-height: 1;
    color: #1a1a1a;
    font-family: "NVIDIA-EMEA", Arial, sans-serif;
}
.stat:nth-child(2) .stat-num { color: #76b900; }
.stat-label {
    font-size: 12px; color: #757575;
    margin-top: 8px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
}

/* ============== Section 标题 ============== */
.showcase {
    max-width: 1280px; width: calc(100% - 32px);
    margin: 60px auto; padding: 0 16px;
}
.section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 36px; padding-bottom: 18px;
    border-bottom: 1px solid var(--border-soft);
    position: relative;
}
.section-head::after {
    content: ''; position: absolute; left: 0; bottom: -1px;
    width: 60px; height: 2px; background: #76b900;
}
.section-head h2 {
    font-size: 28px; font-weight: 700;
    letter-spacing: -0.5px; line-height: 1.25;
    color: #1a1a1a;
}
.section-en {
    font-size: 11px; letter-spacing: 2.5px;
    color: #76b900; font-weight: 700;
    text-transform: uppercase;
}

/* ============== 项目卡片（NVIDIA 硬朗版） ============== */
.grid {
    display: grid; gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
    border-radius: 6px;
    transition: all .25s;
    cursor: pointer;
    background: #fff;
    border: 1px solid var(--border-soft);
    box-shadow:
        inset 2px -2px 1px -1px rgba(255,255,255,0.9),
        inset -2px  2px 1px -1px rgba(255,255,255,0.9),
        0 0 5px rgba(0,0,0,0.3);
    overflow: hidden;
    position: relative;
}
.card::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(45deg,
        rgba(255,255,255,0.4) 0%, transparent 35%,
        transparent 65%, rgba(255,255,255,0.3) 100%);
    mix-blend-mode: screen; pointer-events: none;
    border-radius: inherit;
}
.card:hover {
    transform: translateY(-3px);
    border-color: #76b900;
    box-shadow:
        0 0 0 1px #76b900,
        0 12px 30px -8px rgba(118,185,0,0.4),
        0 0 5px rgba(0,0,0,0.3);
}
.cover {
    position: relative; aspect-ratio: 16/10; overflow: hidden;
    background: #1a1a1a;
}
.cover img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s; filter: contrast(1.05);
}
.card:hover .cover img { transform: scale(1.06); }
.pid-badge {
    position: absolute; top: 12px; left: 12px;
    background: rgba(0,0,0,0.85);
    color: #76b900; font-size: 11px; letter-spacing: 1.5px;
    padding: 5px 10px; border-radius: 2px;
    font-family: "SF Mono", Consolas, monospace;
    font-weight: 700;
    border: 1px solid #76b900;
}
.card-body { padding: 18px 20px 20px; position: relative; z-index: 2; }
.card-title {
    font-size: 18px; font-weight: 700;
    margin-bottom: 8px; line-height: 1.25;
    color: #1a1a1a;
    border-bottom: 2px solid transparent;
    display: inline-block;
    padding-bottom: 2px;
    transition: border-color .2s;
}
.card:hover .card-title { border-bottom-color: #76b900; }
.author {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: #757575;
    font-weight: 400;
}
.author-dot {
    width: 8px; height: 8px;
    background: #76b900; border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(118,185,0,0.2);
}

/* ============== 空状态 ============== */
.empty {
    padding: 80px 30px; text-align: center;
    border-radius: 6px;
}
.empty-icon {
    width: 64px; height: 64px; margin: 0 auto 24px;
    border: 2px solid #1a1a1a; border-radius: 50%;
    position: relative;
}
.empty-icon::before {
    content: ""; position: absolute;
    left: 50%; top: 18px; width: 2px; height: 18px;
    background: #1a1a1a; transform: translateX(-50%);
}
.empty-icon::after {
    content: ""; position: absolute;
    left: 50%; top: 40px; width: 8px; height: 2px;
    background: #1a1a1a; transform: translateX(-50%);
}
.empty h3 { font-size: 20px; margin-bottom: 8px; font-weight: 700; }
.empty p { color: #757575; margin-bottom: 24px; font-size: 14px; }

/* ============== NVIDIA 风格按钮 ============== */
.btn,
.btn-solid {
    display: inline-block; padding: 11px 24px;
    background: transparent;
    color: #1a1a1a;
    border: 2px solid #76b900;
    border-radius: 2px;
    font-size: 14px; font-weight: 700;
    letter-spacing: 0.5px; text-transform: uppercase;
    transition: all .2s;
    cursor: pointer;
    font-family: inherit;
}
.btn:hover,
.btn-solid:hover {
    background: #76b900;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(118,185,0,0.2);
}
.btn:active,
.btn-solid:active {
    background: #3f8500;
    border-color: #3f8500;
}

/* ============== About ============== */
.about {
    max-width: 1280px; width: calc(100% - 32px);
    margin: 80px auto 60px; padding: 50px 48px;
    border-radius: 6px;
}
.about-grid {
    display: grid; grid-template-columns: 1fr 2.5fr; gap: 48px;
    align-items: start;
}
.about h2 {
    font-size: 28px; font-weight: 700; margin-top: 10px;
    line-height: 1.2;
}
.about p {
    font-size: 16px; color: #4a4a4a;
    line-height: 1.7; font-weight: 400;
}

/* ============== Footer ============== */
.footer {
    text-align: left; padding: 36px 20px;
    color: #757575; font-size: 12px;
    border-top: 1px solid var(--border-soft);
    margin-top: 60px;
    max-width: 1280px;
    margin-left: auto; margin-right: auto;
    text-transform: uppercase; letter-spacing: 1px;
    font-weight: 700;
}

/* ============== QQ 浮动按钮（NVIDIA 绿版） ============== */
.qq-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 10px 14px;
    background: #76b900;
    color: #fff;
    border: 2px solid #76b900;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow:
        inset 2px -2px 1px -1px rgba(255,255,255,0.4),
        inset -2px  2px 1px -1px rgba(255,255,255,0.4),
        0 8px 20px -4px rgba(118,185,0,0.5),
        0 0 5px rgba(0,0,0,0.3);
    text-decoration: none;
    transition: all .2s;
    animation: qq-float-anim 3s ease-in-out infinite;
}
.qq-float:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    transform: translateY(-3px);
    box-shadow:
        0 12px 28px -4px rgba(0,0,0,0.4),
        0 0 0 4px rgba(118,185,0,0.2);
}
.qq-float:hover { animation: none; }
.qq-icon {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #fff;
    position: relative;
    flex-shrink: 0;
}
.qq-icon::before {
    content: "";
    position: absolute;
    left: 4px; top: 7px;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: #76b900;
    box-shadow: 8px 0 0 #76b900;
}
.qq-icon::after {
    content: "";
    position: absolute;
    left: 50%; bottom: 4px;
    width: 6px; height: 3px;
    border-radius: 0 0 6px 6px;
    background: #76b900;
    transform: translateX(-50%);
}
@keyframes qq-float-anim {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* ============== 响应式 ============== */
@media (max-width: 900px) {
    .nav { padding: 12px 16px; }
    .nav-links { gap: 16px; }
    .nav-links a { font-size: 12px; }
    .stat { padding: 0 16px; min-width: 100px; }
    .stat-num { font-size: 28px; }
    .about-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
    .stat { flex: 1 1 50%; border-bottom: 1px solid var(--border-soft); padding: 12px 16px; }
    .stat:nth-child(2) { border-right: none; }
    .qq-float { right: 12px; bottom: 12px; padding: 8px 12px; font-size: 12px; }
}
