/**
 * 主页样式文件
 * 功能：包含整个网站的基础样式、组件样式和响应式布局
 * 最后编辑日期：2026-04-14
 */

/* 本地 Inter 字体 */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-VariableFont_opsz,wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
    'Noto Color Emoji';
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
    monospace;
    --color-red-100: oklch(93.6% 0.032 17.717);
    --color-red-500: oklch(63.7% 0.237 25.331);
    --color-red-800: oklch(44.4% 0.177 26.899);
    --color-orange-500: oklch(70.5% 0.213 47.604);
    --color-green-100: oklch(96.2% 0.044 156.743);
    --color-green-500: oklch(72.3% 0.219 149.579);
    --color-green-800: oklch(44.8% 0.119 151.328);
    --color-teal-500: oklch(70.4% 0.14 182.503);
    --color-sky-500: oklch(68.5% 0.169 237.323);
    --color-sky-600: oklch(58.8% 0.158 241.966);
    --color-sky-800: oklch(44.3% 0.11 240.79);
    --color-indigo-500: oklch(58.5% 0.233 277.117);
    --color-slate-100: oklch(96.8% 0.007 247.896);
    --color-slate-400: oklch(70.4% 0.04 256.788);
    --color-slate-500: oklch(55.4% 0.046 257.417);
    --color-slate-700: oklch(37.2% 0.044 257.287);
    --color-slate-800: oklch(27.9% 0.041 260.031);
    --color-gray-200: oklch(92.8% 0.006 264.531);
    --color-gray-300: #CCCCCC;
    --color-white: #fff;
    --spacing: 0.25rem;
    --breakpoint-xl: 100rem;
    --text-xs: 0.75rem;
    --text-xs--line-height: calc(1 / 0.75);
    --text-sm: 0.875rem;
    --text-sm--line-height: calc(1.25 / 0.875);
    --text-lg: 1.125rem;
    --text-lg--line-height: calc(1.75 / 1.125);
    --text-xl: 1.25rem;
    --text-xl--line-height: calc(1.75 / 1.25);
    --text-4xl: 2.25rem;
    --text-4xl--line-height: calc(2.5 / 2.25);
    --text-5xl: 3rem;
    --text-5xl--line-height: 1;
    --text-6xl: 3.75rem;
    --text-6xl--line-height: 1;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --tracking-tight: -0.025em;
    --radius-lg: 0.5rem;
    --default-transition-duration: 150ms;
    --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: 'Inter', var(--default-font-family, ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji');
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type='button'], [type='reset'], [type='submit']), ::file-selector-button {
    appearance: button;
    }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden='until-found'])) {
    display: none!important;
  }
}
@layer utilities {
  .absolute {
    position: absolute;
  }
  .relative {
    position: relative;
  }
  .top-4 {
    top: calc(var(--spacing) * 4);
  }
  .right-4 {
    right: calc(var(--spacing) * 4);
  }
  .bottom-4 {
    bottom: calc(var(--spacing) * 4);
  }
  .z-10 {
    z-index: 10;
  }
  .z-20 {
    z-index: 20;
  }
  .z-50 {
    z-index: 50;
  }
  .mx-auto {
    margin-inline: auto;
  }
  .mt-2 {
    margin-top: calc(var(--spacing) * 2);
  }
  .mt-4 {
    margin-top: calc(var(--spacing) * 4);
  }
  .mt-6 {
    margin-top: calc(var(--spacing) * 6);
  }
  .mt-8 {
    margin-top: calc(var(--spacing) * 8);
  }
  .mt-12 {
    margin-top: calc(var(--spacing) * 12);
  }
  .mr-2 {
    margin-right: calc(var(--spacing) * 2);
  }
  .mr-3 {
    margin-right: calc(var(--spacing) * 3);
  }
  .mr-4 {
    margin-right: calc(var(--spacing) * 4);
  }
  .ml-1 {
    margin-left: calc(var(--spacing) * 1);
  }
  .mb-4 {
    margin-bottom: calc(var(--spacing) * 4);
  }
  .mb-6 {
    margin-bottom: calc(var(--spacing) * 6);
  }
  .mb-8 {
    margin-bottom: calc(var(--spacing) * 8);
  }
  .block {
    display: block;
  }
  .flex {
    display: flex;
  }
  .inline-flex {
    display: inline-flex;
  }
  .grid {
    display: grid;
  }
  .h-2 {
    height: calc(var(--spacing) * 2);
  }
  .h-64 {
    height: calc(var(--spacing) * 64);
  }
  .h-auto {
    height: auto;
  }
  .w-2 {
    width: calc(var(--spacing) * 2);
  }
  .w-full {
    width: 100%;
  }
  .max-w-screen-xl {
    max-width: var(--breakpoint-xl);
    margin-left: auto;
    margin-right: auto;
  }
  .grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .flex-col {
    flex-direction: column;
  }
  .items-center {
    align-items: center;
  }
  .items-start {
    align-items: flex-start;
  }
  .justify-between {
    justify-content: space-between;
  }
  .justify-center {
    justify-content: center;
  }
  .justify-end {
    justify-content: flex-end;
  }
  .gap-4 {
    gap: calc(var(--spacing) * 4);
  }
  .gap-6 {
    gap: calc(var(--spacing) * 6);
  }
  .space-x-4 {
    :where(& > :not(:last-child)) {
      --tw-space-x-reverse: 0;
      margin-inline-start: calc(calc(var(--spacing) * 4) * var(--tw-space-x-reverse));
      margin-inline-end: calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-x-reverse)));
    }
  }
  .space-y-3 {
    :where(& > :not(:last-child)) {
      --tw-space-y-reverse: 0;
      margin-block-start: calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));
      margin-block-end: calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)));
    }
  }
  .truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
  }
  .overflow-hidden {
    overflow: hidden;
  }
  .rounded-full {
    border-radius: calc(infinity * 1px);
  }
  .rounded-lg {
    border-radius: var(--radius-lg);
  }
  .border-sky-500\/50 {
    border-color: rgba(14, 165, 233, 0.5);
  }
  .bg-green-100 {
    background-color: var(--color-green-100);
  }
  .bg-green-500 {
    background-color: var(--color-green-500);
  }
  .bg-red-100 {
    background-color: var(--color-red-100);
  }
  .bg-red-500 {
    background-color: var(--color-red-500);
  }
  .bg-cover {
    background-size: cover;
  }
  .bg-center {
    background-position: center;
  }
  .p-2 {
    padding: calc(var(--spacing) * 2);
  }
  .p-3 {
    padding: calc(var(--spacing) * 3);
  }
  .p-6 {
    padding: calc(var(--spacing) * 6);
  }
  .px-2 {
    padding-inline: calc(var(--spacing) * 2);
  }
  .px-4 {
    padding-inline: calc(var(--spacing) * 4);
  }
  .py-1 {
    padding-block: calc(var(--spacing) * 1);
  }
  .py-2\.5 {
    padding-block: calc(var(--spacing) * 2.5);
  }
  .py-3 {
    padding-block: calc(var(--spacing) * 3);
  }
  .py-8 {
    padding-block: calc(var(--spacing) * 8);
  }
  .py-12 {
    padding-block: calc(var(--spacing) * 12);
  }
  .text-center {
    text-align: center;
  }
  .text-left {
    text-align: left;
  }
  .text-right {
    text-align: right;
  }
  .text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
  .text-4xl {
    font-size: var(--text-4xl);
    line-height: var(--text-4xl--line-height);
  }
  .text-5xl {
    font-size: var(--text-5xl);
    line-height: var(--text-5xl--line-height);
  }
  .text-6xl {
    font-size: var(--text-6xl);
    line-height: var(--text-6xl--line-height);
  }
  .text-lg {
    font-size: var(--text-lg);
    line-height: var(--text-lg--line-height);
  }
  .text-sm {
    font-size: var(--text-sm);
    line-height: var(--text-sm--line-height);
  }
  .text-xl {
    font-size: var(--text-xl);
    line-height: var(--text-xl--line-height);
  }
  .text-xs {
    font-size: var(--text-xs);
    line-height: var(--text-xs--line-height);
  }
  .font-bold {
    font-weight: var(--font-weight-bold);
  }
  .font-medium {
    font-weight: var(--font-weight-medium);
  }
  .font-semibold {
    font-weight: var(--font-weight-semibold);
  }
  .tracking-tight {
    letter-spacing: var(--tracking-tight);
  }
  .text-green-500 {
    color: var(--color-green-500);
  }
  .text-green-600 {
    color: #16a34a;
  }
  .text-green-800 {
    color: var(--color-green-800);
  }
  .text-indigo-500 {
    color: var(--color-indigo-500);
  }
  .text-orange-500 {
    color: var(--color-orange-500);
  }
  .text-red-500 {
    color: var(--color-red-500);
  }
  .text-red-500\/80 {
    color: rgba(239, 68, 68, 0.8);
  }
  .text-red-800 {
    color: var(--color-red-800);
  }
  .text-sky-500 {
    color: var(--color-sky-500);
  }
  .text-sky-600 {
    color: var(--color-sky-600);
  }
  .text-slate-300 {
    color: #cbd5e1;
  }
  .text-slate-400 {
    color: var(--color-slate-400);
  }
  .text-slate-500 {
    color: var(--color-slate-500);
  }
  .text-slate-600 {
    color: #475569;
  }
  .text-slate-700 {
    color: var(--color-slate-700);
  }
  .text-slate-800 {
    color: var(--color-slate-800);
  }
  .text-teal-500 {
    color: var(--color-teal-500);
  }
  .text-white {
    color: var(--color-white);
  }
  .text-white\/50 {
    color: rgba(255, 255, 255, 0.5);
  }
  .text-white\/80 {
    color: rgba(255, 255, 255, 0.8);
  }
  .text-white\/90 {
    color: rgba(255, 255, 255, 0.9);
  }
  .italic {
    font-style: italic;
  }
  .antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  .transition-all {
    transition-property: all;
    transition-timing-function: var(--default-transition-timing-function);
    transition-duration: var(--default-transition-duration);
  }
  .transition-colors {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
    transition-timing-function: var(--default-transition-timing-function);
    transition-duration: var(--default-transition-duration);
  }
  .duration-500 {
    transition-duration: 500ms;
  }
  
  /* 处理未使用的CSS类 - 注意删除 */
  /* .hover\:bg-slate-100:hover {
    background-color: var(--color-slate-100);
  } */
  
  /* .hover\:text-gray-200:hover {
    color: var(--color-gray-200);
  } */
  
  /* .hover\:text-sky-800:hover {
    color: var(--color-sky-800);
  } */
  
  .hover\:text-white:hover {
    color: var(--color-white);
  }
  
  .hidden {
    display: none;
  }
  .flex-1 {
    flex: 1;
  }
  @media (min-width: 640px) {
    .sm\:col-span-2 {
      grid-column: span 2 / span 2;
    }
    .sm\:grid-cols-2 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .sm\:px-6 {
      padding-inline: calc(var(--spacing) * 6);
    }
  }
  @media (min-width: 768px) {
    .md\:sticky {
      position: sticky;
    }
    .md\:top-0 {
      top: 0;
    }
    .md\:col-span-5 {
      grid-column: span 5 / span 5;
    }
    .md\:col-span-7 {
      grid-column: span 7 / span 7;
    }
    .md\:grid-cols-12 {
      grid-template-columns: repeat(12, minmax(0, 1fr));
    }
    .md\:gap-8 {
      gap: calc(var(--spacing) * 8);
    }
    .md\:self-start {
      align-self: flex-start;
    }
    .md\:py-16 {
      padding-block: calc(var(--spacing) * 16);
    }
  }
  @media (min-width: 1024px) {
    .lg\:col-span-4 {
      grid-column: span 4 / span 4;
    }
    .lg\:col-span-8 {
      grid-column: span 8 / span 8;
    }
    .lg\:gap-12 {
      gap: calc(var(--spacing) * 12);
    }
    .lg\:px-8 {
      padding-inline: calc(var(--spacing) * 8);
    }
    .lg\:py-24 {
      padding-block: calc(var(--spacing) * 24);
    }
    .lg\:text-5xl {
      font-size: var(--text-5xl);
      line-height: var(--text-5xl--line-height);
    }
  }
  @media (min-width: 1280px) {
    .xl\:grid-cols-3 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
}

