/* ============================================
   Apple Experience Blog — Liquid Glass Design
   Inspired by Apple WWDC25 Liquid Glass
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Sans+TC:wght@300;400;500;600;700;900&display=swap');

:root {
  /* ── Liquid Glass White Palette ── */
  --bg-base: #f2f1f6;
  --bg-surface: #ffffff;
  --bg-elevated: #ffffff;
  --bg-page: linear-gradient(180deg, #e8e6ef 0%, #f2f1f6 30%, #f8f7fc 100%);

  /* Glass surfaces */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-hover: rgba(255, 255, 255, 0.72);
  --glass-bg-strong: rgba(255, 255, 255, 0.78);
  --glass-bg-ultra: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-border-subtle: rgba(0, 0, 0, 0.06);
  --glass-inner-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --glass-outer-glow: 0 0 0 0.5px rgba(255, 255, 255, 0.6);

  /* Text */
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #98989d;
  --text-on-accent: #ffffff;

  /* Apple System Colors */
  --accent-blue: #007aff;
  --accent-indigo: #5856d6;
  --accent-purple: #af52de;
  --accent-pink: #ff2d55;
  --accent-orange: #ff9500;
  --accent-green: #34c759;
  --accent-teal: #5ac8fa;
  --accent-red: #ff3b30;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #007aff 0%, #5856d6 40%, #af52de 70%, #ff2d55 100%);
  --gradient-glass-shine: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.6) 100%);
  --gradient-glass-edge: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.2) 100%);
  --gradient-mac: linear-gradient(135deg, #e3f0ff 0%, #f0e6ff 100%);
  --gradient-iphone: linear-gradient(135deg, #f0e6ff 0%, #ffe6ee 100%);
  --gradient-ambient-1: radial-gradient(circle at 20% 20%, rgba(0, 122, 255, 0.08) 0%, transparent 50%);
  --gradient-ambient-2: radial-gradient(circle at 80% 80%, rgba(175, 82, 222, 0.06) 0%, transparent 50%);
  --gradient-ambient-3: radial-gradient(circle at 50% 50%, rgba(255, 149, 0, 0.04) 0%, transparent 50%);

  /* Shadows — Liquid Glass style */
  --shadow-glass: 
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-glass-hover: 
    0 4px 12px rgba(0, 0, 0, 0.06),
    0 12px 36px rgba(0, 0, 0, 0.1);
  --shadow-glass-elevated: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.12);
  --shadow-glass-inset:
    inset 0 1px 1px rgba(255, 255, 255, 0.7),
    inset 0 -1px 1px rgba(0, 0, 0, 0.03);
  --shadow-nav:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-glow-blue: 0 4px 30px rgba(0, 122, 255, 0.18);
  --shadow-glow-purple: 0 4px 30px rgba(88, 86, 214, 0.15);

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 100px;

  /* Transitions */
  --ease-glass: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 0.2s;
  --dur-smooth: 0.4s;
  --dur-slow: 0.6s;
}

/* ============================================
   Reset & Base
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  background: var(--bg-page);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  overflow-wrap: anywhere;
  word-break: break-word;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-glass);
  overflow-wrap: anywhere;
  word-break: break-word;
}

a:hover {
  color: var(--accent-indigo);
}

img {
  max-width: 100%;
  display: block;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
li,
blockquote,
.btn,
.article-tag,
.tag {
  overflow-wrap: anywhere;
  word-break: break-word;
}

pre,
code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

pre {
  white-space: pre-wrap;
}

/* ============================================
   Ambient Background — Soft color washes
   ============================================ */

.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-bg::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -15%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.07) 0%, transparent 60%);
  animation: ambientFloat1 25s ease-in-out infinite;
}

.ambient-bg::after {
  content: '';
  position: absolute;
  bottom: -15%;
  right: -15%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(175, 82, 222, 0.05) 0%, transparent 60%);
  animation: ambientFloat2 30s ease-in-out infinite;
}

@keyframes ambientFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  33% { transform: translate(5%, 8%) scale(1.05); opacity: 1; }
  66% { transform: translate(-3%, 4%) scale(0.98); opacity: 0.8; }
}

@keyframes ambientFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  50% { transform: translate(-6%, -6%) scale(1.1); opacity: 0.9; }
}

