/* 全局重置 + 科幻色系变量 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
:root {
    --bg-main: #080a10;
    --bg-card: #0f131b;
    --text-white: #f0f4fb;
    --text-gray: #a0a8b8;
    --primary-blue: #00b8ff;
    --accent-purple: #a855f7;
    --accent-cyan: #06b6d4;
    --neon-glow: 0 0 12px #00b8ff60, 0 0 24px #00b8ff30;
    --purple-glow: 0 0 18px #a855f750, 0 0 35px #a855f730;
    --border-line: 1px solid #00b8ff33;
    --border-line-light: 1px solid #ffffff08;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --float-distance: -8px;
}
html {
    scroll-behavior: smooth;
}
body {
    background-color: #05070a;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(168, 85, 247, 0.35), transparent 28%),
        radial-gradient(circle at 80% 10%, rgba(0, 184, 255, 0.25), transparent 28%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), transparent 36%),
        linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.95) 100%);
    background-attachment: fixed;
    background-size: cover;
    color: #f0f4fb;
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
}
.container {
    max-width: 1700px;
    width: 94%;
    margin: 0 auto;
}
.section {
    padding: 120px 0;
}
.section-title {
    font-size: 36px;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 60px;
    height: 2px;
    background: var(--primary-blue);
    box-shadow: var(--neon-glow);
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(8, 10, 16, 0.85);
    backdrop-filter: blur(8px);
    z-index: 999;
    border-bottom: var(--border-line);
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
    letter-spacing: 2px;
}
.nav-list {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}
.nav-list a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
}
.nav-list a:hover {
    color: var(--primary-blue);
    text-shadow: var(--neon-glow);
}
.contact-btn {
    padding: 10px 24px;
    border: var(--border-line);
    border-radius: 4px;
}
.contact-btn:hover {
    background: #00b8ff15;
}

/* 全屏Hero首页 */
.hero {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8,10,16,0.92), rgba(8,10,16,0.35));
    z-index: -1;
}
.hero-content {
    z-index: 1;
}
.hero-title {
    font-size: 72px;
    margin-bottom: 16px;
    letter-spacing: 6px;
    color: var(--text-white);
    text-shadow: var(--neon-glow);
}
.hero-sub {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 40px;
}
.hero-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
}
.btn-primary {
    padding: 14px 36px;
    background: var(--primary-blue);
    color: #080a10;
    text-decoration: none;
    border-radius: 2px;
    transition: var(--transition);
}
.btn-primary:hover {
    box-shadow: var(--neon-glow);
}
.btn-outline {
    padding: 14px 36px;
    border: var(--border-line);
    color: var(--text-white);
    text-decoration: none;
    transition: var(--transition);
}
.btn-outline:hover {
    background: #00b8ff15;
}

/* 关于我模块 */
.about-wrap {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 60px;
    align-items: flex-start;
}
.about-avatar img {
    width: 100%;
    border: var(--border-line);
    border-radius: 6px;
    transition: var(--transition);
}
.about-avatar img:hover {
    box-shadow: var(--neon-glow);
}
.info-block {
    margin-bottom: 32px;
}
.info-block h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--primary-blue);
}
.info-block p, .info-block li {
    color: var(--text-gray);
    margin: 6px 0;
}
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}
.tag {
    padding: 6px 16px;
    border: var(--border-line);
    border-radius: 30px;
    color: var(--text-gray);
    font-size: 14px;
}

/* ====================图文作品排版核心（稳定防错乱）==================== */
.graphic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}
/* 通栏整行卡片 */
.full-card{
    grid-column: 1 / -1;
}
/* 分组大标题 */
.group-title{
    grid-column: 1 / -1;
    font-size: 24px;
    color: var(--primary-blue);
    margin: 50px 0 16px;
    padding-left: 12px;
    border-left: 4px solid var(--primary-blue);
}
/* 子小标题 */
.sub-group-title{
    grid-column: 1 / -1;
    font-size: 18px;
    color: var(--text-gray);
    margin: 26px 0 18px;
}
/* 单列通栏容器 */
.graphic-col-1{
    display: grid;
    grid-template-columns: 1fr;
    gap:30px;
    grid-column: 1 / -1;
}
/* 两列布局 */
.graphic-col-2{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap:24px;
    grid-column: 1 / -1;
}
/* 三列布局 */
.graphic-col-3{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap:24px;
    grid-column: 1 / -1;
}
/* 五列布局 */
.graphic-col-5{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap:18px;
    grid-column: 1 / -1;
}

/* 卡片基础样式 */
.graphic-card {
    background: var(--bg-card);
    border: var(--border-line);
    border-radius: 6px;
    overflow: hidden;
    transition: var(--transition);
}
.graphic-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--neon-glow);
}
.card-desc {
    padding: 18px;
}
.card-desc h4 {
    font-size: 18px;
    margin-bottom: 6px;
}
.card-desc p {
    color: var(--text-gray);
    font-size: 14px;
}

