@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 变量 ===== */
:root {
  --c-primary: #6514ff;
  --c-accent: #bf00ff;
  --c-dark: #1c1726;
  --c-dark2: #261f35;
  --c-dark3: #2e2540;
  --c-light: #f3eeff;
  --c-light2: #ede5ff;
  --c-text: #f0eaff;
  --c-text-muted: #b8a8d8;
  --c-white: #ffffff;
  --c-border: rgba(101, 20, 255, 0.25);
  --c-grad: linear-gradient(135deg, var(--c-primary) 0%, var(--c-accent) 100%);
  --c-grad-r: linear-gradient(225deg, var(--c-primary) 0%, var(--c-accent) 100%);
  --radius-card: 28px;
  --radius-btn: 50px;
  --radius-sm: 12px;
  --nav-h: 64px;
  --font-main: 'Noto Naskh Arabic', 'Noto Sans Arabic', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-mid: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--c-dark);
  color: var(--c-text);
  font-family: var(--font-main);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
  padding-bottom: var(--nav-h);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul, ol, dl { list-style: none; }

/* ===== scroll-margin for fixed nav ===== */
div[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* ===== 几何背景动效 ===== */
.geo-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.geo-shape {
  position: absolute;
  border-radius: 4px;
  opacity: 0.07;
}
.geo-shape--1 {
  width: 320px; height: 320px;
  background: var(--c-primary);
  top: -80px; left: -80px;
  transform: rotate(30deg);
  animation: geoFloat1 18s ease-in-out infinite;
}
.geo-shape--2 {
  width: 200px; height: 200px;
  background: var(--c-accent);
  top: 30%; right: -40px;
  transform: rotate(55deg);
  animation: geoFloat2 14s ease-in-out infinite 2s;
}
.geo-shape--3 {
  width: 150px; height: 150px;
  background: var(--c-primary);
  bottom: 20%; left: 10%;
  transform: rotate(-20deg);
  animation: geoFloat1 20s ease-in-out infinite 4s;
}
.geo-shape--4 {
  width: 260px; height: 100px;
  background: var(--c-accent);
  bottom: 10%; right: 5%;
  transform: rotate(15deg);
  animation: geoFloat2 16s ease-in-out infinite 1s;
}
.geo-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.05;
}
.geo-circle--1 {
  width: 500px; height: 500px;
  background: var(--c-grad);
  top: 40%; left: -150px;
  animation: geoFloat2 22s ease-in-out infinite 3s;
}
.geo-circle--2 {
  width: 300px; height: 300px;
  background: var(--c-accent);
  top: 10%; right: 10%;
  animation: geoFloat1 17s ease-in-out infinite 6s;
}

@keyframes geoFloat1 {
  0%, 100% { transform: rotate(30deg) translateY(0px); }
  50% { transform: rotate(30deg) translateY(-30px); }
}
@keyframes geoFloat2 {
  0%, 100% { transform: rotate(55deg) translateX(0px); }
  50% { transform: rotate(55deg) translateX(20px); }
}

