﻿@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500&display=swap");

:root {
  --bg: #f6f9fc;
  --bg-2: #eef3fb;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --text: #1a1f36;
  --text-soft: #697386;
  --line: #dfe7f3;
  --line-strong: #c9d6ea;
  --primary: #635bff;
  --primary-2: #3a7afe;
  --success: #0b7f5f;
  --danger: #d5333f;
  --radius-xl: 12px;
  --radius-lg: 10px;
  --radius-md: 8px;
  --site-header-height: 68px;
  --shadow-sm: 0 1px 3px rgba(26, 31, 54, 0.08), 0 8px 24px rgba(99, 91, 255, 0.06);
  --shadow-md: 0 12px 38px rgba(26, 31, 54, 0.12), 0 2px 8px rgba(99, 91, 255, 0.09);
}

body.dark-theme {
  --bg: #0f1527;
  --bg-2: #111a2f;
  --surface: #161f35;
  --surface-soft: #1b2742;
  --text: #e5ebff;
  --text-soft: #a8b6d6;
  --line: #2b3a5e;
  --line-strong: #374a73;
  --shadow-sm: 0 1px 3px rgba(5, 8, 18, 0.45), 0 8px 24px rgba(12, 18, 34, 0.32);
  --shadow-md: 0 12px 38px rgba(5, 8, 18, 0.52), 0 2px 8px rgba(8, 13, 27, 0.4);
}

.prefers-dark body {
  --bg: #0f1527;
  --bg-2: #111a2f;
  --surface: #161f35;
  --surface-soft: #1b2742;
  --text: #e5ebff;
  --text-soft: #a8b6d6;
  --line: #2b3a5e;
  --line-strong: #374a73;
  --shadow-sm: 0 1px 3px rgba(5, 8, 18, 0.45), 0 8px 24px rgba(12, 18, 34, 0.32);
  --shadow-md: 0 12px 38px rgba(5, 8, 18, 0.52), 0 2px 8px rgba(8, 13, 27, 0.4);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 520px at -8% -12%, rgba(58, 122, 254, 0.14), rgba(58, 122, 254, 0)),
    radial-gradient(900px 480px at 104% -14%, rgba(99, 91, 255, 0.13), rgba(99, 91, 255, 0)),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 1.2px 1.2px, rgba(239, 68, 68, 0.58) 1.1px, transparent 1.3px),
    radial-gradient(circle at 1.2px 1.2px, rgba(245, 101, 56, 0.56) 1.1px, transparent 1.3px),
    radial-gradient(circle at 1.2px 1.2px, rgba(245, 158, 11, 0.54) 1.1px, transparent 1.3px),
    radial-gradient(circle at 1.2px 1.2px, rgba(132, 204, 22, 0.5) 1.1px, transparent 1.3px),
    radial-gradient(circle at 1.2px 1.2px, rgba(20, 184, 166, 0.5) 1.1px, transparent 1.3px),
    radial-gradient(circle at 1.2px 1.2px, rgba(59, 130, 246, 0.54) 1.1px, transparent 1.3px),
    radial-gradient(circle at 1.2px 1.2px, rgba(99, 102, 241, 0.56) 1.1px, transparent 1.3px),
    radial-gradient(circle at 1.2px 1.2px, rgba(147, 51, 234, 0.58) 1.1px, transparent 1.3px);
  background-size:
    144px 18px,
    144px 18px,
    144px 18px,
    144px 18px,
    144px 18px,
    144px 18px,
    144px 18px,
    144px 18px;
  background-position:
    0 0,
    18px 0,
    36px 0,
    54px 0,
    72px 0,
    90px 0,
    108px 0,
    126px 0;
  background-repeat: repeat;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.54) 0%, rgba(0, 0, 0, 0.32) 34%, rgba(0, 0, 0, 0.11) 62%, rgba(0, 0, 0, 0) 86%);
}

.site-header,
.main-content,
.site-footer {
  position: relative;
  z-index: 1;
}

.main-content {
  z-index: 2;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.15) blur(12px);
  border-bottom: 1px solid var(--line);
}

body.dark-theme .site-header,
.prefers-dark body .site-header {
  background: rgba(16, 24, 44, 0.92);
}

