﻿/* ============================================================
   DJCMS Blog Template 鈥?2026 鍏ㄥ睆鎵佸钩鍖栬璁＄郴缁?
   鎶€鏈細CSS Variables / Grid / Flexbox / @layer / Container Queries
         Backdrop-filter / View Transitions / Scroll-driven Animations
   ============================================================ */

/* 鈹€鈹€鈹€ 璁捐浠ょ墝 (Design Tokens) 鈹€鈹€鈹€ */

  :root {
    /* 璋冭壊鏉?*/
    --c-bg:        #f8f9fc;
    --c-surface:   #ffffff;
    --c-surface-2: #f1f3f8;
    --c-surface-3: #e8ecf4;
    --c-border:    #e2e6f0;
    --c-border-2:  #d0d5e2;
    --c-text:      #1a1d2e;
    --c-text-2:    #4a5068;
    --c-text-3:    #8890a8;
    --c-primary:   #6366f1;
    --c-primary-2: #818cf8;
    --c-primary-3: #4f46e5;
    --c-accent:    #ec4899;
    --c-accent-2:  #f472b6;
    --c-success:   #22c55e;
    --c-warning:   #f59e0b;
    --c-danger:    #ef4444;
    --c-gradient:  linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --c-gradient-2:linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
    --c-gradient-3:linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);

    /* 鎺掔増 */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    --font-display: 'Inter', sans-serif;

    /* 闂磋窛 */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* 鍦嗚 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* 闃村奖 */
    --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.10);
    --shadow-xl: 0 16px 48px rgba(0,0,0,.12);
    --shadow-glow: 0 0 40px rgba(99,102,241,.15);
    --shadow-card: 0 1px 3px rgba(0,0,0,.04), 0 6px 16px rgba(0,0,0,.06);

    /* 鍔ㄧ敾 */
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;

    /* 甯冨眬 */
    --max-w: 1280px;
    --max-w-narrow: 800px;
    --sidebar-w: 340px;
    --nav-h: 72px;
    --content-pad: clamp(16px, 4vw, 48px);
  }

  /* 鏆楄壊涓婚 */
  [data-theme="dark"] {
    --c-bg:        #0f1019;
    --c-surface:   #1a1b2e;
    --c-surface-2: #22243a;
    --c-surface-3: #2a2d45;
    --c-border:    #2e3150;
    --c-border-2:  #3a3e5c;
    --c-text:      #e8eaf0;
    --c-text-2:    #a0a4b8;
    --c-text-3:    #6b7094;
    --shadow-xs: 0 1px 2px rgba(0,0,0,.2);
    --shadow-sm: 0 2px 8px rgba(0,0,0,.25);
    --shadow-md: 0 4px 16px rgba(0,0,0,.3);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.35);
    --shadow-card: 0 1px 3px rgba(0,0,0,.2), 0 6px 16px rgba(0,0,0,.25);
  }
}

/* 鈹€鈹€鈹€ 閲嶇疆 & 鍩虹 鈹€鈹€鈹€ */

  *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  body {
    font-family: var(--font-sans);
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
  }
  img { max-width: 100%; height: auto; display: block; }
  a { color: var(--c-primary); text-decoration: none; transition: color var(--duration-fast); }
  a:hover { color: var(--c-primary-3); }
  ::selection { background: var(--c-primary); color: #fff; }
  ::-webkit-scrollbar { width: 8px; height: 8px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--c-border-2); border-radius: var(--radius-full); }
  ::-webkit-scrollbar-thumb:hover { background: var(--c-text-3); }
}

/* 鈹€鈹€鈹€ 甯冨眬绯荤粺 鈹€鈹€鈹€ */

  .container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--content-pad); }
  .container-narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 var(--content-pad); }

  .grid { display: grid; gap: var(--space-lg); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-auto { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

  .flex { display: flex; }
  .flex-center { display: flex; align-items: center; justify-content: center; }
  .flex-between { display: flex; align-items: center; justify-content: space-between; }
  .flex-col { flex-direction: column; }
  .gap-sm { gap: var(--space-sm); }
  .gap-md { gap: var(--space-md); }
  .gap-lg { gap: var(--space-lg); }
  .gap-xl { gap: var(--space-xl); }

  .main-layout {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-w);
    gap: var(--space-2xl);
    max-width: var(--max-w);
    margin: 0 auto;
    padding: var(--space-2xl) var(--content-pad);
  }
  .main-full { grid-template-columns: 1fr; }
}