/* ============================================
   Liquid Glass Mixin (via class)
   ============================================ */

.liquid-glass {
  background: var(--glass-bg);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: 
    var(--shadow-glass),
    var(--glass-inner-shadow),
    var(--glass-outer-glow);
  position: relative;
}

.liquid-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0) 100%);
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   Navigation — Liquid Glass
   ============================================ */

.nav {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 32px);
  max-width: 900px;
  background: var(--glass-bg-strong);
  backdrop-filter: saturate(200%) blur(30px);
  -webkit-backdrop-filter: saturate(200%) blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: 
    var(--shadow-nav),
    var(--glass-inner-shadow),
    var(--glass-outer-glow);
  transition: all var(--dur-smooth) var(--ease-glass);
}

.nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 100%);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  pointer-events: none;
}

.nav-inner {
  position: relative;
  z-index: 1;
  max-width: 100%;
  padding: 0 28px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  text-decoration: none;
  min-width: 0;
}

.nav-logo .logo-icon {
  font-size: 1.3rem;
}

.nav-brand-text,
.nav-brand-text span {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  min-width: 0;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  transition: all var(--dur-fast) var(--ease-glass);
  position: relative;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.04);
}

.nav-links a.active {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.06);
  font-weight: 600;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  position: relative;
  z-index: 1;
  padding: 150px 24px 80px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.08) 0%, rgba(88, 86, 214, 0.04) 40%, transparent 70%);
  pointer-events: none;
  animation: heroPulse 8s ease-in-out infinite;
}

@keyframes heroPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 28px;
  box-shadow: var(--shadow-glass), var(--glass-inner-shadow);
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(52, 199, 89, 0.4);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero h1 {
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
  animation: fadeInUp 0.8s ease-out 0.1s both;
  color: var(--text-primary);
}

.hero h1 .gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.18rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 44px;
  line-height: 1.55;
  font-weight: 400;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

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

/* ============================================
   Buttons — Liquid Glass
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--dur-fast) var(--ease-glass);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-blue);
  color: var(--text-on-accent);
  box-shadow: 0 2px 12px rgba(0, 122, 255, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.btn-primary:hover {
  background: #0a84ff;
  color: var(--text-on-accent);
  transform: translateY(-1px) scale(1.02);
  box-shadow: var(--shadow-glow-blue);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-glass), var(--glass-inner-shadow);
}

.btn-secondary:hover {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glass-hover);
}

/* ============================================
   Section Layout
   ============================================ */

.section {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 44px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 460px;
  margin: 0 auto;
  font-weight: 400;
}

/* ============================================
   Category Cards — Liquid Glass
   ============================================ */

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 240px;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--dur-smooth) var(--ease-glass);
  box-shadow: var(--shadow-glass), var(--glass-inner-shadow);
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 55%;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity var(--dur-smooth) var(--ease-glass);
}

.category-card.mac::before {
  background: var(--gradient-mac);
  opacity: 0.5;
}

.category-card.iphone::before {
  background: var(--gradient-iphone);
  opacity: 0.5;
}

.category-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  pointer-events: none;
  z-index: 0;
}

.category-card:hover {
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-glass-elevated);
  background: var(--glass-bg-hover);
}

.category-card:hover::before {
  opacity: 0.8;
}

.category-card-icon {
  font-size: 3rem;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

.category-card-content {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.category-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.category-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

.category-card .card-arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 1rem;
  transition: all var(--dur-smooth) var(--ease-glass);
  z-index: 1;
  box-shadow: var(--shadow-glass);
}

.category-card:hover .card-arrow {
  background: var(--accent-blue);
  color: var(--text-on-accent);
  border-color: var(--accent-blue);
  transform: translate(2px, -2px);
  box-shadow: var(--shadow-glow-blue);
}

/* ============================================
   Article Cards — Liquid Glass
   ============================================ */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.article-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  overflow: hidden;
  text-decoration: none;
  transition: all var(--dur-smooth) var(--ease-glass);
  box-shadow: var(--shadow-glass);
  position: relative;
}

.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.8) 50%, transparent 100%);
  z-index: 2;
}

.article-card:hover {
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glass-elevated);
  background: var(--glass-bg-hover);
}

.article-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-card-image-link {
  display: block;
  color: inherit;
  overflow: hidden;
}

