.ink-body {
  --font-brush-primary: "Long Cang", "Ma Shan Zheng", "STKaiti", "Kaiti SC", "KaiTi", serif;
  --font-brush-secondary: "Ma Shan Zheng", "STKaiti", "Kaiti SC", "KaiTi", serif;
}

.ink-body.theme-a {
  --font-brush-primary: "Long Cang", "Ma Shan Zheng", "STKaiti", "Kaiti SC", "KaiTi", serif;
  --font-brush-secondary: "Ma Shan Zheng", "STKaiti", "Kaiti SC", "KaiTi", serif;
}

.ink-body.theme-b {
  --font-brush-primary: "Zhi Mang Xing", "Ma Shan Zheng", "STKaiti", "Kaiti SC", "KaiTi", serif;
  --font-brush-secondary: "Ma Shan Zheng", "STKaiti", "Kaiti SC", "KaiTi", serif;
}

.ink-body.theme-c {
  --font-brush-primary: "Ma Shan Zheng", "STKaiti", "Kaiti SC", "KaiTi", serif;
  --font-brush-secondary: "Ma Shan Zheng", "STKaiti", "Kaiti SC", "KaiTi", serif;
}

.ink-body {
  background:
    linear-gradient(180deg, rgba(251, 248, 241, 0.92), rgba(238, 231, 219, 0.94)),
    url("/assets/jiangnan-page-bg.png") center top / cover no-repeat fixed;
}

.jiangnan-bg {
  background:
    linear-gradient(180deg, rgba(251, 248, 241, 0.48), rgba(231, 221, 204, 0.6)),
    url("/assets/jiangnan-page-bg.png") center top / cover no-repeat;
  opacity: 0.9;
}

.jiangnan-mist {
  background:
    radial-gradient(circle at top left, rgba(187, 170, 141, 0.2), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent);
}

.font-title {
  font-family: var(--font-brush-primary);
}

.font-body {
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
}

.font-meta {
  font-family: "ZCOOL XiaoWei", "STFangsong", "FangSong", "PingFang SC", sans-serif;
}

.ink-panel {
  border: 1px solid rgba(203, 188, 165, 0.82);
  background:
    linear-gradient(180deg, rgba(251, 248, 241, 0.8), rgba(244, 236, 224, 0.76)),
    url("/assets/jiangnan-card-bg.png") center/cover no-repeat;
  box-shadow:
    0 18px 40px rgba(86, 66, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(8px);
  isolation: isolate;
}

.ink-panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(194, 177, 150, 0.38);
  border-radius: inherit;
  pointer-events: none;
}

.ink-poster-shell {
  position: relative;
}

.ink-poster-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(47, 36, 25, 0.04)),
    url("/assets/jiangnan-card-bg.png") center/cover no-repeat;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.ink-poster {
  filter: saturate(0.84) contrast(0.94) brightness(1.02);
}

.poster-notice-wrap {
  position: relative;
  margin: -1px 1.2rem 0;
}

.ink-pill-label {
  border: 1px solid rgba(93, 117, 100, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(70, 92, 78, 0.86);
  box-shadow: none;
}

.poster-notice {
  position: relative;
  border: 1px solid rgba(223, 211, 193, 0.22);
  border-radius: 0 0 1.35rem 1.35rem;
  background:
    linear-gradient(135deg, rgba(247, 242, 233, 0.06), rgba(255, 252, 246, 0.02)),
    rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(1px);
  box-shadow: none;
}

.poster-notice::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(194, 177, 150, 0.08);
  border-radius: 0 0 0.95rem 0.95rem;
  pointer-events: none;
}

.notice-track {
  display: inline-block;
  padding-left: 100%;
  animation: notice-marquee 18s linear infinite;
}

@keyframes notice-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

.ink-branch {
  position: absolute;
  width: 92px;
  height: 110px;
  pointer-events: none;
  opacity: 0.1;
}

.ink-branch::before,
.ink-branch::after {
  content: "";
  position: absolute;
  left: 44px;
  background: rgba(47, 36, 25, 0.45);
}

.ink-branch::before {
  top: 0;
  width: 2px;
  height: 100px;
  transform: rotate(-14deg);
}

.ink-branch::after {
  top: 24px;
  width: 28px;
  height: 2px;
  transform: rotate(-26deg);
  transform-origin: left center;
  box-shadow:
    -8px 18px 0 0 rgba(47, 36, 25, 0.36),
    10px 30px 0 0 rgba(47, 36, 25, 0.24),
    -4px 52px 0 0 rgba(47, 36, 25, 0.28);
}

.ink-card {
  border: 1px solid rgba(199, 184, 160, 0.82);
  box-shadow:
    0 16px 28px rgba(93, 117, 100, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(252, 249, 243, 0.75), rgba(240, 232, 220, 0.68)),
    url("/assets/jiangnan-card-bg.png") center/cover no-repeat;
}

