/* FSGAMEO main theme styles */

:root {
  --fs-nav-w: 236px;
  --fs-bg: #0c0e12;
  --fs-surface: #151920;
  --fs-elevated: #1b212b;
  --fs-line: rgba(255, 255, 255, 0.08);
  --fs-line-gold: rgba(232, 201, 106, 0.28);
  --fs-text: #eef0f4;
  --fs-muted: #9aa3af;
  --fs-accent: #e8c96a;
  --fs-accent-soft: #f7e5a3;
  --fs-accent-deep: #c19549;
  --fs-brand: #e2554a;
  --fs-radius: 10px;
  --fs-content: #f4f5f7;
  --fs-content-text: #1a1d24;
  --fs-max: 1200px;
  --fs-fs-base: 17px;
  --fs-fs-sm: 14px;
  --fs-fs-md: 16px;
  --fs-fs-lg: 20px;
  --fs-fs-xl: 24px;
  --fs-fs-hero: 32px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: var(--fs-fs-base);
  line-height: 1.7;
  color: var(--fs-text);
  background: var(--fs-bg);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--fs-accent-deep); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }

.container {
  width: 100%;
  max-width: var(--fs-max);
  margin: 0 auto;
  padding: 0 16px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

/* ========== Mobile header ========== */
.fs-m-header.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 52px;
  background: var(--fs-surface);
  border-bottom: 1px solid var(--fs-line);
  box-shadow: none;
}

.fs-m-header .header-bar {
  display: flex;
  align-items: center;
  height: 52px;
  gap: 8px;
  justify-content: center;
  position: relative;
}

.fs-m-header .site-logo img {
  height: 28px;
  width: auto;
}

.fs-m-header .logo-text,
.site-logo .logo-text {
  display: none !important;
}

.fs-m-header .site-navbar { display: none; }

.fs-m-header .search-toggle,
.fs-m-header .m-icon-user {
  position: absolute;
  top: 0;
  height: 52px;
  width: 44px;
  border: 0;
  background: transparent;
  color: var(--fs-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.fs-m-header .search-toggle { right: 44px; }
.fs-m-header .m-icon-user { right: 4px; }

.m-icon-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;
  height: 52px;
  width: 48px;
  border: 0;
  background: transparent;
  color: var(--fs-accent);
  font-size: 20px;
  cursor: pointer;
}

.m-icon-nav .m-icon-nav-close { display: none; }
body.m-nav-show .m-icon-nav .m-icon-nav-open { display: none; }
body.m-nav-show .m-icon-nav .m-icon-nav-close { display: inline; }

@media (max-width: 900px) {
  .m-icon-nav.fs-m-header { display: block; }
  body { padding-top: 52px; }
}

.m-navbar {
  position: fixed;
  top: 0;
  left: -260px;
  bottom: 0;
  width: 240px;
  z-index: 1002;
  background: var(--fs-surface);
  border-right: 1px solid var(--fs-line);
  overflow-y: auto;
  padding: 56px 0 24px;
  transition: left .25s ease;
}

body.m-nav-show .m-navbar { left: 0; }
body.m-nav-show { overflow: hidden; }

.m-navbar a {
  display: block;
  padding: 12px 20px;
  color: var(--fs-text);
  border-bottom: 1px solid var(--fs-line);
}
.m-navbar .fs-mega-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #c19549;
  background: rgba(193, 149, 73, 0.12);
  vertical-align: middle;
}
.m-navbar .fs-mega-label {
  display: inline;
  vertical-align: middle;
}

.m-navbar .sub-menu { display: none; background: var(--fs-elevated); }
.m-navbar .is-open > .sub-menu { display: block; }
.m-navbar .menu-item-has-children { position: relative; }
.m-navbar .menu-item-has-children > a { cursor: pointer; }
.m-navbar .faa { display: none !important; }
.m-navbar .menu-item-has-children > a:after { content: none !important; display: none !important; }
.m-navbar .sub-menu a {
  padding-left: 36px;
  font-size: 14px;
}
.m-navbar .sub-menu .fs-mega-ico {
  width: 20px;
  height: 20px;
  font-size: 11px;
}

