/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-bg: #1a1a1a;
  --secondary-bg: #252525;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --accent-color: #007BFF;
  --hover-color: #0056b3;
  --overlay-bg: rgba(0, 0, 0, 0.7);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--primary-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Apple Style Intro Overlay */
#intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #000000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: pointer;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#intro-text {
  color: white;
  font-size: 3.5rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  animation: appleTextAnimation 2.5s ease-out forwards;
  letter-spacing: -0.02em;
  text-align: center;
  padding: 0 20px;
}

#intro-hint {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  margin-top: 2rem;
  opacity: 0;
  animation: fadeInHint 2.5s ease-out 1s forwards;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@keyframes appleTextAnimation {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  50% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeInHint {
  0% { opacity: 0; }
  100% { opacity: 0.6; }
}

.intro-hidden { opacity: 0 !important; pointer-events: none; }

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo h3 { font-size: 1.5rem; font-weight: 700; }
.nav-logo span { color: var(--accent-color); font-weight: 300; }
.nav-menu { display: flex; list-style: none; gap: 2rem; }
.nav-link { color: var(--text-primary); text-decoration: none; transition: color 0.3s ease; font-weight: 400; position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background-color: var(--accent-color); transition: width 0.3s ease; }
.nav-link:hover::after,.nav-link.active::after { width: 100%; }
.nav-link:hover,.nav-link.active { color: var(--accent-color); }
.hamburger { display: none; flex-direction: column; cursor: pointer; }
.hamburger span { width: 25px; height: 3px; background-color: var(--text-primary); margin: 3px 0; transition: 0.3s; }

/* Hero Section */
.hero { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-video { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; object-fit: cover; transform: translate(-50%, -50%); z-index: -2; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--overlay-bg); z-index: -1; }
.hero-content { text-align: center; z-index: 1; will-change: transform; }
.hero-title { font-size: 5rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: -0.02em; background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.5rem; font-weight: 300; color: var(--text-secondary); margin-bottom: 2rem; }

/* Four Modules Section */
.modules-section { padding: 5rem 0; background-color: var(--primary-bg); }
.modules-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.module-card { background-color: var(--secondary-bg); border-radius: 12px; padding: 2.5rem; text-align: center; transition: all 0.3s ease; border: 1px solid rgba(255,255,255,0.05); opacity: 0; transform: translateY(20px); }
.module-card.animate-in { animation: moduleAnimation 0.6s ease-out forwards; }
@keyframes moduleAnimation { to { opacity: 1; transform: translateY(0); } }
.module-card:hover { transform: translateY(-5px); background-color: #2a2a2a; border-color: var(--accent-color); box-shadow: 0 10px 30px rgba(0,123,255,0.2); }
.module-icon { font-size: 3rem; color: var(--accent-color); margin-bottom: 1.5rem; transition: transform 0.3s ease; }
.module-card:hover .module-icon { transform: scale(1.1) rotateZ(5deg); }
.module-title { font-size: 1.5rem; margin-bottom: 1rem; font-weight: 600; }
.module-description { color: var(--text-secondary); margin-bottom: 1.5rem; line-height: 1.6; }
.module-link { color: var(--accent-color); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 0.5rem; transition: all 0.3s ease; position: relative; }
.module-link::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background-color: var(--accent-color); transition: width 0.3s ease; }
.module-link:hover::after { width: 100%; }

/* Recent Works Section */
.recent-works { padding: 5rem 0; background-color: var(--secondary-bg); }
.recent-works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.work-item { position: relative; cursor: pointer; transition: transform 0.3s ease; }
.work-item:hover { transform: scale(1.02); }
.work-thumbnail { position: relative; overflow: hidden; border-radius: 8px; background: #000; }
.work-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: all 0.5s ease; }
.work-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.work-overlay i { font-size: 4rem; color: white; transform: scale(0.8); transition: transform 0.3s ease; }
.work-item:hover .work-overlay { opacity: 1; }
.work-item:hover .work-overlay i { transform: scale(1); }
.work-item h4 { margin-top: 1rem; font-size: 1.1rem; font-weight: 500; }

/* Page Header */
.page-header { padding: 120px 0 60px; background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%); text-align: center; }
.page-title { font-size: 3rem; margin-bottom: 0.5rem; background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.page-subtitle { color: var(--text-secondary); font-size: 1.2rem; }

/* Section Styles */
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 0.5rem; }
.section-subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 3rem; font-style: italic; }

/* Featured Works */
.featured-works { padding: 5rem 0; background-color: var(--primary-bg); }
.featured-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; margin-bottom: 3rem; }

/* Portfolio Styles */
.portfolio-page { padding: 3rem 0 5rem; }
.portfolio-item { cursor: pointer; transition: transform 0.3s ease; }
.portfolio-item:hover { transform: translateY(-5px); }
.portfolio-thumbnail { position: relative; overflow: hidden; border-radius: 8px; aspect-ratio: 4/3; }
.portfolio-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.portfolio-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--overlay-bg); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.portfolio-overlay i { font-size: 3rem; color: var(--text-primary); }
.portfolio-item:hover .portfolio-thumbnail img { transform: scale(1.1); }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-title { margin-top: 1rem; font-size: 1.2rem; font-weight: 600; }
.portfolio-category { color: var(--text-secondary); font-size: 0.9rem; }
.portfolio-grid.full-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }

/* Free Stuff Preview */
.free-stuff-preview { padding: 5rem 0; background-color: var(--secondary-bg); }
.free-stuff-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; margin-bottom: 3rem; }

/* Free Stuff Page */
.free-stuff-page { padding: 3rem 0 5rem; }
.free-stuff-grid.full-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }

