/**
 * Modown Linear — 布局结构
 */

.linear-skin,
.linear-skin body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Header ─── */
.linear-skin .linear-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 10001;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.linear-skin body:not(.linear-home) {
  margin-top: 64px !important;
}

.linear-skin .linear-header .container {
  max-width: 1200px;
  display: flex;
  align-items: center;
  height: 64px;
}

.linear-skin .linear-header .logo,
.linear-skin .linear-header .nav-main,
.linear-skin .linear-header .nav-right,
.linear-skin .linear-header .nav-left {
  float: none !important;
}

.linear-skin .linear-header .logo {
  flex-shrink: 0;
}

.linear-skin .linear-header .logo img {
  height: 22px;
  width: auto;
}

.linear-skin .linear-header .nav-main {
  flex: 1;
  margin-left: 32px;
  font-size: 13px;
  font-weight: 500;
}

.linear-skin .linear-header .nav-main > li > a {
  padding: 0 12px;
  line-height: 64px;
}

.linear-skin .linear-header .nav-main > li.current-menu-item > a:after,
.linear-skin .linear-header .nav-main > li.current_page_item > a:after {
  display: none;
}

.linear-skin .linear-header .nav-right {
  flex-shrink: 0;
  font-size: 13px;
}

.linear-skin .linear-header .nav-right > li > a {
  padding: 0 10px;
  line-height: 64px;
}

/* ═══════════════════════════════════════
   Hero — Linear 暗→亮 + 正面截图 + 阴影
   ═══════════════════════════════════════ */
.linear-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 108px 24px 0;
  overflow: hidden;
  background: var(--linear-bg, #000);
}

.linear-hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.linear-hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--linear-bg-hero-top, #060608) 0%,
    var(--linear-bg-hero-mid, #121316) 38%,
    var(--linear-bg-hero-bottom, #2a2b32) 68%,
    var(--linear-bg-hero-floor, #34353d) 88%,
    var(--linear-bg-hero-floor, #34353d) 100%
  );
}

/* 断层只在背景层：亮区底边硬切 + 高光线，截图仍在亮区内 */
.linear-hero__backdrop::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  z-index: 2;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 15%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.06) 85%,
    transparent 100%
  );
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.linear-hero__spotlight {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  width: min(920px, 90vw);
  height: 55%;
  background: radial-gradient(
    ellipse 100% 80% at 50% 100%,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.04) 35%,
    transparent 70%
  );
}

.linear-hero__glow--primary {
  position: absolute;
  width: 700px;
  height: 350px;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  filter: blur(100px);
  background: radial-gradient(circle, rgba(94, 106, 210, 0.15) 0%, transparent 70%);
}

.linear-hero__fade {
  display: none;
}

.linear-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.linear-hero__copy {
  text-align: center;
  max-width: 760px;
  margin-bottom: 56px;
  position: relative;
  min-height: 140px;
}

