@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Hebrew:wght@300;400;500;700&display=swap');

/* ===== 根变量 ===== */
:root {
  --c-primary: #1a2e1a;
  --c-primary-light: #243d24;
  --c-primary-dark: #111e11;
  --c-gold: #c9a84c;
  --c-gold-light: #d9bc72;
  --c-gold-dark: #a8872e;
  --c-cream: #f5f0e8;
  --c-cream-dim: #e8e0d0;
  --c-text: #f5f0e8;
  --c-text-muted: #b8b09a;
  --c-text-dark: #1a2e1a;
  --c-border: rgba(201, 168, 76, 0.25);
  --c-overlay: rgba(17, 30, 17, 0.75);
  --font-main: 'Noto Sans Hebrew', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  --nav-h: 80px;
  --announce-h: 36px;
  --radius-sm: 4px;
  --radius-pill: 999px;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-gold: 0 0 0 1px rgba(201, 168, 76, 0.3);
  --max-content: 1100px;
}

/* ===== 重置 & 基础 ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background: var(--c-primary);
  color: var(--c-text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: var(--c-gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--c-gold-light);
}

ul {
  list-style: none;
}

/* scroll-margin for sticky nav */
article {
  scroll-margin-top: calc(var(--announce-h) + var(--nav-h) + 12px);
}

/* ===== 站点包装器 ===== */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== 顶部公告条 ===== */
.top-announce {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--announce-h);
  background: var(--c-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-primary-dark);
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
}

.announce-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-primary-dark);
  opacity: 0.6;
  flex-shrink: 0;
}

.announce-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== 站点 Header ===== */
.site-header {
  position: sticky;
  top: var(--announce-h);
  z-index: 190;
  height: var(--nav-h);
  background: rgba(17, 30, 17, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  gap: 0;
}

.header-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.brand-link {
  display: flex;
  align-items: center;
  color: var(--c-gold);
  text-decoration: none;
}

.brand-logo {
  height: 32px;
  width: auto;
}

.brand-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-gold);
  letter-spacing: 0.08em;
}

/* 导航 details / summary / menu */
.nav-details {
  width: 100%;
  display: flex;
  justify-content: center;
}

.nav-details[open] > .nav-summary .nav-toggle-icon {
  transform: rotate(45deg);
}

.nav-summary {
  display: none;
  list-style: none;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  color: var(--c-gold);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  min-height: 44px;
  user-select: none;
}

.nav-summary::-webkit-details-marker {
  display: none;
}

.nav-toggle-icon {
  display: inline-block;
  transition: transform var(--transition);
  font-style: normal;
}

.nav-menu {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding: 0;
}

.nav-menu li {
  display: block;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--c-border);
  background: transparent;
  color: var(--c-text-muted);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
  min-height: 40px;
  text-decoration: none;
}

.nav-pill:hover,
.nav-pill:focus-visible {
  background: rgba(201, 168, 76, 0.15);
  color: var(--c-gold);
  border-color: var(--c-gold);
  transform: translateY(-1px);
}

/* ===== Hero ===== */
.hero-wrapper {
  position: relative;
  height: 70vh;
  min-height: 420px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(17,30,17,0.9) 0%, rgba(26,46,26,0.6) 50%, rgba(17,30,17,0.85) 100%);
  z-index: 0;
}

.hero-parallax-layer {
  position: absolute;
  inset: -20px;
  will-change: transform;
}

.hero-layer-1 {
  background:
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(201,168,76,0.12) 0%, transparent 70%),
    linear-gradient(180deg, var(--c-primary-dark) 0%, var(--c-primary) 100%);
  z-index: 1;
}

.hero-layer-2 {
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(201,168,76,0.04) 0px,
      rgba(201,168,76,0.04) 1px,
      transparent 1px,
      transparent 80px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(201,168,76,0.04) 0px,
      rgba(201,168,76,0.04) 1px,
      transparent 1px,
      transparent 80px
    );
  z-index: 2;
}

