/* ==========================================================================
   七零后软件铺 · Nost 同款布局样式
   左侧：网格纸固定栏（logo / 软件菜单 / 圆形图标 / 搜索框 / 虚线）
   右侧：褶皱纸主区（手写欢迎语 / 汉堡 / 图钉主卡片 / MORE SOFTWARE 两列）
   纯 CSS，无外部字体、无框架，双击 index.html 即可看
   ========================================================================== */

:root {
  --ink:        #1c1c1c;
  --ink-soft:   #4a4a46;
  --muted:      #86867f;
  --line:       #d8d8d2;
  --dash:       #b4b4ad;
  --main-bg:    #f3f3f1;
  --side-bg:    #f8f8f6;
  --white:      #ffffff;
  --beige:      #e9e4d5;
  --red:        #ff4b46;
  --red-deep:   #d63b36;
  --lime:       #d9e47a;
  --serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  --sans: "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, sans-serif;
  --hand: "Kaiti SC", "STKaiti", "KaiTi", "楷体", "Segoe Print", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.75;
  color: var(--ink); background: var(--main-bg); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px dashed var(--red); outline-offset: 3px; }

.shell { display: flex; align-items: stretch; min-height: 100vh; }

/* ================= 左侧固定栏 ================= */
.sidebar {
  width: 268px; flex: none; position: sticky; top: 0; height: 100vh;
  overflow-y: auto; z-index: 30;
  background-color: var(--side-bg);
  background-image:
    linear-gradient(rgba(28,28,28,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,28,28,.045) 1px, transparent 1px);
  background-size: 14px 14px;
  border-right: 1px dashed var(--dash);
  scrollbar-width: thin;
}
.sidebar::before {
  content: ""; position: absolute; left: 11px; top: 0; bottom: 0;
  border-left: 1px dashed #c9c9c2; pointer-events: none;
}
.side-inner { padding: 34px 22px 26px 30px; position: relative; }

.logo { display: block; margin: 0 0 26px 2px; }
.logo-word {
  display: inline-block; font-family: var(--hand);
  font-size: 54px; line-height: 1.05; font-weight: 900; font-style: italic;
  letter-spacing: -3px; color: var(--red);
  text-shadow:
    -1px -1px 0 var(--ink), 1px -1px 0 var(--ink),
    -1px 1px 0 var(--ink), 1px 1px 0 var(--ink),
    2px 3px 0 var(--ink), 5px 6px 0 rgba(28,28,28,.18);
  transform: rotate(-6deg);
}
.logo-sub {
  display: block; margin-top: 12px; font-family: var(--serif);
  font-size: 9px; letter-spacing: 2.2px; color: #6a6a64;
}

