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

/* ============================================================
   CSS 变量 & Reset
   ============================================================ */
:root {
  --c-black: #000000;
  --c-white: #ffffff;
  --c-accent: #e8002d;
  --c-gray-90: #1a1a1a;
  --c-gray-80: #2c2c2c;
  --c-gray-50: #808080;
  --c-gray-20: #cccccc;
  --c-gray-05: #f2f2f2;

  --nav-w: 260px;
  --font-main: 'Noto Sans Arabic', 'Noto Naskh Arabic', system-ui, -apple-system, sans-serif;
  --radius-pill: 100px;
  --radius-card: 4px;
  --trans-fast: 0.18s ease;
  --trans-std: 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: var(--font-main);
  background: var(--c-black);
  color: var(--c-white);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================================
   页面骨架
   ============================================================ */
.page-shell {
  display: flex;
  min-height: 100vh;
}

/* ============================================================
   左侧固定导航
   ============================================================ */
.sidenav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nav-w);
  height: 100vh;
  background: var(--c-black);
  border-right: 1px solid #222;
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  padding: 0 0 2rem;
}

.sidenav__announce {
  background: var(--c-accent);
  color: var(--c-white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  padding: 0.4rem 1rem;
  text-transform: uppercase;
}

.sidenav__top {
  padding: 0 0 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  padding: 1.5rem 1.5rem 0.5rem;
}

.brand-logo__img {
  width: 120px;
  height: auto;
}

.brand-logo--text {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--c-white);
}

.brand-logo--text span {
  display: block;
}

/* 有序导航列表 */
.sidenav__list {
  flex: 1;
  padding: 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sidenav__list li {
  width: 100%;
}

/* 药丸胶囊按钮 */
.nav-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid #333;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--c-gray-20);
  transition: background var(--trans-fast), color var(--trans-fast), border-color var(--trans-fast);
  min-height: 44px;
  width: 100%;
}

.nav-pill:hover,
.nav-pill:focus-visible {
  background: var(--c-white);
  color: var(--c-black);
  border-color: var(--c-white);
  outline: none;
}

.nav-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: 0.05em;
  min-width: 1.6rem;
}

.nav-pill:hover .nav-num,
.nav-pill:focus-visible .nav-num {
  color: var(--c-black);
}

.nav-label {
  flex: 1;
}

.sidenav__foot {
  padding: 1rem 1.5rem 0;
  margin-top: auto;
}

.sidenav__tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--c-gray-50);
  border: 1px solid #333;
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.8rem;
}

/* ============================================================
   主体包裹
   ============================================================ */
.main-wrap {
  margin-left: var(--nav-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ============================================================
   Hero 区
   ============================================================ */
.hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--c-black);
  padding: 3rem 3rem 3.5rem;
}

.hero__bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(6rem, 18vw, 16rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  color: #ffffff08;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero__collage {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__cell {
  position: absolute;
  overflow: hidden;
}

.hero__cell--a {
  top: -5%;
  right: 2%;
  width: 28%;
  height: 75%;
  transform: rotate(2deg);
}

.hero__cell--b {
  bottom: -5%;
  right: 20%;
  width: 22%;
  height: 65%;
  transform: rotate(-1.5deg);
}

.hero__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__cell--placeholder {
  background: #111;
  border: 1px solid #222;
}

.hero__copy {
  position: relative;
  z-index: 2;
  max-width: 55%;
}

.hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--c-accent);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.05;
  color: var(--c-white);
  margin-bottom: 1.2rem;
}

.hero__sub {
  font-size: 1rem;
  color: var(--c-gray-20);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 36ch;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 2.2rem;
  background: var(--c-accent);
  color: var(--c-white);
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  min-height: 48px;
  transition: background var(--trans-fast), transform var(--trans-fast);
}

.hero__cta:hover {
  background: #ff1a45;
  transform: translateY(-2px);
}

/* ============================================================
   内容区 + 侧边栏
   ============================================================ */
.content-area {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  padding: 4rem 3rem;
  flex: 1;
}

/* 正文容器：main > div.wrap > article > section */
.wrap {
  flex: 1;
  min-width: 0;
}

.content-section {
  /* 直接子元素 */
}

.content-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--c-gray-20);
}

/* 正文内 article 的 scroll margin */
.content-body article,
article[id] {
  scroll-margin-top: 2rem;
}

/* 正文内标题样式 */
.content-body h2,
.content-body h3 {
  color: var(--c-white);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 2.5rem 0 1rem;
}

.content-body h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  border-left: 3px solid var(--c-accent);
  padding-left: 1rem;
}

.content-body h3 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

.content-body p {
  margin-bottom: 1.1rem;
}

.content-body a {
  color: var(--c-accent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--trans-fast);
}

.content-body a:hover {
  border-color: var(--c-accent);
}

.content-body ul,
.content-body ol {
  margin: 1rem 0 1.1rem 1.5rem;
}

.content-body ul { list-style: disc; }
.content-body ol { list-style: decimal; }

.content-body li {
  margin-bottom: 0.45rem;
}

.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.content-body th,
.content-body td {
  border: 1px solid #333;
  padding: 0.6rem 0.9rem;
  text-align: left;
}

.content-body th {
  background: var(--c-gray-90);
  color: var(--c-white);
  font-weight: 700;
}

/* 卡片风格 */
.content-body .card {
  background: var(--c-gray-90);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  transition: transform var(--trans-std), box-shadow var(--trans-std);
}

.content-body .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

/* ============================================================
   侧边栏
   ============================================================ */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 2rem;
}