.hero-layer-3 {
  background:
    radial-gradient(circle at 20% 80%, rgba(26,46,26,0.8) 0%, transparent 50%);
  z-index: 3;
}

/* 漫画格框装饰 */
.hero-frame-decor {
  position: absolute;
  inset: 20px;
  z-index: 4;
  pointer-events: none;
}

.frame-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--c-gold);
  border-style: solid;
  opacity: 0.5;
}

.frame-tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
.frame-tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.frame-bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.frame-br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

/* 超大背景序号 */
.hero-bg-number {
  position: absolute;
  bottom: -20px;
  left: -10px;
  font-size: clamp(120px, 22vw, 220px);
  font-weight: 700;
  color: rgba(201, 168, 76, 0.06);
  line-height: 1;
  z-index: 4;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: right;
  padding: 40px 48px 48px 24px;
  max-width: 680px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--c-gold);
  margin-bottom: 16px;
  opacity: 0.85;
}

.hero-h1 {
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-cream);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--c-text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
  font-weight: 300;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  background: var(--c-gold);
  color: var(--c-primary-dark);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  min-height: 46px;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  background: var(--c-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.35);
  color: var(--c-primary-dark);
}

/* ===== 主内容区 ===== */
.main-content {
  flex: 1;
  width: 100%;
}

.content-layout {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 48px 24px 72px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}

/* ===== Aside 左侧 ===== */
.content-aside {
  position: sticky;
  top: calc(var(--announce-h) + var(--nav-h) + 20px);
}

.aside-inner {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
}

.aside-heading {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--c-gold);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-border);
}

.aside-heading > span {
  display: inline;
}

.aside-index {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aside-index-item {
  display: block;
}

.aside-index-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: var(--radius-sm);
  color: var(--c-text-muted);
  font-size: 13px;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  min-height: 40px;
}

.aside-index-link:hover {
  background: rgba(201, 168, 76, 0.1);
  color: var(--c-gold);
}

.aside-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--c-gold);
  opacity: 0.5;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.aside-name {
  line-height: 1.4;
}

.aside-brand-note {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--c-border);
  font-size: 12px;
  color: var(--c-text-muted);
  opacity: 0.6;
  letter-spacing: 0.06em;
  text-align: center;
}

/* ===== 正文 div > article ===== */
.main-article {
  min-width: 0;
}

.content-sections {
  display: block;
}

/* page.content 内部的样式 */
.main-article h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--c-cream);
  margin: 56px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-border);
  line-height: 1.3;
  position: relative;
}

.main-article h2 > span {
  display: inline;
}

.main-article h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1em;
  background: var(--c-gold);
  margin-right: 12px;
  vertical-align: middle;
  border-radius: 2px;
}

.main-article h3 {
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 600;
  color: var(--c-gold-light);
  margin: 36px 0 14px;
  line-height: 1.4;
}

.main-article h3 > span {
  display: inline;
}

.main-article p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-text-muted);
  margin-bottom: 18px;
}

.main-article strong {
  color: var(--c-cream);
  font-weight: 600;
}

.main-article em {
  color: var(--c-gold-light);
  font-style: normal;
}

.main-article ul,
.main-article ol {
  margin: 16px 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.main-article li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text-muted);
}

.main-article ul li {
  list-style: none;
  padding-left: 20px;
  position: relative;
}

.main-article ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--c-gold);
  font-size: 12px;
  top: 4px;
}

.main-article ol li {
  list-style: decimal;
}

.main-article a {
  color: var(--c-gold);
  text-decoration: underline;
  text-decoration-color: rgba(201,168,76,0.4);
  text-underline-offset: 3px;
  transition: color var(--transition), text-decoration-color var(--transition);
}

.main-article a:hover {
  color: var(--c-gold-light);
  text-decoration-color: var(--c-gold-light);
}

.main-article blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--c-gold);
  background: rgba(201,168,76,0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--c-text-muted);
  font-size: 15px;
  font-style: italic;
}