.m-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1001;
}
body.m-nav-show .m-mask { display: block; }

#site-search-panel {
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--fs-surface);
  border-bottom: 1px solid var(--fs-line);
  padding: 12px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
#site-search-panel[hidden] { display: none !important; }
body.search-on #site-search-panel { display: block; }

.site-search-form {
  display: flex;
  gap: 8px;
}
.site-search-form input {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: var(--fs-fs-md);
  background: #0e1219;
  color: var(--fs-text);
}
.site-search-form input::placeholder {
  color: var(--fs-muted);
}
.site-search-form button {
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  background: var(--fs-accent-deep);
  color: #fff;
  cursor: pointer;
  font-size: var(--fs-fs-md);
  font-weight: 600;
}

/* ========== Layout: content + sidebar ========== */
.fs-main {
  padding: 20px 0 40px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
}

.content-panel,
.widget {
  background: var(--fs-surface);
  border-radius: var(--fs-radius);
  border: 1px solid var(--fs-line);
  box-shadow: none;
  color: var(--fs-text);
}

.content-panel { padding: 8px 16px 20px; overflow: visible; }

.page-head {
  padding: 18px 6px 14px;
  border-bottom: 1px solid var(--fs-line);
  margin-bottom: 16px;
}
.page-head__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  margin-bottom: 6px;
}
.page-head__title-row h1 {
  margin-bottom: 0;
}
.page-head h1 {
  font-size: var(--fs-fs-xl);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.page-head p {
  margin: 0;
  color: var(--fs-muted);
  font-size: var(--fs-fs-sm);
}

/* Breadcrumb after category title */
.fs-breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--fs-muted);
  font-weight: 400;
}
.fs-breadcrumb a {
  color: var(--fs-muted);
  text-decoration: none;
}
.fs-breadcrumb a:hover {
  color: var(--fs-accent);
}
.fs-breadcrumb__sep {
  color: rgba(154, 163, 175, 0.55);
  font-size: 11px;
  user-select: none;
}
.fs-breadcrumb__current {
  color: var(--fs-accent-soft, #c9b06a);
}

/* ========== Post grid: 6 cards per row ========== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 0 0 8px;
  overflow: visible;
}

.post-card {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  padding: 0;
  border: 1px solid var(--fs-line);
  border-radius: 12px;
  background: var(--fs-elevated);
  overflow: visible;
  border-bottom: 1px solid var(--fs-line);
  transform-origin: center center;
  transition:
    border-color .28s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform .32s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow .32s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.post-card .post-card__thumb {
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}
.post-card .post-card__body {
  position: relative;
  z-index: 1;
  border-radius: 0 0 12px 12px;
  background: inherit;
}
.post-card:hover {
  z-index: 8;
  background: var(--fs-elevated);
  border-color: rgba(193, 149, 73, 0.5);
  transform: translateY(-6px) scale(1.045);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.4),
    0 8px 18px rgba(193, 149, 73, 0.1);
}
.post-card:last-child { border-bottom: 1px solid var(--fs-line); }

/* Sticky / paid pin — soft gold frame on top of shared hover scale */
.post-card--sticky {
  border: 1px solid rgba(232, 201, 106, 0.55);
  background:
    linear-gradient(165deg, rgba(247, 229, 163, 0.06) 0%, transparent 36%),
    var(--fs-elevated);
  box-shadow:
    0 0 0 1px rgba(232, 201, 106, 0.12),
    0 6px 18px rgba(0, 0, 0, 0.12);
}
.post-card--sticky .post-card__thumb {
  border-radius: 10px 10px 0 0;
}
.post-card--sticky::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(
    135deg,
    rgba(247, 229, 163, 0.35),
    rgba(232, 201, 106, 0.08) 40%,
    rgba(193, 149, 73, 0.22)
  );
  filter: blur(4px);
  opacity: 0.45;
  transition: opacity .32s ease, filter .32s ease, inset .32s ease;
}
.post-card--sticky::after {
  content: none;
}
.post-card--sticky:hover {
  border-color: rgba(232, 201, 106, 0.8);
  box-shadow:
    0 0 0 1px rgba(232, 201, 106, 0.22),
    0 16px 36px rgba(0, 0, 0, 0.18),
    0 8px 20px rgba(193, 149, 73, 0.12);
}
.post-card--sticky:hover::before {
  inset: -4px;
  opacity: 0.7;
  filter: blur(7px);
}
.post-card--sticky:hover .post-card__frame {
  border-color: rgba(232, 201, 106, 0.7);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(232, 201, 106, 0.18),
    0 10px 22px rgba(0, 0, 0, 0.22);
}