.sidebar__inner {
  background: var(--c-gray-90);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.sidebar__title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-accent);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.sidebar__title span {
  display: inline;
}

.sidebar__links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.aside-link {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--c-gray-20);
  padding: 0.5rem 0.7rem;
  border-radius: 3px;
  border: 1px solid #333;
  transition: background var(--trans-fast), color var(--trans-fast);
  min-height: 44px;
  line-height: 1.4;
}

.aside-link:hover {
  background: var(--c-white);
  color: var(--c-black);
  border-color: var(--c-white);
}

.sidebar__notice {
  border-top: 1px solid #333;
  padding-top: 1rem;
}

.sidebar__notice-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--c-gray-50);
  margin-bottom: 0.5rem;
  letter-spacing: 0.08em;
}

.sidebar__notice-title span {
  display: inline;
}

.sidebar__notice p {
  font-size: 0.82rem;
  color: var(--c-gray-50);
  line-height: 1.55;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  background: var(--c-gray-90);
  border-top: 1px solid #222;
}

/* footer > article×n */
.footer__cta {
  background: var(--c-white);
  color: var(--c-black);
  padding: 4rem 3rem;
  display: flex;
  align-items: center;
}

.footer__cta-inner {
  max-width: 600px;
}

.footer__cta-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--c-accent);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.footer__cta-headline {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.05;
  color: var(--c-black);
  margin-bottom: 1.8rem;
}

.footer__cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 2.5rem;
  background: var(--c-black);
  color: var(--c-white);
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  min-height: 48px;
  transition: background var(--trans-fast), transform var(--trans-fast);
}

.footer__cta-btn:hover {
  background: var(--c-accent);
  transform: translateY(-2px);
}

.footer__info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding: 3rem;
}

.footer__col-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-white);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer__col-desc,
.footer__col p {
  font-size: 0.88rem;
  color: var(--c-gray-50);
  line-height: 1.65;
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer__nav-list li a {
  font-size: 0.88rem;
  color: var(--c-gray-50);
  transition: color var(--trans-fast);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0;
  line-height: 1.4;
}

.footer__nav-list li a:hover {
  color: var(--c-white);
}

.footer__bar {
  border-top: 1px solid #222;
  padding: 1.2rem 3rem;
  display: flex;
  align-items: center;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--c-gray-50);
  letter-spacing: 0.04em;
}

/* ============================================================
   Scroll Reveal 动效
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s var(--trans-std), transform 0.55s var(--trans-std);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .hero__cell--a {
    transition: transform 0.1s linear;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   响应式断点
   ============================================================ */

/* 中等屏幕 */
@media (max-width: 1024px) {
  :root {
    --nav-w: 220px;
  }

  .hero {
    padding: 2.5rem 2rem 3rem;
  }

  .hero__copy {
    max-width: 60%;
  }

  .content-area {
    padding: 3rem 2rem;
    gap: 2rem;
  }

  .footer__info {
    padding: 2.5rem 2rem;
    gap: 2rem;
  }

  .footer__cta {
    padding: 3rem 2rem;
  }

  .footer__bar {
    padding: 1.2rem 2rem;
  }
}

/* 平板 */
@media (max-width: 768px) {
  :root {
    --nav-w: 0px;
  }

  html {
    scroll-padding-top: 60px;
  }

  /* 移动端顶部导航 */
  .sidenav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    max-height: 60px;
    overflow: hidden;
    flex-direction: row;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid #222;
    padding: 0;
    z-index: 200;
    transition: max-height 0.35s ease;
  }

  .sidenav.is-open {
    max-height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    overflow-y: auto;
  }

  .sidenav__announce {
    display: none;
  }

  .sidenav__top {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 1rem;
    height: 60px;
    flex-shrink: 0;
  }

  .sidenav__top .brand-logo {
    padding: 0;
    flex: 1;
  }

  .sidenav__list {
    width: 100%;
    padding: 0.5rem 1rem 1rem;
    flex-direction: column;
  }

  .sidenav__foot {
    padding: 0 1rem 1rem;
  }

  /* Hamburger toggle button */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: none;
    border: none;
  }

  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--c-white);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .main-wrap {
    margin-left: 0;
    margin-top: 60px;
  }

  .hero {
    min-height: 55vw;
    padding: 1.5rem 1.2rem 2rem;
    flex-direction: column;
    justify-content: flex-end;
  }

  .hero__copy {
    max-width: 100%;
  }

  .hero__title {
    font-size: clamp(1.8rem, 7vw, 3rem);
  }

  .hero__cell--a {
    width: 38%;
    height: 70%;
    top: 0;
    right: 1%;
  }

  .hero__cell--b {
    width: 28%;
    height: 55%;
    bottom: 0;
    right: 32%;
  }

  .content-area {
    flex-direction: column;
    padding: 2rem 1.2rem;
    gap: 2rem;
  }

  .sidebar {
    width: 100%;
    position: static;
  }

  .footer__info {
    grid-template-columns: 1fr;
    padding: 2rem 1.2rem;
    gap: 1.5rem;
  }

  .footer__cta {
    padding: 2.5rem 1.2rem;
  }

  .footer__cta-headline {
    font-size: clamp(1.8rem, 7vw, 3rem);
  }

  .footer__bar {
    padding: 1rem 1.2rem;
  }
}

/* 手机 */
@media (max-width: 480px) {
  .hero__bg-text {
    font-size: 5rem;
  }

  .hero__eyebrow {
    font-size: 0.65rem;
  }

  .hero__sub {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .content-body {
    font-size: 1rem;
  }

  .content-body h2 {
    font-size: 1.4rem;
  }
}