.main-article article {
  position: relative;
  padding-top: 12px;
}

.main-article article + article {
  margin-top: 8px;
  padding-top: 8px;
}

.main-article article:not(:first-child)::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, var(--c-gold), transparent);
  margin-bottom: 48px;
  opacity: 0.3;
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--c-primary-dark);
  border-top: 1px solid var(--c-border);
}

.footer-top-block {
  padding: 56px 24px 40px;
}

.footer-top-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--c-gold);
  margin-bottom: 18px;
}

.footer-col-title > span {
  display: inline;
}

.footer-brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-gold);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.footer-brand-desc {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.7;
  opacity: 0.75;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-link {
  font-size: 14px;
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
}

.footer-nav-link:hover {
  color: var(--c-gold);
}

.footer-address {
  font-style: normal;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-link {
  font-size: 14px;
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
}

.footer-contact-link:hover {
  color: var(--c-gold);
}

.footer-contact-note {
  font-size: 12px;
  color: var(--c-text-muted);
  opacity: 0.5;
}

.footer-bottom-bar {
  padding: 18px 24px;
  border-top: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 13px;
  color: var(--c-text-muted);
  opacity: 0.7;
}

.footer-sep {
  color: var(--c-gold);
  opacity: 0.4;
}

.footer-note {
  font-size: 13px;
  color: var(--c-text-muted);
  opacity: 0.5;
}

/* ===== 视差动效 ===== */
@media (prefers-reduced-motion: no-preference) {
  .hero-content {
    animation: cinema-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hero-h1 {
    animation: slide-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
  }

  .hero-sub {
    animation: slide-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
  }

  .hero-cta {
    animation: slide-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
  }

  .hero-frame-decor {
    animation: frame-reveal 1.2s ease 0.2s both;
  }

  .aside-inner {
    animation: fade-in-left 0.7s ease 0.3s both;
  }
}

@keyframes cinema-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes frame-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-in-left {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}

.hero-layer-1,
.hero-layer-2,
.hero-layer-3 {
  will-change: transform;
}

.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16,1,0.3,1);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
  .hero-content,
  .hero-h1,
  .hero-sub,
  .hero-cta,
  .hero-frame-decor,
  .aside-inner {
    animation: none;
  }
}

/* ===== 响应式 ===== */
@media (max-width: 860px) {
  .content-layout {
    grid-template-columns: 1fr;
    padding: 32px 16px 48px;
    gap: 24px;
  }

  .content-aside {
    position: static;
    order: -1;
  }

  .aside-index {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .footer-top-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-col-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  :root {
    --nav-h: 90px;
    --announce-h: 32px;
  }

  .site-header {
    padding: 10px 16px;
  }

  .nav-summary {
    display: flex;
  }

  .nav-details:not([open]) .nav-menu {
    display: none;
  }

  .nav-details[open] .nav-menu {
    position: absolute;
    top: calc(var(--announce-h) + var(--nav-h));
    left: 0;
    right: 0;
    background: rgba(17, 30, 17, 0.98);
    padding: 16px;
    border-bottom: 1px solid var(--c-border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    z-index: 180;
  }

  .hero-wrapper {
    height: 70vh;
    align-items: flex-end;
  }

  .hero-content {
    padding: 28px 20px 36px;
    text-align: right;
    max-width: 100%;
  }

  .hero-h1 {
    font-size: clamp(22px, 7vw, 34px);
  }

  .nav-pill {
    font-size: 12px;
    padding: 8px 14px;
    min-height: 40px;
  }

  .footer-top-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .aside-index {
    grid-template-columns: 1fr;
  }

  .main-article h2::before {
    display: none;
  }
}

@media (max-width: 375px) {
  .hero-content {
    padding: 20px 16px 28px;
  }

  .hero-sub {
    display: none;
  }

  .top-announce {
    font-size: 12px;
  }
}