.platform-card.active {
  border-color: rgba(225, 234, 222, 0.26);
  box-shadow:
    0 22px 34px rgba(45, 73, 58, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.platform-card {
  border-color: rgba(225, 234, 222, 0.2);
  background:
    linear-gradient(180deg, rgba(95, 124, 105, 0.76), rgba(74, 105, 90, 0.68)),
    url("/assets/jiangnan-card-bg.png") center/cover no-repeat;
}

.platform-corner {
  position: absolute;
  top: 12px;
  width: 16px;
  height: 16px;
  z-index: 3;
  border-top: 1px solid rgba(235, 241, 232, 0.34);
}

.platform-corner-left {
  left: 12px;
  border-left: 1px solid rgba(235, 241, 232, 0.34);
  border-top-left-radius: 8px;
}

.platform-corner-right {
  right: 12px;
  border-right: 1px solid rgba(235, 241, 232, 0.34);
  border-top-right-radius: 8px;
}

.platform-icon-cover {
  z-index: 1;
  filter: none;
}

.platform-card.is-loading::after {
  content: "生成中";
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  background: rgba(54, 82, 66, 0.58);
  color: #f8f5ea;
  font-family: var(--font-brush-secondary);
  font-size: 1.85rem;
  letter-spacing: 0.08em;
}

.status-text {
  font-family: var(--font-brush-secondary);
  line-height: 1;
  letter-spacing: 0.1em;
}

.ink-status-bar {
  border: 1px solid rgba(93, 117, 100, 0.5);
  background:
    linear-gradient(180deg, rgba(118, 145, 125, 0.34), rgba(84, 116, 96, 0.24)),
    url("/assets/jiangnan-card-bg.png") center/cover no-repeat;
}

main > section.ink-panel.relative:nth-of-type(3) {
  border-color: rgba(79, 111, 93, 0.72);
  background:
    linear-gradient(180deg, rgba(95, 124, 105, 0.78), rgba(74, 105, 90, 0.7)),
    url("/assets/jiangnan-card-bg.png") center/cover no-repeat;
}

main > section.ink-panel.relative:nth-of-type(3)::before {
  border-color: rgba(225, 234, 222, 0.16);
}

main > section.ink-panel.relative:nth-of-type(3) .copy-card p {
  color: #f8f5ea;
}

main > section.ink-panel.relative:nth-of-type(3) .copy-section-title {
  color: #2f2419;
}

main > section.ink-panel.relative:nth-of-type(3) .copy-card {
  border-color: rgba(225, 234, 222, 0.22);
  background:
    linear-gradient(180deg, rgba(248, 246, 239, 0.12), rgba(235, 241, 232, 0.08)),
    rgba(255, 255, 255, 0.04);
}

.primary-button {
  background: linear-gradient(135deg, #5d7564 0%, #90a58f 100%);
  color: #f9f6f0;
}

.ink-btn-primary {
  box-shadow:
    0 14px 26px rgba(93, 117, 100, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.secondary-button,
.ghost-button {
  background: rgba(255, 252, 247, 0.76);
  color: #2f2419;
  border: 1px solid rgba(213, 197, 173, 0.82);
}

.copy-list {
  display: grid;
  gap: 1rem;
}

.ink-empty {
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.58), rgba(245, 237, 225, 0.52)),
    url("/assets/jiangnan-card-bg.png") center/cover no-repeat;
}

.copy-card {
  position: relative;
  border-radius: 1.5rem;
  border: 1px solid rgba(213, 197, 173, 0.84);
  background:
    radial-gradient(circle at top right, rgba(93, 117, 100, 0.05), transparent 22%),
    linear-gradient(180deg, rgba(252, 248, 241, 0.88) 0%, rgba(244, 237, 225, 0.84) 100%),
    url("/assets/jiangnan-card-bg.png") center/cover no-repeat;
  padding: 1.3rem 1.25rem 1.1rem;
  box-shadow: 0 12px 24px rgba(86, 66, 42, 0.06);
}

.copy-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 1.1rem;
  border: 1px solid rgba(194, 177, 150, 0.22);
  pointer-events: none;
}

.copy-card::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 14px;
  height: 10px;
  background:
    radial-gradient(circle at left center, rgba(163, 110, 85, 0.1), transparent 58%),
    linear-gradient(90deg, rgba(163, 110, 85, 0.1), rgba(163, 110, 85, 0));
  pointer-events: none;
}

.copy-card p {
  margin: 0;
  white-space: pre-wrap;
  color: #2f2419;
  font-size: 1rem;
  line-height: 1.95;
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
}

.copy-section-title {
  font-family: var(--font-brush-primary);
  letter-spacing: 0.02em;
  line-height: 1.14;
}

.copy-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
  align-items: center;
}

.copy-button-compact,
.refresh-inline-button {
  border-radius: 1rem;
  padding: 0.55rem 0.95rem;
  font-family: "ZCOOL XiaoWei", "STFangsong", "FangSong", "PingFang SC", sans-serif;
  font-size: 0.875rem;
}

.copy-button-compact,
.refresh-inline-button {
  border-color: rgba(225, 234, 222, 0.24);
  background:
    linear-gradient(180deg, rgba(118, 145, 125, 0.34), rgba(84, 116, 96, 0.22)),
    url("/assets/jiangnan-card-bg.png") center/cover no-repeat;
  color: #2f2419;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 22px rgba(45, 73, 58, 0.1);
}

.refresh-inline-button {
  position: relative;
}

.refresh-inline-button::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(235, 241, 232, 0.12);
  pointer-events: none;
}

.refresh-inline-button.is-loading {
  color: #2f2419;
}

.ink-footer {
  background: linear-gradient(180deg, rgba(250, 247, 241, 0), rgba(250, 247, 241, 0.97) 42%);
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.modal.hidden {
  display: none;
}

.manual-copy-text {
  resize: vertical;
}

@media (max-width: 640px) {
  .poster-notice-wrap {
    margin-inline: 1rem;
  }

  .copy-section-title {
    font-size: 2.2rem !important;
  }
}