.article-card-image.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #e8edf5 0%, #f0e8f5 50%, #f5e8ef 100%);
}

.article-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  min-width: 0;
}

.article-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  min-width: 0;
}

.article-tag.mac {
  background: rgba(0, 122, 255, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(0, 122, 255, 0.15);
}

.article-tag.iphone {
  background: rgba(88, 86, 214, 0.1);
  color: var(--accent-indigo);
  border: 1px solid rgba(88, 86, 214, 0.15);
}

.article-date {
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

.article-card h3 {
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card h3 a {
  color: inherit;
  text-decoration: none;
}

.article-card h3 a:hover {
  color: var(--accent-blue);
}

.article-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  margin-top: auto;
  border-top: 1px solid var(--glass-border-subtle);
}

.article-author {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-glass);
}

.article-author:hover {
  color: var(--accent-blue);
}

.article-read-more {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: gap var(--dur-fast) var(--ease-glass);
}

.article-card:hover .article-read-more {
  gap: 8px;
}

/* ============================================
   Article Detail Page
   ============================================ */

.article-hero {
  position: relative;
  z-index: 1;
  padding: 130px 24px 40px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.article-hero .article-tag {
  margin-bottom: 16px;
}

.article-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease-out;
  color: var(--text-primary);
}

.article-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--text-tertiary);
  font-size: 0.85rem;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.article-hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-cover {
  max-width: 900px;
  margin: 32px auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass-elevated);
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.article-cover img {
  width: 100%;
  height: auto;
}

.article-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 24px 80px;
  animation: fadeInUp 0.6s ease-out 0.3s both;
  min-width: 0;
}

.article-content h2 {
  font-size: 1.65rem;
  font-weight: 700;
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.article-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 36px 0 12px;
  color: var(--text-primary);
}

.article-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
  margin: 16px 0;
  padding-left: 24px;
  color: var(--text-secondary);
}

.article-content li {
  margin-bottom: 8px;
  line-height: 1.7;
  font-size: 1.02rem;
}

.article-content blockquote {
  border-left: 3px solid var(--accent-blue);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-secondary);
  box-shadow: var(--shadow-glass);
}

.article-content code {
  background: rgba(0, 0, 0, 0.04);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.9em;
  font-family: 'SF Mono', 'Fira Code', 'JetBrains Mono', monospace;
  color: var(--accent-indigo);
}

.article-content pre {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  overflow-x: auto;
  max-width: 100%;
  margin: 24px 0;
  box-shadow: var(--shadow-glass);
}

.article-content pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
}

.article-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.article-content img {
  border-radius: var(--radius-md);
  margin: 24px 0;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
}

.author-page {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 118px 24px 72px;
}

.author-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 32px;
}

.author-hero-copy {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass), var(--glass-inner-shadow);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  animation: fadeInUp 0.6s ease-out both;
  min-width: 0;
}

.author-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: rgba(255, 149, 0, 0.12);
  color: #b05f00;
  border: 1px solid rgba(255, 149, 0, 0.2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.author-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.author-lead {
  color: var(--text-secondary);
  font-size: 1.13rem;
  line-height: 1.85;
  margin-bottom: 24px;
}

.author-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.author-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  min-width: 0;
}

.author-hero-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass-elevated);
  animation: fadeInUp 0.6s ease-out 0.08s both;
}

.author-hero-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.author-intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.author-panel,
.author-quote {
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.author-panel {
  padding: 28px;
}

.author-panel h2 {
  font-size: 1.28rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.author-panel p,
.author-panel li {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1rem;
}

.author-panel ul {
  padding-left: 20px;
}

.author-panel li + li {
  margin-top: 8px;
}

.author-quote {
  margin: 0 0 56px;
  padding: 26px 30px;
  border-left: 4px solid var(--accent-orange);
}

.author-quote p {
  color: var(--text-primary);
  font-size: 1.08rem;
  line-height: 1.8;
  font-style: italic;
}

.author-gallery-section,
.author-articles-section {
  margin-top: 56px;
}

.author-section-header {
  text-align: left;
  margin-bottom: 26px;
}

.author-section-header p {
  margin-left: 0;
}

.author-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.author-photo-grid figure {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  box-shadow: var(--shadow-glass);
}

.author-photo-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform var(--dur-smooth) var(--ease-glass);
}

.author-photo-grid figure:first-child {
  grid-column: span 2;
}

.author-photo-grid figure:first-child img {
  aspect-ratio: 16 / 9;
}

.author-photo-grid figure:hover img {
  transform: scale(1.03);
}

/* Article tags section */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border-subtle);
}

