@import url("https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Noto+Sans+SC:wght@400;500;700;900&family=Noto+Serif+SC:wght@700;900&display=swap");

[data-theme="yaan"] {
  color-scheme: light;
  --color-base-100: #ffffff;
  --color-base-200: #f3f8ff;
  --color-base-300: #e2f0ff;
  --color-base-content: #333333;
  --color-primary: #0466d7;
  --color-primary-content: #ffffff;
  --color-secondary: #1278ee;
  --color-secondary-content: #ffffff;
  --color-accent: #18d2d2;
  --color-accent-content: #ffffff;
  --color-neutral: #2a3b58;
  --color-neutral-content: #ffffff;
  --color-info: #4ebce5;
  --color-info-content: #ffffff;
  --color-success: #c0ffda;
  --color-success-content: #186338;
  --color-warning: #ffdac0;
  --color-warning-content: #9c6134;
  --color-error: #ea4b4b;
  --color-error-content: #ffffff;
  --radius-selector: 1rem;
  --radius-field: 0.5rem;
  --radius-box: 0.5rem;
  --size-selector: 0.25rem;
  --size-field: 0.25rem;
  --border: 1px;
  --depth: 1;
  --noise: 0;
}

[data-theme="yaan-a11y"] {
  color-scheme: dark;
  --color-base-100: #111827;
  --color-base-200: #1f2937;
  --color-base-300: #374151;
  --color-base-content: #f9fafb;
  --color-primary: #ffd54f;
  --color-primary-content: #111827;
  --color-secondary: #60a5fa;
  --color-secondary-content: #111827;
  --color-accent: #2dd4bf;
  --color-accent-content: #111827;
  --color-neutral: #0f172a;
  --color-neutral-content: #ffffff;
  --color-info: #38bdf8;
  --color-info-content: #111827;
  --color-success: #4ade80;
  --color-success-content: #052e16;
  --color-warning: #fbbf24;
  --color-warning-content: #451a03;
  --color-error: #f87171;
  --color-error-content: #450a0a;
  --radius-selector: 1rem;
  --radius-field: 0.5rem;
  --radius-box: 0.5rem;
  --size-selector: 0.25rem;
  --size-field: 0.25rem;
  --border: 1.5px;
  --depth: 1;
  --noise: 0;
}

:root {
  --font-sans: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif-brand: "Dream Han Serif CN", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --font-calligraphy: "HYChengXingJ", "Ma Shan Zheng", "KaiTi", "STKaiti", cursive;
}

html {
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  overflow-x: clip;
}

html.elder-mode {
  font-size: 19px;
}

html.elder-mode body {
  line-height: 1.75;
}

body {
  background-color: var(--color-base-100);
  color: var(--color-base-content);
  overflow-x: clip;
}

.font-serif-brand {
  font-family: var(--font-serif-brand);
}

.font-calligraphy {
  font-family: var(--font-calligraphy);
}

.site-container {
  width: 100%;
  max-width: 1296px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 1360px) {
  .site-container {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Header Campus Banner */
.portal-header-bg {
  background-color: #e2f0ff;
  background-image: linear-gradient(180deg, rgba(226, 240, 255, 0.05) 0%, rgba(226, 240, 255, 0.14) 80%, rgba(255, 255, 255, 0.25) 100%), url("../img/header-banner.jpg");
  background-size: cover;
  background-position: center 45%;
}

.brand-title-outline {
  color: #0466d7;
  text-shadow:
    -2px -2px 0 #ffffff,
     2px -2px 0 #ffffff,
    -2px  2px 0 #ffffff,
     2px  2px 0 #ffffff,
     0   -2px 0 #ffffff,
     0    2px 0 #ffffff,
    -2px  0   0 #ffffff,
     2px  0   0 #ffffff,
     0    3px 10px rgba(4, 102, 215, 0.22);
}

.brand-subtitle-outline {
  color: #0466d7;
  text-shadow:
    -1px -1px 0 #ffffff,
     1px -1px 0 #ffffff,
    -1px  1px 0 #ffffff,
     1px  1px 0 #ffffff;
}

.splash-title-shadow {
  text-shadow: 0 4px 18px rgba(0, 32, 80, 0.48), 0 1px 4px rgba(0, 0, 0, 0.35);
}

/* Curved Desktop Navigation Bar */
.curved-nav-wrapper {
  position: relative;
  background-color: var(--color-base-100);
}

.curved-nav-top-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  background-color: #0466d7;
  z-index: 1;
}

.curved-nav-silhouette {
  position: relative;
  max-width: 1472px;
  height: 72px;
  margin: 0 auto;
  z-index: 2;
}

.curved-nav-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.curved-nav-links {
  position: relative;
  z-index: 3;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4.2vw, 66px);
}

.curved-nav-link {
  position: relative;
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  padding: 6px 4px;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

@media (min-width: 1280px) {
  .curved-nav-link {
    font-size: 28px;
  }
}

.curved-nav-link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.curved-nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 50px;
  height: 6px;
  border-radius: 999px;
  background-color: #ffc37f;
}

