/* 弗莱国际大学官网样式：国际学院风、响应式布局 */
:root {
  --navy: #102a43;
  --navy-deep: #081d30;
  --blue: #244f75;
  --gold: #c6a15b;
  --ivory: #f7f3ea;
  --paper: #fffdf8;
  --ink: #17212b;
  --muted: #68737d;
  --line: rgba(16, 42, 67, 0.16);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
  --sans: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --shadow: 0 24px 60px rgba(8, 29, 48, 0.14);
  --shadow-soft: 0 16px 40px rgba(8, 29, 48, 0.10);
  --gold-2: #d8b878;
  --gold-deep: #8a6d2f;
  --gold-soft: rgba(198, 161, 91, 0.14);
  --navy-2: #16324d;
  --ring: 0 0 0 3px rgba(198, 161, 91, 0.45);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.7; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin-top: 0; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

/* 键盘焦点：清晰、统一、可见 */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
/* 仅鼠标点击时不显示轮廓，键盘操作才显示（:focus-visible 已处理，这里移除旧 outline 兜底） */
a:focus, button:focus, input:focus, select:focus, textarea:focus, [tabindex]:focus { outline: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* 跳转到主内容 */
.skip-link { position: fixed; top: 10px; left: 50%; transform: translate(-50%, -180%); z-index: 60; padding: 11px 20px; background: var(--navy); color: var(--gold); font-weight: 700; letter-spacing: .04em; border-radius: 8px; box-shadow: var(--shadow); transition: transform .25s ease; }
.skip-link:focus, .skip-link:focus-visible { transform: translate(-50%, 0); }

/* 页面背景氛围：顶部柔和冷光，营造国际学院质感 */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(120% 55% at 50% -12%, rgba(36, 79, 117, .07), transparent 60%); }

/* 锚点跳转时为固定头部预留空间 */
:where(section[id], footer[id]) { scroll-margin-top: 92px; }

.utility-bar { color: rgba(255,255,255,.78); background: var(--navy-deep); font-size: 12px; letter-spacing: .08em; }
.utility-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; }
.utility-inner p { margin: 0; }
.utility-inner nav { display: flex; gap: 24px; }
.utility-inner a:hover { color: var(--gold); }

.site-header { position: relative; z-index: 20; background: rgba(255,253,248,.97); border-bottom: 1px solid var(--line); }
.main-nav-wrap { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand-mark { width: 48px; height: 54px; display: grid; place-items: center; color: var(--gold); border: 1px solid var(--gold); font: 700 29px/1 Georgia, serif; position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(198,161,91,.4); }
.brand-copy { display: flex; flex-direction: column; }
.brand-copy strong { color: var(--navy); font: 700 20px/1.25 var(--serif); letter-spacing: .14em; }
.brand-copy small { color: var(--muted); margin-top: 5px; font-size: 9px; letter-spacing: .12em; }
.main-nav { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 600; }
.main-nav a { position: relative; padding: 31px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 22px; height: 2px; background: var(--gold); transition: right .25s ease; }
.main-nav a:hover::after { right: 0; }
.menu-toggle { display: none; position: relative; z-index: 25; border: 0; background: none; padding: 12px; border-radius: 8px; cursor: pointer; }
.menu-toggle:hover { background: rgba(16, 42, 67, .06); }
.menu-toggle > span:not(.sr-only) { display: block; width: 25px; height: 2px; margin: 5px 0; background: var(--navy); border-radius: 2px; transition: transform .3s ease, opacity .25s ease; }
.menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero { min-height: 680px; position: relative; display: grid; align-items: center; color: white; overflow: hidden; background-image: linear-gradient(90deg, rgba(5,20,34,.92) 0%, rgba(8,29,48,.78) 35%, rgba(8,29,48,.28) 68%, rgba(8,29,48,.12) 100%), url("fiu-campus-hero.png"); background-size: cover; background-position: center 57%; background-repeat: no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,17,29,.12) 0%, transparent 48%, rgba(4,17,29,.28) 100%); pointer-events: none; }
.hero::after { content: none; }