/* ========== 自定义样式 ========== */

/* ========== 主题系统（白天/黑夜） ========== */
:root {
    /* 浅色主题变量 */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-nav: rgba(255, 255, 255, 0.85);
    --bg-nav-scrolled: rgba(255, 255, 255, 0.95);
    --bg-nav-mobile: rgba(255, 255, 255, 0.98);
    --bg-sidebar: transparent;
    --bg-input: #ffffff;
    --bg-modal: #ffffff;
    --bg-code: #f1f5f9;
    --bg-hover: rgba(102, 126, 234, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #1e293b;
    --text-tertiary: #334155;
    --text-muted: #64748b;
    --text-inverse: #ffffff;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --border-color-hover: #cbd5e1;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --accent: #667eea;
    --accent-hover: #5568d3;
    --accent-light: rgba(102, 126, 234, 0.1);
    --gradient-accent: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    /* 兼容别名（domain.css / sponsor.css 使用） */
    --card-bg: var(--bg-card);
    --card-shadow: var(--shadow-sm);
    --accent-color: var(--accent);
}

[data-theme="dark"] {
    /* 暗色主题变量 */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #1e293b;
    --bg-card: #1e293b;
    --bg-nav: rgba(15, 23, 42, 0.85);
    --bg-nav-scrolled: rgba(15, 23, 42, 0.95);
    --bg-nav-mobile: rgba(15, 23, 42, 0.98);
    --bg-sidebar: rgba(30, 41, 59, 0.4);
    --bg-input: #1e293b;
    --bg-modal: #1e293b;
    --bg-code: #0f172a;
    --bg-hover: rgba(102, 126, 234, 0.15);
    --text-primary: #ffffff;
    --text-secondary: #f1f5f9;
    --text-tertiary: #e2e8f0;
    --text-muted: #94a3b8;
    --text-inverse: #0f172a;
    --border-color: #334155;
    --border-light: #1e293b;
    --border-color-hover: #475569;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.25);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --accent: #818cf8;
    --accent-hover: #6366f1;
    --accent-light: rgba(129, 140, 248, 0.15);
    --gradient-accent: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
    /* 兼容别名 */
    --card-bg: var(--bg-card);
    --card-shadow: var(--shadow-sm);
    --accent-color: var(--accent);
}

/* 暗色主题下硬编码 Tailwind 颜色覆盖 */
html[data-theme="dark"] .text-slate-800,
html[data-theme="dark"] .text-slate-700 {
    color: var(--text-primary) !important;
}
html[data-theme="dark"] .text-slate-600,
html[data-theme="dark"] .text-slate-500 {
    color: var(--text-secondary) !important;
}
html[data-theme="dark"] .text-slate-400,
html[data-theme="dark"] .text-slate-300 {
    color: var(--text-tertiary) !important;
}
html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .text-slate-500 {
    color: var(--text-tertiary) !important;
}
html[data-theme="dark"] .skills-section h2,
html[data-theme="dark"] .projects-section h2,
html[data-theme="dark"] .equipment-section h2,
html[data-theme="dark"] .blog-section h2,
html[data-theme="dark"] .friends-section h2,
html[data-theme="dark"] .domain-section h2 {
    color: var(--text-primary) !important;
}
html[data-theme="dark"] .skills-section h2 i,
html[data-theme="dark"] .projects-section h2 i,
html[data-theme="dark"] .equipment-section h2 i,
html[data-theme="dark"] .blog-section h2 i,
html[data-theme="dark"] .friends-section h2 i {
    color: var(--accent) !important;
}
html[data-theme="dark"] .skill-icon {
    color: var(--accent) !important;
}
html[data-theme="dark"] .skill-card h3 {
    color: var(--text-primary) !important;
}
html[data-theme="dark"] .project-icon i,
html[data-theme="dark"] .project-title {
    color: #fff !important;
}
html[data-theme="dark"] .project-desc {
    color: rgba(255,255,255,0.9) !important;
}
html[data-theme="dark"] .equipment-name {
    color: #fff !important;
    background: rgba(0,0,0,0.75);
}
html[data-theme="dark"] .loader {
    background: linear-gradient(#0000 calc(1*100%/6),#fff 0 calc(3*100%/6),#0000 0),
              linear-gradient(#0000 calc(2*100%/6),#fff 0 calc(4*100%/6),#0000 0),
              linear-gradient(#0000 calc(3*100%/6),#fff 0 calc(5*100%/6),#0000 0);
    background-size: 10px 400%;
    background-repeat: no-repeat;
}
html[data-theme="dark"] .lazy-loading {
    background-color: var(--bg-secondary);
}
html[data-theme="dark"] .modal-tags {
    border-top-color: var(--border-color);
}
html[data-theme="dark"] .whois-field value.status-ok {
    color: #34d399;
}
html[data-theme="dark"] .whois-field value.status-no {
    color: #f87171;
}
html[data-theme="dark"] .whois-field value.price {
    color: #34d399;
}
html[data-theme="dark"] .domain-renew-price {
    color: #34d399 !important;
}
html[data-theme="dark"] .whois-live-error {
    color: #f87171;
}
html[data-theme="dark"] .buy-modal-domain-price {
    color: #34d399;
    background: rgba(52,211,153,0.12);
}
html[data-theme="dark"] .buy-success-icon {
    color: #34d399;
}
html[data-theme="dark"] .domain-buy-btn:hover {
    border-style: solid;
    background: linear-gradient(135deg, var(--accent), #764ba2);
    color: #fff;
}

/* 主题过渡动画 */
html,
body,
.top-nav,
.light-card,
.blog-home-card,
.blog-card,
.friend-card,
.link-card,
.skill-card,
.about-popup,
.modal-content,
.apply-form-card,
.card-with-bg,
.left-sidebar-glass {
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* 基础样式 - 页面主体 */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-y: scroll;
    scrollbar-width: none;
}

/* 滚动条隐藏 */
::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

/* 卡片基础样式 */
.light-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease-in-out;
}

.light-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color);
}

/* 卡片链接按钮 */
.card-link {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    font-weight: 500;
    transition: background-color 0.3s ease;
}
.card-link:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

/* 天气卡片样式 */
.weather-card-base {
    background: linear-gradient(135deg, #6a85b6 0%, #bac8e0 100%);
    color: white;
}
.weather-card-base *, .soup-card-base * {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

/* 一言卡片样式 */
.soup-card-base {
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
    color: white;
}
#badsoup {
    transition: opacity 0.3s ease-in-out;
}

/* 赞助/打赏卡片样式 */
.sponsor-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    position: relative;
    overflow: hidden;
}
.sponsor-card .card-content h2,
.sponsor-card h2 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}
.sponsor-card .card-content p,
.sponsor-card p {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    font-weight: 500;
}
.sponsor-card .card-content i,
.sponsor-card i {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.sponsor-card .card-link {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #667eea !important;
    font-weight: 600;
    border: none;
}
.sponsor-card .card-link:hover {
    background: #ffffff !important;
    color: #764ba2 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* ========== 网易云音乐播放器（方形紧凑卡片，与赞助对齐） ========== */
.music-card-compact {
    position: relative;
    padding: 0;
    background: var(--card-bg);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    cursor: default;
    transition: all 0.3s ease;
}
.music-card-compact:hover {
    border-color: var(--border-color-hover);
    box-shadow: var(--card-shadow);
}

/* 头部 */
.music-mini-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: opacity 0.2s;
}
.music-mini-header:hover { opacity: 0.92; }
.music-go-full { font-size: 0.75rem; opacity: 0.7; }

/* 主体内容 */
.music-mini-body {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
}

/* 封面 */
.music-cover-wrap {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}
.music-cover-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease;
}
.music-card-compact.playing .music-cover-thumb { transform: rotate(360deg); }
.music-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.25);
    color: white;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}