/* Mobile Nav Bar matching Figma 手机端 */
.mobile-nav-band {
  background-color: #0466d7;
  color: #ffffff;
}

.mobile-nav-link {
  position: relative;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  padding: 4px 2px;
}

.mobile-nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background-color: #ffc37f;
}

/* News & List rows */
.news-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding: 12px 4px;
  border-bottom: 1px solid #d4e4f8;
  transition: background-color 0.18s ease, padding-left 0.18s ease;
}

.news-list-row:hover {
  background-color: rgba(226, 240, 255, 0.35);
  padding-left: 8px;
}

.news-bullet {
  width: 8px;
  height: 8px;
  background-color: #075ad5;
  flex-shrink: 0;
  border-radius: 1px;
}

/* Section Decorative Diamond Heading */
.sec-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.sec-heading-line {
  flex: 1;
  max-width: 520px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #bfd9f6 100%);
}

.sec-heading-line.right {
  background: linear-gradient(90deg, #bfd9f6 0%, transparent 100%);
}

.sec-deco-squares {
  position: relative;
  width: 26px;
  height: 28px;
  flex-shrink: 0;
}

.sec-deco-squares span:nth-child(1) {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #006fd1;
  top: 7px;
  left: 6px;
  border-radius: 2px;
}

.sec-deco-squares span:nth-child(2) {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #9dd1ff;
  top: 0;
  left: 0;
  border-radius: 2px;
  opacity: 0.85;
}

.sec-deco-squares span:nth-child(3) {
  position: absolute;
  width: 9px;
  height: 9px;
  background: #4ebce5;
  bottom: 0;
  right: 0;
  border-radius: 2px;
}

/* Home 3D Coverflow */
.coverflow-stage {
  position: relative;
  width: 100%;
  height: 358px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.coverflow-card {
  position: absolute;
  transition: all 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(4, 52, 120, 0.18);
  cursor: pointer;
}

.coverflow-card.is-center {
  left: 50%;
  width: 638px;
  max-width: 74%;
  height: 358px;
  z-index: 3;
  transform: translateX(-50%);
  opacity: 1;
}

.coverflow-card.is-left {
  left: 0;
  width: 439px;
  max-width: 50%;
  height: 291px;
  z-index: 2;
  transform: none;
  opacity: 0.92;
}

.coverflow-card.is-right {
  right: 0;
  width: 439px;
  max-width: 50%;
  height: 291px;
  z-index: 2;
  transform: none;
  opacity: 0.92;
}

@media (max-width: 767px) {
  .coverflow-stage {
    height: 250px;
  }
  .coverflow-card.is-center {
    left: 50%;
    width: 78%;
    max-width: none;
    height: 236px;
    transform: translateX(-50%);
  }
  .coverflow-card.is-left {
    left: 0;
    width: 62%;
    max-width: none;
    height: 190px;
    transform: none;
  }
  .coverflow-card.is-right {
    right: 0;
    width: 62%;
    max-width: none;
    height: 190px;
    transform: none;
  }
}

/* Enterprise Window Horizontal Accordion (Desktop) */
.ew-accordion {
  gap: 20px;
  min-height: 482px;
}

.ew-acc-tab {
  width: 130px;
  flex-shrink: 0;
  border-radius: 12px;
  background-color: #d4e8ff;
  background-image: linear-gradient(180deg, rgba(212, 232, 255, 0.55), rgba(212, 232, 255, 0.88)), url("../img/ew-tab-pattern.jpg");
  background-size: cover;
  background-position: center;
  color: #0466d7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 28px 12px;
  cursor: pointer;
  transition: all 0.28s ease;
  border: 1px solid rgba(4, 102, 215, 0.12);
}

.ew-acc-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(4, 102, 215, 0.15);
}

.ew-acc-tab.active {
  background-color: #0265d8;
  background-image: linear-gradient(180deg, rgba(2, 101, 216, 0.85), rgba(4, 102, 215, 0.92)), url("../img/ew-tab-pattern.jpg");
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(2, 101, 216, 0.28);
}

.ew-acc-tab-label {
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.12em;
  font-size: 30px;
  font-weight: 700;
}

.ew-acc-panel {
  flex: 1;
  min-width: 0;
}

/* Investment Overview Cutout Corner Cards */
.inv-frame-card {
  position: relative;
  padding: 12px;
  border: 1px solid #0060d0;
  background: rgba(255, 255, 255, 0.45);
}

.inv-frame-card::before,
.inv-frame-card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: #0060d0;
  pointer-events: none;
}

.inv-frame-card::before {
  top: -1px;
  left: -1px;
  border-top: 3px solid #0060d0;
  border-left: 3px solid #0060d0;
}

.inv-frame-card::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 3px solid #0060d0;
  border-right: 3px solid #0060d0;
}

/* High contrast mode helpers */
[data-theme="yaan-a11y"] .news-list-row {
  border-bottom-color: #374151;
}

[data-theme="yaan-a11y"] .brand-title-outline,
[data-theme="yaan-a11y"] .brand-subtitle-outline {
  text-shadow: none;
  color: #ffd54f;
}

@media print {
  .no-print {
    display: none !important;
  }
}
