/* ============================================ */
/* 圣柏大学 SB University - Academic Stylesheet   */
/* Version: 1.0                                  */
/* ============================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #0B1F3A;
  --navy-light: #132b4d;
  --gold: #C8A96B;
  --gold-light: #dcc48a;
  --gold-dim: #a8884e;
  --ivory: #F4EFE4;
  --ivory-dark: #e8e0d0;
  --white: #ffffff;
  --text-body: #2c2c2c;
  --text-light: #7a7a7a;
  --border: #d4c9b8;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'EB Garamond', 'Georgia', 'Times New Roman', serif;
  color: var(--text-body);
  background: var(--ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}

h1 { font-size: 3rem; line-height: 1.2; }
h2 { font-size: 2.2rem; line-height: 1.3; margin-bottom: 1.5rem; }
h3 { font-size: 1.6rem; line-height: 1.4; }
h4 { font-size: 1.2rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

p { margin-bottom: 1rem; }
a { color: var(--gold-dim); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

.latin {
  font-style: italic;
  letter-spacing: 0.08em;
}

.ornament {
  color: var(--gold);
  font-size: 1.4rem;
  letter-spacing: 0.5em;
  opacity: 0.6;
}

/* ---- Container ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 31, 58, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(200, 169, 107, 0.15);
  transition: background var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-brand {
  font-family: 'EB Garamond', serif;
  font-size: 1.3rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.navbar-brand:hover { color: var(--gold-light); }

.navbar-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.navbar-links a {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(244, 239, 228, 0.7);
  transition: color var(--transition);
}

.navbar-links a:hover { color: var(--gold); }

/* ---- Hero Section ---- */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(160deg, var(--navy) 0%, #081428 50%, var(--navy-light) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(200, 169, 107, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(200, 169, 107, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.hero-seal {
  width: 140px;
  height: 140px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.hero-seal svg {
  width: 100%;
  height: 100%;
}

.hero h1 {
  color: var(--ivory);
  font-size: 3.6rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.hero .latin-line {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  opacity: 0.8;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.hero .motto {
  color: rgba(244, 239, 228, 0.5);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

.hero .divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 2.5rem;
  opacity: 0.5;
}

.hero .tagline {
  color: rgba(244, 239, 228, 0.7);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.3;
  animation: float 3s ease-in-out infinite;
}

.scroll-indicator span {
  color: var(--ivory);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
}

.scroll-indicator .line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

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

/* ---- Section Base ---- */
.section {
  padding: 6rem 0;
}

.section-title {
  text-align: center;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--gold-dim);
  font-style: italic;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.section-divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 1.5rem;
  opacity: 0.4;
}

/* ---- Philosophy Section ---- */
.philosophy {
  background: var(--white);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2rem;
}

.philosophy-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 1px solid var(--border);
  transition: border-color var(--transition), transform var(--transition);
  background: var(--white);
}

.philosophy-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.philosophy-card .latin-title {
  color: var(--gold);
  font-size: 1.4rem;
  font-style: italic;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.philosophy-card h3 {
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.philosophy-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ---- About Section ---- */
.about-section {
  background: var(--ivory);
}

.about-content {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 2;
  color: var(--text-body);
}

.about-content .emphasis {
  color: var(--navy);
  font-size: 1.3rem;
  font-style: italic;
  margin: 2rem 0;
}

/* ---- Seal Showcase ---- */
.seal-showcase {
  background: var(--navy);
  color: var(--ivory);
  text-align: center;
  padding: 5rem 0;
}

.seal-showcase .section-title {
  color: var(--ivory);
}

.seal-showcase .seal-large {
  width: 200px;
  height: 200px;
  margin: 0 auto 2rem;
}

.seal-showcase .seal-text {
  color: var(--gold);
  font-style: italic;
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.seal-showcase .seal-motto {
  color: rgba(244, 239, 228, 0.4);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* ---- Faculties Section ---- */
.faculties {
  background: var(--white);
}

.faculties-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.faculty-card {
  padding: 2.5rem 2rem;
  border-left: 3px solid var(--gold);
  background: var(--ivory);
  transition: background var(--transition), transform var(--transition);
}

.faculty-card:hover {
  background: var(--ivory-dark);
  transform: translateX(4px);
}

.faculty-card h3 {
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.faculty-card .faculty-en {
  color: var(--gold-dim);
  font-size: 0.85rem;
  font-style: italic;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.faculty-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---- Heritage Section ---- */
.heritage {
  background: var(--navy);
  color: var(--ivory);
  text-align: center;
}

.heritage .section-title { color: var(--ivory); }

.heritage-content {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 2;
  opacity: 0.85;
}

.heritage-quote {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--gold);
  margin: 2.5rem 0;
  letter-spacing: 0.03em;
  line-height: 1.6;
}

.heritage-quote::before { content: '“'; }
.heritage-quote::after { content: '”'; }

/* ---- Footer ---- */
.footer {
  background: #060e1a;
  color: rgba(244, 239, 228, 0.4);
  padding: 3rem 0;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  line-height: 2;
}

.footer .latin-footer {
  color: var(--gold-dim);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  opacity: 0.6;
}

.footer .footer-divider {
  width: 30px;
  height: 1px;
  background: var(--gold);
  margin: 1rem auto;
  opacity: 0.2;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  html { font-size: 14px; }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }

  .hero { padding: 120px 0 80px; min-height: auto; }
  .hero h1 { font-size: 2.4rem; }
  .hero-seal { width: 100px; height: 100px; }

  .navbar-links { gap: 1rem; }
  .navbar-links a { font-size: 0.65rem; letter-spacing: 0.1em; }

  .philosophy-grid { grid-template-columns: 1fr; }
  .faculties-grid { grid-template-columns: 1fr; }

  .section { padding: 4rem 0; }
  .container { padding: 0 1.5rem; }

  .scroll-indicator { display: none; }
}

@media (max-width: 480px) {
  html { font-size: 13px; }
  .navbar .container { height: 56px; }
}
