/* 玮泽文化 — 杂志拼贴风，独立设计，非本地模板 */

:root {
  --paper: #f7f4ef;
  --paper-deep: #ebe6dc;
  --ink: #1a1612;
  --ink-soft: #4a443c;
  --vermillion: #e23d28;
  --vermillion-soft: #f06a58;
  --rule: rgba(26, 22, 18, 0.12);
  --max: 1080px;
  --masthead-h: 96px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--paper);
}
.skip-link:focus { left: 8px; }

/* 纸纹噪点 */
.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
}

/* ===== Masthead ===== */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.masthead-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  gap: 16px;
}

.masthead-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.masthead-nav {
  display: none;
  gap: 28px;
  font-size: 0.88rem;
  font-weight: 600;
}

.masthead-nav a {
  position: relative;
  padding-bottom: 2px;
}

.masthead-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--vermillion);
  transition: width 0.3s var(--ease);
}

.masthead-nav a:hover::after { width: 100%; }

.masthead-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 2px solid var(--ink);
  background: var(--paper);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.masthead-menu-icon {
  width: 14px;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 -5px 0 var(--ink), 0 5px 0 var(--ink);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.masthead-menu[aria-expanded="true"] .masthead-menu-icon {
  transform: rotate(45deg);
  box-shadow: none;
}

.masthead-nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 20px;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  gap: 16px;
}

/* 跑马灯条 */
.marquee-band {
  overflow: hidden;
  border-top: 1px solid var(--rule);
  background: var(--ink);
  color: var(--paper);
  padding: 8px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 40px;
  animation: marquee 28s linear infinite;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-track span::before {
  content: "◆";
  margin-right: 40px;
  color: var(--vermillion);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Splash Hero ===== */
.splash {
  position: relative;
  z-index: 1;
  padding: 48px 20px 64px;
  max-width: var(--max);
  margin: 0 auto;
}

.splash-grid {
  display: grid;
  gap: 32px;
  position: relative;
}

.splash-side {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.splash-issue {
  writing-mode: vertical-rl;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  border-left: 2px solid var(--vermillion);
  padding-left: 10px;
}

.splash-vertical {
  writing-mode: vertical-rl;
  font-size: clamp(2.5rem, 12vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 0.2em;
  line-height: 1;
  color: var(--ink);
  opacity: 0.08;
  user-select: none;
}

.splash-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--vermillion);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--ink);
}

.splash-headline {
  font-size: clamp(1.75rem, 6vw, 2.8rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.splash-headline em {
  font-style: normal;
  background: linear-gradient(120deg, var(--ink) 0%, var(--vermillion) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: headline-shift 6s ease-in-out infinite alternate;
}

@keyframes headline-shift {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(12deg); }
}

.splash-lead {
  font-size: 0.98rem;
  color: var(--ink-soft);
  max-width: 36em;
  margin-bottom: 28px;
}

.splash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 0;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s;
}

.btn-ink {
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
}
.btn-ink:hover {
  background: var(--vermillion);
  border-color: var(--vermillion);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-line {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-line:hover {
  background: var(--paper-deep);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-wide { width: 100%; max-width: 360px; }

.splash-stamp {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  color: var(--vermillion);
  opacity: 0.55;
  animation: stamp-spin 20s linear infinite;
  pointer-events: none;
}

@keyframes stamp-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.stamp-svg { width: 100%; height: 100%; }

/* ===== Panels ===== */
.panel {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 20px;
  border-top: 1px solid var(--rule);
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 20px;
  margin-bottom: 32px;
}

.panel-index {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--vermillion);
  letter-spacing: 0.1em;
}

.panel-head h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
}

.panel-note {
  width: 100%;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* About */
.about-pull {
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  font-weight: 700;
  line-height: 1.5;
  padding: 24px 0 24px 20px;
  border-left: 4px solid var(--vermillion);
  margin-bottom: 28px;
}

.about-columns {
  display: grid;
  gap: 16px;
}

.about-columns p {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Services — tab + panel switch */
.service-rail {
  position: relative;
  min-height: 220px;
  margin-bottom: 20px;
}

.service-panel {
  position: absolute;
  inset: 0;
  padding: 28px 24px;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  opacity: 0;
  transform: translateY(12px) skewX(-1deg);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  pointer-events: none;
}

.service-panel.is-active {
  opacity: 1;
  transform: translateY(0) skewX(0);
  pointer-events: auto;
}

.service-num {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--vermillion);
  line-height: 1;
  margin-bottom: 8px;
}

.service-panel h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.service-tag {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: rgba(247, 244, 239, 0.65);
  margin-bottom: 14px;
}

.service-panel p {
  font-size: 0.9rem;
  color: rgba(247, 244, 239, 0.88);
  line-height: 1.8;
}

.service-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tab {
  flex: 1 1 calc(50% - 4px);
  min-width: 120px;
  padding: 10px 12px;
  border: 2px solid var(--ink);
  background: var(--paper);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.service-tab.is-active,
.service-tab:hover {
  background: var(--vermillion);
  color: var(--paper);
  border-color: var(--vermillion);
}

/* Reasons */
.reason-list {
  list-style: none;
  display: grid;
  gap: 0;
  border: 2px solid var(--ink);
}

.reason-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 24px 20px;
  border-bottom: 1px solid var(--rule);
  transition: background 0.3s;
}

.reason-list li:last-child { border-bottom: none; }

.reason-list li:hover { background: var(--paper-deep); }

.reason-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--ink);
  font-weight: 900;
  font-size: 1rem;
}

.reason-list h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.reason-list p {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Reach */
.reach {
  background: var(--ink);
  color: var(--paper);
  max-width: none;
  border-top: none;
}

.reach-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 20px;
  text-align: center;
}

.reach h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 12px;
}

.reach p {
  font-size: 0.92rem;
  color: rgba(247, 244, 239, 0.75);
  margin-bottom: 24px;
}

.reach .btn-ink {
  background: var(--vermillion);
  border-color: var(--vermillion);
  margin: 0 auto;
}

/* Footer */
.site-foot {
  position: relative;
  z-index: 1;
  padding: 32px 20px 40px;
  text-align: center;
  background: var(--paper-deep);
  border-top: 2px solid var(--ink);
}

.foot-icp {
  margin-bottom: 10px;
}

.foot-icp a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  transition: color 0.25s, border-color 0.25s;
}

.foot-icp a:hover {
  color: var(--vermillion);
  border-color: var(--vermillion);
}

.foot-copy {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* ===== Responsive ===== */
@media (min-width: 720px) {
  :root { --masthead-h: 72px; }

  .masthead-menu { display: none; }

  .masthead-nav {
    display: flex;
    position: static;
    flex-direction: row;
    padding: 0;
    border: none;
    background: none;
  }

  .splash-grid {
    grid-template-columns: 120px 1fr;
    gap: 40px;
    align-items: start;
  }

  .splash-side {
    flex-direction: column;
  }

  .splash-vertical {
    opacity: 0.15;
  }

  .splash-stamp {
    width: 140px;
    height: 140px;
    top: 20px;
  }

  .about-columns {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .service-tab {
    flex: 1;
  }
}

@media (min-width: 960px) {
  .splash {
    padding-top: 72px;
    padding-bottom: 88px;
  }

  .splash-grid {
    grid-template-columns: 140px 1fr 140px;
  }

  .splash-stamp {
    position: relative;
    top: auto;
    right: auto;
    align-self: center;
    justify-self: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track,
  .splash-stamp,
  .splash-headline em { animation: none; }
  .service-panel { transition: none; }
}
