/* ============================================================
 * 思睿软件工作室 · 青瓷工具墙设计系统
 * paper #F3F6F5 / ink #1B2F2B / pine #0E5E51 / amber #C4762A
 * ============================================================ */

:root {
  --paper: #F3F6F5;
  --wash: #E9EFED;
  --card: #FFFFFF;
  --ink: #1B2F2B;
  --ink-soft: #3B4F4A;
  --muted: #5C6F6A;
  --pine: #0E5E51;
  --pine-deep: #0A463D;
  --amber: #C4762A;
  --amber-deep: #A55F1D;
  --line: #DCE4E1;
  --line-soft: #C9D6D2;
  --font-display: 'LXGW WenKai Screen', 'Kaiti SC', 'STKaiti', 'KaiTi', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', Consolas, 'JetBrains Mono', Menlo, monospace;
  --radius: 14px;
  --shadow-1: 0 1px 2px rgba(27, 47, 43, .05), 0 4px 14px rgba(27, 47, 43, .06);
  --shadow-2: 0 8px 26px rgba(27, 47, 43, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

img { max-width: 100%; }

::selection { background: rgba(14, 94, 81, .16); }

:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 2px;
}

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  background: var(--pine);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { left: 8px; }

/* ---------- 顶部导航 ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 246, 245, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-seal { width: 30px; height: 30px; display: block; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: .02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 26px);
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .95rem;
  transition: color .2s ease;
}
.site-nav a:hover { color: var(--pine); }

.lang-btn {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 4px 14px;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.lang-btn:hover { color: var(--pine); border-color: var(--pine); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(60px, 9vw, 104px); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .18em;
  color: var(--pine);
  margin: 0 0 18px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.3rem);
  line-height: 1.15;
  margin: 0 0 .35em;
  letter-spacing: .01em;
}

.hero-sub {
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  margin: 0;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: .95rem;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.btn-pine { background: var(--pine); color: #fff; }
.btn-pine:hover { background: var(--pine-deep); }

.btn-ghost { border-color: var(--line-soft); color: var(--ink); }
.btn-ghost:hover { border-color: var(--pine); color: var(--pine); }

.btn-amber { background: var(--amber); color: #fff; }
.btn-amber:hover { background: var(--amber-deep); }

.btn-disabled {
  background: var(--wash);
  color: var(--muted);
  border: 1px dashed var(--line-soft);
  cursor: default;
}

.hero-stats {
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--muted);
}
.hero-stats i {
  font-style: normal;
  margin: 0 12px;
  color: var(--line-soft);
}

/* ---------- 工具墙（签名元素） ---------- */
.wall-wrap { margin-top: clamp(48px, 7vw, 76px); }

.wall {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px clamp(14px, 2.2vw, 28px);
  margin-bottom: 48px;
}

.wall::before {
  content: '';
  position: absolute;
  left: 2%;
  right: 2%;
  top: 50%;
  border-top: 1px dashed var(--line-soft);
}

.wall-item {
  position: relative;
  z-index: 1;
  display: block;
  text-decoration: none;
}

.wall-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-1);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.wall-tile img { width: 54px; height: 54px; object-fit: contain; }

.wall-item:hover .wall-tile,
.wall-item:focus-visible .wall-tile {
  transform: translateY(-6px);
  border-color: var(--pine);
  box-shadow: var(--shadow-2);
}

.wall-label {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, 4px);
  font-family: var(--font-display);
  font-size: .85rem;
  color: var(--pine-deep);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.wall-item:hover .wall-label,
.wall-item:focus-visible .wall-label {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (hover: none) {
  .wall-label { opacity: 1; transform: translate(-50%, 0); }
}

.wall-hint {
  text-align: center;
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--muted);
  opacity: .8;
}

/* ---------- 区块 ---------- */
.section {
  padding-block: clamp(64px, 9vw, 104px);
  scroll-margin-top: 76px;
}

.section-alt {
  background: var(--wash);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head { margin-bottom: 44px; }

.section-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.section-title-row h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  margin: 0;
}

.section-count {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 4px 12px;
}

.section-sub {
  color: var(--muted);
  margin: 12px 0 0;
  max-width: 46em;
}

/* ---------- 产品卡片（工具牌） ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 18px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-5px);
  border-color: var(--pine);
  box-shadow: var(--shadow-2);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.card-icon { width: 52px; height: 52px; object-fit: contain; }

.card-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  margin: 0;
}

.card-tag {
  color: var(--ink-soft);
  font-size: .97rem;
  margin: 14px 0 0;
  flex: 1;
}

.card-spec {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .02em;
  color: var(--muted);
  border-top: 1px dashed var(--line-soft);
  margin: 18px 0 0;
  padding-top: 12px;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}

.card-more { color: var(--pine); font-size: .88rem; }

.card-arrow {
  color: var(--pine);
  transition: transform .2s ease;
}
.card:hover .card-arrow { transform: translateX(3px); }

/* ---------- 滚动显现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- 关于 ---------- */
.about-cols {
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  gap: clamp(32px, 5vw, 64px);
}