.music-cover-wrap:hover .music-play-overlay { opacity: 1; }

/* 元信息 */
.music-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.music-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.music-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 首页播放器 - 当前歌词行 */
.music-lrc-line {
    font-size: 0.72rem;
    color: #667eea;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 1.4em;
    margin-top: 2px;
    transition: opacity 0.3s ease;
    min-height: 1.1em;
}

/* 迷你进度条 */
.music-progress-mini {
    margin-top: 5px;
}
.music-pg-bar {
    height: 3px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}
.music-pg-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

/* 控制按钮组 */
.music-mini-controls {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
    align-items: center;
}
.mc-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    transition: all 0.2s ease;
}
.mc-btn:hover {
    background: var(--accent-light);
    color: var(--accent);
    transform: scale(1.08);
}
.music-vol-slider {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    writing-mode: vertical-lr;
    direction: rtl;
    height: 80px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--bg-tertiary);
    border-radius: 3px;
    outline: none;
    margin-bottom: 6px;
    display: none;
}
.mc-btn-vol.active + .music-vol-slider,
.music-vol-slider:not(.hidden) {
    display: block;
}
.music-vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
}

/* 暗色模式适配 */
[data-theme="dark"] .music-cover-wrap {
    background: linear-gradient(135deg, #334155, #1e293b);
}
[data-theme="dark"] .mc-btn {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
}
[data-theme="dark"] .mc-btn:hover {
    background: rgba(102,126,234,0.2);
    color: #a5b4fc;
}

/* 移动端音乐卡片 */
@media (max-width: 640px) {
    .music-cover-wrap { width: 48px; height: 48px; border-radius: 10px; }
    .music-title { font-size: 0.82rem; }
    .music-subtitle { font-size: 0.7rem; }
    .mc-btn { width: 28px; height: 28px; font-size: 0.75rem; }
}

/* 头像样式 */
.avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    box-shadow: 0 6px 8px -2px rgb(0 0 0 / 0.12);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.avatar-img:hover {
    transform: scale(1.05);
    border-color: var(--accent);
}

/* ========== 侧边栏样式 - 毛玻璃高级感 v4 ========== */

/* 侧边栏外层包装器（PC端固定跟随） */
.sidebar-wrapper {
    position: relative;
}

/* PC端侧边栏 sticky 固定跟随 */
#sidebar-container.md\:sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 72px; /* 导航栏高度 + 间距 */
    align-self: flex-start;
}