.nav-row {
  min-height: var(--site-header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-em {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-main-links {
  display: inline-flex;
  align-items: center;
  gap: 24px;
}

.nav-control-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-lang-dropdown {
  position: relative;
}

.nav-lang-trigger {
  min-width: 66px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text-soft);
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-lang-globe {
  display: inline-flex;
  align-items: center;
  color: inherit;
}

.nav-lang-globe-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.nav-lang-current {
  font-size: 11px;
  font-weight: 700;
}

.nav-lang-caret {
  font-size: 9px;
  margin-left: auto;
}

.nav-lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 5px;
  display: none;
  z-index: 100;
}

.nav-lang-dropdown.is-open .nav-lang-menu {
  display: block;
}

.nav-lang-menu a {
  display: block;
  padding: 6px 9px;
  border-radius: 7px;
  text-decoration: none;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.nav-lang-menu a:hover,
.nav-lang-menu a.is-active {
  color: #fff;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
}

.nav-theme-toggle {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  padding: 0;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 0;
}

.theme-icon {
  position: absolute;
  font-size: 0.98rem;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

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

.theme-icon-moon {
  opacity: 0;
  transform: scale(0.86);
}

.nav-theme-toggle.is-dark .theme-icon-sun {
  opacity: 0;
  transform: scale(0.86);
}

.nav-theme-toggle.is-dark .theme-icon-moon {
  opacity: 1;
  transform: scale(1);
}

.nav-theme-toggle:hover {
  color: var(--text);
  background: rgba(99, 123, 255, 0.12);
}

body.dark-theme,
.prefers-dark body {
  color-scheme: dark;
}

body.dark-theme .card,
body.dark-theme .skills-grid .skill-card,
body.dark-theme .notice-item,
body.dark-theme .home-hero,
body.dark-theme .skill-main-card,
body.dark-theme .detail-section,
body.dark-theme .profile-header,
body.dark-theme .profile-skill-list,
body.dark-theme .admin-card,
body.dark-theme .faq-panel,
.prefers-dark body .card,
.prefers-dark body .skills-grid .skill-card,
.prefers-dark body .notice-item,
.prefers-dark body .home-hero,
.prefers-dark body .skill-main-card,
.prefers-dark body .detail-section,
.prefers-dark body .profile-header,
.prefers-dark body .profile-skill-list,
.prefers-dark body .admin-card,
.prefers-dark body .faq-panel {
  background: var(--surface) !important;
  border-color: var(--line) !important;
}

body.dark-theme input,
body.dark-theme textarea,
body.dark-theme select,
body.dark-theme .btn-lite,
body.dark-theme .category-picker-trigger,
body.dark-theme .category-picker-panel,
body.dark-theme .gh-select-trigger,
body.dark-theme .gh-select-menu,
body.dark-theme .nav-user-dropdown,
.prefers-dark body input,
.prefers-dark body textarea,
.prefers-dark body select,
.prefers-dark body .btn-lite,
.prefers-dark body .category-picker-trigger,
.prefers-dark body .category-picker-panel,
.prefers-dark body .gh-select-trigger,
.prefers-dark body .gh-select-menu,
.prefers-dark body .nav-user-dropdown {
  background: var(--surface-soft) !important;
  color: var(--text) !important;
  border-color: var(--line-strong) !important;
}

body.dark-theme .skill-structure-preview,
body.dark-theme .skill-md-viewer,
body.dark-theme .report-form,
body.dark-theme .notice-empty,
.prefers-dark body .skill-structure-preview,
.prefers-dark body .skill-md-viewer,
.prefers-dark body .report-form,
.prefers-dark body .notice-empty {
  background: #18233c !important;
  border-color: var(--line) !important;
}

body.dark-theme .site-footer,
.prefers-dark body .site-footer {
  background: transparent;
  color: var(--text-soft);
  border-top-color: var(--line);
}

body.dark-theme #gs-popup-card,
.prefers-dark body #gs-popup-card {
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
}

body.dark-theme #gs-popup-title,
body.dark-theme #gs-popup-message,
.prefers-dark body #gs-popup-title,
.prefers-dark body #gs-popup-message {
  color: var(--text) !important;
}

body.dark-theme .home-hero,
.prefers-dark body .home-hero {
  background: linear-gradient(180deg, #16243f, #131f36) !important;
  border-color: #2d3b61 !important;
}

body.dark-theme .home-hero::after,
.prefers-dark body .home-hero::after {
  background: radial-gradient(circle, rgba(62, 85, 136, 0.36), rgba(62, 85, 136, 0)) !important;
}

body.dark-theme .home-hero-right,
.prefers-dark body .home-hero-right {
  background: linear-gradient(180deg, #1c2a46, #17233d) !important;
  border-color: #32456f !important;
  box-shadow: 0 18px 36px rgba(8, 12, 24, 0.45) !important;
}

body.dark-theme .home-hero-right h3,
body.dark-theme .hero-stat-number,
body.dark-theme .hero-stat-unit,
body.dark-theme .hero-stat-subtitle,
body.dark-theme .hero-feature-item,
body.dark-theme .home-sort-tab,
.prefers-dark body .home-hero-right h3,
.prefers-dark body .hero-stat-number,
.prefers-dark body .hero-stat-unit,
.prefers-dark body .hero-stat-subtitle,
.prefers-dark body .hero-feature-item,
.prefers-dark body .home-sort-tab {
  color: #d9e5ff !important;
  text-shadow: none !important;
}

body.dark-theme .home-search-form,
.prefers-dark body .home-search-form {
  background: linear-gradient(180deg, #18253f, #152238) !important;
  border-color: #2f426a !important;
}

body.dark-theme .gh-select-trigger,
body.dark-theme .gh-select-menu,
body.dark-theme .gh-select-item,
body.dark-theme .home-search-form input,
body.dark-theme .home-search-form select,
body.dark-theme .home-search-form .category-picker-trigger,
body.dark-theme .home-search-form .category-picker-panel,
body.dark-theme .home-search-form .btn-lite,
.prefers-dark body .gh-select-trigger,
.prefers-dark body .gh-select-menu,
.prefers-dark body .gh-select-item,
.prefers-dark body .home-search-form input,
.prefers-dark body .home-search-form select,
.prefers-dark body .home-search-form .category-picker-trigger,
.prefers-dark body .home-search-form .category-picker-panel,
.prefers-dark body .home-search-form .btn-lite {
  background: #1b2a47 !important;
  border-color: #334a77 !important;
  color: #e5edff !important;
}

body.dark-theme .gh-select-item.is-active,
body.dark-theme .gh-select-item:hover,
.prefers-dark body .gh-select-item.is-active,
.prefers-dark body .gh-select-item:hover {
  background: #24385d !important;
}

body.dark-theme .skill-card-modern,
body.dark-theme .member-board,
body.dark-theme .weekly-hot-board,
body.dark-theme .ai-sites-board,
.prefers-dark body .skill-card-modern,
.prefers-dark body .member-board,
.prefers-dark body .weekly-hot-board,
.prefers-dark body .ai-sites-board {
  background: #16233b !important;
  border-color: #2d426b !important;
}

body.dark-theme .home-reference-panel,
body.dark-theme .home-why-panel,
body.dark-theme .home-faq-panel,
.prefers-dark body .home-reference-panel,
.prefers-dark body .home-why-panel,
.prefers-dark body .home-faq-panel {
  background: linear-gradient(180deg, #15223a, #121d32) !important;
  border-color: #2d426b !important;
}

body.dark-theme .home-reference-panel h3,
body.dark-theme .home-why-panel h3,
body.dark-theme .home-faq-panel h3,
body.dark-theme .home-why-panel p,
body.dark-theme .home-faq-item p,
body.dark-theme .home-faq-item li,
body.dark-theme .home-reference-note,
body.dark-theme .home-reference-note a,
.prefers-dark body .home-reference-panel h3,
.prefers-dark body .home-why-panel h3,
.prefers-dark body .home-faq-panel h3,
.prefers-dark body .home-why-panel p,
.prefers-dark body .home-faq-item p,
.prefers-dark body .home-faq-item li,
.prefers-dark body .home-reference-note,
.prefers-dark body .home-reference-note a {
  color: #cfdcff !important;
}

body.dark-theme .home-reference-pre,
body.dark-theme .home-why-quick,
.prefers-dark body .home-reference-pre,
.prefers-dark body .home-why-quick {
  background: #1a2a46 !important;
  border-color: #35507e !important;
  color: #dbe7ff !important;
}

body.dark-theme .home-why-tags span,
.prefers-dark body .home-why-tags span {
  background: #233555 !important;
  border-color: #3b5687 !important;
  color: #e0ebff !important;
}

body.dark-theme .home-why-quick code,
.prefers-dark body .home-why-quick code {
  background: #132039 !important;
  border-color: #365382 !important;
  color: #dbe8ff !important;
}

body.dark-theme .home-faq-item,
.prefers-dark body .home-faq-item {
  border-top-color: #2c3f66 !important;
}

body.dark-theme .bili-comment,
.prefers-dark body .bili-comment {
  background: #16233b !important;
  border-color: #2d426b !important;
}

body.dark-theme .bili-comment-title,
body.dark-theme .bili-content-row,
body.dark-theme .bili-reply-content,
body.dark-theme .bili-username,
.prefers-dark body .bili-comment-title,
.prefers-dark body .bili-content-row,
.prefers-dark body .bili-reply-content,
.prefers-dark body .bili-username {
  color: #e5edff !important;
}

body.dark-theme .bili-comment-sort a,
body.dark-theme .bili-comment-sort span,
body.dark-theme .bili-comment-title span,
body.dark-theme .bili-action-row span,
body.dark-theme .bili-action-row button,
body.dark-theme .bili-link-btn,
body.dark-theme .bili-focus-tip,
body.dark-theme .bili-editor-tools label,
body.dark-theme .bili-reply-collapse,
.prefers-dark body .bili-comment-sort a,
.prefers-dark body .bili-comment-sort span,
.prefers-dark body .bili-comment-title span,
.prefers-dark body .bili-action-row span,
.prefers-dark body .bili-action-row button,
.prefers-dark body .bili-link-btn,
.prefers-dark body .bili-focus-tip,
.prefers-dark body .bili-editor-tools label,
.prefers-dark body .bili-reply-collapse {
  color: #9fb2d8 !important;
}

body.dark-theme .bili-comment-sort a.is-active,
.prefers-dark body .bili-comment-sort a.is-active {
  color: #dce8ff !important;
}

body.dark-theme .bili-item,
.prefers-dark body .bili-item {
  border-top-color: #2b3f66 !important;
}

body.dark-theme .bili-input-shell,
body.dark-theme .bili-editor-main textarea,
body.dark-theme .bili-reply-editor textarea,
.prefers-dark body .bili-input-shell,
.prefers-dark body .bili-editor-main textarea,
.prefers-dark body .bili-reply-editor textarea {
  background: #1a2a46 !important;
  border-color: #3b5687 !important;
  color: #e6efff !important;
}

body.dark-theme .bili-editor-main textarea::placeholder,
body.dark-theme .bili-reply-editor textarea::placeholder,
.prefers-dark body .bili-editor-main textarea::placeholder,
.prefers-dark body .bili-reply-editor textarea::placeholder {
  color: #8ea2c8 !important;
}

body.dark-theme .bili-editor-tools button,
.prefers-dark body .bili-editor-tools button {
  background: #223454 !important;
  border-color: #3a5588 !important;
  color: #b3c5e8 !important;
}

body.dark-theme .bili-editor-tools button:hover,
.prefers-dark body .bili-editor-tools button:hover {
  background: #2a3f67 !important;
  border-color: #4a69a3 !important;
  color: #e6efff !important;
}

body.dark-theme .bili-reply-item,
.prefers-dark body .bili-reply-item {
  border-left-color: #2c4270 !important;
}

.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-user-menu {
  position: relative;
}

.nav-user-trigger {
  border: 1px solid transparent;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  height: 30px;
  padding: 0 5px;
  border-radius: 8px;
}

.nav-user-trigger:hover {
  background: rgba(99, 123, 255, 0.08);
  border-color: var(--line);
}

.nav-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #d4deef;
  background: #eef3ff;
}

.nav-user-avatar-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-user-unread-dot {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ff4d5a;
  border: 2px solid #f8fbff;
  box-shadow: 0 0 0 1px rgba(255, 77, 90, 0.28);
  pointer-events: none;
}

.nav-user-caret {
  color: #41526f;
  font-size: 0.88rem;
  line-height: 1;
  transition: transform 0.15s ease;
}

.nav-user-menu.is-open .nav-user-caret {
  transform: rotate(180deg);
}

.nav-user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  background: #fff;
  border: 1px solid #c9d6eb;
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(44, 64, 104, 0.16);
  padding: 10px 12px;
  z-index: 120;
  display: none;
}

.nav-user-menu.is-open .nav-user-dropdown {
  display: block;
}

.nav-user-meta {
  padding: 2px 2px 8px;
  border-bottom: 1px solid #dde6f4;
}

.nav-user-name {
  color: #243657;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.3;
}

.nav-user-email {
  margin-top: 2px;
  color: #6f7f9a;
  font-size: 0.85rem;
  line-height: 1.3;
  word-break: break-all;
}

.nav-user-actions {
  padding-top: 8px;
  display: grid;
  gap: 4px;
}

.nav-user-actions a {
  display: block;
  color: #334a73;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  padding: 7px 8px;
  border-radius: 8px;
}

.nav-user-actions a:hover {
  background: #f3f7ff;
  color: #203a70;
}

.nav-user-actions form {
  margin: 0;
}

.nav-user-logout {
  width: 100%;
  border: none;
  background: #fff5f5;
  color: #d44f4f;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: left;
  padding: 7px 8px;
  border-radius: 8px;
  cursor: pointer;
}

.nav-user-logout:hover {
  background: #ffecec;
}

.main-content {
  padding: calc(var(--site-header-height) - 32px) 0 16px;
  flex: 1 0 auto;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  margin-top: auto;
}

.footer-inner {
  min-height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.84rem;
}

h1,
h2,
h3 {
  margin: 0 0 12px;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 10px;
  line-height: 1.65;
}

ul {
  margin: 0;
  padding-left: 20px;
}

li {
  line-height: 1.6;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

.hero {
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(1.65rem, 3.4vw, 2.5rem);
}

.hero p {
  color: var(--text-soft);
}

.home-hero {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 8px;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 16px 35px;
  min-height: 240px;
  margin-top: 12px;
  margin-bottom: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(246, 250, 255, 0.95));
}

.home-hero::before {
  content: "";
  position: absolute;
  right: 17%;
  bottom: 8px;
  width: 45%;
  height: 92%;
  background: url("images/hero-illustration.png") no-repeat center bottom / contain;
  pointer-events: none;
  z-index: 2;
}

.home-hero::after {
  content: "";
  position: absolute;
  right: 23%;
  bottom: -26px;
  width: 340px;
  height: 110px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(236, 242, 255, 0.52), rgba(236, 242, 255, 0));
  pointer-events: none;
  z-index: 0;
}

.home-hero-left {
  position: relative;
  z-index: 3;
  max-width: 680px;
  min-height: 176px;
  padding: 8px 6px;
}

.hero-info-block {
  width: fit-content;
  max-width: calc(100% - 24px);
  margin: 0;
}

.hero-stat-total {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  width: 100%;
  padding-left: 0;
}

.hero-stat-number {
  font-size: clamp(1.58rem, 3.45vw, 2.08rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #1c2a4a;
  text-shadow: 0 6px 20px rgba(99, 91, 255, 0.16);
}

.hero-stat-unit {
  color: #2d3a58;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 600;
}

.hero-stat-subtitle {
  margin: 0 0 14px;
  color: #2a3450;
  font-size: clamp(1.02rem, 1.55vw, 1.26rem);
  font-weight: 500;
  width: 100%;
  text-align: center;
  padding-left: 0;
}

.hero-feature-grid {
  display: inline-grid;
  grid-template-columns: max-content max-content;
  width: fit-content;
  max-width: 100%;
  gap: 8px 34px;
  margin-top: 2px;
  margin-left: 0;
  margin-right: 0;
  padding-top: 12px;
  /*border-top: 1px solid #ecf2fb;*/
}

.hero-feature-item {
  color: #56627b;
  font-size: 1.02rem;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-gradient {
  background: linear-gradient(96deg, #133690 0%, #3832b3 54%, #194fbf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title-wrap {
  width: fit-content;
  max-width: 100%;
}

.hero-rainbow-line {
  display: none;
}

@keyframes heroPulse {
  0%,
  100% { opacity: 0.82; }
  50% { opacity: 1; }
}

.home-hero-right {
  position: absolute;
  right: 48px;
  top: 17px;
  width: min(430px, 40%);
  z-index: auto;
  border-radius: 28px;
  border: 1px solid #dbe3f2;
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(240, 246, 255, 0.96));
  box-shadow: 0 18px 36px rgba(78, 94, 201, 0.12);
  padding: 20px;
}

.home-hero-right h3 {
  margin-bottom: 12px;
  color: #2f4068;
  font-size: 1.08rem;
  font-weight: 800;
}

.home-import-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.gh-select {
  position: relative;
}

.gh-select-trigger {
  width: 100%;
  min-height: 45px;
  border: 1px solid #b8cbef;
  border-radius: 14px;
  background: #fff;
  color: #1f2a44;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}

.gh-select-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.gh-select-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gh-select-arrow {
  color: #7d8ba3;
  font-size: 1.06rem;
  line-height: 1;
}

.gh-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  border: 1px solid #cfd9ea;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(26, 31, 54, 0.14);
  z-index: 30;
  display: none;
  overflow: hidden;
}

.gh-select-menu.is-open {
  display: block;
}

.gh-select-item {
  width: 100%;
  min-height: 36px;
  border: none;
  border-top: 1px solid #edf2fa;
  background: #fff;
  color: #1f2a44;
  text-align: left;
  padding: 0 8px;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.gh-select-item:first-child {
  border-top: none;
}

.gh-select-item.is-active,
.gh-select-item:hover {
  background: #f4f8ff;
}

.gh-icon {
  width: 16px;
  height: 16px;
  color: #57647f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
}

.gh-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.home-hero-right select {
  margin-top: 0;
  border-radius: 14px;
  min-height: 52px;
  font-size: 0.95rem;
}

.mode-select-with-icon {
  position: relative;
}

.mode-select-wrap {
  position: relative;
}

.mode-select-wrap .mode-select-github-icon {
  display: none;
}

.mode-select-wrap .mode-select-github-icon svg {
  display: none;
}

.mode-select-with-icon.is-github {
  padding-left: 36px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.99989 0.666748C3.95029 0.666748 0.666504 3.94996 0.666504 8.00014C0.666504 11.2402 2.76773 13.9891 5.68153 14.9588C6.04803 15.0267 6.1826 14.7997 6.1826 14.606C6.1826 14.4311 6.17573 13.8535 6.17263 13.2407C4.13248 13.6843 3.70199 12.3754 3.70199 12.3754C3.36838 11.5278 2.8877 11.3024 2.8877 11.3024C2.22237 10.8472 2.93789 10.8566 2.93789 10.8566C3.67426 10.9083 4.06201 11.6123 4.06201 11.6123C4.71611 12.7334 5.77761 12.4093 6.19607 12.2219C6.26189 11.748 6.45193 11.4244 6.66168 11.2413C5.03282 11.0559 3.32054 10.4271 3.32054 7.61714C3.32054 6.81649 3.607 6.16228 4.0761 5.64872C3.99996 5.46401 3.74897 4.71819 4.14714 3.70802C4.14714 3.70802 4.76297 3.51094 6.16438 4.45974C6.74933 4.29726 7.37668 4.2158 7.99989 4.21299C8.62311 4.2158 9.25097 4.29721 9.83701 4.45974C11.2367 3.51099 11.8517 3.70808 11.8517 3.70808C12.2508 4.71813 11.9997 5.46407 11.9236 5.64872C12.3938 6.16228 12.6783 6.81649 12.6783 7.61714C12.6783 10.4338 10.9627 11.054 9.32975 11.2355C9.59277 11.4631 9.82716 11.9094 9.82716 12.5936C9.82716 13.5747 9.81868 14.3644 9.81868 14.606C9.81868 14.8012 9.95068 15.0298 10.3224 14.9578C13.2346 13.9871 15.3332 11.2392 15.3332 8.0002C15.3332 3.94996 12.0498 0.666748 7.99989 0.666748Z' fill='%2357647f'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 16px 16px;
}

.home-hero-right .btn {
  min-height: 45px;
  border-radius: 14px;
  padding: 0 22px;
  font-size: 1rem;
}

.home-search-row {
  margin: 0 0 8px !important;
  padding: 0 !important;
}

.home-search-row .home-search-form {
  margin: 0 !important;
}

.home-sort-row {
  margin: 0 0 8px !important;
  padding: 0 !important;
  min-height: 0 !important;
}

.home-sort-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 0 4px !important;
  min-height: 0 !important;
}

.home-sort-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 6px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #6d7890;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1;
}

.home-sort-tab:hover {
  color: #4c5f86;
  background: rgba(99, 91, 255, 0.08);
}

.home-sort-tab.is-active {
  color: #2f4376;
  background: rgba(99, 91, 255, 0.14);
}

.home-search-form {
  display: grid;
  grid-template-columns: 1fr 220px auto;
  gap: 10px;
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 252, 255, 0.96));
  border: 1px solid #d7e0ee;
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: 0 6px 20px rgba(26, 31, 54, 0.05);
}

.home-search-form input,
.home-search-form select {
  margin-top: 0;
  min-height: 44px;
  border: 1px solid #cfd9ea;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.95rem;
}

.home-search-form select {
  color: #243a7a;
  font-weight: 700;
}

.home-search-form .home-category-picker {
  margin-top: 0;
}

.home-search-form .category-picker-trigger {
  min-height: 44px;
  border-radius: 10px;
  font-size: 0.95rem;
  position: relative;
  justify-content: center;
  padding-left: 36px;
  padding-right: 36px;
}

.home-search-form .category-picker-trigger > span:first-child {
  flex: 1;
  text-align: center;
}

.home-search-form .category-picker-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.home-search-form .category-picker-panel {
  border-radius: 10px;
}

.home-search-form .category-option {
  text-align: center;
}

.home-search-form .btn {
  min-height: 44px;
  border-radius: 10px;
  padding: 0 16px;
  font-size: 0.92rem;
  font-weight: 800;
  background: linear-gradient(120deg, #5c6cf5, #7564ff);
  color: #fff;
  border: none;
  box-shadow: 0 10px 20px rgba(98, 92, 255, 0.24);
}

.home-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 8px;
  align-items: start;
}

.layout-two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.skill-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.skill-card-modern {
  padding: 16px;
  border-radius: 12px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.skill-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.skill-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.skill-author-avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #cfd9ea;
  background: #f4f7ff;
}

.skill-author-name {
  color: #40506d;
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skill-latest-activity {
  min-width: 0;
  text-align: center;
  color: #6f7d97;
  font-size: 0.76rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skill-latest-activity-foot {
  flex: 0 0 auto;
  text-align: left;
  color: #4c5f7b;
  font-size: 0.68rem;
  white-space: nowrap;
}

.skill-version-indicator {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 2px;
}

.skill-version-bars {
  display: inline-grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  width: 32px;
  height: 10px;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.skill-version-bar {
  border-radius: 1px;
  background: transparent;
}

.skill-version-bar.is-active {
  background: #b6de6f;
}

.skill-version-indicator::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(26, 31, 54, 0.92);
  color: #fff;
  font-size: 0.72rem;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
  z-index: 6;
}

.skill-version-indicator:hover::after {
  opacity: 1;
}

.skill-tag {
  padding: 3px 9px;
  border: 1px solid #d6e2f4;
  border-radius: 999px;
  color: #54667f;
  background: #f7faff;
  font-size: 0.75rem;
  font-weight: 700;
}

.skill-card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.skill-title-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
}

.skill-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.skill-title-row a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skill-card h3 a:hover {
  color: var(--primary);
}

.skill-card p {
  color: var(--text-soft);
  font-size: 0.9rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  line-height: 1.45;
  max-height: calc(1.45em * 6);
}

.skill-cover-image {
  width: 100%;
  height: 136px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #dbe3f2;
  margin: 0 0 6px;
  display: block;
}

.skill-structure-preview {
  width: 100%;
  height: 136px;
  border-radius: 10px;
  border: 1px solid #dbe3f2;
  margin: 0 0 6px;
  background: #f8fbff;
  padding: 8px 10px;
  overflow: hidden;
}

.skill-structure-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #5b6a84;
  margin-bottom: 4px;
}

.skill-structure-preview ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.skill-structure-preview li {
  color: #5c6980;
  font-size: 0.8rem;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skill-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 4px;
  min-height: 24px;
  align-items: center;
}

.skill-card.no-tags .skill-desc-preview {
  -webkit-line-clamp: 7;
  max-height: calc(1.45em * 7);
}

.skill-tag-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 700;
}

.skill-tag-color-1 { background: #eef2ff; color: #3730a3; }
.skill-tag-color-2 { background: #ecfeff; color: #155e75; }
.skill-tag-color-3 { background: #fef3c7; color: #92400e; }
.skill-tag-color-4 { background: #e8f5e9; color: #1b5e20; }
.skill-tag-color-5 { background: #f3e8ff; color: #6b21a8; }
.skill-tag-color-6 { background: #ffe4e6; color: #9f1239; }

.tag-input-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tag-editor {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  border: 1px solid #cfd9ea;
  border-radius: 12px;
  background: #ffffff;
  padding: 8px 10px;
}

.tag-editor-prefix {
  color: #7a86a0;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.tag-editor-prefix svg {
  width: 18px;
  height: 18px;
  display: block;
}

.tag-editor-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-editor input[type="text"] {
  flex: 1;
  min-width: 140px;
  min-height: 0;
  height: auto;
  margin-top: 0;
  border: none !important;
  box-shadow: none !important;
  outline: none;
  background: transparent !important;
  color: #1f2a44;
  padding: 0 !important;
  border-radius: 0 !important;
  appearance: none;
}

.tag-editor input[type="text"]::placeholder {
  color: #98a4bb;
}

.tag-input-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 700;
}

.tag-input-remove {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  line-height: 1;
  font-size: 0.95rem;
  padding: 0;
}

.tag-input-color-1 { background: #1d4ed8; color: #dbeafe; }
.tag-input-color-2 { background: #0f766e; color: #ccfbf1; }
.tag-input-color-3 { background: #7c2d12; color: #ffedd5; }
.tag-input-color-4 { background: #4d7c0f; color: #ecfccb; }
.tag-input-color-5 { background: #6d28d9; color: #f3e8ff; }
.tag-input-color-6 { background: #9f1239; color: #ffe4e6; }

.skill-card-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #e7eef8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.skill-card-modern .skill-card-foot {
  margin-top: auto;
}

.skill-desc-preview {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.skill-card-foot a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  flex: 0 0 auto;
}

.skill-upload-time {
  flex: 0 0 auto;
  color: #4c5f7b;
  font-weight: 500;
  font-size: 0.68rem;
  white-space: nowrap;
}

.mini-stats {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mini-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #55617a;
}

.mini-icon {
  font-size: 0.9rem;
  line-height: 1;
}

.mini-icon-download {
  font-size: 0.94rem;
}

.mini-icon-like {
  font-size: 1.04rem;
}

.hot-board {
  border-radius: 14px;
  padding: 14px;
  border: 1px solid #d7dfec;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 251, 255, 0.95));
}

.home-sideboards {
  display: grid;
  gap: 8px;
  align-content: start;
  width: 250px;
  min-width: 250px;
  max-width: 250px;
  justify-self: end;
}

.home-reference-panel {
  margin-top: 10px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #d8e2f1;
  background: linear-gradient(180deg, rgba(252, 254, 255, 0.98), rgba(246, 250, 255, 0.96));
}

.home-reference-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
}

.home-reference-block {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.home-reference-panel h3 {
  margin: 10px 0 8px;
  color: #1d2a48;
  font-size: 0.98rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home-reference-panel h3:first-child {
  margin-top: 0;
}

.home-reference-pre {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #dde7f5;
  background: #f7faff;
  color: #3b4a67;
  font-size: 0.8rem;
  line-height: 1.6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  white-space: pre;
  overflow: auto;
}

.home-reference-note {
  margin: 42px 0 6px;
  align-self: center;
  flex: 0 0 auto;
  text-align: left;
  color: #7c8aa3;
  font-size: 0.78rem;
  line-height: 1.55;
}

.home-reference-note-line {
  display: block;
  width: fit-content;
  text-align: left;
}

.home-reference-note a {
  color: #6f84ac;
  text-decoration: none;
}

.home-reference-note a:hover {
  color: #516ea4;
  text-decoration: underline;
}

.home-why-panel {
  margin-top: 10px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid #d8e2f1;
  background:
    radial-gradient(1200px 220px at -5% -20%, rgba(112, 126, 255, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(252, 254, 255, 0.99), rgba(246, 250, 255, 0.97));
  box-shadow: 0 8px 20px rgba(103, 120, 173, 0.08);
}

.home-why-panel h3 {
  margin: 0 0 8px;
  color: #1b2a4a;
  font-size: 1.12rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home-why-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
  gap: 14px;
  align-items: start;
}

.home-why-copy {
  min-width: 0;
}

.home-why-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6a74ff, #8f9dff);
  box-shadow: 0 0 0 4px rgba(113, 126, 255, 0.16);
}

.home-why-panel p {
  margin: 0 0 8px;
  color: #4f607e;
  font-size: 0.9rem;
  line-height: 1.78;
}

.home-why-lead {
  color: #3f4f6c !important;
}

.home-why-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 10px;
}

.home-why-tags span {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #3b4e74;
  border: 1px solid #d5e0f1;
  background: #f5f9ff;
}

.home-why-quick {
  margin-top: -26px;
  border: 1px solid #dbe6f5;
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(243, 249, 255, 0.94));
  border-radius: 12px;
  padding: 11px 12px 10px;
}

.home-why-quick code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.82rem;
  color: #2f466e;
  background: #eef4ff;
  border: 1px solid #d8e3f8;
  border-radius: 6px;
  padding: 1px 6px;
}

.home-why-subtitle {
  margin: 0 0 6px !important;
  color: #2b3e63;
  font-weight: 800;
  font-size: 0.9rem;
}

.home-why-quick p:last-child {
  margin-bottom: 0;
}

.home-faq-panel {
  margin-top: 10px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #d8e2f1;
  background: linear-gradient(180deg, rgba(252, 254, 255, 0.98), rgba(246, 250, 255, 0.96));
}

.home-faq-panel h3 {
  margin: 0 0 8px;
  color: #1d2a48;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-align: center;
}

.home-faq-intro {
  margin: 0 0 10px;
  color: #5f708d;
  font-size: 0.88rem;
}

.home-faq-item {
  padding: 10px 0;
  border-top: 1px solid #e4ebf7;
}

.home-faq-item:first-of-type {
  border-top: none;
  padding-top: 4px;
}

.home-faq-item h4 {
  margin: 0 0 6px;
  color: #273b60;
  font-size: 0.92rem;
  font-weight: 700;
}

.home-faq-toggle {
  width: 100%;
  border: none;
  background: transparent;
  padding: 2px 0;
  margin: 0;
  color: #273b60;
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.home-faq-toggle::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid #6e7f9f;
  transform: rotate(-90deg);
  transform-origin: 50% 45%;
  transition: transform 0.15s ease;
}

.home-faq-item.is-open .home-faq-toggle::after {
  transform: rotate(0deg);
}

.home-faq-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.2s ease;
}

.home-faq-item.is-open .home-faq-content {
  max-height: 1000px;
}

.home-faq-item p {
  margin: 0 0 6px;
  color: #556684;
  font-size: 0.88rem;
  line-height: 1.7;
}

.home-faq-item ul {
  margin: 0 0 6px;
  padding-left: 18px;
}

.home-faq-item li {
  color: #556684;
  font-size: 0.88rem;
  line-height: 1.7;
}

body.dark-theme .home-faq-toggle,
.prefers-dark body .home-faq-toggle {
  color: #d9e6ff;
}

body.dark-theme .home-faq-toggle::after,
.prefers-dark body .home-faq-toggle::after {
  color: #a5b8de;
}

@media (max-width: 1200px) {
  .home-reference-grid {
    grid-template-columns: 1fr;
  }

  .home-why-layout {
    grid-template-columns: 1fr;
  }

  .home-why-quick {
    margin-top: 0;
  }
}

.hot-board-main {
  min-height: 0;
}

.hot-board h3 {
  margin-bottom: 10px;
  color: #141b34;
  font-size: 0.9rem;
  line-height: 1.1;
  font-weight: 500;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

.board-title-icon {
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.board-title-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.board-title-icon-hot {
  color: #4e62ee;
}

.board-title-icon-creator {
  color: #3a78a4;
}

.board-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.board-tabs-contrib .btn-lite {
  min-height: 28px !important;
  font-size: 0.72rem !important;
  padding: 0 6px !important;
}

.hot-board .board-tabs .btn-lite {
  white-space: nowrap;
  justify-content: center;
  min-height: 30px;
  border-radius: 999px;
  border: 1px solid #d0d7e6;
  background: #f6f8fc;
  color: #687082;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0 8px;
}

.hot-board ul {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: rank;
}

.hot-board li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid #d9e0ec;
  padding: 10px 0;
}

.hot-board li:last-child {
  border-bottom: none;
}

.weekly-hot-item,
.member-board-item {
  transition: background-color 0.18s ease;
}

.weekly-hot-item:hover,
.member-board-item:hover {
  background: rgba(92, 108, 245, 0.08);
}

.hot-board li a,
.hot-board li span {
  color: #4d5567;
  font-size: 0.86rem;
  text-decoration: none;
}

.hot-board li a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hot-board li a::before {
  counter-increment: rank;
  content: counter(rank);
  color: #243a7a;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 auto;
}

.hot-board li span {
  color: #4f5665;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1;
  flex: 0 0 auto;
}

.hot-board .board-tabs .btn-lite.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg, #96a0ff, #a79eff);
  box-shadow: 0 6px 12px rgba(150, 160, 255, 0.14);
}

.member-board-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.member-board {
  width: 250px;
  min-width: 250px;
  max-width: 250px;
  height: auto;
  overflow: auto;
}

.member-board-item {
  display: flex;
  align-items: center;
  justify-content: flex-start !important;
  gap: 6px;
  border-bottom: 1px solid #d9e0ec;
  padding: 10px 0;
}

.member-board-item:last-child {
  border-bottom: none;
}

.member-board-item::before {
  content: none;
}

body.dark-theme .weekly-hot-item:hover,
body.dark-theme .member-board-item:hover,
.prefers-dark body .weekly-hot-item:hover,
.prefers-dark body .member-board-item:hover {
  background: rgba(122, 140, 255, 0.16);
}

.member-board-rank {
  color: #243a7a;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 auto;
  margin-right: 2px;
}

.weekly-hot-item a::before {
  content: none !important;
  counter-increment: none !important;
}

.weekly-hot-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-board-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
  color: #3f4d66;
}

.member-board-metric {
  margin-left: auto;
  flex: 0 0 auto;
  color: #6e7c96;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.member-board-avatar {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid #d5dfef;
  object-fit: cover;
  background: #f4f7ff;
  flex: 0 0 auto;
}

.ai-sites-board {
  height: auto;
  overflow: hidden;
}

.weekly-hot-board {
  height: auto;
  overflow: hidden;
}

.weekly-hot-item .weekly-hot-trend {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2em;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}

.weekly-hot-trend.is-up {
  color: #1fa15f !important;
}

.weekly-hot-trend.is-down {
  color: #d45a5a !important;
}

.weekly-hot-trend.is-flat {
  color: #7a869e !important;
}

.ai-sites-list {
  display: grid;
  gap: 6px;
}

.ai-sites-group {
  border-top: 1px solid #e0e7f2;
  padding-top: 6px;
}

.ai-sites-group:first-child {
  border-top: none;
  padding-top: 0;
}

.ai-sites-category {
  margin: 0 0 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #30486f;
}

.ai-sites-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.ai-site-row {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  border-bottom: 1px solid #d9e0ec;
  padding: 8px 0;
}

.ai-sites-board .ai-site-row {
  justify-content: flex-start;
}

.ai-sites-board li a::before,
.ai-sites-board .ai-site-name::before {
  content: none !important;
  counter-increment: none !important;
}

.ai-sites-board .ai-site-name {
  display: inline-block;
  margin-left: 0;
  padding-left: 0;
}

.ai-site-row:last-child {
  border-bottom: none;
}

.ai-site-logo {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid #d7e0ef;
  background: #f7faff;
}

.ai-site-name {
  color: #2f4d84;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  margin: 0 4px 0 0;
}

.ai-site-name:hover {
  color: #3b65b5;
  text-decoration: underline;
}

.ai-site-desc {
  min-width: 0;
  margin-left: 6px;
  color: #a1adbf;
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta {
  color: var(--text-soft);
  font-size: 0.83rem;
}

.sub-text {
  color: var(--text-soft);
  font-size: 0.88rem;
}

.file-current-name {
  margin-top: 2px;
  color: #415173;
  font-size: 0.9rem;
  font-weight: 600;
}

.file-current-name-input {
  margin-top: 6px;
  background: #f7faff;
  color: #1f2a44;
  font-weight: 600;
}

.edit-page-title {
  text-align: center;
}

.skill-file-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.skill-file-inline-name {
  color: #1f2a44;
  font-size: 0.95rem;
  font-weight: 600;
}

.skill-file-hidden {
  display: none;
}

.file-tree {
  list-style: none;
  margin: 0;
  padding-left: 16px;
}

.file-tree > li {
  margin: 4px 0;
}

.tree-dir > details > summary {
  cursor: pointer;
  color: #304262;
  font-weight: 600;
  user-select: none;
}

.tree-dir > details[open] > summary {
  color: #1f3a8a;
}

.tree-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 8px 4px 10px;
  border-radius: 8px;
  position: relative;
  transition: background-color 0.18s ease;
}

.tree-file::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #5c6cf5, #7a66ff);
  opacity: 0;
  transition: width 0.18s ease, opacity 0.18s ease;
}

.tree-file:hover {
  background: rgba(92, 108, 245, 0.08);
}

.tree-file:hover::before {
  width: 3px;
  opacity: 1;
}

.tree-file-name {
  color: #445269;
  word-break: break-all;
}

.tree-file-size {
  color: var(--text-soft);
  font-size: 0.8rem;
  white-space: nowrap;
}

.tree-empty {
  color: var(--text-soft);
  font-size: 0.84rem;
}

.detail-gallery-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.detail-gallery-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #dbe3f2;
  background: #f8fbff;
  cursor: zoom-in;
}

.detail-top-image {
  cursor: zoom-in;
}

.skill-desc {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.inline-login-mask {
  position: fixed;
  inset: 0;
  z-index: 2600;
  background: rgba(16, 24, 40, 0.42);
  display: grid;
  place-items: center;
  padding: 16px;
}

.inline-login-card {
  width: min(420px, 92vw);
  background: #fff;
  border: 1px solid #d7e0ee;
  border-radius: 14px;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.25);
  padding: 18px;
}

.inline-login-card h3 {
  margin: 0 0 10px;
  color: #1f2a44;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.stat-card h2 {
  margin-bottom: 4px;
  color: var(--text);
}

.stat-card p {
  margin: 0;
  color: var(--text-soft);
}

.form-card {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
}

.upload-form-card {
  margin-top: 30px;
}

.detail-main-card {
  margin-top: 12px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.register-avatar-block {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.register-avatar-preview {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  border: 1px solid #d1dbec;
  object-fit: cover;
  background: #f5f8ff;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.register-avatar-preview:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(58, 122, 254, 0.2);
}

.work-image-dropzone {
  border: 2px dashed #c9ced8;
  border-radius: 14px;
  background: #f6f7f9;
  min-height: 150px;
  padding: 10px;
  display: grid;
  place-items: center;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.work-image-dropzone:hover,
.work-image-dropzone.is-dragover {
  border-color: #8ea4d7;
  background: #eff3fb;
}

.work-image-dropzone-icon {
  font-size: 40px;
  line-height: 1;
  color: #9aa0aa;
  margin-bottom: 4px;
}

.work-image-dropzone-main {
  font-size: 18px;
  color: #111827;
  margin-bottom: 4px;
}

.work-image-dropzone-sub {
  color: #4b5563;
  font-size: 12px;
}

label {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #9dbaf5;
  box-shadow: 0 0 0 3px rgba(58, 122, 254, 0.15);
}

.category-select {
  font-weight: 700;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.category-picker {
  position: relative;
  margin-top: 6px;
}

.category-picker-trigger {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #cfd9ea;
  border-radius: 12px;
  background: #ffffff;
  color: #1f2a44;
  padding: 10px 14px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.category-picker-trigger:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(58, 122, 254, 0.15);
}

.category-picker-arrow {
  color: #4f5f7a;
  font-size: 1rem;
  line-height: 1;
}

.category-picker-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 120;
  background: #ffffff;
  border: 1px solid #cfd9ea;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(26, 31, 54, 0.12);
  padding: 8px;
  display: none;
  max-height: 320px;
  overflow: auto;
}

.category-picker-panel.is-open {
  display: block;
}

.category-option {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #ffffff;
  color: #1f2a44;
  padding: 10px 12px;
  text-align: left;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.category-option + .category-option {
  margin-top: 4px;
}

.category-option:hover {
  filter: brightness(0.98);
}

.category-option.is-active {
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.28);
}

.category-tone-0 { background: #ffffff; color: #243a7a; border-color: #cfd9ea; }
.category-tone-1 { background: #eef2ff; color: #3730a3; border-color: #c7d2fe; }
.category-tone-2 { background: #ecfeff; color: #155e75; border-color: #a5f3fc; }
.category-tone-3 { background: #fdf4ff; color: #86198f; border-color: #f0abfc; }
.category-tone-4 { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.category-tone-5 { background: #fff1f2; color: #9f1239; border-color: #fda4af; }
.category-tone-6 { background: #ede9fe; color: #5b21b6; border-color: #c4b5fd; }
.category-tone-7 { background: #f0fdf4; color: #166534; border-color: #86efac; }
.category-tone-8 { background: #ecfccb; color: #3f6212; border-color: #bef264; }
.category-tone-9 { background: #eff6ff; color: #1d4ed8; border-color: #93c5fd; }
.category-tone-10 { background: #fff7ed; color: #9a3412; border-color: #fdba74; }
.category-tone-11 { background: #f3f4f6; color: #374151; border-color: #d1d5db; }

.search-form {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 10px;
}

.btn {
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(99, 91, 255, 0.24);
}

.btn:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
}

.btn-lite {
  background: #fff;
  border-color: var(--line-strong);
  color: #48576d;
  box-shadow: none;
}

.btn-lite:hover {
  border-color: #b7c8e5;
  color: var(--text);
  filter: none;
}

.btn-danger {
  background: var(--danger);
  border-color: #bb2d37;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.skill-detail-actions .btn-lite:not(.btn-like):not(.btn-favorite),
.skill-version-switch-row .skill-version-btn {
  min-width: 132px;
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
}

.skill-detail-actions {
  align-items: center;
  gap: 35px;
}

.skill-detail-actions form {
  display: inline-flex;
  margin: 0;
}

.skill-version-switch-row {
  margin-top: 10px;
}

.skill-version-btn.is-active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.version-switch-inline {
  display: inline-flex;
  margin: 0;
}

.version-switch-select {
  display: inline-flex;
  align-items: center;
  min-width: 132px;
  height: 42px;
  line-height: 42px;
  border-radius: 10px;
  padding: 0 30px 0 12px;
  margin-top: 0;
  width: 132px;
  vertical-align: middle;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #75819a 50%),
    linear-gradient(135deg, #75819a 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.skill-detail-actions > * {
  align-self: center;
}

.btn-download.is-downloaded {
  background: linear-gradient(135deg, #6f7cff, #8d84ff);
  border-color: transparent;
  color: #fff;
}

.skill-detail-actions .btn-download,
.skill-detail-actions form .btn-like,
.skill-detail-actions form .btn-favorite {
  min-width: auto;
  height: auto;
  padding: 0 2px;
  border: none;
  background: transparent;
  box-shadow: none;
  color: #6f7c95;
  font-weight: 600;
}

.skill-detail-actions .btn-like,
.skill-detail-actions .btn-favorite {
  width: 64px;
  height: 28px;
  min-width: 64px;
  justify-content: flex-start;
  gap: 4px;
  padding: 0 2px;
}

.skill-detail-actions .btn-favorite {
  margin-left: -20px;
}

.skill-detail-actions .btn-like .icon-heart,
.skill-detail-actions .btn-favorite .icon-star {
  font-size: 1.32rem;
  line-height: 1;
}

.skill-detail-actions .action-count {
  font-size: 0.94rem;
  line-height: 1;
  color: inherit;
  display: inline-block;
  min-width: 22px;
  text-align: left;
}

.skill-detail-actions .action-count.is-empty {
  visibility: hidden;
}

.skill-detail-actions .btn-download:hover,
.skill-detail-actions .btn-like:hover,
.skill-detail-actions .btn-favorite:hover {
  color: #475877;
  transform: none;
  filter: none;
}

.skill-detail-actions .btn-download.is-downloaded {
  color: #4d63f0;
}

.btn-like .icon-heart,
.btn-favorite .icon-star {
  color: #8a96a9;
  transition: color 0.15s ease;
}

.btn-like.is-liked .icon-heart {
  color: #ff4d6d;
}

.btn-favorite.is-favorited .icon-star {
  color: #f5b700;
}

.report-trigger-link {
  margin-left: auto;
  border: none;
  background: transparent;
  color: #95a0b5;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0 2px;
}

.report-trigger-link:hover {
  color: #6e7b95;
}

.detail-report-modal {
  position: fixed;
  inset: 0;
  z-index: 3200;
  background: rgba(15, 23, 42, 0.45);
  display: grid;
  place-items: center;
  padding: 16px;
}

.detail-report-modal[hidden] {
  display: none;
}

.detail-report-card {
  width: min(540px, 94vw);
  background: #fff;
  border: 1px solid #d7e0ee;
  border-radius: 14px;
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.28);
  padding: 18px;
  position: relative;
}

.detail-report-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.detail-report-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  color: #65748d;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.auth-unified {
  width: min(760px, 96vw);
  margin: 0 auto;
  padding: 40px 0 28px;
}

.auth-unified-head {
  text-align: center;
  margin-bottom: 14px;
}

.auth-unified-head h1 {
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
}

.auth-unified-head p {
  margin: 0;
  color: #7b8698;
  font-size: 1.02rem;
}

.auth-unified-card {
  width: min(680px, 96vw);
  margin: 0 auto;
  border: 1px solid #d7deec;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 36px rgba(30, 41, 59, 0.08);
  padding: 18px;
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.auth-mode-tab {
  height: 42px;
  border-radius: 10px;
  border: 1px solid #ced8ea;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #57657e;
  font-weight: 700;
  background: #f7f9fc;
}

.auth-mode-tab.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #5f6df6, #7386ff);
}

.auth-social-list {
  display: grid;
  gap: 10px;
}

.auth-social-btn {
  height: 56px;
  border: 1px solid #d6deec;
  border-radius: 14px;
  background: #fff;
  color: #263248;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  position: relative;
}

.auth-social-btn:hover {
  border-color: #b8c7e3;
}

.auth-social-icon {
  width: 20px;
  height: 20px;
  border-radius: 0;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  font-weight: 400;
}

.auth-social-icon.google {
  background: transparent;
  color: inherit;
}

.auth-social-icon.apple {
  background: #f3f4f6;
  color: #111827;
}

.auth-social-icon.github {
  background: transparent;
  color: #111827;
}

.auth-social-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.auth-social-icon.microsoft {
  background: transparent;
  color: inherit;
}

.auth-last-used {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-style: normal;
  font-size: 0.78rem;
  line-height: 1;
  color: #1d7fe8;
  background: #eaf4ff;
  border-radius: 999px;
  padding: 6px 10px;
}

.auth-divider {
  margin: 12px 0;
  position: relative;
  text-align: center;
  color: #8d97a8;
  font-size: 0.95rem;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid #e2e8f2;
}

.auth-divider span {
  position: relative;
  background: #fff;
  padding: 0 10px;
}

.auth-email-form {
  display: grid;
  gap: 10px;
}

.auth-email-form label {
  font-size: 0.9rem;
}

.auth-human-check {
  min-height: 56px;
  border: 1px solid #d3dceb;
  border-radius: 12px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: #3b4a65;
  font-weight: 500;
}

.auth-turnstile-wrap {
  display: inline-flex;
  align-items: center;
}

.auth-human-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.auth-otp-tip {
  margin: -2px 0 2px;
  color: #6b7a93;
  font-size: 0.84rem;
}

.auth-email-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.auth-inline-link {
  color: #5d6d88;
  text-decoration: none;
  font-size: 0.86rem;
}

.auth-inline-link:hover {
  color: #2f3f59;
}

.auth-continue-btn {
  margin-top: 4px;
  min-height: 46px;
  border-radius: 12px;
  font-size: 1.02rem;
  transition: filter 0.15s ease;
}

.auth-continue-btn:disabled {
  background: #9aa5b5;
  color: #f4f7fb;
  cursor: not-allowed;
  box-shadow: none;
}

.pagination {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.pagination.pagination-modern {
  margin-top: 10px;
  gap: 6px;
}

.pagination-modern .pagination-btn {
  width: 38px;
  height: 38px;
  border: 1px solid #c7d5ec;
  border-radius: 12px;
  background: #fff;
  color: #5b6c8a;
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.pagination-modern .pagination-num.is-active {
  border-color: #6d7af8;
  background: linear-gradient(120deg, #6a74f6, #4d83f4);
  color: #fff;
  box-shadow: 0 6px 14px rgba(90, 109, 246, 0.24);
}

.pagination-modern a.pagination-btn:hover {
  border-color: #aebfe2;
  background: #f4f8ff;
  color: #3f5da0;
}

.pagination-modern .pagination-arrow {
  font-size: 1.2rem;
  font-weight: 500;
  padding-bottom: 1px;
}

.pagination-modern .pagination-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.profile-skill-zone {
  padding: 14px;
}

.profile-edit-card {
  padding: 18px 20px;
  border-radius: 16px;
  margin-top: 12px;
}

.profile-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profile-head-row h1 {
  margin: 0;
}

.profile-edit-form {
  margin-top: 12px;
}

.profile-edit-grid {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.profile-avatar-col {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.profile-avatar-preview {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #d4dded;
  background: #f5f8ff;
  display: block;
}

.profile-avatar-clickable {
  position: relative;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
}

.profile-avatar-clickable input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.profile-avatar-mask {
  position: absolute;
  inset: auto 0 0 0;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 31, 54, 0.62);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  transition: opacity 0.15s ease;
}

.profile-avatar-clickable:hover .profile-avatar-mask {
  opacity: 0.9;
}

.profile-info-col {
  display: grid;
  gap: 10px;
}

.profile-info-col label {
  display: grid;
  gap: 6px;
}

.profile-info-col input[type="text"] {
  margin-top: 0;
}

.profile-switch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.profile-switch-row .btn-lite.is-active,
.profile-group-filter .btn-lite.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg, #6f7cff, #8d84ff);
}

.profile-group-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.profile-group-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.profile-group-form input[type="text"] {
  margin-top: 0;
  min-height: 38px;
}

.profile-api-key-box {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 8px 0;
}

.profile-api-key-box code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
  word-break: break-all;
  color: var(--text);
}

.api-docs-page {
  padding: 16px 18px;
}

.api-docs-header h1 {
  margin: 0 0 6px;
  font-size: 1.5rem;
}

.api-docs-header p {
  margin: 0 0 14px;
  color: var(--text-soft);
}

.api-auth-card {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface-soft);
  overflow: hidden;
  margin-bottom: 14px;
}

.api-auth-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.api-auth-title-row h2 {
  margin: 0;
  font-size: 1.35rem;
}

.api-auth-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.api-auth-body {
  padding: 14px;
}

.api-key-line {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.api-key-line code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95rem;
  word-break: break-all;
}

.api-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.api-key-meta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.api-doc-section {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--surface-soft);
  margin-top: 10px;
}

.api-doc-section h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.api-doc-section h4 {
  margin: 10px 0 8px;
  font-size: 0.95rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.table-wrap .table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.table-wrap .table th,
.table-wrap .table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.table-wrap .table th {
  color: var(--text);
  font-weight: 700;
  background: var(--surface-soft);
}

.table-wrap .table tr:last-child td {
  border-bottom: 0;
}

.api-example-group + .api-example-group {
  margin-top: 12px;
}

.api-example-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.api-example-switch .btn.is-active {
  border-color: var(--accent);
  color: var(--accent);
}

.api-example-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.api-example-head .api-example-switch {
  margin-bottom: 0;
}

.api-endpoint-list {
  display: grid;
  gap: 8px;
}

.api-endpoint-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 220px;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.api-endpoint-method {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0b7f5f;
}

.api-endpoint-path {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
  color: var(--text);
}

.api-endpoint-desc {
  color: var(--text-soft);
  font-size: 0.88rem;
  text-align: right;
}

@media (max-width: 900px) {
  .api-endpoint-item {
    grid-template-columns: 54px minmax(0, 1fr);
  }
  .api-endpoint-desc {
    grid-column: 1 / -1;
    text-align: left;
  }
  .api-key-meta {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
}

.profile-group-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-group-delete-form {
  display: inline-flex;
}

.profile-skills-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-skills-grid .skill-category-tag {
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notice-page-card {
  padding: 16px;
  margin-top: 30px;
}

.notice-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.notice-head-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.notice-filter-row {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.notice-filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.notice-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border: 1px solid #d4deef;
  border-radius: 999px;
  text-decoration: none;
  color: #566782;
  font-size: 0.78rem;
  font-weight: 600;
  background: #f8fbff;
}

.notice-chip.is-active {
  color: #314877;
  border-color: #b9c8e4;
  background: #eaf1ff;
}

.notice-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.notice-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  border: 1px solid #dce5f2;
  border-radius: 10px;
  padding: 10px;
  background: #fbfdff;
}

.notice-item.is-unread {
  border-color: #bcd0f5;
  background: #f4f8ff;
}

.notice-main {
  min-width: 0;
}

.notice-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notice-type {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #4b5f84;
  background: #edf2fb;
}

.notice-type.type-like { color: #b0456e; background: #ffe9f1; }
.notice-type.type-favorite { color: #9a6a00; background: #fff6d8; }
.notice-type.type-comment { color: #216194; background: #e8f4ff; }
.notice-type.type-report { color: #8a4a16; background: #fff0df; }
.notice-type.type-moderation { color: #6150a5; background: #f0edff; }
.notice-type.type-system { color: #445672; background: #edf2fb; }

.notice-time {
  margin-left: auto;
  color: #7e8ca4;
  font-size: 0.76rem;
}

.notice-content {
  margin-top: 6px;
  color: #24334f;
  font-size: 0.9rem;
  line-height: 1.55;
  word-break: break-word;
}

.notice-content a {
  color: #2b4da0;
  text-decoration: none;
}

.notice-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.notice-item-actions .btn {
  min-height: 30px;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 0.78rem;
}

.notice-empty {
  border: 1px dashed #d6e1f3;
  border-radius: 10px;
  padding: 18px 10px;
  text-align: center;
  color: #77839a;
}

.notice-pagination {
  margin-top: 12px;
}

.profile-card-group-ops {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #dbe4f2;
}

.profile-card-group-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}

.profile-card-group-form select {
  margin-top: 0;
  min-height: 34px;
}

.profile-card-group-form .btn {
  min-height: 34px;
}

.profile-card-group-tags {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-group-chip {
  border: 1px solid #cfd8eb;
  background: #f6f9ff;
  color: #425477;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.72rem;
  cursor: pointer;
}

.profile-group-chip:hover {
  border-color: #b5c7e9;
  color: #283a5f;
}

.comment-zone {
  padding: 24px 24px 10px;
}

.comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.comment-head h2 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 0;
  font-weight: 700;
}

.comment-head h2 span {
  font-size: 1.45rem;
  color: #7a8aa3;
  font-weight: 600;
  margin-left: 8px;
}

.comment-sort {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

.comment-sort a {
  color: #8a96a9;
  text-decoration: none;
  font-weight: 700;
}

.comment-sort a.is-active {
  color: #1f2a44;
}

.comment-editor {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.comment-avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #d7dfec;
  background: #f7f9fd;
}

.comment-input-wrap textarea {
  min-height: 82px;
  border-radius: 12px;
  border: 1px solid #cfd8e6;
  padding: 14px 16px;
  font-size: 1.05rem;
}

.comment-editor-bar {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.comment-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.comment-tools button {
  min-width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #d7dfeb;
  background: #fff;
  color: #6f7c92;
  font-size: 1.15rem;
  cursor: pointer;
}

.comment-sync {
  color: #7a879b;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.comment-sync input {
  width: 20px;
  height: 20px;
  margin: 0;
}

.comment-submit {
  min-width: 112px;
  min-height: 52px;
  border-radius: 10px;
  background: #6ec6ea;
  box-shadow: none;
  font-size: 1.9rem;
  font-weight: 500;
}

.comment-list {
  margin-top: 6px;
}

.comment-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid #e6ecf4;
}

.comment-item:first-child {
  border-top: none;
}

.comment-main {
  min-width: 0;
}

.comment-user-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.comment-user-line strong {
  font-size: 1.32rem;
  color: #ff6a8d;
}

.comment-level {
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.84rem;
  color: #fff;
  background: linear-gradient(120deg, #ff6378, #ff944d);
  font-weight: 700;
}

.comment-content {
  color: #121826;
  font-size: 1.04rem;
  line-height: 1.85;
  margin-bottom: 8px;
  word-break: break-word;
}

.comment-meta-line {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.comment-meta-line span,
.comment-meta-line a {
  color: #7d8a9e;
  text-decoration: none;
  font-size: 0.94rem;
}

.comment-meta-line .btn-lite {
  min-height: 30px;
  padding: 4px 10px;
}

/* Reference-like comment block */
.comment-sim {
  background: #f5f6f8;
  border: 1px solid #e3e7ee;
  border-radius: 14px;
  padding: 28px 28px 12px;
}

.comment-sim-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 20px;
}

.comment-sim-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1b2432;
  line-height: 1;
}

.comment-sim-title span {
  color: #7f8da3;
  font-size: 2rem;
  font-weight: 500;
  margin-left: 8px;
}

.comment-sim-sort {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

.comment-sim-sort a {
  color: #8a97a9;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
}

.comment-sim-sort a.is-active {
  color: #20293a;
}

.comment-sim-sort span {
  color: #adb7c6;
}

.comment-sim-editor {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.comment-sim-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #d4dae4;
  background: #fff;
}

.comment-sim-input-wrap textarea {
  width: 100%;
  min-height: 72px;
  border-radius: 12px;
  border: 1px solid #bfc8d7;
  background: #fff;
  color: #3f4c5f;
  font-size: 1.85rem;
  line-height: 1.4;
  padding: 16px 18px;
}

.comment-sim-tools-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.comment-sim-tools {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.comment-sim-tools button {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid #d6dce7;
  background: #fff;
  color: #6f7b8f;
  font-size: 1.2rem;
  cursor: pointer;
}

.comment-sim-tools label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7a8699;
  font-size: 1.55rem;
  font-weight: 500;
  margin-left: 8px;
}

.comment-sim-tools label input {
  width: 20px;
  height: 20px;
  margin: 0;
}

.comment-sim-submit {
  min-width: 110px;
  height: 58px;
  border: none;
  border-radius: 10px;
  background: #69c6ec;
  color: #fff;
  font-size: 2rem;
  font-weight: 500;
  cursor: pointer;
}

.comment-sim-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid #e1e6ef;
}

.comment-sim-main {
  min-width: 0;
}

.comment-sim-userline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.comment-sim-userline .name {
  color: #ff6d8f;
  font-size: 1.55rem;
  font-weight: 700;
}

.comment-sim-userline .level {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 1.15rem;
  color: #fff;
  background: linear-gradient(120deg, #ff6a7c, #ff9057);
}

.comment-sim-content {
  color: #131a24;
  font-size: 1.9rem;
  line-height: 1.65;
  margin-bottom: 12px;
  word-break: break-word;
}

.comment-sim-content .pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid #ff8ba7;
  color: #ff6c94;
  font-size: 1.2rem;
  margin-right: 8px;
}

.comment-sim-meta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.comment-sim-meta span,
.comment-sim-meta a,
.comment-sim-meta .link-delete {
  color: #7d889b;
  text-decoration: none;
  font-size: 1.45rem;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Bilibili-like comment component */
.bili-comment {
  background: #fff;
  border: 1px solid #e4e8ef;
  border-radius: 12px;
  padding: 16px 18px 8px;
}

.bili-comment-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 12px;
}

.bili-comment-title {
  display: inline-flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #18191c;
  line-height: 1;
}

.bili-comment-title span {
  font-size: 1rem;
  color: #7b8494;
  margin-left: 8px;
  position: relative;
  top: -1px;
}

.bili-comment-sort {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.bili-comment-sort a {
  color: #8f99a9;
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 600;
}

.bili-comment-sort a.is-active {
  color: #18191c;
}

.bili-comment-sort span {
  color: #c2c9d4;
}

.bili-editor {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  margin-bottom: 8px;
}

.bili-avatar-wrap {
  position: relative;
  width: 40px;
}

.bili-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #dbe2ee;
  background: #f6f7fa;
}

.bili-input-shell {
  border: 1px solid #c5ccd8;
  border-radius: 10px;
  background: #fff;
  padding: 8px 10px 6px;
}

.bili-input-shell:focus-within {
  border-color: #8dc6eb;
}

.bili-editor-main textarea {
  min-height: 58px;
  border: none;
  border-radius: 0;
  padding: 0;
  font-size: 0.98rem;
  color: #4f5d73;
  background: transparent;
  line-height: 1.55;
  width: 100%;
  resize: vertical;
  box-shadow: none;
}

.bili-editor-main textarea:focus {
  outline: none;
  border: none;
  box-shadow: none;
}

.bili-focus-tip {
  display: none;
  color: #7f8898;
  font-size: 0.82rem;
  margin-top: 5px;
}

.bili-focus-tip.is-visible {
  display: block;
}

.bili-editor-toolbar {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.bili-editor-toolbar.simple {
  justify-content: space-between;
  margin-top: 2px;
  gap: 6px;
}

.bili-editor-tools {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bili-editor-tools button {
  width: 40px;
  height: 40px;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #fff;
  color: #6e788a;
  cursor: pointer;
  font-size: 1.08rem;
  transition: all 0.16s ease;
}

.bili-editor-tools button:hover {
  border-color: #8dc6eb;
  color: #3da9da;
}

.bili-editor-tools.mini {
  gap: 6px;
}

.bili-editor-tools.mini button {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1;
}

.bili-tool-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.bili-image-tool svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bili-emoji-picker {
  position: absolute;
  z-index: 30;
  top: 38px;
  left: 0;
  width: 300px;
  max-height: 360px;
  box-shadow: 0 10px 28px rgba(24, 25, 28, 0.16);
  border-radius: 10px;
  overflow: hidden;
}

.bili-editor-tools label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7e8898;
  font-size: 1.05rem;
  font-weight: 500;
}

.bili-editor-tools input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.bili-post-btn {
  min-width: 84px;
  height: 36px;
  border: none;
  border-radius: 8px;
  color: #fff;
  background: #66c4ec;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.16s ease, transform 0.16s ease;
  align-self: flex-start;
}

.bili-upload-strip {
  margin-top: 8px;
  padding-top: 0;
  border-top: none;
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bili-upload-thumb {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  overflow: hidden;
  border: none;
  background: transparent;
}

.bili-upload-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bili-upload-remove {
  position: absolute;
  top: 0;
  right: 0;
  width: 15px;
  height: 15px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  font-size: 11px;
  line-height: 15px;
  cursor: pointer;
  padding: 0;
}

.bili-post-btn:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
}

.bili-comment-list {
  margin-top: 4px;
}

.bili-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 12px 0 14px;
  border-top: 1px solid #ebeff5;
}

.bili-item.comment-anchor-hit {
  background: rgba(110, 140, 255, 0.12);
  border-radius: 10px;
}

.bili-item:first-child {
  border-top: none;
}

.bili-item-main {
  min-width: 0;
}

.bili-user-row {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 6px;
}

.bili-username {
  color: #444f63;
  font-size: 0.98rem;
  font-weight: 700;
}

.bili-username.is-up-host {
  color: #ff6a8e;
}

.bili-up-tag {
  display: inline-block;
  background: transparent;
  color: #ff6a8e;
  padding: 0;
  margin-left: -1px;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-5px);
}

.bili-content-row {
  color: #18191c;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 8px;
  word-break: break-word;
}

.bili-pin-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  min-width: 40px;
  border-radius: 6px;
  border: 1px solid #ff98b4;
  background: #fff2f6;
  color: #ff6f94;
  font-size: 0.82rem;
  margin-right: 8px;
}

.bili-action-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: nowrap;
  min-height: 24px;
}

.bili-action-row > * {
  display: inline-flex;
  align-items: center;
  height: 24px;
}

.bili-action-row form {
  margin: 0;
  padding: 0;
  display: inline-flex !important;
  align-items: center;
  height: 24px;
  vertical-align: middle;
}

.bili-action-row span,
.bili-action-row button,
.bili-link-btn {
  color: #7f8b9f;
  font-size: 0.9rem;
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  height: 24px;
  vertical-align: middle;
}

.bili-action-row button:hover,
.bili-link-btn:hover {
  color: #3aa5d8;
}

.bili-like-btn.is-liked {
  color: #fb7299;
}

.bili-like-btn.is-locked {
  cursor: not-allowed;
  opacity: 0.95;
}

.bili-reply-editor {
  margin-top: 8px;
}

.bili-reply-editor textarea {
  min-height: 56px;
  border: 1px solid #cfd7e4;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.95rem;
}

.bili-reply-editor-actions {
  margin-top: 8px;
  display: inline-flex;
  gap: 12px;
}

.bili-mini-post {
  height: 32px;
  border-radius: 6px;
  border: none;
  background: #67c3eb;
  color: #fff;
  padding: 0 14px;
  cursor: pointer;
}

.bili-reply-collapse {
  margin-top: 8px;
  color: #7d8a9e;
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}

.bili-reply-collapse:hover {
  color: #3ca7d8;
}

.bili-reply-list {
  margin-top: 6px;
  padding-left: 0;
}

.bili-reply-item {
  border-left: 2px solid #e7edf6;
  margin-left: 2px;
  padding: 6px 0 6px 10px;
}

.bili-reply-item.depth-2 {
  margin-left: 14px;
}

.bili-reply-userline {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
}

.bili-reply-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #dbe2ee;
  background: #f6f7fa;
}

.bili-reply-content {
  font-size: 0.95rem;
  color: #1c2330;
  margin-bottom: 6px;
  line-height: 1.6;
}

.bili-comment-text a,
.bili-reply-text a {
  color: #1f7ccf;
  text-decoration: none;
}

.bili-inline-image {
  display: block;
  max-width: min(220px, 100%);
  border-radius: 8px;
  border: 1px solid #dde4f0;
  margin: 4px 0;
}

.bili-image-link {
  display: inline-block;
  cursor: zoom-in;
}

.bili-image-viewer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8, 12, 20, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
}

#edit-image-viewer {
  z-index: 12050;
}

.bili-image-viewer[hidden] {
  display: none;
}

.bili-image-viewer img {
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.42);
}

.bili-image-viewer-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #243044;
  font-size: 24px;
  line-height: 36px;
  padding: 0;
  cursor: pointer;
}

.bili-comment-text a:hover,
.bili-reply-text a:hover {
  text-decoration: underline;
}

code {
  font-family: "JetBrains Mono", Consolas, monospace;
  background: #eef4ff;
  border: 1px solid #d9e6ff;
  color: #3059c8;
  border-radius: 8px;
  padding: 2px 6px;
  font-size: 0.82rem;
}

#gs-popup-card {
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
}

#gs-popup-title {
  color: var(--text);
}

#gs-popup-message {
  color: var(--text-soft);
}

@media (max-width: 980px) {
  :root {
    --site-header-height: 62px;
  }

  .home-hero,
  .layout-two-col,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .home-content-grid {
    grid-template-columns: minmax(0, 1fr) 250px;
  }

  .home-hero {
    min-height: auto;
    padding: 22px 18px;
  }

  .home-hero::before,
  .home-hero::after {
    display: none;
  }

  .home-hero-right {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    z-index: 2;
  }

  .home-hero-left {
    min-height: 0;
    padding: 4px 0;
  }

 .hero-feature-grid {
    grid-template-columns: 1fr;
    gap: 6px;
    width: 100%;
  }

  .hero-feature-item {
    font-size: 0.95rem;
  }

  .admin-dashboard-layout {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-sidebar {
    position: static;
    top: auto;
  }

  .admin-dashboard-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .home-content-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-gallery-row {
    grid-template-columns: 1fr;
  }

  .home-search-form,
  .search-form {
    grid-template-columns: 1fr;
  }

  .board-tabs {
    grid-template-columns: 1fr;
  }

  .hot-board .board-tabs .btn-lite {
    min-height: 40px;
    font-size: 0.84rem;
  }

  .hot-board h3 {
    font-size: 1.1rem;
  }

  .hot-board li a::before,
  .hot-board li span {
    font-size: 1rem;
  }

  .admin-dashboard-nav {
    grid-template-columns: 1fr;
  }

  .nav-row {
    min-height: var(--site-header-height);
  }

  .comment-zone {
    padding: 16px 14px 10px;
  }

  .comment-sim {
    padding: 16px 14px 10px;
  }

  .comment-sim-head {
    margin-bottom: 14px;
  }

  .comment-sim-title,
  .comment-sim-title span {
    font-size: 1.35rem;
  }

  .comment-sim-sort a {
    font-size: 1rem;
  }

  .comment-sim-editor,
  .comment-sim-item {
    grid-template-columns: 44px 1fr;
    gap: 10px;
  }

  .comment-sim-avatar {
    width: 40px;
    height: 40px;
  }

  .comment-sim-input-wrap textarea {
    min-height: 56px;
    font-size: 1rem;
    padding: 10px 12px;
  }

  .comment-sim-tools label,
  .comment-sim-meta span,
  .comment-sim-meta a,
  .comment-sim-meta .link-delete {
    font-size: 0.9rem;
  }

  .comment-sim-content {
    font-size: 1rem;
  }

  .comment-sim-submit {
    min-width: 78px;
    height: 42px;
    font-size: 1.2rem;
  }

  .bili-comment {
    padding: 14px 12px 6px;
  }

  .bili-comment-title {
    font-size: 1.3rem;
  }

  .bili-comment-title span {
    font-size: 1.05rem;
  }

  .bili-editor,
  .bili-item {
    grid-template-columns: 44px 1fr;
    gap: 10px;
  }

  .bili-avatar-wrap,
  .bili-avatar {
    width: 40px;
    height: 40px;
  }

  .bili-editor-main textarea,
  .bili-content-row {
    font-size: 1rem;
  }

  .bili-action-row span,
  .bili-action-row button,
  .bili-link-btn,
  .bili-reply-collapse {
    font-size: 0.88rem;
  }

  .bili-post-btn {
    min-width: 78px;
    height: 36px;
    font-size: 0.96rem;
  }

  .comment-editor,
  .comment-item {
    grid-template-columns: 44px 1fr;
    gap: 10px;
  }

  .comment-avatar {
    width: 40px;
    height: 40px;
  }

  .comment-submit {
    min-width: 88px;
    min-height: 42px;
    font-size: 1.35rem;
  }

  .nav-links {
    gap: 12px;
  }

  .profile-edit-grid {
    grid-template-columns: 1fr;
  }

  .profile-avatar-col {
    justify-items: center;
  }

  .profile-avatar-preview,
  .profile-avatar-clickable {
    width: 104px;
    height: 104px;
  }

  .profile-head-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner {
    min-height: auto;
    padding: 10px 0;
    flex-direction: column;
    align-items: flex-start;
  }
}


.admin-dashboard-stats-top {
  margin-top: 12px;
}

.admin-dashboard-stats-extra {
  grid-template-columns: repeat(4, 1fr);
}

.reports-queue-card {
  margin-top: 12px;
}

.admin-dashboard-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.admin-dashboard-content {
  min-width: 0;
}

.admin-dashboard-content section[id] {
  scroll-margin-top: calc(var(--site-header-height) + 12px);
}

.admin-dashboard-sidebar {
  position: sticky;
  top: calc(var(--site-header-height) + 10px);
  padding: 12px;
}

.admin-dashboard-sidebar h3 {
  margin: 0 0 10px;
  color: var(--text);
}

.admin-dashboard-nav {
  display: grid;
  gap: 6px;
}

.admin-dashboard-nav a {
  display: block;
  padding: 8px 10px;
  border: 1px solid #d2def3;
  border-radius: 10px;
  color: var(--text-soft);
  text-decoration: none;
  background: #fff;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.admin-dashboard-nav a:hover {
  color: var(--text);
  border-color: #9cb3de;
  background: #f4f8ff;
}

.admin-inline-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}

.admin-inline-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