.post-card__thumb {
  display: block;
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
  padding: 8px 8px 0;
  box-sizing: border-box;
}
.post-card__frame {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(232, 201, 106, 0.35);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.25),
    0 6px 16px rgba(0, 0, 0, 0.18);
  background:
    linear-gradient(145deg, rgba(247, 229, 163, 0.12), transparent 42%),
    #0e1219;
}
.post-card__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 28%);
  opacity: 0.85;
}
.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}
.post-card:hover .post-card__thumb img {
  transform: scale(1.04);
}
.post-card:hover .post-card__frame {
  border-color: rgba(232, 201, 106, 0.65);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(232, 201, 106, 0.2),
    0 8px 20px rgba(0, 0, 0, 0.28);
}

/* Sticky ribbon — diagonal corner badge */
.post-card__sticky {
  position: absolute;
  top: 14px;
  left: -28px;
  z-index: 3;
  width: 112px;
  padding: 6px 0;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #1a1408;
  background: linear-gradient(180deg, #fff4c8 0%, #f7e5a3 28%, #e8c96a 58%, #c19549 100%);
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transform: rotate(-45deg);
  transform-origin: center;
  pointer-events: none;
  line-height: 1.2;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px 14px 14px;
  min-width: 0;
}

.post-card__title {
  font-size: 15px;
  line-height: 1.45;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
  font-weight: 700;
}
.post-card__title a { color: var(--fs-text); }
.post-card__title a:hover { color: var(--fs-accent); }

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  color: var(--fs-muted);
  margin-top: auto;
}
.post-card__meta a { color: var(--fs-accent); }

/* Sticky date: always "today" + rainbow cycling text */
.post-card__date--shine {
  display: inline-block;
  font-weight: 700;
  background-image: linear-gradient(
    90deg,
    #ff6b6b 0%,
    #fbbf24 16%,
    #34d399 33%,
    #60a5fa 50%,
    #c084fc 66%,
    #fb7185 83%,
    #ff6b6b 100%
  );
  background-size: 200% 100%;
  background-repeat: repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  animation: fs-date-rainbow 2.4s linear infinite;
  will-change: background-position;
}
@keyframes fs-date-rainbow {
  0% { background-position: 0% 50%; }
  100% { background-position: -200% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .post-card__date--shine {
    animation-duration: 6s;
  }
}

@media (max-width: 1500px) {
  .post-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1200px) {
  .post-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 480px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-card__title { font-size: 16px; min-height: 0; }
}

/* ========== Single ========== */
.article-header {
  padding: 28px 30px 14px;
}
.article-title {
  font-size: var(--fs-fs-hero);
  line-height: 1.35;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
  color: var(--fs-accent);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--fs-muted);
}
.article-meta a { color: var(--fs-accent); }
.fs-edit-post {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 2px;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(232, 201, 106, 0.45);
  background: rgba(232, 201, 106, 0.12);
  color: var(--fs-accent) !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  line-height: 1.4;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.fs-edit-post:hover {
  background: rgba(232, 201, 106, 0.22);
  border-color: rgba(232, 201, 106, 0.75);
  color: #f7e5a3 !important;
}

.article-content {
  padding: 10px 30px 32px;
  font-size: 18px;
  line-height: 1.9;
  word-break: break-word;
  font-weight: 400;
}
.article-content h2,
.article-content h3 {
  margin: 1.4em 0 .6em;
  color: var(--fs-accent);
  font-weight: 700;
}
.article-content h2 { font-size: 1.35em; }
.article-content h3 { font-size: 1.18em; }
.article-content p,
.article-content li,
.article-content td {
  font-weight: 400;
}
.article-content p { margin: 0 0 1em; }
/* Body copy stays regular (editor often wraps whole blocks in strong) */
.article-content > *,
.article-content p,
.article-content p strong,
.article-content p b,
.article-content li strong,
.article-content li b {
  font-weight: 400;
}
.article-content h2,
.article-content h3,
.article-content h4 {
  font-weight: 700;
}
.article-content ul,
.article-content ol {
  margin: 0 0 1em 1.2em;
  list-style: disc;
}
.article-content a {
  color: var(--fs-accent-deep);
  text-decoration: underline;
}

/* External / store / cloud — button chips */
.article-content a.fs-ext-link,
.article-content a.fs-store-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(100%, 340px);
  margin: 6px 0;
  padding: 10px 16px 10px 12px;
  vertical-align: middle;
  text-decoration: none !important;
  border-radius: 12px;
  border: 1px solid transparent;
  box-sizing: border-box;
  color: #fff !important;
  line-height: 1.25;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}
