/* V2 Pro 增强版样式 */
:root {
    --bg: #FAFAFA;
    --text: #1D1D1F;
    --text-muted: #86868B;
    --accent: #007AFF;
    --card-bg: #FFFFFF;
    --border: rgba(0,0,0,0.06);
    --shadow: 0 4px 24px rgba(0,0,0,0.06);
    --font-cn: 'Outfit', -apple-system, sans-serif;
    --font-en: 'Sora', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-cn);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 背景装饰圆 */
.bg-decor {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: -1;
}
.bg-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #667eea22, #764ba222);
    top: -100px;
    right: -150px;
}
.bg-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #f093fb22, #f5576c22);
    bottom: 20%;
    left: -100px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 4rem;
    background: rgba(250,250,250,0.85);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: var(--font-en);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.05em;
}

/* Logo两部分 */
.logo-part {
    transition: all 0.4s ease;
}

/* 默认两个都显示 */
.nav-logo .logo-part:first-child {
    margin-right: -3px;
}

.nav-logo .logo-part:last-child {
    /* 第二部分正常显示 */
}

/* 滚动后：隐藏第一部分，显示第二部分 */
.nav-logo.shrunk .logo-part:first-child {
    opacity: 0;
    width: 0;
    margin-right: -80px;
}

.nav-logo.shrunk .logo-part:last-child {
    /* 保持显示 */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero区域 */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.hero-visual {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 8s ease-in-out infinite;
}

.shape-a {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #667eea44, #764ba244);
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.shape-b {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f093fb44, #f5576c44);
    top: 60%;
    right: 20%;
    animation-delay: -2s;
}

.shape-c {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #89f7fe44, #66a6ff44);
    bottom: 25%;
    left: 25%;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

.hero-label {
    font-family: var(--font-en);
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-cn);
    font-weight: 600;
    font-size: clamp(3.5rem, 12vw, 7rem);
    line-height: 1.1;
    animation: fadeUp 0.8s ease-out;
}

.title-line {
    display: block;
    background: linear-gradient(135deg, var(--text) 0%, #555 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-weight: 300;
    font-size: 1.2rem;
    animation: fadeUp 0.8s ease-out 0.2s both;
}

.hero-tags {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    animation: fadeUp 0.8s ease-out 0.4s both;
}

.tag-item {
    padding: 0.5rem 1.2rem;
    background: var(--card-bg);
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--text-muted);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.tag-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.scroll-hint {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    animation: bounce 2s ease-in-out infinite;
}

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

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 通用的 Section 样式 */
.section {
    padding: 8rem 2rem;
}

.alt-bg {
    background: #F5F5F7;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-label {
    display: block;
    font-family: var(--font-en);
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-title {
    font-weight: 500;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 3rem;
}

/* 关于我区域 */
#about .about-layout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 5rem;
    align-items: center;
}

.about-visual {
    position: relative;
}

.avatar-frame {
    position: relative;
    width: 220px;
    height: 220px;
}

.avatar-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea33, #764ba233);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.tag-badge {
    display: inline-block;
    background: var(--text);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.85rem;
    margin-top: -20px;
    margin-left: 30px;
    position: relative;
    z-index: 2;
}

.about-text h3 {
    font-weight: 500;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* 数据统计行 */
.stats-row {
    display: flex;
    gap: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.stat-item {
    text-align: left;
}

.stat-num {
    display: block;
    font-family: var(--font-en);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* B站作品区域 - 4格布局 */
.video-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

#bilibili .video-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
}

.video-grid-4 .video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.video-grid-4 .video-card-new:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* 视频封面 */
.card-cover {
    position: relative;
    height: 200px;
    cursor: pointer;
    overflow: hidden;
}

.cover-img {
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}

.cover-1 { background: none; }
.cover-2 { background: none; }
.cover-3 { background: none; }

/* 新视频卡片结构样式 */
.video-card-new {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.video-card-new:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.card-cover-new {
    height: 180px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.cover-img-new {
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
    background-color: #f0f0f0; /* 默认背景色，会被API图片覆盖 */
    position: relative;
    overflow: hidden;
}

.cover-1-new { background: none; }
.cover-2-new { background: none; }
.cover-3-new { background: none; }

.card-cover-new:hover .cover-img-new {
    transform: scale(1.05);
}

.play-overlay-new {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.card-cover-new:hover .play-overlay-new {
    opacity: 1;
}

.play-btn-new {
    color: white;
    font-size: 2rem;
    background: rgba(0,0,0,0.6);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-content-new {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.video-title-new {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    min-height: 2.8rem; /* 确保标题区域高度一致 */
}

.card-meta-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.views-new {
    font-weight: 500;
}

.bilibili-tag-new {
    background: #00a1d6;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 跳转B站链接样式 */
.bilibili-link-new {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.bilibili-link-new:hover {
    color: inherit;
}

.link-cover-new {
    background: linear-gradient(135deg, #00a1d6, #00b5e5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 180px;
}

.link-text-new {
    color: white;
    margin-top: 10px;
    font-weight: 500;
}

.bilibili-link-new .card-content-new {
    text-align: center;
}

.bilibili-link-new .card-content-new h4 {
    color: var(--accent);
    margin-bottom: 4px;
}

.bilibili-link-new .card-content-new p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.card-cover:hover .cover-img {
    transform: scale(1.05);
}

.cover-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-cover:hover .cover-overlay {
    opacity: 1;
}

.play-btn {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 0.8rem;
}

.cover-overlay h4 {
    color: white;
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    padding: 0 1rem;
}

/* B站链接卡片 */
.bilibili-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.link-cover {
    background: linear-gradient(135deg, #00a1d6 0%, #00c8ff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.link-text {
    color: white;
    font-size: 1rem;
    margin-top: 1rem;
}

/* 移除之前的视频卡片样式冲突 */
#bilibili .video-grid,
.video-card.highlight {
    display: none;
}

.video-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.video-card.highlight {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.card-image {
    height: 220px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a2e;
}

.video-card.highlight .card-image {
    height: auto;
    min-height: 280px;
}

.img-1 { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.img-2 { background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%); }
.img-3 { background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%); }
.img-4 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }

.play-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.video-card:hover .play-icon {
    opacity: 1;
    transform: scale(1);
}

.card-content {
    padding: 1.5rem;
}

.video-card.highlight .card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-content h3 {
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.video-card.highlight .card-content h3 {
    font-size: 1.4rem;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* 视频嵌入样式 */
.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 音乐区域 */
#music .music-layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    align-items: center;
}

.playlist-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    display: flex;
}

.playlist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.playlist-card.main {
    justify-content: flex-end;
}

.playlist-cover {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.playlist-cover.alt {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.vinyl-disc {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at center, #333 20%, transparent 21%),
                conic-gradient(from 0deg, #222, #555, #222, #555, #222);
    animation: spin-vinyl 4s linear infinite;
}

@keyframes spin-vinyl {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cover-icon {
    font-size: 2rem;
    color: white;
}

.playlist-info {
    padding: 1.5rem;
    flex: 1;
}

.playlist-info h3 {
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.playlist-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.song-count {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: #F5F5F7;
    border-radius: 15px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.music-creator {
    text-align: center;
    padding: 2rem;
}

.creator-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-image: url("avatar.jpg"), linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0 auto 1rem;
}

.music-creator h3 {
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.creator-role {
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.creator-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* 音乐创作区域 - 简约新设计 */
.music-section {
    padding: 4rem 0;
}

.music-simple-card {
    max-width: 400px;
    margin: 2rem auto 0;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(78, 205, 196, 0.15);
}

.music-avatar-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
}

.music-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.music-avatar-ring {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #4ECDC4, #A855F7, #4ECDC4);
    animation: rotateRing 8s linear infinite;
    z-index: 1;
}

@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.music-info {
    text-align: center;
}

.music-name {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.music-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(78, 205, 196, 0.12);
    padding: 0.4rem 1rem;
    border-radius: 20px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4ECDC4;
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
}

.status-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.music-decor {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.decor-note, .decor-note-2 {
    position: absolute;
    font-size: 2rem;
    color: rgba(78, 205, 196, 0.15);
    animation: floatNote 4s ease-in-out infinite;
}

.decor-note {
    top: 15%;
    left: 15%;
}

.decor-note-2 {
    bottom: 15%;
    right: 15%;
    animation-delay: 2s;
}

.decor-wave {
    position: absolute;
    bottom: 20%;
    left: 10%;
    width: 40px;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.2), transparent);
    border-radius: 2px;
    animation: waveMove 3s ease-in-out infinite;
}

@keyframes floatNote {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes waveMove {
    0%, 100% { transform: translateX(0) scaleX(1); }
    50% { transform: translateX(10px) scaleX(1.2); }
}

/* MC建筑区域 - 新版画廊设计 */
.minecraft-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto;
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    position: relative;
    background-color: #f8f9fa; /* 加载时的占位背景 */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* 16:9 宽幅图片 - 左侧主图 */
.gallery-item.wide {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 16 / 9;
}

/* 4:3 竖幅图片 - 右侧三个小图 */
.gallery-item.portrait {
    grid-column: 2;
    aspect-ratio: 4 / 3;
}

/* 右侧三个小图的垂直排列 */
.gallery-item.portrait:nth-child(2) {
    grid-row: 1;
}

.gallery-item.portrait:nth-child(3) {
    grid-row: 2;
}

.gallery-item.portrait:nth-child(4) {
    grid-row: 3;
}

/* 悬停效果 */
.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

/* 图片加载前的占位背景 */
.gallery-item.wide::before {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
}

.gallery-item.portrait:nth-child(2)::before {
    background: linear-gradient(135deg, #0984e3 0%, #74b9ff 100%);
}

.gallery-item.portrait:nth-child(3)::before {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
}

.gallery-item.portrait:nth-child(4)::before {
    background: linear-gradient(135deg, #00b894 0%, #55efc4 100%);
}

/* 画廊说明文字 */
.gallery-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 1.5rem;
    font-style: italic;
}

figcaption {
    padding: 1.5rem;
    background: var(--card-bg);
}

/* 响应式设计 */
@media (max-width: 900px) {
    .minecraft-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1.2rem;
    }

    .gallery-item.wide,
    .gallery-item.portrait {
        grid-column: 1;
        grid-row: auto;
        aspect-ratio: 16 / 9;
    }

    .gallery-item.portrait:nth-child(2),
    .gallery-item.portrait:nth-child(3),
    .gallery-item.portrait:nth-child(4) {
        grid-row: auto;
    }
}

@media (max-width: 600px) {
    .minecraft-gallery {
        gap: 1rem;
    }

    .gallery-item {
        border-radius: 16px;
    }

    .gallery-item:hover {
        transform: translateY(-5px) scale(1.01);
    }
}

/* Minecraft水平滚动传送带 - 双轨道无缝循环 */
.minecraft-carousel {
    margin: 2.5rem 0;
    position: relative;
    overflow: hidden; /* 隐藏超出容器的内容 */
    width: 100%;
}

/* 渐变遮罩提示可滚动 */
.minecraft-carousel::before,
.minecraft-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.minecraft-carousel::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg) 0%, transparent 100%);
}

.minecraft-carousel::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg) 0%, transparent 100%);
}

/* 当有可滚动内容时显示遮罩 */
.minecraft-carousel.scrollable::before,
.minecraft-carousel.scrollable::after {
    opacity: 1;
}

/* 传送带包装器 - 包含两个track */
.carousel-wrapper {
    position: relative;
    height: 240px; /* 根据图片高度调整（340px * 9/16 ≈ 191px + padding） */
    width: 100%;
    overflow: hidden;
}

/* 单个传送带轨道 - 绝对定位以便重叠 */
.carousel-track {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    flex-wrap: nowrap !important;
    padding: 0.5rem 0;
    will-change: transform;
    width: max-content;
}

/* 传送带动画由JavaScript控制，不需要CSS动画 */

.carousel-item {
    flex: 0 0 auto;
    width: 340px; /* 增大6% (原为320px) */
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: #f8f9fa;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.carousel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.carousel-item:hover img {
    transform: scale(1.05);
}

.carousel-scroll-hint {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    opacity: 0.8;
    font-style: italic;
    transition: opacity 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 900px) {
    .carousel-item {
        width: 295px; /* 增大5% (原为280px) */
    }

    .carousel-track {
        gap: 1.2rem;
    }
}

@media (max-width: 600px) {
    .carousel-item {
        width: 252px; /* 增大5% (原为240px) */
        border-radius: 12px;
    }

    .carousel-track {
        gap: 1rem;
        padding-bottom: 1rem;
    }

    .carousel-scroll-hint {
        font-size: 0.8rem;
        margin-top: 0.8rem;
    }
}

/* 标签语区域 - 缩小尺寸 */
.tagline-section {
    padding: 5rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, var(--bg) 0%, #F0F0F2 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.tagline-text {
    font-family: var(--font-en);
    font-weight: 600;
    font-size: clamp(2rem, 8vw, 4rem);
    letter-spacing: 0.1em;
    color: var(--text);
    opacity: 0.08;
    margin-bottom: 0.5rem;
}

.tagline-section p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* 页脚 - 简洁三栏布局 */
.footer {
    padding: 2rem;
    background: #E8E8EB;
    color: var(--text);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer .container {
    max-width: 700px;
    margin: 0 auto;
    padding-left: 155px;
}

/*
 * ============================================
 * 页脚三栏间距调整区域
 * ============================================
 */

.footer-grid {
    display: flex;
    justify-content: flex-start;
    gap: 3.5rem;  /* 【调整1】整体三栏的基础间距，改数字调整所有栏之间的间距 */
}

/*
 * 【调整2】单独调整每栏之间的间距（在下方添加代码）
 *
 * 示例代码：
 * .footer-col:nth-child(1) { margin-right: 1rem; }  // 第一栏右侧间距
 * .footer-col:nth-child(2) { margin-left: 0.5rem; margin-right: -0.5rem; }  // 第二栏左右偏移
 * .footer-col:nth-child(3) { margin-left: 1rem; }  // 第三栏左侧间距
 */

.footer-col:nth-child(1) {
    margin-right: 1rem;
}

.footer-col:nth-child(3) {
    margin-left: -1rem;
}

.footer-col {
    flex: 0 0 100px;  /* 【调整3】每栏的固定宽度，改数字调整每栏占用的空间 */
    text-align: left;
}

.footer-col.footer-right {
    text-align: left;
}

.footer-title {
    font-size: 0.65rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    height: 16px;
    line-height: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    height: 18px;
    line-height: 18px;
    margin-bottom: 0;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.7rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-right p {
    margin: 0;
    font-size: 0.7rem;
    color: var(--text-muted);
    height: 18px;
    line-height: 18px;
}

.footer-right a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.7rem;
    transition: color 0.3s ease;
}

.footer-right a:hover {
    color: var(--accent);
}

.footer-copyright {
    font-weight: 500;
    color: var(--text) !important;
    opacity: 0.8;
}

/* ICP备案号不换行 */
.footer-icp {
    white-space: nowrap;
}

/* 公安备案信息 */
.footer-beian {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.footer-beian a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-beian a:hover {
    color: var(--accent);
}

.beian-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

/* 版权声明弹窗 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text);
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-body {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-warning {
    color: #e74c3c;
    font-weight: 500;
    background: rgba(231, 76, 60, 0.08);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: var(--card-bg);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.social-link.bilibili:hover {
    color: #00a1d6;
}

.social-link.music:hover {
    color: #e62117;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* 响应式设计 */
@media (max-width: 900px) {
    .navbar {
        padding: 1rem 2rem;
    }

    .nav-logo {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    #about .about-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

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

    /* 视频4格 -> 2x2 */
    .video-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    #music .music-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .playlist-card.main {
        justify-content: flex-start;
    }

    #minecraft .build-showcase {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer .container {
        padding-left: 40px;
    }

    .footer-grid {
        gap: 3rem;
    }

    .modal-content {
        padding: 1.5rem;
    }
}

@media (max-width: 600px) {
    .navbar {
        padding: 0.8rem 1rem;
    }

    .nav-logo {
        font-size: 1rem;
    }

    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    /* 视频单列 */
    .video-grid-4 {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .stats-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-item {
        text-align: center;
    }

    .footer .container {
        padding-left: 0;
    }

    .footer-grid {
        flex-direction: column;
        gap: 1.2rem;
        text-align: center;
    }

    .footer-col,
    .footer-col.footer-right {
        text-align: center;
    }

    .footer-col:nth-child(2),
    .footer-col:nth-child(3) {
        margin: 0;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .modal-body {
        font-size: 0.85rem;
    }
}