/* Showcase Items */
.showcase-item { background-color: var(--primary-bg); border-radius: 8px; padding: 1.5rem; text-align: center; transition: transform 0.3s ease; border: 1px solid rgba(255,255,255,0.05); }
.showcase-item:hover { transform: translateY(-5px); border-color: var(--accent-color); }
.showcase-image { width: 100%; height: 250px; overflow: hidden; border-radius: 8px; margin-bottom: 1rem; }
.showcase-image img { width: 100%; height: 100%; object-fit: cover; }
.showcase-title { font-size: 1.2rem; margin-bottom: 0.5rem; }
.showcase-description { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1.5rem; line-height: 1.4; }

/* CTA Buttons */
.cta-button-container { text-align: center; margin-top: 3rem; }
.cta-button { display: inline-flex; align-items: center; gap: 0.5rem; padding: 1rem 2rem; background-color: var(--accent-color); color: var(--text-primary); text-decoration: none; border-radius: 4px; font-weight: 500; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px; }
.cta-button:hover { background-color: var(--hover-color); transform: translateX(5px); }
.btn { padding: 0.8rem 2rem; border: none; border-radius: 4px; font-size: 1rem; font-weight: 500; cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; display: inline-block; }
.btn-primary { background-color: var(--accent-color); color: var(--text-primary); }
.btn-primary:hover { background-color: var(--hover-color); transform: translateY(-2px); }

/* Download Notice */
.download-notice { margin-top: 3rem; padding: 1.5rem; background-color: var(--secondary-bg); border-radius: 8px; text-align: center; }
.download-notice p { color: var(--text-secondary); }
.download-notice i { color: var(--accent-color); margin-right: 0.5rem; }

/* About Page Styles */
.about-content { padding: 3rem 0 5rem; }
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; align-items: start; }
.about-image img { width: 100%; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.about-text h2 { font-size: 2rem; margin-bottom: 1.5rem; color: var(--accent-color); }
.about-text h3 { font-size: 1.5rem; margin: 2rem 0 1rem; color: var(--text-primary); }
.about-text p { margin-bottom: 1rem; line-height: 1.8; color: var(--text-secondary); }
.skills-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; margin-bottom: 2rem; }
.skill-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.8rem; background-color: var(--secondary-bg); border-radius: 4px; }
.skill-item i { color: var(--accent-color); font-size: 1.2rem; }
.tools-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.tool-tag { padding: 0.5rem 1rem; background-color: var(--secondary-bg); border-radius: 20px; font-size: 0.9rem; }
.contact-info p { margin-bottom: 0.5rem; color: var(--text-secondary); }
.contact-info i { color: var(--accent-color); margin-right: 0.5rem; width: 20px; }
.contact-btn { margin-top: 2rem; }

/* Footer */
.footer { background-color: #0f0f0f; padding: 3rem 0; text-align: center; }
.social-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.social-link { color: var(--text-secondary); font-size: 1.5rem; transition: color 0.3s ease; }
.social-link:hover { color: var(--accent-color); }
.copyright { color: var(--text-secondary); font-size: 0.9rem; }

/* Fade In Animation */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in.appear { opacity: 1; transform: translateY(0); }

/* Responsive Design */
@media (max-width: 1024px) {
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid, .portfolio-grid.full-grid, .free-stuff-grid, .free-stuff-grid.full-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 3rem; }
  .recent-works-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-menu { position: fixed; left: -100%; top: 70px; flex-direction: column; background-color: var(--primary-bg); width: 100%; text-align: center; transition: 0.3s; padding: 2rem 0; box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
  .nav-menu.active { left: 0; }
  .hamburger { display: flex; }
  .hero-title { font-size: 3rem; }
  .hero-subtitle { font-size: 1.2rem; }
  #intro-text { font-size: 2rem; padding: 0 20px; }
  #intro-hint { font-size: 0.9rem; }
  .page-title { font-size: 2rem; }
  .modules-grid { grid-template-columns: 1fr; }
  .featured-grid, .portfolio-grid.full-grid, .free-stuff-grid, .free-stuff-grid.full-grid, .recent-works-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 2rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .module-card { padding: 2rem; }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--primary-bg); }