/* 鈹€鈹€鈹€ 缁勪欢搴?鈹€鈹€鈹€ */


  /* === 瀵艰埅鏍?=== */
  .navbar {
    position: sticky; top: 0; z-index: 100;
    height: var(--nav-h);
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--c-border);
    transition: all var(--duration-normal);
  }
  [data-theme="dark"] .navbar { background: rgba(15,16,25,.85); }
  .navbar-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--content-pad);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav-logo {
    display: flex; align-items: center; gap: 12px;
    font-size: 20px; font-weight: 800; color: var(--c-text);
    text-decoration: none; letter-spacing: -0.5px;
  }
  .nav-logo-icon {
    width: 40px; height: 40px;
    background: var(--c-gradient);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #fff;
    box-shadow: 0 4px 12px rgba(99,102,241,.3);
  }
  .nav-links { display: flex; align-items: center; gap: 4px; }
  .nav-link {
    padding: 8px 16px;
    font-size: 14px; font-weight: 500;
    color: var(--c-text-2);
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast);
    text-decoration: none;
  }
  .nav-link:hover { background: var(--c-surface-2); color: var(--c-text); }
  .nav-link.active { background: var(--c-primary); color: #fff; }
  .nav-actions { display: flex; align-items: center; gap: 8px; }
  .nav-search-btn {
    width: 40px; height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    color: var(--c-text-2);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    transition: all var(--duration-fast);
  }
  .nav-search-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
  .theme-toggle {
    width: 40px; height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    color: var(--c-text-2);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    transition: all var(--duration-fast);
  }
  .theme-toggle:hover { border-color: var(--c-primary); color: var(--c-primary); transform: rotate(30deg); }

  /* === Hero 鍖哄煙 === */
  .hero {
    position: relative;
    padding: var(--space-4xl) 0;
    background: var(--c-gradient);
    overflow: hidden;
    text-align: center;
    color: #fff;
  }
  .hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  }
  .hero-content { position: relative; z-index: 1; }
  .hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: 13px; font-weight: 500;
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(255,255,255,.2);
  }
  .hero h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: var(--space-lg);
    text-shadow: 0 2px 20px rgba(0,0,0,.15);
  }
  .hero p {
    font-size: clamp(16px, 2vw, 20px);
    opacity: .85;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    line-height: 1.6;
  }
  .hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
  .hero-float {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    animation: float 8s ease-in-out infinite;
  }
  .hero-float:nth-child(1) { width: 200px; height: 200px; top: -50px; left: -50px; animation-delay: 0s; }
  .hero-float:nth-child(2) { width: 150px; height: 150px; bottom: -30px; right: 10%; animation-delay: 2s; }
  .hero-float:nth-child(3) { width: 100px; height: 100px; top: 20%; right: -20px; animation-delay: 4s; }

  @keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
  }

  /* === 鎸夐挳绯荤粺 === */
  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px;
    font-size: 14px; font-weight: 600;
    border-radius: var(--radius-md);
    border: none; cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    text-decoration: none;
    white-space: nowrap;
  }
  .btn-primary {
    background: #fff; color: var(--c-primary-3);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); color: var(--c-primary-3); }
  .btn-outline {
    background: transparent; color: #fff;
    border: 2px solid rgba(255,255,255,.4);
  }
  .btn-outline:hover { background: rgba(255,255,255,.15); color: #fff; }
  .btn-ghost {
    background: var(--c-surface); color: var(--c-text);
    border: 1px solid var(--c-border);
  }
  .btn-ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }
  .btn-filled {
    background: var(--c-gradient); color: #fff;
    box-shadow: 0 4px 16px rgba(99,102,241,.3);
  }
  .btn-filled:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(99,102,241,.4); }
  .btn-sm { padding: 8px 16px; font-size: 13px; border-radius: var(--radius-sm); }
  .btn-lg { padding: 16px 32px; font-size: 16px; border-radius: var(--radius-lg); }

  /* === 鍗＄墖绯荤粺 === */
  .card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
  }
  .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--c-primary-2);
  }
  .card-img {
    width: 100%; aspect-ratio: 16/9;
    object-fit: cover;
    background: var(--c-surface-2);
  }
  .card-body { padding: var(--space-lg); }
  .card-title {
    font-size: 18px; font-weight: 700;
    line-height: 1.4; margin-bottom: var(--space-sm);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .card-excerpt {
    font-size: 14px; color: var(--c-text-2);
    line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: var(--space-md);
  }
  .card-meta {
    display: flex; align-items: center; gap: 12px;
    font-size: 12px; color: var(--c-text-3);
  }
  .card-meta i { font-size: 11px; }

  /* === 鏍囩/寰界珷 === */
  .tag {
    display: inline-flex; align-items: center;
    padding: 4px 12px;
    font-size: 12px; font-weight: 600;
    border-radius: var(--radius-full);
    background: var(--c-surface-2);
    color: var(--c-text-2);
    transition: all var(--duration-fast);
  }
  .tag:hover { background: var(--c-primary); color: #fff; }
  .tag-primary { background: rgba(99,102,241,.1); color: var(--c-primary); }
  .tag-accent { background: rgba(236,72,153,.1); color: var(--c-accent); }

  /* === 鏂囩珷鍒楄〃椤?=== */
  .post-item {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-xl);
    transition: all var(--duration-normal) var(--ease-out);
  }
  .post-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--c-primary-2);
  }
  .post-item-img {
    width: 100%; aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: var(--radius-lg);
    background: var(--c-surface-2);
  }
  .post-item-body { display: flex; flex-direction: column; justify-content: center; }
  .post-item-tag {
    display: inline-flex; align-items: center;
    padding: 3px 10px; border-radius: var(--radius-full);
    font-size: 11px; font-weight: 600;
    background: rgba(99,102,241,.08); color: var(--c-primary);
    margin-bottom: var(--space-sm); width: fit-content;
  }

  /* === 渚ц竟鏍忕粍浠?=== */
  .sidebar-widget {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
  }
  .widget-title {
    font-size: 16px; font-weight: 700;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--c-border);
    display: flex; align-items: center; gap: 8px;
  }
  .widget-title i { color: var(--c-primary); }
  .widget-list { list-style: none; }
  .widget-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--c-border);
    display: flex; align-items: center; gap: 10px;
  }
  .widget-list li:last-child { border-bottom: none; }
  .widget-list a {
    color: var(--c-text); font-size: 14px; font-weight: 500;
    flex: 1;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  }
  .widget-list a:hover { color: var(--c-primary); }
  .widget-list .num {
    width: 24px; height: 24px;
    border-radius: var(--radius-sm);
    background: var(--c-surface-2);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: var(--c-text-3);
    flex-shrink: 0;
  }
  .widget-list .num.top { background: var(--c-gradient); color: #fff; }

  /* === 鍒嗙被鍗＄墖 === */
  .cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--space-md); }
  .cat-card {
    padding: var(--space-lg);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--duration-normal) var(--ease-out);
    cursor: pointer;
  }
  .cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--c-primary-2); }
  .cat-icon { font-size: 32px; margin-bottom: var(--space-sm); }
  .cat-name { font-size: 14px; font-weight: 700; }
  .cat-count { font-size: 12px; color: var(--c-text-3); margin-top: 4px; }

  /* === 鏂囩珷璇︽儏 === */
  .article-content {
    font-size: 17px; line-height: 1.85;
    color: var(--c-text);
  }
  .article-content h2 {
    font-size: 24px; font-weight: 800;
    margin: var(--space-2xl) 0 var(--space-md);
    padding-left: 16px;
    border-left: 4px solid var(--c-primary);
  }
  .article-content h3 { font-size: 20px; font-weight: 700; margin: var(--space-xl) 0 var(--space-md); }
  .article-content p { margin-bottom: var(--space-md); }
  .article-content img {
    border-radius: var(--radius-lg);
    margin: var(--space-lg) 0;
    box-shadow: var(--shadow-sm);
  }
  .article-content blockquote {
    margin: var(--space-lg) 0;
    padding: var(--space-lg) var(--space-xl);
    background: var(--c-surface-2);
    border-left: 4px solid var(--c-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--c-text-2);
    font-style: italic;
  }
  .article-content code {
    padding: 2px 8px;
    background: var(--c-surface-2);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 14px;
  }
  .article-content pre {
    margin: var(--space-lg) 0;
    padding: var(--space-lg);
    background: #1e1e2e;
    color: #cdd6f4;
    border-radius: var(--radius-lg);
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.6;
  }
  .article-content pre code { background: none; padding: 0; color: inherit; }
  .article-content ul, .article-content ol {
    margin: var(--space-md) 0;
    padding-left: var(--space-xl);
  }
  .article-content li { margin-bottom: var(--space-sm); }
  .article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--c-border);
  }
  .article-content th, .article-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--c-border);
    font-size: 14px;
  }
  .article-content th { background: var(--c-surface-2); font-weight: 600; }

  /* === 闈㈠寘灞?=== */
  .breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--c-text-3);
    padding: var(--space-md) 0;
  }
  .breadcrumb a { color: var(--c-text-3); }
  .breadcrumb a:hover { color: var(--c-primary); }
  .breadcrumb .sep { color: var(--c-border-2); }

  /* === 鍒嗛〉 === */
  .pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin: var(--space-2xl) 0; }
  .page-btn {
    min-width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 12px;
    border-radius: var(--radius-md);
    font-size: 14px; font-weight: 500;
    color: var(--c-text-2);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    cursor: pointer;
    transition: all var(--duration-fast);
    text-decoration: none;
  }
  .page-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
  .page-btn.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

  /* === 椤佃剼 === */
  .footer {
    background: var(--c-surface);
    border-top: 1px solid var(--c-border);
    padding: var(--space-3xl) 0 var(--space-xl);
    margin-top: var(--space-4xl);
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
  }
  .footer-brand { }
  .footer-brand-name {
    font-size: 22px; font-weight: 800;
    background: var(--c-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
  }
  .footer-brand-desc { font-size: 14px; color: var(--c-text-2); line-height: 1.7; }
  .footer-title { font-size: 14px; font-weight: 700; margin-bottom: var(--space-md); }
  .footer-links { list-style: none; }
  .footer-links li { margin-bottom: var(--space-sm); }
  .footer-links a { font-size: 14px; color: var(--c-text-2); }
  .footer-links a:hover { color: var(--c-primary); }
  .footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--c-border);
    display: flex; align-items: center; justify-content: space-between;
    font-size: 13px; color: var(--c-text-3);
  }

  /* === 杩斿洖椤堕儴 === */
  .back-top {
    position: fixed; bottom: 32px; right: 32px;
    width: 48px; height: 48px;
    border-radius: var(--radius-lg);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: var(--c-text-2);
    cursor: pointer;
    opacity: 0; transform: translateY(20px);
    transition: all var(--duration-normal) var(--ease-out);
    z-index: 90;
  }
  .back-top.visible { opacity: 1; transform: translateY(0); }
  .back-top:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

  /* === 鎼滅储寮圭獥 === */
  .search-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(8px);
    display: flex; align-items: flex-start; justify-content: center;
    padding-top: 120px;
    opacity: 0; pointer-events: none;
    transition: opacity var(--duration-normal);
  }
  .search-overlay.active { opacity: 1; pointer-events: all; }
  .search-box {
    width: 600px; max-width: 90vw;
    background: var(--c-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transform: translateY(-20px) scale(.95);
    transition: transform var(--duration-normal) var(--ease-out);
  }
  .search-overlay.active .search-box { transform: translateY(0) scale(1); }
  .search-input-wrap {
    display: flex; align-items: center; gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--c-border);
  }
  .search-input-wrap i { font-size: 20px; color: var(--c-text-3); }
  .search-input {
    flex: 1; border: none; outline: none;
    font-size: 18px; background: transparent;
    color: var(--c-text);
    font-family: var(--font-sans);
  }
  .search-hints { padding: 16px 24px; }
  .search-hint-title { font-size: 12px; color: var(--c-text-3); margin-bottom: 8px; }
  .search-tags { display: flex; flex-wrap: wrap; gap: 8px; }

  /* === 鍔ㄧ敾鍏ュ満 === */
  .fade-in { opacity: 0; transform: translateY(24px); transition: all .6s var(--ease-out); }
  .fade-in.visible { opacity: 1; transform: translateY(0); }
  .fade-in-left { opacity: 0; transform: translateX(-24px); transition: all .6s var(--ease-out); }
  .fade-in-left.visible { opacity: 1; transform: translateX(0); }
  .fade-in-right { opacity: 0; transform: translateX(24px); transition: all .6s var(--ease-out); }
  .fade-in-right.visible { opacity: 1; transform: translateX(0); }
  .scale-in { opacity: 0; transform: scale(.9); transition: all .5s var(--ease-out); }
  .scale-in.visible { opacity: 1; transform: scale(1); }

  /* Stagger children */
  .stagger > *:nth-child(1) { transition-delay: .05s; }
  .stagger > *:nth-child(2) { transition-delay: .10s; }
  .stagger > *:nth-child(3) { transition-delay: .15s; }
  .stagger > *:nth-child(4) { transition-delay: .20s; }
  .stagger > *:nth-child(5) { transition-delay: .25s; }
  .stagger > *:nth-child(6) { transition-delay: .30s; }

  /* === 宸ュ叿绫?=== */
  .text-center { text-align: center; }
  .text-gradient {
    background: var(--c-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .mb-0 { margin-bottom: 0; }
  .mb-sm { margin-bottom: var(--space-sm); }
  .mb-md { margin-bottom: var(--space-md); }
  .mb-lg { margin-bottom: var(--space-lg); }
  .mb-xl { margin-bottom: var(--space-xl); }
  .mb-2xl { margin-bottom: var(--space-2xl); }
  .mt-lg { margin-top: var(--space-lg); }
  .mt-xl { margin-top: var(--space-xl); }
  .mt-2xl { margin-top: var(--space-2xl); }
  .p-lg { padding: var(--space-lg); }
  .p-xl { padding: var(--space-xl); }
  .section-title {
    font-size: 28px; font-weight: 800;
    margin-bottom: var(--space-xl);
    display: flex; align-items: center; gap: 12px;
  }
  .section-title i { color: var(--c-primary); }
  .section-subtitle { font-size: 15px; color: var(--c-text-3); margin-top: -16px; margin-bottom: var(--space-xl); }
}
