/* jiaoyi.mba · 东方交易学院 · style.css
   视觉基底沿用 laoyu.ai，加入"学院"专属元素：
   - 拉丁副标（Georgia italic）做 section subtitle
   - 罗马数字 I/II/III 做学制卡片
   - 学院徽章 SVG (#seal symbol，inline in index.html)
   - 院墙红 --wall 作为 logo/CTA hover 的深红
*/

:root {
  --bg: #f5f1e8;
  --paper: #efe8d6;
  --text: #2c2620;
  --accent: #8b5a3c;
  --seal: #b03a28;
  --wall: #7a2218;           /* 院墙红，logo 章纹 + CTA hover 用 */
  --muted: #8a8175;
  --border: #d4c8b0;
  --fill: rgba(176, 58, 40, 0.045);
  --fill-border: rgba(139, 90, 60, 0.55);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Songti SC", "Songti TC", "STSong", "SimSun", "宋体", Georgia, serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.9;
}

a { color: inherit; text-decoration: none; }

/* —— 顶部 nav —— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 232, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
}

@supports not ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  .site-nav { background: rgba(245, 241, 232, 0.98); }
}

.site-nav .brand {
  font-size: 16px;
  letter-spacing: 6px;
  margin-right: -6px;
  color: var(--text);
}

.site-nav .nav-links {
  display: flex;
  gap: 28px;
}

.site-nav .nav-links a {
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--muted);
  transition: color 0.2s;
}

.site-nav .nav-links a:hover { color: var(--accent); }
.site-nav .nav-links a.external {
  color: var(--seal);
  letter-spacing: 3px;
  margin-right: -3px;
}

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  font-size: 22px; color: var(--text);
  padding: 4px 10px; line-height: 1;
  font-family: inherit;
}
.nav-toggle:hover { color: var(--seal); }

/* —— section 通用 —— */
section {
  scroll-margin-top: 70px;
  padding: 88px 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.section-mark {
  text-align: center;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 8px;
  opacity: 0.55;
  margin-bottom: 56px;
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: normal;
  letter-spacing: 24px;
  margin-right: -24px;
  margin-bottom: 12px;
  color: var(--text);
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 4px;
  margin-right: -4px;
  margin-bottom: 64px;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
}

/* —— Hero —— */
.hero {
  min-height: calc(92vh - 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px 48px;
  max-width: none;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "易";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(280px, 50vw, 560px);
  color: var(--seal);
  opacity: 0.022;
  font-weight: 600;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  line-height: 1;
  font-family: "Songti SC", "STSong", serif;
}

.hero > * { position: relative; z-index: 1; }

.hero-seal-wrap {
  width: 132px;
  height: 132px;
  margin-bottom: 28px;
  animation: fadeInUp 1.4s ease-out both;
}

.hero-seal {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(176,58,40,0.22));
}

.hero-est {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--muted);
  margin-bottom: 18px;
  animation: fadeInUp 1.4s ease-out 0.2s both;
}

.hero-name {
  font-size: 56px;
  letter-spacing: 20px;
  margin-right: -20px;
  font-weight: normal;
  margin-bottom: 14px;
  color: var(--text);
  animation: fadeInUp 1.4s ease-out 0.4s both;
}

.hero-domain {
  color: var(--seal);
  font-size: 13px;
  letter-spacing: 6px;
  margin-right: -6px;
  margin-bottom: 28px;
  font-family: Georgia, serif;
  animation: fadeInUp 1.4s ease-out 0.55s both;
}

.hero-sub-cn {
  color: var(--text);
  font-size: 16px;
  letter-spacing: 14px;
  margin-right: -14px;
  margin-bottom: 8px;
  opacity: 0.78;
  animation: fadeInUp 1.4s ease-out 0.7s both;
}