@media (prefers-reduced-motion: reduce) {
  .geo-shape, .geo-circle { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== 页面包裹 ===== */
.page-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ===== Hero ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 24px 100px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-media {
  order: 1;
  position: relative;
}
.hero-content {
  order: 2;
  text-align: right;
  direction: ltr;
}
.hero-visual {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-geo-block {
  position: absolute;
  border-radius: var(--radius-card);
}
.hero-geo-block--a {
  width: 280px; height: 280px;
  background: var(--c-grad);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(12deg);
  opacity: 0.9;
  animation: heroBlockA 8s ease-in-out infinite;
}
.hero-geo-block--b {
  width: 200px; height: 200px;
  background: var(--c-primary);
  top: 10%; left: 5%;
  border-radius: var(--radius-card);
  opacity: 0.7;
  animation: heroBlockB 10s ease-in-out infinite 1s;
}
.hero-geo-block--c {
  width: 140px; height: 140px;
  background: var(--c-accent);
  bottom: 8%; right: 0%;
  border-radius: 50%;
  opacity: 0.6;
  animation: heroBlockA 7s ease-in-out infinite 2s;
}

@keyframes heroBlockA {
  0%, 100% { transform: translate(-50%, -50%) rotate(12deg) scale(1); }
  50% { transform: translate(-50%, -50%) rotate(18deg) scale(1.04); }
}
@keyframes heroBlockB {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(6deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-geo-block { animation: none; }
}

/* 浮动徽章 */
.hero-badge {
  position: absolute;
  background: var(--c-grad);
  color: var(--c-white);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 50px;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(101, 20, 255, 0.5);
  white-space: nowrap;
  animation: badgeFloat 4s ease-in-out infinite;
}
.hero-badge--1 { top: 12%; left: -5%; animation-delay: 0s; }
.hero-badge--2 { bottom: 20%; left: 0%; animation-delay: 1.2s; }
.hero-badge--3 { top: 40%; right: -8%; animation-delay: 0.6s; }
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-badge { animation: none; }
}

/* Hero 文案 */
.hero-eyebrow { margin-bottom: 20px; }
.eyebrow-badge {
  display: inline-block;
  background: rgba(101, 20, 255, 0.25);
  border: 1px solid var(--c-primary);
  color: var(--c-light2);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 6px 16px;
  border-radius: 50px;
}
.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  background: var(--c-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.125rem;
  color: var(--c-text-muted);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  min-height: 48px;
  border: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--c-grad);
  color: var(--c-white);
  box-shadow: 0 4px 24px rgba(101, 20, 255, 0.45);
}
.btn--primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 32px rgba(191, 0, 255, 0.55);
}
.btn--ghost {
  background: transparent;
  color: var(--c-light2);
  border: 2px solid var(--c-primary);
}
.btn--ghost:hover {
  background: rgba(101, 20, 255, 0.15);
  transform: translateY(-2px);
}
.btn--cta {
  background: var(--c-grad);
  color: var(--c-white);
  padding: 10px 22px;
  font-size: 0.9375rem;
  box-shadow: 0 2px 12px rgba(101, 20, 255, 0.4);
}
.btn--cta:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(191, 0, 255, 0.5);
}
.btn--full { width: 100%; }

/* ===== 正文内容区 ===== */
.site-main { position: relative; z-index: 2; }
.site-article {}

.content-wrapper {
  padding: 64px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
}
.content-with-aside {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
.content-main {
  min-width: 0;
}

/* ===== 正文 HTML 样式（page.content 渲染） ===== */
.content-main h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 64px 0 24px;
  padding-top: 16px;
  position: relative;
  color: var(--c-white);
}
.content-main h2 span {
  display: inline;
}
.content-main h2::before {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--c-grad);
  border-radius: 4px;
  margin-bottom: 16px;
}
.content-main h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 40px 0 16px;
  color: var(--c-light2);
}
.content-main h3 span {
  display: inline;
}
.content-main p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--c-text-muted);
  margin-bottom: 20px;
}
.content-main ul, .content-main ol {
  margin: 0 0 24px 24px;
  list-style: disc;
}
.content-main ol { list-style: decimal; }
.content-main li {
  color: var(--c-text-muted);
  line-height: 1.8;
  margin-bottom: 8px;
  font-size: 1.0625rem;
}
.content-main a {
  color: var(--c-light2);
  border-bottom: 1px solid var(--c-primary);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.content-main a:hover {
  color: var(--c-accent);
  border-color: var(--c-accent);
}
.content-main blockquote {
  border-left: 4px solid var(--c-primary);
  background: rgba(101, 20, 255, 0.1);
  margin: 32px 0;
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.content-main blockquote p { margin-bottom: 0; }
.content-main strong { color: var(--c-white); font-weight: 700; }
.content-main em { color: var(--c-light2); font-style: italic; }
.content-main code {
  background: rgba(101, 20, 255, 0.2);
  border: 1px solid var(--c-border);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.9em;
}
.content-main pre {
  background: var(--c-dark2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  overflow-x: auto;
  margin: 24px 0;
}
.content-main pre code { background: none; border: none; padding: 0; }
.content-main img {
  border-radius: var(--radius-card);
  margin: 24px 0;
}

/* div 区块间距 */
.content-main > div {
  padding: 48px 0;
  border-bottom: 1px solid var(--c-border);
}
.content-main > div:last-child {
  border-bottom: none;
}

/* ===== 侧边栏 ===== */
.content-aside {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.aside-inner {
  background: var(--c-dark2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
}
.aside-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--c-primary);
}
.aside-title span { display: inline; }
.aside-nav-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 28px; }
.aside-link-item {}
.aside-link {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--c-text-muted);
  font-size: 0.9375rem;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.aside-link:hover {
  background: rgba(101, 20, 255, 0.18);
  color: var(--c-light2);
}
.aside-cta-block {}
.aside-cta-label {
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  margin-bottom: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ===== Footer ===== */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(28, 23, 38, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--c-border);
}
/* footer > div×2 契约 */
.footer-nav-bar {
  /* bottom nav bar div */
}
.footer-bottom {
  display: none; /* 固定底栏空间有限，底部信息在非固定态展示 */
}

.bottom-nav { width: 100%; }
.bottom-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0;
  padding: 0 8px;
  height: var(--nav-h);
  scrollbar-width: none;
}
.bottom-nav-list::-webkit-scrollbar { display: none; }

.bottom-nav-brand {
  flex-shrink: 0;
  margin-right: 8px;
}
.bottom-brand-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--c-grad);
  border-radius: 14px;
  transition: transform var(--transition-fast);
}
.bottom-brand-link:hover { transform: scale(1.08); }
.brand-icon { width: 28px; height: 28px; border-radius: 6px; }
.brand-icon-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-white);
}