.article-tags .tag {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--dur-fast) var(--ease-glass);
}

.article-tags .tag:hover {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
}

/* ============================================
   Category Page
   ============================================ */

.category-hero {
  position: relative;
  z-index: 1;
  padding: 130px 24px 48px;
  text-align: center;
}

.category-hero .category-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  display: inline-block;
  animation: fadeInUp 0.6s ease-out;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.08));
}

.category-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
  color: var(--text-primary);
}

.category-hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.category-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 28px;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.category-stat {
  text-align: center;
  padding: 16px 28px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass), var(--glass-inner-shadow);
}

.category-stat .number {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.category-stat .label {
  font-size: 0.76rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ============================================
   Footer — Liquid Glass
   ============================================ */

.footer {
  position: relative;
  z-index: 1;
  margin: 48px 24px 24px;
  padding: 40px 24px;
  text-align: center;
  border-radius: var(--radius-xl);
  background: var(--glass-bg);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass), var(--glass-inner-shadow);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
}

.footer-logo {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.footer-logo span {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer p {
  color: var(--text-tertiary);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 16px;
  list-style: none;
}

.footer-links a {
  color: var(--text-tertiary);
  font-size: 0.82rem;
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease-glass);
}

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

/* ============================================
   Empty State
   ============================================ */

.empty-state {
  text-align: center;
  padding: 80px 24px;
  border-radius: var(--radius-xl);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
}

.empty-state .empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.empty-state p {
  color: var(--text-tertiary);
  max-width: 360px;
  margin: 0 auto;
}

/* ============================================
   Back Link — Glass pill
   ============================================ */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 500;
  margin-bottom: 20px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  transition: all var(--dur-fast) var(--ease-glass);
}

.back-link:hover {
  color: var(--text-primary);
  background: var(--glass-bg-hover);
}

/* View count */
.view-count {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

/* Related articles */
.related-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
  position: relative;
  z-index: 1;
}

.related-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
  color: var(--text-primary);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  .nav {
    top: 8px;
    width: calc(100% - 16px);
    border-radius: var(--radius-lg);
  }

  .nav-inner {
    padding: 0 12px;
    height: 50px;
  }

  .nav-logo {
    gap: 7px;
    font-size: 0.9rem;
  }

  .nav-links {
    gap: 1px;
  }

  .nav-links a {
    padding: 6px 8px;
    font-size: 0.78rem;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .author-page {
    padding: 92px 16px 52px;
  }

  .author-hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .author-hero-copy {
    padding: 26px;
  }

  .author-hero-image {
    order: -1;
    border-radius: var(--radius-lg);
  }

  .author-intro-grid {
    grid-template-columns: 1fr;
  }

  .author-photo-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .author-photo-grid figure:first-child {
    grid-column: span 1;
    grid-row: span 1;
  }

  .author-photo-grid figure:first-child img {
    aspect-ratio: 16 / 10;
  }

  .hero {
    padding: 130px 20px 60px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .article-hero {
    padding: 110px 20px 30px;
  }

  .category-stats {
    gap: 16px;
  }

  .category-stat {
    padding: 12px 20px;
  }

  .footer {
    margin: 32px 12px 12px;
    border-radius: var(--radius-lg);
  }
}

@media (max-width: 480px) {
  .brand-suffix,
  .nav-links span.nav-text {
    display: none;
  }

  .nav-links a {
    padding: 6px 7px;
  }

  .author-photo-grid {
    grid-template-columns: 1fr;
  }

  .author-photo-grid figure:first-child {
    grid-column: span 1;
  }
}

/* ============================================
   Scrollbar — Subtle
   ============================================ */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* ============================================
   Page transition
   ============================================ */

.page-enter {
  animation: fadeInUp 0.5s ease-out;
}

/* ============================================
   Selection
   ============================================ */

::selection {
  background: rgba(0, 122, 255, 0.15);
  color: var(--text-primary);
}