::-webkit-scrollbar-thumb { background: var(--secondary-bg); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #333; }

/* Selection Style */
::selection { background-color: var(--accent-color); color: white; }
::-moz-selection { background-color: var(--accent-color); color: white; }

/* --- 新增：作品集页面样式 --- */
/* 页面主容器的内边距 */
.portfolio-page {
  padding-top: 100px; /* 为粘性导航栏留出空间 */
  padding-bottom: 60px;
  min-height: 100vh;
}

/* 页面主标题 */
.page-title { font-size: 3rem; color: #fff; text-align: center; margin-bottom: 10px; }

/* 页面副标题 */
.page-subtitle { font-size: 1.1rem; color: #aaa; text-align: center; max-width: 600px; margin: 0 auto 40px auto; }

/* 标签页按钮容器 */
.portfolio-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; border-bottom: 2px solid #333; padding-bottom: 20px; }

/* 标签页按钮样式 */
.portfolio-tab { padding: 10px 20px; font-size: 1rem; font-weight: 600; color: #aaa; background-color: transparent; border: 2px solid transparent; border-radius: 5px; cursor: pointer; transition: all 0.3s ease; }
.portfolio-tab:hover { color: #fff; background-color: #2a2a2a; }
.portfolio-tab.active { color: #fff; border-bottom: 2px solid #007BFF; background-color: #222; }

/* 标签页内容区域 */
.portfolio-content { display: none; animation: fadeIn 0.5s ease; }
.portfolio-content.active { display: block; }

.portfolio-content h2 { font-size: 2rem; color: #fff; margin-bottom: 10px; border-left: 4px solid #007BFF; padding-left: 10px; }
.portfolio-content p { font-size: 1rem; color: #aaa; margin-bottom: 30px; }

/* 可选： work-grid 与 work-card 示例 (注释掉供参考) */
/*
.work-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.work-card { background: #2a2a2a; border-radius: 8px; overflow: hidden; }
.work-card img { width: 100%; display: block; }
.work-card h3 { color: #fff; padding: 15px; }
.work-card span { color: #aaa; padding: 0 15px 15px; font-size: 0.9rem; }

@media (max-width: 768px) { .work-grid { grid-template-columns: 1fr; } }
*/
/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #1a1a1a;
    --secondary-bg: #252525;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-color: #007BFF;
    --hover-color: #0056b3;
    --overlay-bg: rgba(0, 0, 0, 0.7);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Apple Style Intro Overlay */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: pointer;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#intro-text {
    color: white;
    font-size: 3.5rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    animation: appleTextAnimation 2.5s ease-out forwards;
    letter-spacing: -0.02em;
    text-align: center;
    padding: 0 20px;
}

#intro-hint {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    margin-top: 2rem;
    opacity: 0;
    animation: fadeInHint 2.5s ease-out 1s forwards;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@keyframes appleTextAnimation {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    50% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInHint {
    0% { opacity: 0; }
    100% { opacity: 0.6; }
}

.intro-hidden { opacity: 0 !important; pointer-events: none; }

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h3 { font-size: 1.5rem; font-weight: 700; }
.nav-logo span { color: var(--accent-color); font-weight: 300; }
.nav-menu { display: flex; list-style: none; gap: 2rem; }
.nav-link { color: var(--text-primary); text-decoration: none; transition: color 0.3s ease; font-weight: 400; position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background-color: var(--accent-color); transition: width 0.3s ease; }
.nav-link:hover::after,.nav-link.active::after { width: 100%; }
.nav-link:hover,.nav-link.active { color: var(--accent-color); }
.hamburger { display: none; flex-direction: column; cursor: pointer; }
.hamburger span { width: 25px; height: 3px; background-color: var(--text-primary); margin: 3px 0; transition: 0.3s; }

/* Hero Section */
.hero { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-video { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; object-fit: cover; transform: translate(-50%, -50%); z-index: -2; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--overlay-bg); z-index: -1; }
.hero-content { text-align: center; z-index: 1; will-change: transform; }
.hero-title { font-size: 5rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: -0.02em; background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.5rem; font-weight: 300; color: var(--text-secondary); margin-bottom: 2rem; }

/* Four Modules Section */
.modules-section { padding: 5rem 0; background-color: var(--primary-bg); }
.modules-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.module-card { background-color: var(--secondary-bg); border-radius: 12px; padding: 2.5rem; text-align: center; transition: all 0.3s ease; border: 1px solid rgba(255,255,255,0.05); opacity: 0; transform: translateY(20px); }
.module-card.animate-in { animation: moduleAnimation 0.6s ease-out forwards; }
@keyframes moduleAnimation { to { opacity: 1; transform: translateY(0); } }
.module-card:hover { transform: translateY(-5px); background-color: #2a2a2a; border-color: var(--accent-color); box-shadow: 0 10px 30px rgba(0,123,255,0.2); }
.module-icon { font-size: 3rem; color: var(--accent-color); margin-bottom: 1.5rem; transition: transform 0.3s ease; }
.module-card:hover .module-icon { transform: scale(1.1) rotateZ(5deg); }
.module-title { font-size: 1.5rem; margin-bottom: 1rem; font-weight: 600; }
.module-description { color: var(--text-secondary); margin-bottom: 1.5rem; line-height: 1.6; }
.module-link { color: var(--accent-color); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 0.5rem; transition: all 0.3s ease; position: relative; }
.module-link::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background-color: var(--accent-color); transition: width 0.3s ease; }
.module-link:hover::after { width: 100%; }

/* Recent Works Section */
.recent-works { padding: 5rem 0; background-color: var(--secondary-bg); }
.recent-works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.work-item { position: relative; cursor: pointer; transition: transform 0.3s ease; }
.work-item:hover { transform: scale(1.02); }
.work-thumbnail { position: relative; overflow: hidden; border-radius: 8px; background: #000; }
.work-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: all 0.5s ease; }
.work-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.work-overlay i { font-size: 4rem; color: white; transform: scale(0.8); transition: transform 0.3s ease; }
.work-item:hover .work-overlay { opacity: 1; }
.work-item:hover .work-overlay i { transform: scale(1); }
.work-item h4 { margin-top: 1rem; font-size: 1.1rem; font-weight: 500; }

/* Page Header */
.page-header { padding: 120px 0 60px; background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%); text-align: center; }
.page-title { font-size: 3rem; margin-bottom: 0.5rem; background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.page-subtitle { color: var(--text-secondary); font-size: 1.2rem; }

/* Section Styles */
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 0.5rem; }
.section-subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 3rem; font-style: italic; }

/* Featured Works */
.featured-works { padding: 5rem 0; background-color: var(--primary-bg); }
.featured-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; margin-bottom: 3rem; }

/* Portfolio Styles */
.portfolio-page { padding: 3rem 0 5rem; }
.portfolio-item { cursor: pointer; transition: transform 0.3s ease; }
.portfolio-item:hover { transform: translateY(-5px); }
.portfolio-thumbnail { position: relative; overflow: hidden; border-radius: 8px; aspect-ratio: 4/3; }
.portfolio-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.portfolio-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--overlay-bg); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.portfolio-overlay i { font-size: 3rem; color: var(--text-primary); }
.portfolio-item:hover .portfolio-thumbnail img { transform: scale(1.1); }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-title { margin-top: 1rem; font-size: 1.2rem; font-weight: 600; }
.portfolio-category { color: var(--text-secondary); font-size: 0.9rem; }
.portfolio-grid.full-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }

/* Free Stuff Preview */
.free-stuff-preview { padding: 5rem 0; background-color: var(--secondary-bg); }
.free-stuff-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; margin-bottom: 3rem; }

/* Free Stuff Page */
.free-stuff-page { padding: 3rem 0 5rem; }
.free-stuff-grid.full-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }

/* Showcase Items */
.showcase-item { background-color: var(--primary-bg); border-radius: 8px; padding: 1.5rem; text-align: center; transition: transform 0.3s ease; border: 1px solid rgba(255,255,255,0.05); }
.showcase-item:hover { transform: translateY(-5px); border-color: var(--accent-color); }
.showcase-image { width: 100%; height: 250px; overflow: hidden; border-radius: 8px; margin-bottom: 1rem; }
.showcase-image img { width: 100%; height: 100%; object-fit: cover; }
.showcase-title { font-size: 1.2rem; margin-bottom: 0.5rem; }
.showcase-description { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1.5rem; line-height: 1.4; }

/* CTA Buttons */
.cta-button-container { text-align: center; margin-top: 3rem; }
.cta-button { display: inline-flex; align-items: center; gap: 0.5rem; padding: 1rem 2rem; background-color: var(--accent-color); color: var(--text-primary); text-decoration: none; border-radius: 4px; font-weight: 500; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px; }
.cta-button:hover { background-color: var(--hover-color); transform: translateX(5px); }
.btn { padding: 0.8rem 2rem; border: none; border-radius: 4px; font-size: 1rem; font-weight: 500; cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; display: inline-block; }
.btn-primary { background-color: var(--accent-color); color: var(--text-primary); }
.btn-primary:hover { background-color: var(--hover-color); transform: translateY(-2px); }

/* Download Notice */
.download-notice { margin-top: 3rem; padding: 1.5rem; background-color: var(--secondary-bg); border-radius: 8px; text-align: center; }
.download-notice p { color: var(--text-secondary); }
.download-notice i { color: var(--accent-color); margin-right: 0.5rem; }

/* About Page Styles */
.about-content { padding: 3rem 0 5rem; }
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; align-items: start; }
.about-image img { width: 100%; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.about-text h2 { font-size: 2rem; margin-bottom: 1.5rem; color: var(--accent-color); }
.about-text h3 { font-size: 1.5rem; margin: 2rem 0 1rem; color: var(--text-primary); }
.about-text p { margin-bottom: 1rem; line-height: 1.8; color: var(--text-secondary); }
.skills-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; margin-bottom: 2rem; }
.skill-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.8rem; background-color: var(--secondary-bg); border-radius: 4px; }
.skill-item i { color: var(--accent-color); font-size: 1.2rem; }
.tools-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.tool-tag { padding: 0.5rem 1rem; background-color: var(--secondary-bg); border-radius: 20px; font-size: 0.9rem; }
.contact-info p { margin-bottom: 0.5rem; color: var(--text-secondary); }
.contact-info i { color: var(--accent-color); margin-right: 0.5rem; width: 20px; }
.contact-btn { margin-top: 2rem; }