/* About 气泡按钮 - 右上角呼吸闪烁 */
.sidebar-about-bubble {
    position: absolute;
    top: 10px; right: 10px;
    padding: 4px 11px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    z-index: 2;
    animation: aboutBubbleBreathe 2.5s ease-in-out infinite;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(102,126,234,0.35);
    user-select: none;
}
.sidebar-about-bubble:hover {
    animation: none;
    transform: scale(1.08);
    box-shadow: 0 4px 20px rgba(102,126,234,0.5);
}
@keyframes aboutBubbleBreathe {
    0%, 100% { transform: scale(1); box-shadow: 0 2px 12px rgba(102,126,234,0.35); }
    50% { transform: scale(1.06); box-shadow: 0 4px 22px rgba(102,126,234,0.55); }
}

/* 毛玻璃容器主体 */
.left-sidebar-glass {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 2rem 1.5rem 1.25rem;
    border-radius: 1.5rem;
    border: 1.5px solid transparent;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.7) 0%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(248, 250, 252, 0.6) 100%
    );
    backdrop-filter: blur(24px) saturate(1.8) brightness(1.02);
    -webkit-backdrop-filter: blur(24px) saturate(1.8) brightness(1.02);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.03);
    overflow: hidden;
    position: relative;
    isolation: isolate;
    transition: all 0.4s cubic-bezier(.23,1,.32,1);
}

/* 呼吸边框动画 */
.sidebar-breathing {
    animation: sidebarBreatheBorder 4s ease-in-out infinite;
}
@keyframes sidebarBreatheBorder {
    0%, 100% {
        border-color: rgba(102, 126, 234, 0.15);
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.06),
            0 2px 8px rgba(0, 0, 0, 0.04),
            inset 0 1px 0 rgba(255,255,255,0.6),
            inset 0 -1px 0 rgba(0,0,0,0.03),
            0 0 0 0 rgba(102, 126, 234, 0);
    }
    33% {
        border-color: rgba(139, 92, 246, 0.3);
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.06),
            0 2px 8px rgba(0, 0, 0, 0.04),
            inset 0 1px 0 rgba(255,255,255,0.6),
            inset 0 -1px 0 rgba(0,0,0,0.03),
            0 0 18px 3px rgba(102, 126, 234, 0.10);
    }
    66% {
        border-color: rgba(59, 130, 246, 0.28);
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.06),
            0 2px 8px rgba(0, 0, 0, 0.04),
            inset 0 1px 0 rgba(255,255,255,0.6),
            inset 0 -1px 0 rgba(0,0,0,0.03),
            0 0 22px 5px rgba(139, 92, 246, 0.08);
    }
}

/* 装饰性背景渐变光斑 */
.left-sidebar-glass::before {
    content: '';
    position: absolute;
    top: -40%; left: -20%;
    width: 140%; height: 80%;
    background: radial-gradient(ellipse at 30% 20%, rgba(102,126,234,0.07) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* 个人信息区（居中） */
.sidebar-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 1;
    flex: 1;
}

/* 头像区域 */
.sidebar-avatar-wrap {
    position: relative;
    margin-bottom: 1.25rem;
    display: inline-block;
}

/* 头像光环效果 */
.avatar-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 180deg, #667eea, #764ba2, #f093fb, #667eea);
    opacity: 0.35;
    filter: blur(8px);
    animation: avatarGlowSpin 6s linear infinite;
    z-index: -1;
}
@keyframes avatarGlowSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 头像图片 */
.avatar-img {
    width: 96px; height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.75);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.1),
        0 0 0 2px rgba(102, 126, 234, 0.15);
    transition: all 0.4s cubic-bezier(.34,1.56,.64,1);
    position: relative;
    z-index: 1;
}

.avatar-img:hover {
    transform: scale(1.06) rotate(-3deg);
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow:
        0 8px 24px rgba(102, 126, 234, 0.2),
        0 0 0 3px rgba(139, 92, 246, 0.2);
}

/* 标题 - 高级感字体 */
.sidebar-title {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #0f172a;
    margin-bottom: 0.25rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.02);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 描述文字 */
.sidebar-desc {
    margin-top: 0.5rem;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.7;
    max-width: 240px;
    word-break: break-word;
    letter-spacing: 0.01em;
    font-weight: 400;
}

/* 社交链接按钮 */
.social-links {
    display: flex;
    gap: 0.65rem;
    margin-top: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(241,245,249,0.8), rgba(226,232,240,0.6));
    color: #475569;
    border: 1px solid rgba(203,213,225,0.5);
    transition: all 0.3s cubic-bezier(.34,1.56,.64,1);
    position: relative;
    overflow: hidden;
}
.social-icon-btn::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.social-icon-btn i { position: relative; z-index: 1; font-size: 16px; }
.social-icon-btn:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.25);
}
.social-icon-btn:hover::before { opacity: 1; }

/* 版权信息栏（独立底部） */
.sidebar-copyright-bar {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    width: 100%;
    text-align: center;
}
.sidebar-copyright-bar span {
    font-size: 11px;
    color: #94a3b8;
    letter-spacing: 0.03em;
    font-weight: 400;
}