.article-content a.fs-ext-link:hover,
.article-content a.fs-store-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  text-decoration: none !important;
}
.fs-ext-link__icon,
.fs-store-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.16);
}
.fs-ext-link__svg,
.fs-store-link__svg { display: block; }
.fs-ext-link__body,
.fs-store-link__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  text-align: left;
}
.fs-ext-link__title,
.fs-store-link__title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.fs-ext-link__desc,
.fs-store-link__desc {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.88;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.article-content a.fs-ext-link--ios,
.article-content a.fs-store-link--ios {
  background: linear-gradient(180deg, #5aa8ff 0%, #1e6fff 55%, #1357d6 100%);
  border-color: rgba(90, 168, 255, 0.45);
  box-shadow: 0 8px 18px rgba(30, 111, 255, 0.28);
}
.article-content a.fs-ext-link--android,
.article-content a.fs-store-link--android {
  background: linear-gradient(180deg, #6ad576 0%, #34a853 55%, #2a8f45 100%);
  border-color: rgba(106, 213, 118, 0.4);
  box-shadow: 0 8px 18px rgba(52, 168, 83, 0.28);
}
.article-content a.fs-ext-link--cloud,
.article-content a.fs-ext-link--file {
  color: #1a1408 !important;
  background: linear-gradient(180deg, #f7e5a3 0%, #e8c96a 48%, #c19549 100%);
  border-color: rgba(247, 229, 163, 0.55);
  box-shadow: 0 8px 18px rgba(193, 149, 73, 0.28);
}
.article-content a.fs-ext-link--cloud .fs-ext-link__icon,
.article-content a.fs-ext-link--file .fs-ext-link__icon {
  background: rgba(26, 20, 8, 0.12);
  color: #1a1408;
}
.article-content a.fs-ext-link--web {
  background: linear-gradient(180deg, #3a4454 0%, #252b36 55%, #1a1f28 100%);
  border-color: rgba(232, 201, 106, 0.35);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  color: #f0e6c8 !important;
}
.article-content a.fs-ext-link--web .fs-ext-link__icon {
  background: rgba(232, 201, 106, 0.16);
  color: #e8c96a;
}

.article-content img {
  margin: 1em auto;
  border-radius: 8px;
}

@media (max-width: 600px) {
  .article-header { padding: 18px 16px 10px; }
  .article-title { font-size: 24px; }
  .article-content { padding: 8px 16px 22px; font-size: 16px; }
}

/* TB Member download: keep plugin layout (padding/float); only tint accents */
.article-content .tbm-tbdown {
  clear: both;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  max-width: 100%;
}
.article-content .tbm-tbdown .-action {
  display: flex !important;
  visibility: visible !important;
}
.article-content .tbm-tbdown .-btn {
  display: inline-block !important;
  visibility: visible !important;
}
.article-content .tbm-tbdown a {
  text-decoration: none !important;
}
@media (min-width: 901px) {
  .article-content .tbm-tbdown {
    border-color: var(--fs-line-gold) !important;
  }
  .article-content .tbm-tbdown .-btn {
    background: var(--fs-accent) !important;
    color: #1a1408 !important;
  }
}

/* ========== Sidebar ========== */
.sidebar .widget {
  margin-bottom: 0;
  padding: 0;
}
.widget-title {
  font-size: 17px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--fs-line);
  color: var(--fs-text);
}
.widget ul li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--fs-line);
  font-size: 15px;
  line-height: 1.55;
}
.widget ul li:last-child { border-bottom: 0; }

/* ========== Pagination ========== */
.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 22px;
}
.pagination a,
.pagination span,
.nav-links a,
.nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--fs-elevated);
  border: 1px solid var(--fs-line);
  color: var(--fs-text);
  font-size: 15px;
}
.pagination .current,
.nav-links .current {
  background: var(--fs-accent-deep);
  border-color: var(--fs-accent-deep);
  color: #fff;
}