.linear-hero__slide-copy {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.linear-hero__slide-copy.is-active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.linear-hero__title {
  font-size: clamp(38px, 6.5vw, 68px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.04;
  margin: 0 0 20px;
  color: var(--linear-text, #f7f8f8);
}

.linear-hero__subtitle {
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.6;
  margin: 0 auto 32px;
  max-width: 560px;
  font-weight: 400;
  color: var(--linear-text-muted, #8a8f98);
}

.linear-hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.linear-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
  font-family: inherit;
}

.linear-btn--primary {
  background: var(--linear-accent, #5e6ad2);
  color: #fff !important;
}

.linear-btn--primary:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.linear-btn--ghost {
  background: transparent;
  color: var(--linear-text-muted, #8a8f98) !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.linear-btn--ghost:hover {
  color: var(--linear-text, #f7f8f8) !important;
  border-color: rgba(255, 255, 255, 0.24);
}

/* 产品截图区 — 正面、无倾斜 */
.linear-hero__product {
  position: relative;
  width: 100%;
  max-width: 1080px;
  padding-bottom: 160px;
  transform: scale(var(--linear-showcase-scale, 1));
  transform-origin: 50% 0;
}

.linear-showcase {
  position: relative;
  width: 100%;
}

.linear-showcase__frame {
  position: relative;
  z-index: 2;
  border-radius: var(--linear-showcase-radius, 10px);
  overflow: hidden;
  background: #0d0d0f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 4px 16px rgba(0, 0, 0, 0.35),
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 40px 80px rgba(0, 0, 0, 0.35);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.7s ease, opacity 0.7s ease;
}

.linear-showcase__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.35);
}

.linear-showcase__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.linear-showcase__dot--red { background: #ff5f57; }
.linear-showcase__dot--yellow { background: #febc2e; }
.linear-showcase__dot--green { background: #28c840; }

.linear-showcase__url {
  margin-left: 8px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
}

.linear-showcase__viewport {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
}

.linear-showcase__viewport img,
.linear-showcase__viewport video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.linear-showcase__link {
  display: block;
  height: 100%;
}

/* 底部立体阴影 — Linear 标志性效果 */
.linear-showcase__shadow {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  width: 78%;
  height: 56px;
  pointer-events: none;
  background: radial-gradient(
    ellipse 100% 100% at 50% 0%,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.55) 35%,
    transparent 72%
  );
  filter: blur(18px);
}

.linear-showcase__shadow--soft {
  bottom: -48px;
  width: 92%;
  height: 80px;
  opacity: 0.65;
  filter: blur(36px);
  background: radial-gradient(
    ellipse 100% 100% at 50% 0%,
    rgba(0, 0, 0, 0.6) 0%,
    transparent 68%
  );
}

.linear-showcase__nav {
  display: flex;
  justify-content: center;
  margin-top: 8px;
  position: relative;
  z-index: 3;
}

.linear-showcase-pagination .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  opacity: 1 !important;
  margin: 0 5px !important;
  background: rgba(255, 255, 255, 0.25) !important;
  transition: transform 0.2s ease, background 0.2s ease;
}

.linear-showcase-pagination .swiper-pagination-bullet-active {
  transform: scale(1.3);
  background: var(--linear-accent, #5e6ad2) !important;
}

/* ─── 搜索条 ─── */
.linear-search {
  position: relative;
  z-index: 2;
  padding: 0 24px 64px;
  background: var(--linear-bg, #000);
}

.linear-search__form {
  max-width: 520px;
  margin: 0 auto;
}

.linear-search__field {
  display: flex;
  align-items: center;
  border-radius: 12px;
  padding: 4px 4px 4px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.linear-search__input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  font-size: 14px;
  padding: 10px 12px;
  outline: none;
  color: var(--linear-text, #f7f8f8) !important;
}

.linear-search__submit {
  border: none !important;
  border-radius: 8px !important;
  padding: 8px 18px !important;
  font-size: 13px !important;
  font-weight: 500;
  cursor: pointer;
  background: var(--linear-accent, #5e6ad2) !important;
  color: #fff !important;
}

/* ─── 内容区通用 ─── */
.linear-section {
  padding: 100px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.linear-section__header {
  text-align: center;
  margin-bottom: 56px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.linear-section__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.04em;
  margin: 0 0 12px;
  color: var(--linear-text, #f7f8f8);
}

.linear-section__desc {
  font-size: 16px;
  margin: 0;
  color: var(--linear-text-muted, #8a8f98);
  line-height: 1.6;
}

.linear-skin .grids {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px 24px;
}

.linear-skin .grids .grid.linear-card {
  float: none;
  width: calc(33.333% - 20px);
  margin: 0 10px 20px;
  overflow: hidden;
  border-radius: 12px !important;
  background: var(--linear-bg-card, #0a0a0a);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.linear-skin .grids .grid.linear-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
}

.linear-skin .grids .grid .img {
  border-radius: 0 !important;
  height: 180px;
  background: #111;
}

.linear-skin .grids .grid .thumb {
  border-radius: 0 !important;
  transition: transform 0.4s ease;
}

.linear-skin .grids .grid.linear-card:hover .thumb {
  transform: scale(1.04);
}

.linear-skin .grids .grid .con {
  padding: 18px;
}

.linear-skin .grids .grid h3 {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.linear-skin .grids .grid h3 a {
  color: var(--linear-text, #f7f8f8) !important;
}

.linear-skin .grids .grid .excerpt,
.linear-skin .grids .grid .grid-meta,
.linear-skin .grids .grid .cat {
  color: var(--linear-text-muted, #8a8f98) !important;
}

.linear-skin .banner-slider,
.linear-skin .banner-slider-fullwidth {
  display: none;
}

@media (max-width: 1024px) {
  .linear-skin .grids .grid.linear-card {
    width: calc(50% - 20px);
  }
}

@media (max-width: 768px) {
  .linear-hero {
    padding: 88px 16px 0;
    min-height: auto;
  }

  .linear-hero__copy {
    min-height: 100px;
    margin-bottom: 36px;
  }

  .linear-hero__product {
    padding-bottom: 88px;
  }

  .linear-showcase__viewport {
    aspect-ratio: 4 / 3;
  }

  .linear-skin .linear-header .nav-main {
    display: none;
  }

  .linear-section {
    padding: 72px 0;
  }
}

@media (max-width: 480px) {
  .linear-skin .grids .grid.linear-card {
    width: calc(100% - 20px);
  }
}