/* ====== 暗色主题侧边栏 ====== */
[data-theme="dark"] .left-sidebar-glass {
    background: linear-gradient(
        160deg,
        rgba(30, 41, 59, 0.55) 0%,
        rgba(15, 23, 42, 0.6) 50%,
        rgba(30, 41, 59, 0.5) 100%
    );
    border-color: rgba(71, 85, 105, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] .left-sidebar-glass::before {
    background: radial-gradient(ellipse at 30% 20%, rgba(102,126,234,0.06) 0%, transparent 60%);
}
[data-theme="dark"] .sidebar-title { color: #e2e8f0; }
[data-theme="dark"] .sidebar-desc { color: #94a3b8; }
[data-theme="dark"] .avatar-img {
    border-color: rgba(99,115,129,0.5);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3), 0 0 0 2px rgba(102,126,234,0.12);
}
[data-theme="dark"] .social-icon-btn {
    background: linear-gradient(145deg, rgba(51,65,85,0.6), rgba(30,41,59,0.5));
    color: #94a3b8;
    border-color: rgba(71,85,105,0.4);
}
[data-theme="dark"] .social-icon-btn:hover {
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.2);
}
[data-theme="dark"] .sidebar-copyright-bar {
    border-top-color: rgba(71,85,105,0.25);
}
[data-theme="dark"] .sidebar-copyright-bar span { color: #64748b; }

/* 技能区域样式 */
.skills-section {
    grid-column: 1 / -1;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.skill-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 180px;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-card);
    border-color: var(--border-color);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.skill-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* 技能区域响应式 */
@media (min-width: 640px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 项目区域样式 */
.projects-section {
    grid-column: 1 / -1;
    margin-top: 0.25rem;
    width: 100%;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

/* 项目区域响应式 */
@media (min-width: 640px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 项目卡片样式 */
.project-card {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    aspect-ratio: 1/1;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

.project-card:hover .project-info {
    opacity: 1;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-desc {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* 域名状态标签 */
.domain-status {
    display: flex;
    align-items: center;
    background-color: var(--accent-light);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* 社交链接样式 */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    color: var(--text-tertiary);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-links a:hover {
    background-color: var(--accent-light);
    color: var(--accent);
    transform: translateY(-2px);
    border-color: rgba(102, 126, 234, 0.3);
}

.social-links i {
    font-size: 1.25rem;
}

/* 装备区域样式 */
.equipment-section {
    grid-column: 1 / -1;
    margin-top: 0.25rem;
    width: 100%;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

/* 装备区域响应式 */
@media (min-width: 640px) {
    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .equipment-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .equipment-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 装备卡片样式 */
.equipment-card {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    aspect-ratio: 1/1;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.equipment-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.equipment-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.75rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.equipment-card:hover .equipment-name {
    opacity: 1;
}

.equipment-card:hover img {
    transform: scale(1.1);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--bg-modal);
    border-radius: 1rem;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-tertiary);
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal-image {
    width: 100%;
    height: 350px;
    object-fit: contain;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    cursor: zoom-in;
    background-color: var(--bg-primary);
    padding: 1rem;
}

.modal-details {
    padding: 2rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.modal-description {
    color: var(--text-tertiary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.modal-tag {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* 灯箱样式 - 图片放大预览 */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1100;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 3rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
    cursor: pointer;
    z-index: 10000;
    width: 50px;
    height: 50px;
    line-height: 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 图片懒加载样式 */
.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy.loaded {
    opacity: 1;
}

.lazy-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-tertiary);
    z-index: 1;
}

/* 加载动画 */
.loader {
  width: 45px;
  height: 40px;
  background: linear-gradient(#0000 calc(1*100%/6),#000 0 calc(3*100%/6),#0000 0),
            linear-gradient(#0000 calc(2*100%/6),#000 0 calc(4*100%/6),#0000 0),
            linear-gradient(#0000 calc(3*100%/6),#000 0 calc(5*100%/6),#0000 0);
  background-size: 10px 400%;
  background-repeat: no-repeat;
  animation: matrix 1s infinite linear;
}

@keyframes matrix {
  0% {
    background-position: 0% 100%, 50% 100%, 100% 100%
  }

  100% {
    background-position: 0% 0%, 50% 0%, 100% 0%
  }
}

/* 带背景的卡片样式 */
.card-with-bg {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 1;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: all 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.card-content {
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 有背景时的卡片样式 */
.card-with-bg.has-bg .card-bg {
    opacity: 1;
    filter: brightness(1);
}

.card-with-bg.has-bg .card-overlay {
    background: rgba(0, 0, 0, 0.15);
}

.card-with-bg.has-bg .card-content h2 {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.card-with-bg.has-bg .card-content p {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
}

.card-with-bg.has-bg .card-content i {
    color: rgba(255, 255, 255, 0.9);
}

/* 有背景时的悬停效果 */
.card-with-bg.has-bg:hover .card-bg {
    filter: brightness(0.8) blur(2px);
    transform: scale(1.03);
}

.card-with-bg.has-bg:hover .card-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.card-with-bg.has-bg:hover .card-content h2 {
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.8);
}

.card-with-bg.has-bg:hover .card-content p {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.card-with-bg.has-bg .card-link {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(2px);
    transition: all 0.3s ease;
}

.card-with-bg.has-bg .card-link:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    backdrop-filter: blur(4px);
}

/* 无背景时的卡片样式 */
.card-with-bg:not(.has-bg) .card-content h2 {
    color: var(--text-primary);
}

.card-with-bg:not(.has-bg) .card-content p {
    color: var(--text-tertiary);
}

.card-with-bg:not(.has-bg) .card-link {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
}

.card-with-bg:not(.has-bg) .card-link:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

/* 移动端响应式 - 带背景的卡片 */
@media (max-width: 768px) {
    .card-with-bg.has-bg .card-bg {
        opacity: 1;
        filter: brightness(0.95) !important;
    }
    
    .card-with-bg.has-bg:hover .card-bg {
        filter: brightness(0.9) !important;
        transform: scale(1.01);
    }
    
    .card-with-bg.has-bg .card-content h2 {
        font-size: 1.25rem;
        text-shadow: 0 2px 3px rgba(0, 0, 0, 0.8);
        color: rgba(255, 255, 255, 0.95);
    }
    
    .card-with-bg.has-bg .card-content p {
        font-size: 0.875rem;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
        color: rgba(255, 255, 255, 0.9);
        line-height: 1.4;
    }
    
    .card-with-bg.has-bg .card-overlay {
        background: rgba(0, 0, 0, 0.2);
    }
    
    .card-with-bg.has-bg:hover .card-overlay {
        background: rgba(0, 0, 0, 0.25);
    }
    
.card-with-bg:not(.has-bg) .card-content h2 {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.card-with-bg:not(.has-bg) .card-content p {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    line-height: 1.4;
}
}

@media (max-width: 480px) {
    .card-with-bg.has-bg .card-content h2 {
        font-size: 1.125rem;
    }
    
    .card-with-bg.has-bg .card-content p {
        font-size: 0.8125rem;
    }
    
    .card-with-bg:not(.has-bg) .card-content h2 {
        font-size: 1.125rem;
    }
    
    .card-with-bg:not(.has-bg) .card-content p {
        font-size: 0.8125rem;
    }
}

/* 返回首页按钮 - 所有页面通用 */
.back-home-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.back-home-btn:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* 天气卡片文字间距 - 只有温度加大 */
#weather-temp {
    letter-spacing: 4px;
}

#weather-icon i {
    font-size: 4rem;
}

/* 修复：触屏设备禁用hover效果 */
@media (hover: none) {
    .payment-card:hover,
    .domain-card:hover,
    .project-card:hover,
    .equipment-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}

/* ========== 博客栏目样式 ========== */
.blog-section {
    grid-column: 1 / -1;
    margin-top: 0.25rem;
    width: 100%;
}

.blog-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-section h2 .blog-more {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-section h2 .blog-more:hover {
    color: var(--accent-hover);
}

/* 首页博客卡片网格（图片上叠加标题和摘要） */
.blog-home-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .blog-home-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1280px) {
    .blog-home-grid { grid-template-columns: repeat(3, 1fr); }
}

.blog-home-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.blog-home-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.12);
    border-color: rgba(102, 126, 234, 0.3);
}

.blog-home-card-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.blog-home-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-home-card:hover .blog-home-card-cover img {
    transform: scale(1.06);
}

.blog-home-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 2.5rem;
}

.blog-home-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 0.875rem 0.75rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    color: #fff;
}

.blog-home-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-home-card-excerpt {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    opacity: 0.85;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-home-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.blog-home-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.blog-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color);
}

.blog-card-cover {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background-color: var(--bg-tertiary);
}

.blog-card-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2.5rem;
}

.blog-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-excerpt {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
}

.blog-empty p {
    font-size: 0.9rem;
}

/* ========== 友链栏目样式 ========== */
.friends-section {
    grid-column: 1 / -1;
    margin-top: 0.25rem;
    width: 100%;
}

.friends-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.friends-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .friends-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .friends-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .friends-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.friend-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    height: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
    box-sizing: border-box;
    overflow: hidden !important;
}

.friend-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
}

.friend-avatar {
    width: 44px;
    height: 44px;
    border-radius: 0.5rem;
    flex-shrink: 0;
    object-fit: cover;
    background-color: var(--bg-tertiary);
}

.friend-avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 0.5rem;
    flex-shrink: 0;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
}

.friend-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.friend-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    line-height: 1.3;
    display: block;
}

.friend-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    margin-top: 0.25rem;
    line-height: 1.2;
    display: block;
}

.friends-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
}

.friends-empty p {
    font-size: 0.9rem;
}

/* ========== 友链独立页样式 ========== */
.links-page { width: 100%; }

.links-site-info {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

.links-site-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.links-site-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.links-site-info-grid span {
    color: var(--text-muted);
}

.links-site-info-grid a {
    color: var(--accent);
    text-decoration: none;
    word-break: break-all;
    overflow-wrap: break-word;
}

.site-info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-primary);
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.site-info-logo {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.site-info-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.site-info-logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
}

.site-info-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.site-info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.5;
}

.site-info-label {
    flex-shrink: 0;
    color: var(--text-muted);
    min-width: 64px;
    font-weight: 500;
}

.site-info-value {
    color: var(--text-secondary);
    word-break: break-all;
    overflow-wrap: break-word;
    flex: 1;
}

.site-info-value a {
    color: var(--accent);
    text-decoration: none;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .links-grid { grid-template-columns: repeat(2, 1fr); }
}

.link-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    height: 80px !important;
    min-height: 80px !important;
    max-height: 80px !important;
    box-sizing: border-box;
    overflow: hidden !important;
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.08);
    border-color: rgba(102, 126, 234, 0.3);
}

.link-avatar, .link-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.link-avatar-placeholder {
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.25rem;
}

.link-info { flex: 1; min-width: 0; overflow: hidden; }
.link-name { font-weight: 600; font-size: 0.95rem; color: var(--text-primary); overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; line-height: 1.3; display: block; }
.link-desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; line-height: 1.2; display: block; }
.link-external-icon { color: var(--border-color); font-size: 0.875rem; flex-shrink: 0; }

.links-apply-cta {
    text-align: center;
    padding: 2rem;
    background: var(--bg-tertiary);
    border-radius: 0.75rem;
    color: var(--text-tertiary);
}

.links-apply-cta i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: block;
}