/* ========== Footer (xw996-style panel) ========== */
.site-footer {
  margin-top: 8px;
  padding: 8px 0 28px;
  text-align: center;
  color: var(--fs-muted);
  font-size: 14px;
  line-height: 1.75;
  border-top: none;
  background: transparent;
}

.fs-footer-inner {
  width: 100%;
  max-width: min(1200px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 0 4px;
  box-sizing: border-box;
}

.fs-flinks {
  margin: 0 0 16px;
  padding: 14px 20px;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(232, 201, 106, 0.22);
  border-radius: 8px;
}
.fs-flinks__group {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 0;
  line-height: 1.9;
}
.fs-flinks__label {
  display: inline-flex;
  align-items: center;
  margin-right: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #e8c96a;
  white-space: nowrap;
}
.fs-flinks__label::after {
  content: "：";
  color: #e8c96a;
}
.fs-flinks ul,
.fs-flinks ul.xoxo,
.fs-flinks ul.blogroll {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fs-flinks li { display: inline; margin: 0; padding: 0; }
.fs-flinks li:not(:last-child)::after {
  content: "·";
  margin: 0 8px;
  color: rgba(232, 201, 106, 0.4);
  font-weight: 700;
  pointer-events: none;
}
.fs-flinks li a {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  font-size: 13px;
  color: rgba(168, 168, 168, 0.95);
  background: none;
  text-decoration: none;
}
.fs-flinks li a:hover {
  color: #f7e5a3;
  background: none;
}

.fs-footer-panel {
  margin: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(232, 201, 106, 0.22);
  border-radius: 8px;
  text-align: center;
}
.fs-footer-panel__body { padding: 20px 28px 14px; }

.fs-copy-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}
.fs-copy-icon {
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(to right, #c19549, #f7e5a3, #e8c96a, #f7e5a3, #c19549);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.fs-copy-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #e8c96a;
}
.fs-copy-main {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.03em;
  color: rgba(220, 220, 220, 0.88);
}
.fs-copy-main a {
  color: #e8c96a;
  text-decoration: none;
  border-bottom: 1px dashed rgba(232, 201, 106, 0.4);
  font-weight: 600;
}
.fs-copy-main a:hover {
  color: #f7e5a3;
  border-bottom-color: #f7e5a3;
}
.fs-copy-notice {
  margin: 0;
  font-size: 12px;
  line-height: 1.75;
  color: rgba(168, 168, 168, 0.9);
}

.fs-copy-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 12px 28px 18px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(168, 168, 168, 0.92);
  text-align: center;
}
.fs-copy-meta__item,
.fs-copy-meta__seo,
.fs-copy-meta__seo a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(168, 168, 168, 0.92);
  text-decoration: none;
  font-weight: 400;
}
.fs-copy-meta__seo {
  position: relative;
  margin-left: 18px;
  padding-left: 18px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}