@media (max-width: 900px) {
  .hero { background-position: 58% center; }
}

@media (max-width: 620px) {
  .hero { background-position: 64% center; }
}
.hero-content { position: relative; z-index: 2; padding-block: 110px; }
.eyebrow, .kicker { color: var(--gold-deep); font-size: 12px; font-weight: 700; letter-spacing: .22em; }
/* 深色背景（首屏/研究/校园/内页头图）上的 kicker 仍用原金色，对比更稳 */
.hero .eyebrow, .research-panel .kicker, .campus .kicker, .page-hero .kicker, .article-hero .kicker { color: var(--gold); }
.hero h1 { max-width: 820px; margin-bottom: 24px; font: 700 clamp(48px, 6.4vw, 86px)/1.16 var(--serif); letter-spacing: .02em; }
.hero-lead { max-width: 650px; color: rgba(255,255,255,.8); font-size: 18px; }
.hero-actions { display: flex; gap: 14px; margin-top: 38px; }
.button { min-height: 50px; padding: 0 28px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; letter-spacing: .08em; transition: transform .25s, background .25s, color .25s, box-shadow .25s; }
.button:hover { transform: translateY(-3px); }
.button:active { transform: translateY(-1px) scale(.99); }
.button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.button-gold { color: #17212b; background: var(--gold); }
.button-gold:hover { background: var(--gold-2); box-shadow: 0 12px 26px rgba(198, 161, 91, .4); }
.button-ghost { color: white; border: 1px solid rgba(255,255,255,.55); }
.button-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.button-outline { align-self: flex-start; color: white; border: 1px solid var(--gold); }
.button-outline:hover { background: var(--gold); color: var(--navy); }
.scroll-cue { position: absolute; z-index: 3; right: 5vw; bottom: 42px; display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.65); font-size: 12px; letter-spacing: .15em; }
.scroll-cue span { width: 42px; height: 1px; background: var(--gold); }

/* 首屏入场动效（仅在有 JS 时启用，无 JS 直接静态展示） */
.js .hero-content > * { animation: heroRise .9s cubic-bezier(.2, .7, .2, 1) both; }
.js .hero-content .eyebrow { animation-delay: .04s; }
.js .hero-content h1 { animation-delay: .12s; }
.js .hero-content .hero-lead { animation-delay: .2s; }
.js .hero-content .hero-actions { animation-delay: .28s; }
@keyframes heroRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
.scroll-cue { animation: cueFloat 2.4s ease-in-out infinite; }
@keyframes cueFloat { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }

.notice-strip { color: white; background: var(--blue); }
.notice-inner { min-height: 68px; display: flex; align-items: center; gap: 28px; }
.notice-inner strong { padding: 5px 12px; color: var(--navy-deep); background: var(--gold); font-size: 12px; }
.notice-inner p { margin: 0; flex: 1; }
.notice-inner a { color: #f4ddb1; font-weight: 700; }

.section { padding: 110px 0; }
.intro { background: var(--paper); }
.intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 9vw; align-items: start; }
.section-heading h2, .research-panel h2, .campus h2, .admissions h2 { color: var(--navy); font: 700 clamp(34px, 4vw, 54px)/1.25 var(--serif); }
.intro-copy .lead { color: var(--navy); font: 600 23px/1.65 var(--serif); }
.intro-copy > p:not(.lead) { color: var(--muted); }
.text-link { display: inline-flex; gap: 18px; align-items: center; margin-top: 15px; color: var(--navy); font-weight: 700; }
.text-link span { color: var(--gold-deep); font-size: 21px; transition: transform .2s; }
.text-link:hover span { transform: translateX(5px); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 90px; border-block: 1px solid var(--line); }
.stats-grid article { min-height: 170px; padding: 35px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.stats-grid article:last-child { border-right: 0; }
.stats-grid strong { color: var(--navy); font: 700 44px/1 var(--serif); }
.stats-grid span { margin-top: 13px; color: var(--muted); font-size: 13px; }

.schools { background: var(--ivory); }
.heading-row { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 52px; }
.school-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.3); }
.school-card { min-height: 295px; position: relative; padding: 38px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; color: white; background: var(--blue); }
.school-card:nth-child(2) { background: #173955; }
.school-card:nth-child(3) { background: #6a5140; }
.school-card:nth-child(4) { background: var(--navy); }
.school-card::before { content: ""; position: absolute; width: 240px; height: 240px; right: -100px; top: -100px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; transition: transform .4s; }
.school-card:hover::before { transform: scale(1.25); }
.card-number { color: var(--gold); font-size: 12px; letter-spacing: .2em; }
.school-card p { margin-bottom: 8px; color: rgba(255,255,255,.62); font-size: 13px; }
.school-card h3 { margin-bottom: 5px; font: 700 31px/1.3 var(--serif); }
.school-card span { color: rgba(255,255,255,.5); font-size: 12px; letter-spacing: .08em; }
.school-card > a { position: absolute; right: 30px; bottom: 30px; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; font-size: 23px; transition: background .25s, color .25s; }
.school-card > a:hover { color: var(--navy); background: var(--gold); border-color: var(--gold); }

.research-feature { min-height: 690px; display: grid; grid-template-columns: 1.2fr .8fr; }
.research-visual { background: linear-gradient(rgba(11,32,49,.25), rgba(11,32,49,.3)), radial-gradient(circle at 45% 30%, #b8c6c4, #59727a 35%, #1b3548 100%); position: relative; overflow: hidden; }
.research-visual::after { content: "DISCOVERY"; position: absolute; left: 40px; bottom: 25px; color: rgba(255,255,255,.18); font: 700 clamp(55px,8vw,120px)/1 Georgia, serif; letter-spacing: .08em; }
.research-panel { padding: clamp(55px, 7vw, 100px); display: flex; flex-direction: column; justify-content: center; color: white; background: var(--navy-deep); }
.research-panel h2 { color: white; }
.research-panel > p:not(.kicker) { color: rgba(255,255,255,.66); }
.research-panel ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 25px; padding: 25px 0; margin: 15px 0 30px; border-block: 1px solid rgba(255,255,255,.15); }
.research-panel li { display: flex; flex-direction: column; }
.research-panel li strong { color: var(--gold); font: 700 32px/1.2 var(--serif); }
.research-panel li span { margin-top: 8px; color: rgba(255,255,255,.58); font-size: 12px; }

.news-grid { display: grid; grid-template-columns: 1.35fr .8fr .8fr; gap: 22px; }
.news-card { background: white; box-shadow: 0 12px 35px rgba(16,42,67,.08); transition: transform .3s, box-shadow .3s; }
.news-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.news-image { height: 210px; background-size: cover; }
.featured-news .news-image { height: 320px; }
.news-image-one { background: linear-gradient(135deg, rgba(16,42,67,.08), rgba(16,42,67,.6)), linear-gradient(35deg, #c8bca7, #708896 52%, #173955); }
.news-image-two { background: linear-gradient(145deg, rgba(198,161,91,.2), rgba(16,42,67,.45)), linear-gradient(30deg, #8e745b, #d4c39f); }
.news-image-three { background: linear-gradient(145deg, rgba(16,42,67,.1), rgba(16,42,67,.5)), linear-gradient(30deg, #9cb4b1, #365b6e); }
.news-body { padding: 27px; }
.news-body .meta { color: var(--gold-deep); font-size: 11px; font-weight: 700; letter-spacing: .05em; }
.news-body h3 { color: var(--navy); font: 700 22px/1.5 var(--serif); }
.news-body > p:not(.meta) { color: var(--muted); font-size: 14px; }
.news-body a { color: var(--navy); font-weight: 700; font-size: 13px; }

.campus { min-height: 560px; position: relative; display: grid; align-items: center; color: white; background: linear-gradient(90deg, rgba(8,29,48,.92), rgba(8,29,48,.32)), radial-gradient(circle at 72% 45%, #a68b68, #536d72 45%, #102a43); }
.campus-content { position: relative; z-index: 1; }
.campus h2 { max-width: 650px; color: white; }
.campus p:not(.kicker) { max-width: 590px; color: rgba(255,255,255,.74); font-size: 17px; }

.admissions { background: var(--ivory); }
.admissions-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; padding: 70px; color: white; background: var(--navy); box-shadow: var(--shadow); }
.admissions h2 { color: white; }
.admissions-card > div:first-child > p:last-child { color: rgba(255,255,255,.65); }
.admission-links { display: grid; grid-template-columns: 1fr 1fr; }
.admission-links a { min-height: 100px; display: flex; align-items: center; justify-content: space-between; padding: 25px; border: 1px solid rgba(255,255,255,.15); transition: background .25s, color .25s; }
.admission-links a:hover { color: var(--navy-deep); background: var(--gold); }
.admission-links b { color: rgba(255,255,255,.35); font: 400 13px/1 var(--sans); }

.site-footer { padding-top: 75px; color: rgba(255,255,255,.65); background: var(--navy-deep); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 55px; padding-bottom: 65px; }
.brand-light .brand-copy strong { color: white; }
.footer-brand > p { margin-top: 24px; color: var(--gold); letter-spacing: .2em; }
.footer-grid h3 { margin-bottom: 20px; color: white; font: 700 16px/1.2 var(--serif); }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 9px; }
.footer-grid a:hover { color: var(--gold); }
.footer-grid p { margin-bottom: 2px; }
.footer-bottom { min-height: 68px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; }
.footer-bottom p { margin: 0; }

@media (max-width: 900px) {
  .utility-bar { display: none; }
  .site-header { position: sticky; top: 0; }
  .main-nav-wrap { min-height: 76px; flex-wrap: wrap; }
  /* 无 JS 时菜单按钮不显示，导航作为普通流式列表始终可见 */
  .main-nav { flex: 1 0 100%; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 14px 24px 28px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .main-nav a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav a::after { display: none; }
  /* 有 JS 时改为可折叠的固定面板 + 遮罩 */
  .js .menu-toggle { display: block; }
  .js .main-nav { position: fixed; top: 76px; left: 0; right: 0; z-index: 22; box-shadow: 0 24px 40px rgba(8,29,48,.18); opacity: 0; visibility: hidden; transform: translateY(-14px); transition: opacity .28s ease, transform .28s ease, visibility .28s; max-height: calc(100vh - 76px); overflow-y: auto; }
  .js .main-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-overlay { position: fixed; inset: 0; z-index: 16; background: rgba(8, 29, 48, .5); opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility .28s; }
  .nav-overlay.is-open { opacity: 1; visibility: visible; }
  .hero { min-height: 600px; }
  .intro-grid, .research-feature, .admissions-card { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid article:nth-child(2) { border-right: 0; }
  .research-visual { min-height: 430px; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .featured-news { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 30px, 1180px); }
  .brand-mark { width: 41px; height: 46px; }
  .brand-copy strong { font-size: 16px; }
  .brand-copy small { font-size: 7px; }
  .hero { min-height: 620px; }
  .hero h1 { font-size: 43px; }
  .hero-lead { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 260px; }
  .scroll-cue { display: none; }
  .notice-inner { padding-block: 14px; flex-wrap: wrap; gap: 8px 16px; }
  .notice-inner p { flex-basis: calc(100% - 100px); font-size: 13px; }
  .notice-inner a { margin-left: 0; font-size: 12px; }
  .section { padding: 75px 0; }
  .heading-row { align-items: start; flex-direction: column; }
  .stats-grid, .school-grid, .news-grid, .admission-links, .footer-grid { grid-template-columns: 1fr; }
  .stats-grid article { min-height: 135px; border-right: 0; border-bottom: 1px solid var(--line); }
  .school-card { min-height: 260px; }
  .research-panel { padding: 60px 25px; }
  .research-panel ul { grid-template-columns: 1fr; }
  .featured-news { grid-column: auto; }
  .campus { min-height: 530px; }
  .admissions-card { padding: 45px 24px; gap: 35px; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; padding-block: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js .reveal-ready { opacity: 1 !important; transform: none !important; }
  .scroll-cue { animation: none !important; }
}