.links-apply-cta a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

/* ========== 申请友链表单 ========== */
.apply-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
}

.apply-form-card .form-group {
    margin-bottom: 1.25rem;
}

.apply-form-card label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.apply-form-card input[type="text"],
.apply-form-card input[type="url"],
.apply-form-card input[type="email"] {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
    background-color: var(--bg-input);
    color: var(--text-primary);
}

.apply-form-card input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.apply-form-card .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 640px) {
    .apply-form-card .form-row { grid-template-columns: 1fr; }
}

.btn-apply-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-apply-submit:hover { background: var(--accent-hover); }

.apply-success-cta { margin-top: 1.5rem; }

.btn-apply-back {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-apply-back:hover { background: var(--border-color); }

/* ========== 关于弹窗（毛玻璃风格） ========== */
.about-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 1rem;
}

.about-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.about-popup {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    max-width: 520px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    color: #fff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

/* About 弹窗白天模式适配 */
:not([data-theme="dark"]) .about-popup {
    background: #fff;
    border: 1px solid rgba(203, 213, 225, 0.6);
    color: #334155;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(102, 126, 234, 0.08);
}
:not([data-theme="dark"]) .about-popup::before {
    display: none;
}
:not([data-theme="dark"]) .about-popup-close {
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(203, 213, 225, 0.5);
    color: #64748b;
}
:not([data-theme="dark"]) .about-popup-close:hover {
    background: rgba(102, 126, 234, 0.12);
    color: #667eea;
}
:not([data-theme="dark"]) .about-popup-title {
    color: #1e293b;
    text-shadow: none;
}
:not([data-theme="dark"]) .about-popup-content {
    text-shadow: none;
    color: #475569;
}
:not([data-theme="dark"]) .about-popup-content h3 {
    color: #0f172a;
}
:not([data-theme="dark"]) .about-popup-content p {
    color: #475569;
}
:not([data-theme="dark"]) .about-popup-content a {
    color: #667eea;
}

.about-popup-overlay.show .about-popup {
    transform: scale(1) translateY(0);
}

.about-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    z-index: -1;
}

.about-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.about-popup-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.about-popup-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0,0,0.2);
}