/* 普通卡片图片固定高度，排版整齐 */
.graphic-card:not(.full-card):not(.panorama-full) img{
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
/* 竖版长海报：完整显示，限制最大高度防止过长 */
.full-card img{
    width: 100%;
    height: auto;
    max-height: 900px;
    object-fit: contain;
    background-color: var(--bg-main);
    display: block;
}
/* 横向全景置景长条图：完整左右展示，高度受控不横向溢出 */
.panorama-full img{
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    background-color: var(--bg-main);
    display: block;
}

/* 视频作品网格 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.video-card {
    background: var(--bg-card);
    border: var(--border-line);
    border-radius: 6px;
    overflow: hidden;
    transition: var(--transition);
}
.video-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--neon-glow);
}
.video-card video {
    width: 100%;
    height: 260px;
    object-fit: cover;
    background: #000;
}

/* 文案模块 */
.copy-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.copy-card {
    padding: 26px;
    border: var(--border-line);
    border-radius: 6px;
    background: var(--bg-card);
    transition: var(--transition);
}
.copy-card:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--neon-glow);
}
.copy-card h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-blue);
}
.copy-card p {
    color: var(--text-gray);
}

/* 底部联系区 */
.contact-section {
    text-align: center;
}
.contact-text p {
    font-size: 18px;
    margin: 12px 0;
    color: var(--text-gray);
}/* 简历下载按钮样式，统一网站科幻蓝色风格 */
.resume-download {
    margin-top: 30px;
}
.resume-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary-blue);
    color: #080a10;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}
.resume-btn:hover {
    box-shadow: var(--neon-glow);
    transform: translateY(-3px);
}
/* ========== 全局平滑滚动 ========== */
html {
    scroll-behavior: smooth;
}

/* ========== 鼠标跟随视差卡片 ========== */
.tilt-card {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.tilt-card-inner {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.tilt-card:hover .tilt-card-inner {
    transform: translateY(var(--float-distance)) scale(1.02);
}

/* ========== 卡片悬浮发光 ========== */
.glow-card {
    position: relative;
    overflow: hidden;
}

.glow-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(168, 85, 247, 0.45), transparent 45%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 0;
}

.glow-card:hover::before {
    opacity: 1;
}

.glow-card > * {
    position: relative;
    z-index: 1;
}

/* ========== 卡片边框流光 ========== */
.gradient-border-card {
    position: relative;
    border-radius: 6px;
}

.gradient-border-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 7px;
    background: conic-gradient(from 0deg, #00b8ff, #a855f7, #06b6d4, #00b8ff);
    background-size: 300% 300%;
    opacity: 0;
    transition: opacity 0.35s ease;
    animation: borderSpin 4s linear infinite;
    pointer-events: none;
    z-index: -1;
}

.gradient-border-card:hover::before {
    opacity: 1;
}

@keyframes borderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========== 滚动入场动画 ========== */
.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== 首页 Hero 动态光晕 ========== */
.hero-glow {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(120px);
    animation: heroGlowPulse 8s ease-in-out infinite;
    pointer-events: none;
}

.hero-glow:nth-child(1) {
    top: -10%;
    left: -5%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.35), rgba(0, 184, 255, 0.15), transparent 72%);
}

.hero-glow:nth-child(2) {
    top: -15%;
    right: -5%;
    background: radial-gradient(circle, rgba(0, 184, 255, 0.3), rgba(168, 85, 247, 0.2), transparent 72%);
}

.hero-glow:nth-child(3) {
    bottom: -10%;
    left: 10%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.25), rgba(168, 85, 247, 0.15), transparent 72%);
}

@keyframes heroGlowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.55;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.85;
    }
}

/* ========== 按钮微动效 ========== */
.btn-primary,
.btn-outline,
.resume-btn,
.contact-btn {
    position: relative;
    overflow: hidden;
}

.btn-primary::after,
.btn-outline::after,
.resume-btn::after,
.contact-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn-primary:hover::after,
.btn-outline:hover::after,
.resume-btn:hover::after,
.contact-btn:hover::after {
    transform: translateX(100%);
}

/* ========== 导航栏毛玻璃增强 ========== */
.navbar {
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
}

/* ========== 技能标签悬浮 ========== */
.tag {
    transition: var(--transition);
}

.tag:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    box-shadow: var(--purple-glow);
    transform: translateY(-2px);
}

/* ========== 图片卡片统一动态 ========== */
.graphic-card,
.video-card {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
}

.graphic-card:hover,
.video-card:hover {
    transform: translateY(-6px);
}

/* ========== 二维码卡片轻微悬浮 ========== */
.wechat-qrcode {
    transition: var(--transition);
}

.wechat-qrcode:hover {
    transform: translateY(-5px);
}
.hero-top-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 280px;
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.18), rgba(0, 184, 255, 0.12), transparent 100%);
    pointer-events: none;
    z-index: 0;
}