.about-story p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.about-story p + p { margin-top: 1em; }

.about-keys { align-self: start; }

.key { padding: 18px 0; border-top: 1px solid var(--line-soft); }

.key h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--pine-deep);
  margin: 0 0 6px;
}

.key p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- 页脚 ---------- */
.site-foot {
  background: var(--card);
  border-top: 1px solid var(--line);
  padding-top: 56px;
}

.foot-cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}

.foot-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}

.foot-blurb { color: var(--muted); font-size: .95rem; margin: 0 0 10px; }

.foot-domain {
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--pine);
  margin: 0;
}

.foot-contact h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  margin: 0 0 8px;
}

.foot-contact p { color: var(--muted); font-size: .95rem; margin: 0 0 8px; }

.contact-link {
  color: var(--pine);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.contact-link:hover { border-bottom-color: var(--pine); }

.foot-base {
  border-top: 1px solid var(--line);
  padding-block: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .85rem;
  color: var(--muted);
}

/* ---------- 软件详情区块（产品独立页） ---------- */
.sub-label {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pine);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sub-label::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--line);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  gap: 10px;
}

.feature-list li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: .95rem;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: .62em;
  width: 7px;
  height: 7px;
  background: var(--pine);
  border-radius: 2px;
}

.shots {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
  justify-items: center;
}
.shots img {
  width: auto;
  max-width: 100%;
  max-height: 720px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.dl-box {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.dl-box .sub-label::after { border-top-color: var(--line-soft); }

.dl-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  flex-wrap: wrap;
}
.dl-row + .dl-row { border-top: 1px dashed var(--line-soft); }

.dl-info { display: flex; flex-direction: column; gap: 2px; }

.dl-label { font-size: .93rem; color: var(--ink); }

.dl-size {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--muted);
}

.dl-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.dl-actions .btn { padding: 8px 16px; font-size: .88rem; }

.dl-code {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--amber-deep);
  border: 1px dashed var(--amber);
  background: rgba(196, 118, 42, .07);
  padding: 6px 10px;
  border-radius: 8px;
}

/* ---------- 产品独立页 ---------- */
.pv-main { padding-top: clamp(40px, 6vw, 64px); }

.crumbs {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease;
}
.crumbs a:hover { color: var(--pine); }

.crumbs .sep { color: var(--line-soft); }

.crumbs [aria-current] { color: var(--ink); }

.pv-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 22px;
}

.pv-icon { width: 72px; height: 72px; object-fit: contain; flex: none; }

.pv-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.2;
  margin: 0;
}

.pv-tagline { color: var(--muted); margin: 4px 0 0; font-size: 1.02rem; }

.pv-spec {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 5px 14px;
  margin: 0 0 0 auto;
  white-space: nowrap;
}

.pv-desc {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 46em;
  margin: 0 0 36px;
}

.pv-article { max-width: 780px; }

.pv-note {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--muted);
  margin: 20px 0 0;
}

.pv-actions { margin: 30px 0 0; display: flex; justify-content: flex-end; }

.pv-more {
  margin-top: clamp(56px, 8vw, 88px);
  padding-top: clamp(32px, 5vw, 44px);
  border-top: 1px dashed var(--line-soft);
}

.pv-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.pv-grid li { display: flex; }

.pv-grid a {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--ink);
  font-size: .95rem;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.pv-grid a:hover {
  border-color: var(--pine);
  box-shadow: var(--shadow-1);
  transform: translateY(-2px);
}

.pv-thumb {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.pv-thumb img { width: 30px; height: 30px; object-fit: contain; }

.pv-grid .pv-txt { min-width: 0; }

.pv-grid .pv-more-name {
  display: block;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pv-grid .pv-more-tag {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--muted);
}

/* ---------- 入场动效 ---------- */
.hero .container > * {
  animation: fadeUp .6s ease backwards;
}
.hero .container > *:nth-child(2) { animation-delay: .06s; }
.hero .container > *:nth-child(3) { animation-delay: .12s; }
.hero .container > *:nth-child(4) { animation-delay: .18s; }
.hero .container > *:nth-child(5) { animation-delay: .24s; }
.wall-wrap { animation: fadeUp .7s ease .3s backwards; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .about-cols { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .wall::before { display: none; }
  .wall { gap: 20px 16px; }
  .wall-tile { width: 76px; height: 76px; border-radius: 18px; }
  .wall-tile img { width: 48px; height: 48px; }
}

@media (max-width: 640px) {
  .head-inner { height: 58px; }
  .brand-name { font-size: 1.02rem; }
  .site-nav a { font-size: .9rem; }
  .section-head { margin-bottom: 32px; }
  .foot-base { flex-direction: column; }
}

/* ---------- 打印 ---------- */
@media print {
  .site-head, .wall-hint { display: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .container > *,
  .wall-wrap { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .wall-tile, .card-arrow { transition: none; }
}