.about-popup-content {
    font-size: 0.95rem;
    line-height: 1.8;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.about-popup-content h3 {
    font-size: 1.15rem;
    margin: 1rem 0 0.5rem;
}

.about-popup-content p {
    margin-bottom: 0.75rem;
}

.about-popup-content a {
    color: #c7d2fe;
}

@media (max-width: 640px) {
    .about-popup {
        padding: 2rem 1.5rem;
        max-height: 85vh;
    }
    .about-popup-title { font-size: 1.25rem; }
}
@media (max-width: 480px) {
    .about-popup { padding: 1.5rem 1.25rem; }
}

/* ========== 顶部导航栏 ========== */
.top-nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    overflow: visible;
}

.top-nav.scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    background: var(--bg-nav-scrolled);
}

.top-nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    overflow: visible;
    position: relative;
}

.top-nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    flex-shrink: 0;
    transition: color 0.2s;
    max-width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-nav-logo:hover {
    color: var(--accent);
}

.top-nav-logo i {
    font-size: 1.2rem;
    color: var(--accent);
    flex-shrink: 0;
}

.top-nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.top-nav-menu::-webkit-scrollbar {
    display: none;
}

.top-nav-menu > li {
    flex-shrink: 0;
}

.top-nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.top-nav-menu > li > a:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.top-nav-menu > li > a i {
    font-size: 0.95rem;
}

.top-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.top-nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.top-nav-toggle.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.top-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.top-nav-toggle.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* 导航栏响应式 - 移动端使用底部Tab栏 + 顶部精简 */
@media (max-width: 768px) {
    .top-nav-toggle {
        display: flex;
    }

    /* PC端菜单在移动端隐藏（通过display:none在CSS中控制） */
    .top-nav-menu {
        /* 由JS控制显示/隐藏，默认桌面可见 */
    }
}

/* 导航栏占用空间补偿（sticky 模式下不需要额外 padding，但保留以兼容旧页面） */
body.has-navbar {
    padding-top: 0;
}

/* 侧边栏 sticky 定位需要避开导航栏高度 */
@media (min-width: 768px) {
    .md\:top-0 {
        top: 56px;
    }
}

/* 小屏幕调整间距 */
@media (max-width: 768px) {
    .left-sidebar {
        padding-top: 1rem !important;
    }
    .left-sidebar-glass {
        padding: 1.5rem 1rem;
        min-height: auto;
    }
}

/* ========== 主题切换按钮 ========== */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: none;
    border: 1px solid var(--border-color);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--accent-light);
    color: var(--accent);
    border-color: var(--accent);
    transform: rotate(15deg);
}

.theme-toggle .theme-icon-sun,
.theme-toggle .theme-icon-moon {
    position: absolute;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle .theme-icon-sun {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.theme-toggle .theme-icon-moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

[data-theme="dark"] .theme-toggle .theme-icon-sun {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

[data-theme="dark"] .theme-toggle .theme-icon-moon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* ========== 侧边栏版权置底 ========== */
.left-sidebar-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    text-align: center;
    width: 100%;
}

.left-sidebar-footer .text-sm {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: color 0.35s ease;
}

/* 暗色模式下的侧边栏文字颜色微调 */
[data-theme="dark"] .left-content h1 {
    color: #f1f5f9;
}

/* 侧边栏标题颜色 */
.sidebar-title {
    color: var(--text-primary);
}

.left-sidebar-glass .sidebar-title {
    color: #1e293b;
}

[data-theme="dark"] .left-sidebar-glass .sidebar-title {
    color: #f1f5f9;
}

[data-theme="dark"] .left-content p {
    color: #94a3b8;
}

[data-theme="dark"] .avatar-img {
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 6px 16px -4px rgba(102, 126, 234, 0.2);
}

[data-theme="dark"] .social-links a {
    background: rgba(51, 65, 85, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.4);
}

[data-theme="dark"] .social-links a:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
}

/* 暗色模式下的博客首页卡片 meta */
[data-theme="dark"] .blog-home-card-meta {
    color: #64748b;
}

/* 暗色模式下的天气/一言卡片保持原有样式不变（它们有自己的背景） */

/* 暗色模式下滚动条颜色优化 */
[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.3);
    border-radius: 4px;
}

/* ========== 侧边栏 sticky 偏移（避开导航栏 56px） ========== */
@media (min-width: 768px) {
    .md\:top-\[56px\] {
        top: 56px;
    }
}

/* ========== 导航栏工具区 ========== */
.top-nav-tools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    position: absolute;
    right: 1rem;
}

.top-nav-tool-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: none;
    border: 1px solid var(--border-color);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.top-nav-tool-btn:hover {
    background: var(--accent-light);
    color: var(--accent);
    border-color: var(--accent);
}

/* ========== 幻灯片轮播样式 ========== */
.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.slide-img.active {
    opacity: 1;
}

#slide-card {
    position: relative;
}

#slide-card > a {
    display: block;
    width: 100%;
    height: 100%;
}

.slide-dot {
    cursor: pointer;
    border: none;
    padding: 0;
    transition: all 0.3s ease;
}

.slide-dot:hover {
    transform: scale(1.3);
}

/* 暗色模式下的导航栏工具按钮 */
[data-theme="dark"] .top-nav-tool-btn {
    border-color: var(--border-color);
    color: var(--text-secondary);
}

[data-theme="dark"] .top-nav-tool-btn:hover {
    background: var(--accent-light);
    color: var(--accent);
}

/* ========== 移动端底部导航栏（H5 Tab Bar） ========== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border-top: 1px solid rgba(0,0,0,0.06);
    padding: 6px 0;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0));
    box-shadow: 0 -4px 24px rgba(0,0,0,0.06), 0 -1px 3px rgba(0,0,0,0.04);
}

[data-theme="dark"] .mobile-bottom-nav {
    background: rgba(15,23,42,0.92);
    border-top-color: rgba(255,255,255,0.06);
}

.mobile-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 2px;
    padding: 5px 0;
    text-decoration: none;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(.4,0,.2,1);
    position: relative;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.mobile-bottom-item i,
.mobile-bottom-item .nav-icon-fallback {
    font-size: 22px !important;
    line-height: 1;
    width: 24px; height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(.4,0,.2,1);
    /* 确保图标字体加载 */
    font-family: 'bootstrap-icons', 'Bootstrap-Icons' !important;
    speak: never;
    font-style: normal;
    font-weight: 400;
    font-feature-settings: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 活跃态 */
.mobile-bottom-item.active {
    color: #3b82f6;
}
[data-theme="dark"] .mobile-bottom-item.active {
    color: #60a5fa;
}
.mobile-bottom-item.active i {
    transform: scale(1.12);
}

/* 底部导航活跃指示条 */
.mobile-bottom-item.active::after {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 20px; height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 0 0 3px 3px;
}
[data-theme="dark"] .mobile-bottom-item.active::after {
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
}

/* ===== 移动端下拉菜单（汉堡展开） ===== */
.mobile-dropdown-menu {
    display: none;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    background: var(--bg-nav-mobile);
    border-bottom: 1px solid var(--border-color);
    padding: 0 1rem;
}

.mobile-dropdown-menu.open {
    display: block;
    max-height: 400px;
    opacity: 1;
    padding: 0.5rem 1rem;
}