.hero-sub-en {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 4px;
  margin-right: -4px;
  font-family: Georgia, serif;
  font-style: italic;
  animation: fadeInUp 1.4s ease-out 0.85s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-ctas {
  margin-top: 40px;
  animation: fadeInUp 1.4s ease-out 1s both;
}

.hero-cta-primary {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 6px;
  margin-right: -6px;
  padding: 12px 32px;
  background: var(--seal);
  color: #f2ecdb;
  border: 1px solid var(--seal);
  transition: all 0.25s;
}

.hero-cta-primary:hover {
  background: var(--wall);
  border-color: var(--wall);
}

.hero-scroll {
  margin-top: 48px;
  color: var(--muted);
  font-size: 16px;
  opacity: 0.45;
  animation: bob 2.5s ease-in-out infinite;
}

.hero-scroll:hover { color: var(--accent); opacity: 0.9; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* —— Manifesto —— */
.manifesto-body {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
  font-size: 16px;
  line-height: 2.3;
  color: var(--text);
}

.manifesto-body p { margin: 0; }
.manifesto-body p + p { margin-top: 1em; }
.manifesto-body .pad { margin-top: 1.4em; }
.manifesto-body .quote {
  color: var(--accent);
  font-style: italic;
  margin-top: 1.8em;
}
.manifesto-body .signature {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 2px;
  margin-right: -2px;
  margin-top: 1.6em;
}
.manifesto-body hr.break {
  border: none;
  border-top: 1px solid var(--border);
  width: 60px;
  margin: 2.2em auto;
  opacity: 0.55;
}

/* —— 三阶研习 —— */
.curricula-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 0;
}

.curr-card {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.4);
  padding: 40px 28px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
  position: relative;
}

.curr-card:hover {
  border-color: var(--accent);
  background: rgba(255,255,255,0.65);
  transform: translateY(-3px);
  box-shadow: 0 8px 22px -12px rgba(44,38,32,0.3);
}

.curr-card .roman {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  color: var(--seal);
  font-size: 28px;
  letter-spacing: 3px;
  margin-right: -3px;
  opacity: 0.72;
  margin-bottom: 14px;
}

.curr-card h3 {
  font-size: 24px;
  font-weight: normal;
  letter-spacing: 10px;
  margin-right: -10px;
  margin-bottom: 8px;
  color: var(--text);
}

.curr-card .latin {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 12px;
  letter-spacing: 3px;
  margin-right: -3px;
  color: var(--muted);
  margin-bottom: 28px;
}

.curr-card .curr-body {
  font-size: 14px;
  line-height: 2;
  color: var(--text);
  flex: 1;
  margin-bottom: 22px;
}

.curr-card .curr-price {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.curr-card .curr-link {
  color: var(--seal);
  font-size: 12px;
  letter-spacing: 4px;
  margin-right: -4px;
}

/* —— 院长 —— */
.rector-body {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}

.rector-name {
  font-size: 32px;
  letter-spacing: 16px;
  margin-right: -16px;
  margin-bottom: 16px;
  color: var(--text);
}

.rector-desc {
  font-size: 13px;
  letter-spacing: 4px;
  margin-right: -4px;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 2.2;
}

.rector-story {
  font-size: 15px;
  line-height: 2.3;
  color: var(--text);
  margin-bottom: 36px;
}

.rector-link {
  display: inline-block;
  color: var(--seal);
  font-size: 13px;
  letter-spacing: 4px;
  margin-right: -4px;
  padding: 11px 28px;
  border: 1px solid var(--seal);
  transition: all 0.25s;
}

.rector-link:hover {
  background: var(--seal);
  color: #f2ecdb;
}

/* —— 入校（留资表单）—— */
.join {
  text-align: center;
}

.join-pitch {
  max-width: 480px;
  margin: 0 auto 24px;
  font-size: 15px;
  line-height: 2.2;
  color: var(--text);
}

.join-gifts {
  max-width: 460px;
  margin: 0 auto 28px;
  font-size: 14px;
  line-height: 2.1;
  color: var(--accent);
  letter-spacing: 1px;
  text-align: center;
}

.join-coda {
  max-width: 480px;
  margin: 0 auto 36px;
  font-size: 13px;
  line-height: 2.1;
  color: var(--muted);
  letter-spacing: 2px;
  margin-right: -2px;
}

/* —— 学院筹建中 · 占位（表单未上线时显示）—— */
.join-coming {
  max-width: 480px;
  margin: 0 auto;
  padding: 36px 32px;
  border: 1px dashed var(--fill-border);
  background: var(--fill);
  text-align: center;
  border-radius: 2px;
}

.join-coming .coming-tag {
  font-size: 11px;
  letter-spacing: 5px;
  margin-right: -5px;
  color: var(--seal);
  margin-bottom: 18px;
  opacity: 0.85;
}

.join-coming p {
  font-size: 14px;
  line-height: 2.1;
  color: var(--text);
  margin: 0;
}

.join-coming .coming-cta {
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 1px;
  line-height: 2;
}

.join-coming .coming-cta a {
  color: var(--seal);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: border-color 0.2s;
}

.join-coming .coming-cta a:hover {
  border-bottom-color: var(--seal);
}

.join-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto 28px;
  justify-content: center;
}

