/* ========== Reset & Base ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #fff;
  color: #1a1a2e;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Noto Serif SC", Georgia, serif;
  line-height: 1.3;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* ========== Container ========== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 720px;
}

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

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s;
}

.header.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.logo {
  font-family: "Noto Serif SC", serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.header.scrolled .logo {
  color: #1a1a2e;
  text-shadow: none;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav a:hover {
  color: #fff;
}

.header.scrolled .nav a {
  color: #555;
}

.header.scrolled .nav a:hover {
  color: #1a1a2e;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url('bg.jpg') center/cover no-repeat fixed;
  color: #fff;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 24px;
  animation: fadeUp 1s ease-out;
}

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

.hero-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -2px;
}

.hero-desc {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-links {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  background: #fff;
  color: #1a1a2e;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-outline {
  display: inline-block;
  padding: 12px 32px;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  color: #fff;
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.4rem;
  color: rgba(255,255,255,0.4);
  animation: bounce 2s infinite;
}

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

/* ========== Section ========== */
.section {
  padding: 96px 0;
}

.alt-bg {
  background: #f8f9fa;
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #999;
  margin-bottom: 4px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #1a1a2e;
}

/* ========== About ========== */
.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  color: #444;
  font-size: 1rem;
  line-height: 1.8;
}

@media (max-width: 600px) {
  .about-cols {
    grid-template-columns: 1fr;
  }
}

/* ========== Skills ========== */
.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  display: inline-block;
  padding: 8px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #444;
  transition: all 0.25s;
}

.skill-tag:hover {
  border-color: #1a1a2e;
  background: #1a1a2e;
  color: #fff;
  transform: translateY(-2px);
}

/* ========== Watch / 推荐视频 ========== */
.watch-section {
  background: #0f0f1a;
  color: #fff;
}

.watch-section .section-label {
  color: rgba(255,255,255,0.4);
}

.watch-section .section-title {
  color: #fff;
}

.watch-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.watch-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: #fff;
  transition: all 0.3s;
  text-decoration: none;
}

.watch-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  transform: translateX(4px);
}

.watch-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.15);
  font-family: "Inter", sans-serif;
  min-width: 40px;
}

.watch-info {
  flex: 1;
  min-width: 0;
}

.watch-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #fff;
  font-family: "Inter", -apple-system, sans-serif;
}

.watch-info p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.watch-arrow {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.2);
  transition: all 0.2s;
}

.watch-card:hover .watch-arrow {
  color: rgba(255,255,255,0.6);
  transform: translateX(4px);
}

.watch-footer {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.25);
  margin-top: 20px;
}

/* ========== File Card / 文件 ========== */
.file-card .watch-number {
  font-size: 1.8rem;
  color: rgba(255,255,255,0.5);
  min-width: 44px;
}

/* ========== Blog Grid (杂志卡片) ========== */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
  transition: all 0.3s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.blog-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.blog-card.featured .card-body {
  padding: 40px;
}

.blog-card.featured h3 {
  font-size: 1.4rem;
}

.card-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.blog-card.featured .card-image {
  height: 100%;
  min-height: 280px;
}

.card-body {
  padding: 24px;
}

.card-tag {
  display: inline-block;
  padding: 2px 10px;
  background: #f0f0f5;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #666;
  margin-bottom: 8px;
}

.card-date {
  display: block;
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 8px;
}

.card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a1a2e;
}

.card-body p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-card.featured {
    grid-template-columns: 1fr;
  }
  .blog-card.featured .card-image {
    height: 200px;
    min-height: unset;
  }
}

/* ========== Contact ========== */
.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.contact-item {
  font-size: 1.05rem;
  color: #555;
  transition: color 0.2s;
  padding: 6px 0;
}

.contact-item:hover {
  color: #1a1a2e;
}

/* ========== Footer ========== */
.footer {
  padding: 48px 0;
  text-align: center;
  font-size: 0.8rem;
  color: #999;
  border-top: 1px solid #eee;
}

/* ========== Header scroll effect ========== */
/* JS will add .scrolled class on scroll past hero */

/* ========== Responsive ========== */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  .hero-desc {
    font-size: 1rem;
  }
  .section {
    padding: 64px 0;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .nav {
    gap: 16px;
  }
  .nav a {
    font-size: 0.75rem;
  }
  .header {
    padding: 0 16px;
  }
}