.fs-copy-meta__seo::before,
.fs-copy-meta__gongan::before {
  content: "·";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(232, 201, 106, 0.45);
  font-weight: 700;
}
.fs-copy-meta__gongan {
  position: relative;
  margin-left: 18px;
  padding-left: 18px;
}
.fs-copy-meta a:hover { color: #e8c96a; }
.fs-copy-meta__seo script { display: none !important; }
.fs-gongan {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin: 0;
  vertical-align: middle;
}

@media (max-width: 900px) {
  .site-footer { padding: 8px 0 22px; }
  .fs-footer-inner { max-width: calc(100vw - 24px); }
  .fs-flinks {
    padding: 12px 14px;
    text-align: center;
  }
  .fs-flinks__group { justify-content: center; }
  .fs-flinks__label {
    width: 100%;
    justify-content: center;
    margin: 0 0 2px;
  }
  .fs-footer-panel__body { padding: 18px 16px 12px; }
  .fs-copy-meta { padding: 10px 14px 16px; }
  .fs-copy-meta__seo,
  .fs-copy-meta__gongan {
    margin-left: 12px;
    padding-left: 12px;
  }
}

/* Desktop workspace top search */
@media (min-width: 901px) {
  body {
    padding-top: 0;
    background: var(--fs-bg);
    color: var(--fs-text);
  }
  .fs-main { padding: 12px 0 40px; }
  .content-panel,
  .sidebar .widget {
    background: var(--fs-surface);
    color: var(--fs-text);
    border: 1px solid var(--fs-line);
    box-shadow: none;
  }
  .page-head {
    border-bottom-color: var(--fs-line);
  }
  .page-head h1 {
    font-size: 22px;
  }
  .page-head p,
  .article-meta { color: var(--fs-muted); }
  .article-title,
  .article-content h2,
  .article-content h3 {
    color: var(--fs-accent) !important;
  }
  .post-grid {
    gap: 14px;
  }
  .post-card {
    background: var(--fs-elevated);
    border-color: var(--fs-line);
  }
  .post-card .post-card__body {
    background: var(--fs-elevated);
  }
  .post-card:hover {
    background: var(--fs-elevated);
    border-color: var(--fs-line-gold);
    box-shadow:
      0 18px 40px rgba(0, 0, 0, 0.4),
      0 8px 20px rgba(193, 149, 73, 0.1);
  }
  .post-card--sticky {
    background:
      linear-gradient(165deg, rgba(247, 229, 163, 0.07) 0%, transparent 40%),
      var(--fs-elevated);
    border-color: rgba(232, 201, 106, 0.48);
    box-shadow:
      0 0 0 1px rgba(232, 201, 106, 0.1),
      0 8px 20px rgba(0, 0, 0, 0.28);
  }
  .post-card--sticky .post-card__body {
    background: transparent;
  }
  .post-card--sticky:hover {
    background:
      linear-gradient(165deg, rgba(247, 229, 163, 0.1) 0%, transparent 42%),
      var(--fs-elevated);
    border-color: rgba(232, 201, 106, 0.75);
    box-shadow:
      0 0 0 1px rgba(232, 201, 106, 0.2),
      0 18px 40px rgba(0, 0, 0, 0.42),
      0 8px 22px rgba(193, 149, 73, 0.14);
  }
  .post-card__thumb {
    background: transparent;
  }
  .post-card__frame {
    border-color: rgba(232, 201, 106, 0.32);
    background:
      linear-gradient(145deg, rgba(247, 229, 163, 0.1), transparent 42%),
      #0e1219;
  }
  .post-card__title {
    font-size: 16px;
  }
  .post-card__title a {
    color: var(--fs-text);
  }
  .post-card__meta {
    font-size: 12px;
    color: var(--fs-muted);
  }
  .post-card__meta a {
    color: var(--fs-accent);
  }
  .post-card__title a:hover,
  .article-meta a,
  .article-content a { color: var(--fs-accent); }
  .article-content a.fs-ext-link,
  .article-content a.fs-ext-link:hover,
  .article-content a.fs-store-link,
  .article-content a.fs-store-link:hover {
    color: #fff !important;
  }
  .article-content a.fs-ext-link--cloud,
  .article-content a.fs-ext-link--cloud:hover,
  .article-content a.fs-ext-link--file,
  .article-content a.fs-ext-link--file:hover {
    color: #1a1408 !important;
  }
  .article-content a.fs-ext-link--web,
  .article-content a.fs-ext-link--web:hover {
    color: #f0e6c8 !important;
  }
  .widget-title {
    font-size: 18px;
    color: var(--fs-text);
    border-bottom-color: var(--fs-line);
  }
  .widget ul li {
    font-size: 15px;
    border-bottom-color: var(--fs-line);
  }
  .pagination a,
  .pagination span,
  .nav-links a,
  .nav-links span {
    background: var(--fs-elevated);
    border-color: var(--fs-line);
    color: var(--fs-text);
  }
  .site-footer { color: var(--fs-muted); }

  .fs-tagslist li {
    background: var(--fs-elevated);
    border-color: var(--fs-line);
  }
  .fs-tagslist li:hover {
    border-color: var(--fs-line-gold);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  }
  .fs-tagslist li .name {
    background: rgba(255, 255, 255, 0.06);
    color: var(--fs-text);
  }
  .fs-tagslist li:hover .name {
    background: linear-gradient(180deg, #f7e5a3 0%, #e8c96a 50%, #c19549 100%);
    color: #1a1408;
  }
  .fs-tagslist li small,
  .fs-tagslist li .tit { color: var(--fs-muted); }
  .fs-tagslist li .tit:hover { color: var(--fs-accent-soft); }

  .fs-archives .item { border-bottom-color: var(--fs-line); }
  .fs-archives h3 { color: var(--fs-accent-soft); }
  .fs-archives .archives-list time,
  .fs-archives .archives-list .text-muted,
  .fs-archives h3 small { color: var(--fs-muted); }
  .fs-archives .archives-list a { color: var(--fs-text); }
  .fs-archives .archives-list a:hover { color: var(--fs-accent-soft); }
  .fs-empty { color: var(--fs-muted); }

  .fs-workspace-top {
    display: block;
    padding: 0 20px 12px;
  }
}

/* ========== Tag cloud page ========== */
.fs-tagslist ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 8px 0 16px;
}
.fs-tagslist li {
  padding: 14px;
  border: 1px solid var(--fs-line);
  border-radius: 10px;
  background: var(--fs-elevated);
  transition: border-color .15s ease, transform .2s ease, box-shadow .2s ease;
}
.fs-tagslist li:hover {
  border-color: var(--fs-line-gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.fs-tagslist li .name {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 700;
  color: var(--fs-text);
}
.fs-tagslist li:hover .name {
  background: linear-gradient(180deg, #f7e5a3 0%, #e8c96a 50%, #c19549 100%);
  color: #1a1408;
}
.fs-tagslist li small {
  margin-left: 8px;
  color: var(--fs-muted);
  font-size: 13px;
}
.fs-tagslist li p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fs-tagslist li .tit { color: var(--fs-muted); }
.fs-tagslist li .tit:hover { color: var(--fs-accent-soft); }

/* ========== Archives page ========== */
.fs-archives .item {
  overflow: hidden;
  margin-bottom: 22px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--fs-line);
}
.fs-archives h3 {
  float: left;
  width: 110px;
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--fs-accent-soft);
}
.fs-archives h3 small {
  font-weight: 500;
  color: var(--fs-muted);
}
.fs-archives .archives-list {
  margin: 0 0 12px 130px;
  padding: 0 0 0 18px;
  list-style: disc;
}
.fs-archives .archives-list li {
  margin: 0 0 6px;
  line-height: 1.55;
  font-size: 15px;
  color: var(--fs-text);
}
.fs-archives .archives-list time {
  display: inline-block;
  width: 42px;
  color: var(--fs-muted);
  font-size: 13px;
}
.fs-archives .archives-list a { color: var(--fs-text); }
.fs-archives .archives-list a:hover { color: var(--fs-accent-soft); }
.fs-archives .archives-list .text-muted {
  display: inline-block;
  margin-left: 10px;
  font-size: 12px;
  color: var(--fs-muted);
}
.fs-page-intro { margin-bottom: 18px; }
.fs-empty {
  padding: 40px 12px;
  text-align: center;
  color: var(--fs-muted);
}

@media (max-width: 1100px) {
  .fs-tagslist ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .fs-tagslist ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fs-archives h3 {
    float: none;
    width: auto;
  }
  .fs-archives .archives-list {
    margin-left: 0;
    padding-left: 18px;
  }
}
@media (max-width: 480px) {
  .fs-tagslist ul { grid-template-columns: 1fr; }
}

.empty-state {
  padding: 48px 20px;
  text-align: center;
  color: #888;
}