.mobile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-dropdown-item i {
    font-size: 1.05rem;
    width: 20px;
    text-align: center;
    color: var(--accent);
}

.mobile-dropdown-item:active {
    background: var(--accent-light);
}

/* ===== "更多"面板 ===== */
.mobile-more-panel {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10000;
    pointer-events: none;
}

.mobile-more-panel.show { display: block; pointer-events: auto; }

.mobile-more-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mobile-more-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: var(--bg-card);
    border-radius: 1.25rem 1.25rem 0 0;
    max-height: 60vh;
    overflow-y: auto;
    padding-bottom: env(safe-area-inset-bottom, 0);
    animation: morePanelSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes morePanelSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.mobile-more-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.mobile-more-header button {
    background: none; border: none;
    color: var(--text-secondary); cursor: pointer;
    padding: 0.25rem; font-size: 1.25rem; border-radius: 50%;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
}

.mobile-more-list {
    padding: 0.75rem 1.25rem;
}

.mobile-more-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 0.6rem;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-more-link:active {
    background: var(--accent-light);
    color: var(--accent);
}

.mobile-more-link i {
    font-size: 1.1rem;
    color: var(--accent);
    width: 24px; text-align: center;
}

/* ===== 导航栏响应式：移动端显示底部Tab栏 ===== */
@media (max-width: 768px) {
    /* 全局隐藏移动端底部导航栏（侧边栏已提供导航功能，避免重复） */
    .mobile-bottom-nav {
        display: none !important;
    }

    /* 取消底部导航占用的 padding */
    body.has-navbar {
        padding-bottom: 0;
    }

    /* 顶部导航精简化 */
    .top-nav-logo {
        display: none;
    }

    .top-nav-container {
        justify-content: flex-end;
        padding-right: 0.5rem;
        height: 44px !important;
    }

    /* PC端菜单在移动端隐藏，用底部Tab替代 */
    .top-nav-menu {
        display: none !important;
    }

    /* 汉堡按钮常显 */
    .top-nav-toggle {
        display: flex;
    }

    /* 页面主体增加底部padding，避免被底部导航遮挡 */
    body.has-navbar {
        padding-bottom: 64px;
    }

    /* 确保Bootstrap Icons在移动端正确加载 */
    .mobile-bottom-item i::before {
        font-family: 'bootstrap-icons' !important;
        speak: none;
        -webkit-font-smoothing: antialiased;
    }
}

@media (min-width: 769px) {
    .mobile-bottom-nav,
    .mobile-dropdown-menu,
    .mobile-more-panel {
        display: none !important;
    }

    .top-nav-menu {
        display: flex !important;
    }
}

/* ===== 侧边栏移动端 & PC固定定位 响应式规则 ===== */

/* PC端：侧边栏随页面滚动时保持可见（sticky已由HTML控制） */
@media (min-width: 769px) {
    .sidebar-wrapper {
        position: sticky;
        top: calc(56px + 1.5rem);
        align-self: start;
    }
}

/* 移动端：非首页隐藏侧边栏 */
@media (max-width: 768px) {
    /* 首页保留侧边栏（压缩版），但取消 fixed/sticky 滚动，避免与内容重叠 */
    .home-page #sidebar-container {
        display: block;
        position: static !important;
        max-height: none !important;
        overflow-y: visible !important;
        top: auto !important;
        align-self: auto !important;
    }

    .home-page .sidebar-wrapper {
        position: static !important;
        top: auto !important;
        align-self: auto !important;
        margin-bottom: 1rem;
    }

    .home-page .left-sidebar-glass {
        padding: 1.5rem 1.25rem 1rem;
        border-radius: 1.25rem;
    }

    .home-page .avatar-img {
        width: 72px; height: 72px;
    }

    .home-page .sidebar-title {
        font-size: 1.35rem;
    }

    .home-page .sidebar-desc {
        font-size: 0.78rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .home-page .social-links {
        margin-top: 1rem; margin-bottom: 0.75rem;
    }

    .home-page .social-icon-btn {
        width: 34px; height: 34px;
    }

    .home-page .sidebar-copyright-bar {
        padding-top: 0.75rem;
    }

    /* 非首页：完全隐藏侧边栏，内容全宽 */
    body:not(.home-page) #sidebar-container {
        display: none !important;
    }

    body:not(.home-page) .md\:col-span-7,
    body:not(.home-page) .lg\:col-span-8 {
        grid-column: 1 / -1 !important;
    }

    /* 兼容旧class名 */
    .page-hide-mobile-sidebar #sidebar-container {
        display: none !important;
    }
}

/* ===== 外链跳转提示页样式 ===== */
.redirect-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    padding-bottom: 80px;
}

.redirect-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.redirect-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--accent);
    font-size: 1.75rem;
}

.redirect-card h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.redirect-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.redirect-url {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0.6rem;
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
    word-break: break-all;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: left;
    max-height: 80px;
    overflow-y: auto;
}

.redirect-btns {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.redirect-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.75rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.redirect-btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.redirect-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.6rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.redirect-btn-secondary:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

/* ===== 404页面样式 ===== */
.notfound-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    padding-bottom: 80px;
}

.notfound-card {
    text-align: center;
    max-width: 480px;
}

.notfound-code {
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent) 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.notfound-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.notfound-card p {
    font-size: 0.95rem;
    color: var(--text-tertiary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ===== H5风格首页优化 ===== */
@media (max-width: 768px) {
    /* 首页内容区单列布局，卡片更大更易触控 */
    .home-page main > .grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    /* 首页域名统计3列变2列 */
    .home-page .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* 轮播图全宽 */
    .home-page #slide-card,
    .home-page #slide-card-fallback {
        grid-column: 1 / -1 !important;
        height: 200px !important;
    }

    /* 天气卡片全宽 */
    .home-page #weather-card {
        grid-column: 1 / -1 !important;
        height: auto !important;
        min-height: 140px;
    }

    /* 卡片间距调整 */
    .home-page main > .grid > * {
        margin-bottom: 0.75rem;
    }

    /* 技能网格单列 */
    .skills-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    /* 项目网格 */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    /* 博客网格 */
    .blog-home-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    /* 友链网格 */
    .friends-grid {
        grid-template-columns: 1fr !important;
    }

    /* 域名商店预览卡片 */
    .light-card.h-64.sm\:col-span-2 {
        grid-column: 1 / -1 !important;
        height: auto !important;
        min-height: 200px;
    }

    /* 一言卡片 */
    #soup-card {
        grid-column: 1 / -1 !important;
        height: 140px !important;
    }
}

/* ===== 触屏设备禁用hover效果增强 ===== */
@media (hover: none) and (max-width: 768px) {
    .light-card:hover {
        transform: none !important;
        box-shadow: var(--shadow-sm) !important;
    }

    .blog-home-card:hover {
        transform: none !important;
    }

    .friend-card:hover,
    .link-card:hover {
        transform: none !important;
    }

    .domain-card:hover {
        transform: none !important;
    }
}