.join-form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.5);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  letter-spacing: 1px;
}

.join-form input[type="email"]:focus {
  border-color: var(--accent);
}

.join-form button {
  padding: 12px 26px;
  background: var(--seal);
  color: #f2ecdb;
  border: 1px solid var(--seal);
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 4px;
  margin-right: -4px;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}

.join-form button:hover {
  background: var(--wall);
  border-color: var(--wall);
}

.join-note {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--muted);
  line-height: 2;
}

.join-note a {
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: border-color 0.2s;
}

.join-note a:hover {
  border-bottom-color: var(--accent);
}

/* —— 留资反馈（成功/失败） —— */
.join-status {
  max-width: 460px;
  margin: -8px auto 24px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--accent);
  letter-spacing: 1px;
  text-align: center;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.join-status.error {
  color: var(--seal);
  border-color: rgba(176, 58, 40, 0.35);
}

/* —— Footer —— */
.site-footer {
  text-align: center;
  padding: 64px 24px 48px;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}

.site-footer .footer-seal {
  width: 60px;
  height: 60px;
  margin: 0 auto 22px;
  opacity: 0.85;
}

.site-footer .footer-seal svg {
  width: 100%;
  height: 100%;
  display: block;
}

.site-footer .footer-cn {
  font-size: 14px;
  letter-spacing: 8px;
  margin-right: -8px;
  color: var(--text);
  margin-bottom: 6px;
  opacity: 0.85;
}

.site-footer .footer-en {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 11px;
  letter-spacing: 3px;
  margin-right: -3px;
  color: var(--muted);
  margin-bottom: 6px;
}

.site-footer .footer-est {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  opacity: 0.7;
  margin-bottom: 20px;
}

.site-footer .footer-link {
  font-size: 12px;
  letter-spacing: 3px;
  margin-right: -3px;
  color: var(--muted);
  margin-bottom: 22px;
}

.site-footer .footer-link a {
  color: var(--seal);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.site-footer .footer-link a:hover {
  border-bottom-color: var(--seal);
}

.site-footer .footer-mini {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  opacity: 0.55;
  line-height: 1.85;
}

/* —— 合规说明（footer 内更显眼的免责声明） —— */
.site-footer .footer-disclaimer {
  max-width: 480px;
  margin: 16px auto 0;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
  text-align: left;
}

.site-footer .footer-disclaimer .disclaimer-title {
  text-align: center;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 10px;
  opacity: 0.8;
}

.site-footer .footer-disclaimer p {
  font-size: 12px;
  letter-spacing: 0.5px;
  line-height: 1.95;
  color: var(--muted);
  margin: 0 0 6px 0;
}

.site-footer .footer-disclaimer p:last-child {
  margin-bottom: 0;
}

/* —— Responsive —— */
@media (max-width: 880px) {
  .curricula-grid { grid-template-columns: 1fr; }
  .hero-name { font-size: 44px; letter-spacing: 14px; margin-right: -14px; }
  .section-title { font-size: 28px; letter-spacing: 16px; margin-right: -16px; }
  section { padding: 72px 20px; }
  .site-nav { padding: 12px 18px; }
  .site-nav .nav-links { gap: 18px; }
  .site-nav .nav-links a { font-size: 12px; letter-spacing: 3px; }
}

@media (max-width: 600px) {
  .hero-seal-wrap { width: 110px; height: 110px; }
  .hero-name { font-size: 34px; letter-spacing: 10px; margin-right: -10px; }
  .hero-sub-cn { font-size: 14px; letter-spacing: 10px; margin-right: -10px; }
  .rector-name { font-size: 26px; letter-spacing: 10px; margin-right: -10px; }
  .join-form { flex-direction: column; }
  .join-form button { width: 100%; }
  .nav-toggle { display: block; }
  .site-nav .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 6px;
    background: rgba(245, 241, 232, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px 18px;
    box-shadow: 0 8px 20px -12px rgba(44,38,32,0.25);
  }
  .site-nav .nav-links a {
    padding: 8px 4px;
    font-size: 14px; letter-spacing: 4px;
  }
  .site-nav.nav-open .nav-links { display: flex; }
}