.bottom-nav-item {
  flex-shrink: 0;
}
.bottom-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  height: 48px;
  border-radius: var(--radius-sm);
  color: var(--c-text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}
.bottom-nav-link:hover {
  color: var(--c-light2);
  background: rgba(101, 20, 255, 0.15);
}
.bottom-nav-text { display: block; }

.bottom-nav-cta {
  flex-shrink: 0;
  margin-left: 8px;
}

/* ===== 非固定页脚区（页面底部，固定条上方） ===== */
.page-footer-static {
  background: var(--c-dark2);
  border-top: 1px solid var(--c-border);
  padding: 48px 24px 80px;
}
.page-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand-super {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  background: var(--c-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  line-height: 1;
}
.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.footer-copy {
  font-size: 0.875rem;
  color: var(--c-text-muted);
}
.footer-links {
  display: flex;
  gap: 16px;
}
.footer-link {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  border-bottom: 1px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.footer-link:hover {
  color: var(--c-light2);
  border-color: var(--c-primary);
}

/* ===== 通用卡片（如 content 内有卡片块） ===== */
.card {
  background: var(--c-dark2);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  border: 1px solid var(--c-border);
  transition: transform var(--transition-mid), box-shadow var(--transition-mid), border-color var(--transition-mid);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(101, 20, 255, 0.2);
  border-color: var(--c-primary);
}

/* ===== 响应式断点 ===== */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: left;
  }
  .hero-media { order: 1; }
  .hero-content { order: 2; text-align: left; }
  .hero-actions { justify-content: flex-start; }
  .hero-desc { margin-left: 0; }
  .content-with-aside {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .content-aside {
    position: static;
  }
}

@media (max-width: 768px) {
  .hero-section { padding: 60px 20px 80px; min-height: 100svh; }
  .hero-visual { height: 320px; }
  .hero-geo-block--a { width: 200px; height: 200px; }
  .hero-geo-block--b { width: 140px; height: 140px; }
  .hero-geo-block--c { width: 100px; height: 100px; }
  .content-wrapper { padding: 48px 20px 64px; }
  .content-main h2 { font-size: 1.5rem; }
  .bottom-nav-link { font-size: 0.75rem; padding: 8px 8px; }
  .bottom-nav-list { justify-content: flex-start; }
  .page-footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-badge { font-size: 0.75rem; padding: 6px 12px; }
  .hero-badge--3 { display: none; }
  .btn { padding: 13px 24px; font-size: 0.9375rem; }
  .aside-inner { padding: 20px 16px; }
  .bottom-nav-text { display: none; }
  .bottom-nav-link { width: 48px; height: 48px; padding: 8px; }
  .bottom-nav-link::after { content: attr(data-short); font-size: 0.625rem; }
}

/* ===== 进场动效（stagger list） ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.content-main > div {
  animation: fadeInUp 0.5s ease both;
}
.content-main > div:nth-child(1) { animation-delay: 0.05s; }
.content-main > div:nth-child(2) { animation-delay: 0.10s; }
.content-main > div:nth-child(3) { animation-delay: 0.15s; }
.content-main > div:nth-child(4) { animation-delay: 0.20s; }
.content-main > div:nth-child(5) { animation-delay: 0.25s; }
.content-main > div:nth-child(6) { animation-delay: 0.30s; }
.content-main > div:nth-child(7) { animation-delay: 0.35s; }
@media (prefers-reduced-motion: reduce) {
  .content-main > div { animation: none; }
}

/* ===== 高亮/活力标记 ===== */
.badge {
  display: inline-block;
  background: var(--c-grad);
  color: var(--c-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.04em;
  vertical-align: middle;
}
.badge--outline {
  background: transparent;
  border: 1.5px solid var(--c-primary);
  color: var(--c-light2);
}

/* ===== 打印 ===== */
@media print {
  .site-footer, .geo-bg, .content-aside { display: none; }
  body { background: white; color: black; padding-bottom: 0; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