/* Footer */
.footer { background-color: #0f0f0f; padding: 3rem 0; text-align: center; }
.social-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.social-link { color: var(--text-secondary); font-size: 1.5rem; transition: color 0.3s ease; }
.social-link:hover { color: var(--accent-color); }
.copyright { color: var(--text-secondary); font-size: 0.9rem; }

/* Fade In Animation */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in.appear { opacity: 1; transform: translateY(0); }

/* Responsive Design */
@media (max-width: 1024px) {
    .modules-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-grid, .portfolio-grid.full-grid, .free-stuff-grid, .free-stuff-grid.full-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { gap: 3rem; }
    .recent-works-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-menu { position: fixed; left: -100%; top: 70px; flex-direction: column; background-color: var(--primary-bg); width: 100%; text-align: center; transition: 0.3s; padding: 2rem 0; box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
    .nav-menu.active { left: 0; }
    .hamburger { display: flex; }
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.2rem; }
    #intro-text { font-size: 2rem; padding: 0 20px; }
    #intro-hint { font-size: 0.9rem; }
    .page-title { font-size: 2rem; }
    .modules-grid { grid-template-columns: 1fr; }
    .featured-grid, .portfolio-grid.full-grid, .free-stuff-grid, .free-stuff-grid.full-grid, .recent-works-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 2rem; }
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .skills-grid { grid-template-columns: 1fr; }
    .module-card { padding: 2rem; }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--primary-bg); }