.menu-card {
  background: var(--beige); border: 1.6px solid var(--ink);
  border-radius: 12px; padding: 15px 16px 16px;
  box-shadow: 2px 3px 0 rgba(28,28,28,.10);
}
.menu-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--serif); font-size: 9px; letter-spacing: 2.4px;
  color: #8b877b; margin-bottom: 10px; padding-bottom: 7px;
  border-bottom: 1px solid rgba(28,28,28,.16);
}
.menu-count { font-family: var(--sans); font-size: 9px; letter-spacing: 0; }
.software-menu { display: flex; flex-direction: column; }
.menu-item {
  display: block; width: 100%; text-align: right; background: none; border: 0;
  font-family: var(--sans); font-size: 12.5px; font-weight: 800;
  letter-spacing: .6px; color: var(--ink); padding: 3.5px 0;
  line-height: 1.5; transition: color .15s, transform .15s;
}
.menu-item:hover { color: var(--red-deep); transform: translateX(-3px); }
.menu-item.active { color: var(--red-deep); }
.menu-item.active::before { content: "● "; font-size: 9px; vertical-align: 2px; margin-right: 4px; }
.menu-item.planned { color: #8e8a7e; font-weight: 600; }

.dash { border-top: 1px dashed var(--dash); margin: 17px 2px; }

.round-icons { display: flex; justify-content: center; gap: 11px; }
.ricon {
  width: 33px; height: 33px; border: 1.5px solid var(--ink);
  border-radius: 50%; display: grid; place-items: center; color: #4f4f4a;
  background: rgba(255,255,255,.5); transition: background .15s, color .15s, transform .15s;
}
.ricon svg { width: 15px; height: 15px; }
.ricon:hover { background: var(--red); color: #fff; transform: translateY(-2px); }

.nl-title { font-family: var(--serif); font-size: 19px; text-align: center; margin-bottom: 11px; letter-spacing: .5px; }
.nl-form {
  display: flex; border: 1.5px solid var(--ink); border-radius: 3px;
  overflow: hidden; background: #fff;
}
.nl-form input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: #fff;
  padding: 7px 9px; font-size: 11px; color: var(--ink);
}
.nl-form input::placeholder { color: #a3a39c; }
.nl-form button {
  border: 0; border-left: 1.5px solid var(--ink); background: var(--lime);
  font-family: var(--serif); font-size: 10px; font-weight: 700; letter-spacing: 1.2px;
  padding: 0 12px; color: var(--ink); transition: background .15s;
}
.nl-form button:hover { background: #c9d95f; }
.nl-hint { font-size: 10.5px; color: #8b8b84; text-align: center; margin-top: 10px; line-height: 1.6; }
.nl-msg { font-size: 10.5px; color: var(--red-deep); text-align: center; margin-top: 7px; min-height: 14px; }
.side-foot { font-size: 9.5px; letter-spacing: 1px; color: #9a9a92; text-align: center; }

/* ================= 右侧主区 ================= */
.main {
  flex: 1; min-width: 0; position: relative; overflow: hidden;
  background-color: var(--main-bg);
  background-image:
    linear-gradient(103deg, rgba(255,255,255,.75) 0%, rgba(255,255,255,0) 24%, rgba(0,0,0,.028) 47%, rgba(255,255,255,.7) 51%, rgba(255,255,255,0) 76%, rgba(0,0,0,.018) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
}
.main::before {
  content: ""; position: absolute; left: 49.5%; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.035) 18%, rgba(0,0,0,.014) 60%, transparent);
  box-shadow: 0 0 16px 5px rgba(0,0,0,.015); pointer-events: none;
}
.main-inner { position: relative; max-width: 890px; margin: 0 auto; padding: 30px 44px 54px; }

.main-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.welcome {
  font-family: var(--hand); font-size: 21px; color: #5a5a55;
  transform: rotate(-1.2deg); padding-top: 8px; position: relative;
}
.welcome svg { position: absolute; left: 0; bottom: -9px; width: 210px; height: 10px; opacity: .8; }
.hamburger {
  width: 54px; height: 30px; flex: none; background: #fff;
  border: 1.6px solid var(--ink); border-radius: 999px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3.5px;
}
.hamburger i { display: block; width: 19px; height: 1.8px; background: var(--ink); border-radius: 2px; }
.hamburger:hover { background: var(--ink); }
.hamburger:hover i { background: #fff; }

/* ---------- 主卡片 ---------- */
.story {
  position: relative; background: var(--white);
  border: 2px solid var(--ink); border-radius: 12px; overflow: visible;
  box-shadow: 0 3px 0 rgba(28,28,28,.07);
}
.pin {
  position: absolute; right: -10px; top: -12px; width: 22px; height: 22px; z-index: 4;
  border-radius: 50%; background: radial-gradient(circle at 32% 28%, #ff8b84, var(--red) 55%, #b52f2b);
  border: 1.5px solid #7d211e;
  box-shadow: 2px 3px 3px rgba(0,0,0,.28), inset -2px -2px 3px rgba(0,0,0,.2);
}
.pin::after {
  content: ""; position: absolute; right: -5px; bottom: -9px; width: 2px; height: 11px;
  background: #555; transform: rotate(24deg); border-radius: 2px;
}
.story-meta {
  height: 36px; display: flex; align-items: center; gap: 9px;
  padding: 0 15px; border-bottom: 1px solid #e6e6e1;
  font-size: 10px; color: #81817a; letter-spacing: .8px;
}
.meta-item { display: inline-flex; align-items: center; gap: 5px; }
.meta-item svg { width: 13px; height: 13px; }
.meta-item b { font-weight: 600; color: #5c5c56; }
.meta-rule { width: 24px; height: 1px; background: #a9a9a2; }
.meta-spacer { flex: 1; }
.meta-status {
  font-family: var(--serif); font-size: 9.5px; letter-spacing: 1.2px;
  border: 1px solid #cfcfc8; border-radius: 999px; padding: 1px 9px; color: #6a6a63;
}
.meta-status.free { color: var(--red-deep); border-color: #eab6b3; }
.story-shot-link { display: block; }
.story-shot { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #e9e9e5; border-bottom: 2px solid var(--ink); overflow: hidden; }
.story-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .25s ease; }
.story-shot-link:hover .story-shot img { transform: scale(1.015); }
.story-shot-link:hover .shot-caption { background: var(--red-deep); }
.shot-caption {
  position: absolute; right: 10px; bottom: 8px; z-index: 2;
  font-size: 9px; letter-spacing: 1px; color: #fff;
  background: rgba(28,28,28,.66); padding: 2px 8px; border-radius: 3px;
}
.story-body { padding: 16px 20px 20px; }
.story-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.story-title-row h1 {
  font-family: var(--sans); font-size: 29px; font-weight: 800; line-height: 1.3;
  letter-spacing: -.5px; margin: 0; color: var(--ink);
}
.story-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 3px; }
.btn-black, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; letter-spacing: .5px;
  padding: 8px 16px; border-radius: 4px; border: 1.6px solid var(--ink);
  transition: transform .15s, background .15s, color .15s;
}
.btn-black { background: var(--ink); color: #fff; }
.btn-black:hover { background: var(--red-deep); border-color: var(--red-deep); transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--ink); }
.btn-outline:hover { background: var(--lime); transform: translateY(-2px); }
.btn-black.disabled { background: #eee; color: #999; border-color: #ccc; pointer-events: none; }
.story-sub { font-family: var(--serif); font-size: 15px; color: #6d6d66; margin: 4px 0 10px; }
.story-summary { font-size: 14px; line-height: 1.9; color: var(--ink-soft); margin: 0 0 12px; max-width: 720px; }
.story-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.story-tags span {
  font-size: 10.5px; color: #5e5e57; border: 1px solid #d5d5ce;
  border-radius: 999px; padding: 1px 10px; background: #fafaf8;
}
.story-note { font-size: 11.5px; color: #8a8a82; margin: 11px 0 0; }

.main-dash { margin: 26px 0; }

/* ---------- MORE SOFTWARE ---------- */
.more-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.more-title {
  position: relative; font-family: var(--serif); font-size: 38px; font-weight: 900;
  letter-spacing: -1px; margin: 0; line-height: 1.1;
}
.more-title::after {
  content: ""; position: absolute; left: 2px; bottom: -9px; width: 128px; height: 9px;
  background: repeating-linear-gradient(112deg, var(--red) 0 3px, transparent 3px 8px);
  transform: skewX(-18deg); opacity: .9;
}
.more-sub { font-size: 11.5px; color: #86867f; padding-bottom: 4px; }
.more-sub b { color: var(--red-deep); }
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.mini {
  background: #fff; border: 2px solid var(--ink); border-radius: 11px;
  overflow: hidden; transition: transform .18s, box-shadow .18s;
  cursor: pointer; text-align: left; padding: 0; width: 100%;
  font-family: inherit; color: inherit;
}
.mini:hover { transform: translate(-2px,-3px); box-shadow: 5px 6px 0 rgba(28,28,28,.16); }
.mini-meta {
  height: 28px; display: flex; align-items: center; gap: 7px; padding: 0 11px;
  border-bottom: 1px solid #e9e9e4; font-size: 9px; color: #8b8b84; letter-spacing: .5px;
}
.mini-meta svg { width: 11px; height: 11px; }
.mini-meta .r { width: 18px; height: 1px; background: #b9b9b2; }
.mini-meta .sp { flex: 1; }
.mini-shot {
  aspect-ratio: 16 / 9; padding: 12px; display: grid; place-items: center;
  background-color: #f7f7f4;
  background-image:
    linear-gradient(rgba(28,28,28,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,28,28,.05) 1px, transparent 1px);
  background-size: 11px 11px;
  border-bottom: 1px solid #e4e4de;
}
.mini-shot img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  border: 1.5px solid var(--ink); border-radius: 3px; background: #fff;
  box-shadow: 2px 3px 0 rgba(28,28,28,.2);
}
.mini-body { padding: 10px 13px 13px; }
.mini-body h3 { font-size: 15.5px; font-weight: 800; margin: 0 0 3px; line-height: 1.4; }
.mini-body p { font-size: 11px; color: #8a8a82; margin: 0; }
.mini-body .mini-state { float: right; font-size: 9.5px; color: var(--red-deep); letter-spacing: .5px; font-weight: 700; }

/* ---------- 详细说明 ---------- */
.block-title { font-family: var(--serif); font-size: 27px; font-weight: 800; margin: 0 0 16px; letter-spacing: -.3px; }
.detail { background: #fff; border: 2px solid var(--ink); border-radius: 11px; padding: 22px 24px; margin-bottom: 30px; }
.detail-desc { white-space: pre-line; font-size: 14px; line-height: 1.95; color: var(--ink-soft); margin: 0 0 20px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.detail-col h3 { font-family: var(--serif); font-size: 17px; margin: 0 0 10px; }
.check-list li { position: relative; padding-left: 20px; font-size: 13px; line-height: 1.9; color: var(--ink-soft); margin-bottom: 3px; }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: 9px; width: 10px; height: 6px;
  border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg);
}
.info-table { border-top: 1px solid #e6e6e0; }
.info-table div { display: flex; gap: 12px; font-size: 12.5px; padding: 6px 0; border-bottom: 1px solid #ecece6; }
.info-table span { color: #8b8b84; min-width: 66px; }
.info-table b { font-weight: 700; }
.detail-tech { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.detail-tech span { font-size: 10.5px; border: 1px solid #d5d5ce; border-radius: 999px; padding: 1px 9px; color: #66665f; }

/* ---------- 关于 / 联系 / 页脚 ---------- */
.about { margin: 30px 0; }
.about-grid { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.about-figure { margin: 0; background: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: 8px; box-shadow: 3px 4px 0 rgba(28,28,28,.12); transform: rotate(-1.2deg); }
.about-figure img { width: 100%; border: 1px solid #ddd; }
.about-figure figcaption { font-family: var(--hand); font-size: 14px; text-align: center; color: #7a7a73; padding-top: 6px; }
.about-text p { font-size: 14px; line-height: 2; color: var(--ink-soft); margin: 0 0 12px; }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.rule { background: #fff; border: 1.5px solid var(--ink); border-radius: 8px; padding: 12px 13px; }
.rule b { display: block; font-family: var(--serif); font-size: 15px; color: var(--red-deep); margin-bottom: 3px; }
.rule span { font-size: 11.5px; color: #77776f; line-height: 1.65; display: block; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.sticky-note { background: #f6eeae; border: 1.5px solid var(--ink); border-radius: 5px; padding: 20px 22px; box-shadow: 3px 4px 0 rgba(28,28,28,.12); transform: rotate(-.7deg); }
.sticky-note h3 { font-family: var(--hand); font-size: 22px; margin: 0 0 9px; }
.sticky-note p { font-size: 13px; line-height: 1.95; margin: 0; color: #4c4a3e; }
.contact-list { background: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: 18px 20px; }
.contact-list h3 { font-family: var(--serif); font-size: 18px; margin: 0 0 10px; }
.contact-list li { display: flex; gap: 12px; font-size: 13px; padding: 8px 0; border-bottom: 1px dashed #deded7; }
.contact-list li:last-of-type { border-bottom: 0; }
.contact-list .label { min-width: 82px; color: #85857e; font-weight: 700; }
.contact-list .value { word-break: break-all; }
.contact-list .muted { color: #a5a59d; }
.contact-list a { border-bottom: 1.5px solid var(--red); }
.contact-list .tip { font-size: 11.5px; color: #96968e; margin-top: 12px; line-height: 1.7; }

.site-footer { margin-top: 42px; border-top: 1px dashed var(--dash); padding-top: 18px; }
.footer-sign { font-family: var(--hand); font-size: 22px; color: var(--red-deep); transform: rotate(-1.5deg); }
.footer-note { font-size: 12.5px; color: #7d7d76; margin-top: 6px; }
.footer-meta { font-size: 10.5px; color: #9a9a92; letter-spacing: .5px; margin-top: 12px; }

/* ---------- 移动端遮罩 ---------- */
.sidebar-overlay { display: none; }
body.side-open { overflow: hidden; }
/* 桌面端点汉堡可以收起左栏，想看得更宽时用 */
body.side-off .sidebar { display: none; }
body.side-off .main-inner { max-width: 980px; }

/* ================= 响应式 ================= */
@media (max-width: 1180px) {
  .main-inner { padding: 28px 30px 48px; }
  .sidebar { width: 236px; }
  .side-inner { padding: 30px 18px 24px 26px; }
  .logo-word { font-size: 46px; }
}
@media (max-width: 900px) {
  .sidebar { position: fixed; left: -280px; top: 0; width: 268px; transition: left .25s ease; box-shadow: 6px 0 24px rgba(0,0,0,.16); }
  body.side-open .sidebar { left: 0; }
  body.side-open .sidebar-overlay { display: block; position: fixed; inset: 0; background: rgba(28,28,28,.42); z-index: 25; }
  .main-inner { max-width: 760px; padding: 24px 26px 44px; }
  .hamburger { display: flex; }
  .main::before { left: 50%; }
}
@media (max-width: 680px) {
  .main-inner { padding: 20px 18px 40px; }
  .welcome { font-size: 17px; }
  .story-title-row h1 { font-size: 23px; }
  .story-body { padding: 14px 15px 17px; }
  .story-meta { padding: 0 10px; font-size: 9px; }
  .card-grid, .detail-grid, .contact-grid, .about-grid, .rules { grid-template-columns: 1fr; }
  .about-figure { max-width: 300px; }
  .more-title { font-size: 30px; }
  .story-actions { width: 100%; }
  .btn-black, .btn-outline { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .sidebar, .hamburger, .sidebar-overlay { display: none !important; }
  .main-inner { max-width: none; }
  .mini { break-inside: avoid; }
}