::-webkit-scrollbar-thumb { background: var(--secondary-bg); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #333; }

/* Selection Style */
::selection { background-color: var(--accent-color); color: white; }
::-moz-selection { background-color: var(--accent-color); color: white; }

/* --- 新增：作品集页面样式 --- */
/* 页面主容器的内边距 */
.portfolio-page {
    padding-top: 100px; /* 为粘性导航栏留出空间 */
    padding-bottom: 60px;
    min-height: 100vh;
}

/* 页面主标题 */
.page-title { font-size: 3rem; color: #fff; text-align: center; margin-bottom: 10px; }

/* 页面副标题 */
.page-subtitle { font-size: 1.1rem; color: #aaa; text-align: center; max-width: 600px; margin: 0 auto 40px auto; }

/* 标签页按钮容器 */
.portfolio-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; border-bottom: 2px solid #333; padding-bottom: 20px; }

/* 标签页按钮样式 */
.portfolio-tab { padding: 10px 20px; font-size: 1rem; font-weight: 600; color: #aaa; background-color: transparent; border: 2px solid transparent; border-radius: 5px; cursor: pointer; transition: all 0.3s ease; }
.portfolio-tab:hover { color: #fff; background-color: #2a2a2a; }
.portfolio-tab.active { color: #fff; border-bottom: 2px solid #007BFF; background-color: #222; }

/* 标签页内容区域 */
.portfolio-content { display: none; animation: fadeIn 0.5s ease; }
.portfolio-content.active { display: block; }

.portfolio-content h2 { font-size: 2rem; color: #fff; margin-bottom: 10px; border-left: 4px solid #007BFF; padding-left: 10px; }
.portfolio-content p { font-size: 1rem; color: #aaa; margin-bottom: 30px; }

/* 可选： work-grid 与 work-card 示例 (注释掉供参考) */
/*
.work-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.work-card { background: #2a2a2a; border-radius: 8px; overflow: hidden; }
.work-card img { width: 100%; display: block; }
.work-card h3 { color: #fff; padding: 15px; }
.work-card span { color: #aaa; padding: 0 15px 15px; font-size: 0.9rem; }

@media (max-width: 768px) { .work-grid { grid-template-columns: 1fr; } }
*/
/* Global Styles */* {    margin: 0;    padding: 0;    box-sizing: border-box;}:root {    --primary-bg: #1a1a1a;    --secondary-bg: #252525;    --text-primary: #ffffff;    --text-secondary: #b0b0b0;    --accent-color: #007BFF;    --hover-color: #0056b3;    --overlay-bg: rgba(0, 0, 0, 0.7);}body {    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;    background-color: var(--primary-bg);    color: var(--text-primary);    line-height: 1.6;    overflow-x: hidden;    -webkit-font-smoothing: antialiased;    -moz-osx-font-smoothing: grayscale;}.container {    max-width: 1200px;    margin: 0 auto;    padding: 0 20px;}/* Apple Style Intro Overlay */#intro-overlay {    position: fixed;    top: 0;    left: 0;    width: 100%;    height: 100vh;    background: #000000;    display: flex;    flex-direction: column;    justify-content: center;    align-items: center;    z-index: 9999;    cursor: pointer;    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);}#intro-text {    color: white;    font-size: 3.5rem;    font-weight: 600;    opacity: 0;    transform: translateY(20px);    animation: appleTextAnimation 2.5s ease-out forwards;    letter-spacing: -0.02em;    text-align: center;    padding: 0 20px;}#intro-hint {    color: rgba(255, 255, 255, 0.6);    font-size: 1rem;    margin-top: 2rem;    opacity: 0;    animation: fadeInHint 2.5s ease-out 1s forwards;    text-transform: uppercase;    letter-spacing: 0.1em;}@keyframes appleTextAnimation {    0% {        opacity: 0;        transform: translateY(20px) scale(0.98);    }    50% {        opacity: 1;        transform: translateY(0) scale(1);    }    100% {        opacity: 1;        transform: translateY(0) scale(1);    }}@keyframes fadeInHint {    0% {        opacity: 0;    }    100% {        opacity: 0.6;    }}.intro-hidden {    opacity: 0 !important;    pointer-events: none;}/* Navigation Bar */.navbar {    position: fixed;    top: 0;    left: 0;    width: 100%;    background-color: rgba(26, 26, 26, 0.95);    backdrop-filter: blur(10px);    -webkit-backdrop-filter: blur(10px);    z-index: 1000;    padding: 1rem 0;    transition: all 0.3s ease;}.nav-container {    max-width: 1200px;    margin: 0 auto;    padding: 0 20px;    display: flex;    justify-content: space-between;    align-items: center;}.nav-logo h3 {    font-size: 1.5rem;    font-weight: 700;}.nav-logo span {    color: var(--accent-color);    font-weight: 300;}.nav-menu {    display: flex;    list-style: none;    gap: 2rem;}.nav-link {    color: var(--text-primary);    text-decoration: none;    transition: color 0.3s ease;    font-weight: 400;    position: relative;}.nav-link::after {    content: '';    position: absolute;    bottom: -5px;    left: 0;    width: 0;    height: 2px;    background-color: var(--accent-color);    transition: width 0.3s ease;}.nav-link:hover::after,.nav-link.active::after {    width: 100%;}.nav-link:hover,.nav-link.active {    color: var(--accent-color);}.hamburger {    display: none;    flex-direction: column;    cursor: pointer;}.hamburger span {    width: 25px;    height: 3px;    background-color: var(--text-primary);    margin: 3px 0;    transition: 0.3s;}/* Hero Section */.hero {    position: relative;    height: 100vh;    display: flex;    align-items: center;    justify-content: center;    overflow: hidden;}.hero-video {    position: absolute;    top: 50%;    left: 50%;    width: 100%;    height: 100%;    object-fit: cover;    transform: translate(-50%, -50%);    z-index: -2;}.hero-overlay {    position: absolute;    top: 0;    left: 0;    width: 100%;    height: 100%;    background-color: var(--overlay-bg);    z-index: -1;}.hero-content {    text-align: center;    z-index: 1;    will-change: transform;}.hero-title {    font-size: 5rem;    font-weight: 700;    margin-bottom: 1rem;    letter-spacing: -0.02em;    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);    -webkit-background-clip: text;    -webkit-text-fill-color: transparent;    background-clip: text;}.hero-subtitle {    font-size: 1.5rem;    font-weight: 300;    color: var(--text-secondary);    margin-bottom: 2rem;}/* Four Modules Section */.modules-section {    padding: 5rem 0;    background-color: var(--primary-bg);}.modules-grid {    display: grid;    grid-template-columns: repeat(4, 1fr);    gap: 2rem;}.module-card {    background-color: var(--secondary-bg);    border-radius: 12px;    padding: 2.5rem;    text-align: center;    transition: all 0.3s ease;    border: 1px solid rgba(255, 255, 255, 0.05);    opacity: 0;    transform: translateY(20px);}.module-card.animate-in {    animation: moduleAnimation 0.6s ease-out forwards;}@keyframes moduleAnimation {    to {        opacity: 1;        transform: translateY(0);    }}.module-card:hover {    transform: translateY(-5px);    background-color: #2a2a2a;    border-color: var(--accent-color);    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.2);}.module-icon {    font-size: 3rem;    color: var(--accent-color);    margin-bottom: 1.5rem;    transition: transform 0.3s ease;}.module-card:hover .module-icon {    transform: scale(1.1) rotateZ(5deg);}.module-title {    font-size: 1.5rem;    margin-bottom: 1rem;    font-weight: 600;}.module-description {    color: var(--text-secondary);    margin-bottom: 1.5rem;    line-height: 1.6;}.module-link {    color: var(--accent-color);    text-decoration: none;    font-weight: 500;    display: inline-flex;    align-items: center;    gap: 0.5rem;    transition: all 0.3s ease;    position: relative;}.module-link::after {    content: '';    position: absolute;    bottom: -2px;    left: 0;    width: 0;    height: 2px;    background-color: var(--accent-color);    transition: width 0.3s ease;}.module-link:hover::after {    width: 100%;}.module-link:hover {    gap: 0.8rem;}/* Recent Works Section */.recent-works {    padding: 5rem 0;    background-color: var(--secondary-bg);}.recent-works-grid {    display: grid;    grid-template-columns: repeat(3, 1fr);    gap: 2rem;    margin-top: 3rem;}.work-item {    position: relative;    cursor: pointer;    transition: transform 0.3s ease;}.work-item:hover {    transform: scale(1.02);}.work-thumbnail {    position: relative;    overflow: hidden;    border-radius: 8px;    background: #000;}.work-thumbnail img {    width: 100%;    height: 100%;    object-fit: cover;    transition: all 0.5s ease;}.work-overlay {    position: absolute;    top: 0;    left: 0;    width: 100%;    height: 100%;    background: rgba(0, 0, 0, 0.6);    display: flex;    align-items: center;    justify-content: center;    opacity: 0;    transition: opacity 0.3s ease;}.work-overlay i {    font-size: 4rem;    color: white;    transform: scale(0.8);    transition: transform 0.3s ease;}.work-item:hover .work-overlay {    opacity: 1;}.work-item:hover .work-overlay i {    transform: scale(1);}.work-item h4 {    margin-top: 1rem;    font-size: 1.1rem;    font-weight: 500;}/* Page Header */.page-header {    padding: 120px 0 60px;    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);    text-align: center;}.page-title {    font-size: 3rem;    margin-bottom: 0.5rem;    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);    -webkit-background-clip: text;    -webkit-text-fill-color: transparent;    background-clip: text;}.page-subtitle {    color: var(--text-secondary);    font-size: 1.2rem;}/* Section Styles */.section-title {    font-size: 2.5rem;    text-align: center;    margin-bottom: 0.5rem;}.section-subtitle {    text-align: center;    color: var(--text-secondary);    margin-bottom: 3rem;    font-style: italic;}/* Featured Works */.featured-works {    padding: 5rem 0;    background-color: var(--primary-bg);}.featured-grid {    display: grid;    grid-template-columns: repeat(3, 1fr);    gap: 2rem;    margin-bottom: 3rem;}/* Portfolio Styles */.portfolio-page {    padding: 3rem 0 5rem;}.portfolio-item {    cursor: pointer;    transition: transform 0.3s ease;}.portfolio-item:hover {    transform: translateY(-5px);}.portfolio-thumbnail {    position: relative;    overflow: hidden;    border-radius: 8px;    aspect-ratio: 4/3;}.portfolio-thumbnail img {    width: 100%;    height: 100%;    object-fit: cover;    transition: transform 0.3s ease;}.portfolio-overlay {    position: absolute;    top: 0;    left: 0;    width: 100%;    height: 100%;    background-color: var(--overlay-bg);    display: flex;    align-items: center;    justify-content: center;    opacity: 0;    transition: opacity 0.3s ease;}.portfolio-overlay i {    font-size: 3rem;    color: var(--text-primary);}.portfolio-item:hover .portfolio-thumbnail img {    transform: scale(1.1);}.portfolio-item:hover .portfolio-overlay {    opacity: 1;}.portfolio-title {    margin-top: 1rem;    font-size: 1.2rem;    font-weight: 600;}.portfolio-category {    color: var(--text-secondary);    font-size: 0.9rem;}.portfolio-grid.full-grid {    display: grid;    grid-template-columns: repeat(3, 1fr);    gap: 2rem;}/* Free Stuff Preview */.free-stuff-preview {    padding: 5rem 0;    background-color: var(--secondary-bg);}.free-stuff-grid {    display: grid;    grid-template-columns: repeat(3, 1fr);    gap: 2rem;    margin-bottom: 3rem;}/* Free Stuff Page */.free-stuff-page {    padding: 3rem 0 5rem;}.free-stuff-grid.full-grid {    display: grid;    grid-template-columns: repeat(3, 1fr);    gap: 2rem;}/* Showcase Items */.showcase-item {    background-color: var(--primary-bg);    border-radius: 8px;    padding: 1.5rem;    text-align: center;    transition: transform 0.3s ease;    border: 1px solid rgba(255, 255, 255, 0.05);}.showcase-item:hover {    transform: translateY(-5px);    border-color: var(--accent-color);}.showcase-image {    width: 100%;    height: 250px;    overflow: hidden;    border-radius: 8px;    margin-bottom: 1rem;}.showcase-image img {    width: 100%;    height: 100%;    object-fit: cover;}.showcase-title {    font-size: 1.2rem;    margin-bottom: 0.5rem;}.showcase-description {    color: var(--text-secondary);    font-size: 0.9rem;    margin-bottom: 1.5rem;    line-height: 1.4;}/* CTA Buttons */.cta-button-container {    text-align: center;    margin-top: 3rem;}.cta-button {    display: inline-flex;    align-items: center;    gap: 0.5rem;    padding: 1rem 2rem;    background-color: var(--accent-color);    color: var(--text-primary);    text-decoration: none;    border-radius: 4px;    font-weight: 500;    transition: all 0.3s ease;    text-transform: uppercase;    letter-spacing: 1px;}.cta-button:hover {    background-color: var(--hover-color);    transform: translateX(5px);}.btn {    padding: 0.8rem 2rem;    border: none;    border-radius: 4px;    font-size: 1rem;    font-weight: 500;    cursor: pointer;    transition: all 0.3s ease;    text-transform: uppercase;    letter-spacing: 1px;    text-decoration: none;    display: inline-block;}.btn-primary {    background-color: var(--accent-color);    color: var(--text-primary);}.btn-primary:hover {    background-color: var(--hover-color);    transform: translateY(-2px);}/* Download Notice */.download-notice {    margin-top: 3rem;    padding: 1.5rem;    background-color: var(--secondary-bg);    border-radius: 8px;    text-align: center;}.download-notice p {    color: var(--text-secondary);}.download-notice i {    color: var(--accent-color);    margin-right: 0.5rem;}/* About Page Styles */.about-content {    padding: 3rem 0 5rem;}.about-grid {    display: grid;    grid-template-columns: 1fr 2fr;    gap: 4rem;    align-items: start;}.about-image img {    width: 100%;    border-radius: 8px;    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);}.about-text h2 {    font-size: 2rem;    margin-bottom: 1.5rem;    color: var(--accent-color);}.about-text h3 {    font-size: 1.5rem;    margin: 2rem 0 1rem;    color: var(--text-primary);}.about-text p {    margin-bottom: 1rem;    line-height: 1.8;    color: var(--text-secondary);}.skills-grid {    display: grid;    grid-template-columns: repeat(2, 1fr);    gap: 1rem;    margin-bottom: 2rem;}.skill-item {    display: flex;    align-items: center;    gap: 0.5rem;    padding: 0.8rem;    background-color: var(--secondary-bg);    border-radius: 4px;}.skill-item i {    color: var(--accent-color);    font-size: 1.2rem;}.tools-list {    display: flex;    flex-wrap: wrap;    gap: 0.5rem;    margin-bottom: 2rem;}.tool-tag {    padding: 0.5rem 1rem;    background-color: var(--secondary-bg);    border-radius: 20px;    font-size: 0.9rem;}.contact-info p {    margin-bottom: 0.5rem;    color: var(--text-secondary);}.contact-info i {    color: var(--accent-color);    margin-right: 0.5rem;    width: 20px;}.contact-btn {    margin-top: 2rem;}/* Footer */.footer {    background-color: #0f0f0f;    padding: 3rem 0;    text-align: center;}.social-links {    display: flex;    justify-content: center;    gap: 1.5rem;    margin-bottom: 1.5rem;}.social-link {    color: var(--text-secondary);    font-size: 1.5rem;    transition: color 0.3s ease;}.social-link:hover {    color: var(--accent-color);}.copyright {    color: var(--text-secondary);    font-size: 0.9rem;}/* Fade In Animation */.fade-in {    opacity: 0;    transform: translateY(30px);    transition: opacity 0.6s ease-out, transform 0.6s ease-out;}.fade-in.appear {    opacity: 1;    transform: translateY(0);}/* Responsive Design */@media (max-width: 1024px) {    .modules-grid {        grid-template-columns: repeat(2, 1fr);    }        .featured-grid,    .portfolio-grid.full-grid,    .free-stuff-grid,    .free-stuff-grid.full-grid {        grid-template-columns: repeat(2, 1fr);    }        .about-grid {        gap: 3rem;    }        .recent-works-grid {        grid-template-columns: repeat(2, 1fr);    }}@media (max-width: 768px) {    .nav-menu {        position: fixed;        left: -100%;        top: 70px;        flex-direction: column;        background-color: var(--primary-bg);        width: 100%;        text-align: center;        transition: 0.3s;        padding: 2rem 0;        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);    }        .nav-menu.active {        left: 0;    }        .hamburger {        display: flex;    }        .hero-title {        font-size: 3rem;    }        .hero-subtitle {        font-size: 1.2rem;    }        #intro-text {        font-size: 2rem;        padding: 0 20px;    }        #intro-hint {        font-size: 0.9rem;    }        .page-title {        font-size: 2rem;    }        .modules-grid {        grid-template-columns: 1fr;    }        .featured-grid,    .portfolio-grid.full-grid,    .free-stuff-grid,    .free-stuff-grid.full-grid,    .recent-works-grid {        grid-template-columns: 1fr;    }        .section-title {        font-size: 2rem;    }        .about-grid {        grid-template-columns: 1fr;        gap: 2rem;    }        .skills-grid {        grid-template-columns: 1fr;    }        .module-card {        padding: 2rem;    }}/* Custom Scrollbar */::-webkit-scrollbar {    width: 10px;}::-webkit-scrollbar-track {    background: var(--primary-bg);}::-webkit-scrollbar-thumb {    background: var(--secondary-bg);    border-radius: 5px;}::-webkit-scrollbar-thumb:hover {    background: #333;}/* Selection Style */::selection {    background-color: var(--accent-color);    color: white;}::-moz-selection {    background-color: var(--accent-color);    color: white/* --- 新增：作品集页面样式 --- */
/* 页面主容器的内边距 */
portfolio-page 
    padding-top 100px; /* 为粘性导航栏留出空间 */
    padding-bottom: 60px;
    min-height: 100vh;
}

/* 页面主标题 */
.page-title {
    font-size: 3rem;
    color: #fff;
    text-align: center;
    margin-bottom: 10px;
}

/* 页面副标题 */
.page-subtitle {
    font-size: 1.1rem;
    color: #aaa;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

/* 标签页按钮容器 */
.portfolio-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* 移动端换行 */
    gap: 10px;
    margin-bottom: 40px;
    border-bottom: 2px solid #333; /* 底部加一条分割线 */
    padding-bottom: 20px;
}

/* 标签页按钮样式 */
.portfolio-tab {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #aaa;
    background-color: transparent;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 鼠标悬停在按钮上 */
.portfolio-tab:hover {
    color: #fff;
    background-color: #2a2a2a;
}

/* “激活”状态的按钮样式 */
.portfolio-tab.active {
    color: #fff; /* 假设您的点缀色是白色或科技蓝 */
    border-bottom: 2px solid #007BFF; /* 使用一个高亮色 */
    background-color: #222;
}

/* 标签页内容区域 */
.portfolio-content {
    display: none; /* 默认隐藏所有内容区域 */
    animation: fadeIn 0.5s ease; /* 添加一个淡入动画 */
}

/* “激活”状态的内容区域 (JS 会控制这个) */
.portfolio-content.active {
    display: block; /* 只显示激活的 */
}

/* 内容区域的标题和描述 */
.portfolio-content h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
    border-left: 4px solid #007BFF; /* 标题左侧加一个装饰条 */
    padding-left: 10px;
}
.portfolio-content p {
    font-size: 1rem;
    color: #aaa;
    margin-bottom: 30px;
}

/* 复用您已有的 work-grid 和 work-card 样式 */
/* 如果您还没有，可以用下面的 (但您应该已经有了) */
/*
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.work-card {
    background: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
}
.work-card img {
    width: 100%;
    display: block;
}
.work-card h3 {
    color: #fff;
    padding: 15px;
}
.work-card span {
    color: #aaa;
    padding: 0 15px 15px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .work-grid {
        grid-template-columns: 1fr;
    }
}
*/
/*
 * 优化：将 JS 悬停效果移至 CSS
 * (请删除 .portfolio-item 和 .work-item 的 JS 悬停代码)
 */

/* 1. 作品集项目悬停效果 (Portfolio Item) */
.portfolio-item {
    position: relative; /* 确保 .portfolio-overlay 可以定位 */
    overflow: hidden; /* 确保 .portfolio-overlay 不会溢出 */
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* 默认隐藏 */
    transition: opacity 0.3s ease; /* 添加平滑过渡 */
    /* ... (您在 CSS 中已有的其他样式) ... */
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1; /* 悬停时显示 */
}


/* 2. 工作项目悬停效果 (Work Item) */
.work-item {
    overflow: hidden; /* 确保放大的图片不会溢出 */
}

.work-item img {
    transition: transform 0.4s ease; /* 添加平滑过渡 */
}

.work-item:hover img {
    transform: scale(1.05); /* 悬停时放大 */
}
/* --- 新增：免费素材页面 - 音乐卡片样式 --- */

/* 确保网格布局正确 */
.free-stuff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* 音乐卡片样式 */
.music-card {
    background-color: #2a2a2a; /* 沿用您网站的深色卡片背景 */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.music-card:hover {
    transform: translateY(-5px); /* 悬停时轻微上浮 */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.music-card img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* 确保封面图不变形 */
    border-bottom: 1px solid #444;
}

.music-card-content {
    padding: 20px;
}

.music-card-content h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 10px;
}


/* (您可能还需要为 .section-title 添加样式) */
.section-title {
    font-size: 2.5rem;
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
}
/* --- 新增：免费素材页面 - 音乐表格样式 --- */

/* 章节副标题 (可选) */
.section-subtitle {
    font-size: 1.1rem;
    color: #aaa;
    text-align: center;
    max-width: 600px;
    margin: -30px auto 40px auto;
}

.music-table {
    width: 100%;
    border-collapse: collapse; /* 合并边框 */
    margin-bottom: 50px;
    font-size: 0.95rem;
}

/* 表头 */
.music-table th {
    background-color: #2a2a2a; /* 深色表头背景 */
    color: #fff;
    font-weight: 600;
    padding: 15px 10px;
    text-align: left;
    border-bottom: 3px solid #007BFF; /* 底部高亮边框 */
}

/* 表格单元格 */
.music-table td {
    padding: 15px 10px;
    color: #ccc;
    border-bottom: 1px solid #444; /* 每行之间的分割线 */
    vertical-align: middle; /* 垂直居中 */
}

/* 斑马条纹 */
.music-table tbody tr:nth-child(even) {
    background-color: #222; /* 偶数行背景色深一点 */
}

/* 播放器样式 */
.music-table audio {
    width: 100%;
    max-width: 300px; /* 限制播放器最大宽度 */
    min-width: 250px; /* 保证播放器不会太窄 */
    height: 40px;
}

/* 下载按钮 (复用) */
.download-btn {
    display: inline-block;
    background-color: #007BFF;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    text-align: center;
}

.download-btn:hover {
    background-color: #0056b3;
}

/* 适配移动端：让表格可以横向滚动 */
@media (max-width: 768px) {
    /* 在表格的 *父元素* 上创建滚动条。
      在我们的HTML中，父元素是 .container，
      但为了安全，我们最好在 .music-table 外面包一个 div
    */
    .music-table {
        /*
          强制表格在小屏幕上保持其布局，
          允许父元素(或整个页面)出现水平滚动条。
          对于宽表格，这是最好的体验。
        */
        display: block;
        overflow-x: auto;
        white-space: nowrap; /* 防止单元格内容换行 */
    }

    .music-table th,
    .music-table td {
        white-space: normal; /* 允许描述文字换行 */
    }
    
    .music-table td:nth-child(3) { /* "描述" 列 */
         min-width: 200px; /* 给描述列一个最小宽度 */
    }
}