/* ===================================
   Qingdao Guoji Foreign Language School
   Modern Official Website Stylesheet
   =================================== */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Modern Institutional Palette */
    --color-primary: #002855;
    /* Deep Navy - Authoritative */
    --color-primary-light: #003B7A;
    --color-accent: #D4AF37;
    /* Champagne Gold - Premium */
    --color-accent-light: #E5C560;
    --color-secondary: #64748B;
    /* Slate Grey - Professional */

    /* Neutrals */
    --color-bg-body: #FFFFFF;
    --color-bg-light: #F8FAFC;
    /* Very light blue-grey */
    --color-bg-dark: #0F172A;
    /* Almost black */

    /* Text */
    --color-text-main: #1E293B;
    --color-text-muted: #64748B;
    --color-text-light: #F1F5F9;

    /* Spacing & Layout */
    --container-width: 1280px;
    --header-height: 80px;
    --section-spacing: 6rem;

    /* Effects */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 40px rgba(0, 0, 0, 0.1);
    --radius-standard: 8px;

    /* Transitions */
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text-main);
    background-color: var(--color-bg-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: var(--color-primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===================================
   Components
   =================================== */

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 4px;
    /* More formal, less rounded */
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    border: 1px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 40, 85, 0.2);
}

.btn-outline {
    background: transparent;
    border: 1px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--color-primary);
}

/* Section Titles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    display: block;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-description {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Language Toggle */
.language-toggle {
    position: fixed;
    top: 24px;
    right: 32px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 12px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lang-btn.active {
    color: var(--color-primary);
    font-weight: 700;
}

.lang-separator {
    color: #CBD5E1;
}

/* ===================================
   Header & Navigation
   =================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s var(--ease-out);
    padding: 1.5rem 0;
    background: transparent;
    /* Start transparent */
}

/* 首页滚动后 或 内页（无 banner）：白底 + 深色文字/logo */
.site-header.scrolled,
.site-header--inner {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.site-header.scrolled .school-name-en,
.site-header--inner .school-name-en {
    color: var(--color-primary);
}

.site-header.scrolled .school-name-zh,
.site-header--inner .school-name-zh {
    color: var(--color-secondary);
}

.site-header.scrolled .logo-link,
.site-header--inner .logo-link {
    color: var(--color-primary);
}

.site-header.scrolled .logo-link .school-name-en,
.site-header--inner .logo-link .school-name-en {
    color: var(--color-primary);
}

.site-header.scrolled .logo-link .school-name-zh,
.site-header--inner .logo-link .school-name-zh {
    color: var(--color-secondary);
}

.site-header.scrolled .main-nav a,
.site-header--inner .main-nav a {
    color: var(--color-text-main);
}

.site-header.scrolled .nav-dropdown .dropdown-menu a,
.site-header--inner .nav-dropdown .dropdown-menu a {
    color: var(--color-text-main);
}

.site-header.scrolled .logo-placeholder,
.site-header--inner .logo-placeholder {
    background-color: var(--color-primary);
    color: white;
}

.site-header.scrolled .logo-placeholder svg,
.site-header--inner .logo-placeholder svg {
    color: white;
}

.site-header.scrolled .school-name-en,
.site-header.scrolled .school-name-zh,
.site-header--inner .school-name-en,
.site-header--inner .school-name-zh {
    text-shadow: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-placeholder {
    width: 56px;
    height: 56px;
    /* background: white; */
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.logo-placeholder img {
    border-radius: 4px;
}

.school-name {
    display: flex;
    flex-direction: column;
}

.school-name-en {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    /* Default white on hero */
    font-family: 'Playfair Display', serif;
    transition: color 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* Legibility on hero */
}

.school-name-zh {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    transition: color 0.3s ease;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* About 下拉菜单 */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    min-width: 180px;
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-standard);
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown .dropdown-menu a {
    color: var(--color-text-main);
    padding: 0.6rem 1.25rem;
    display: block;
    font-size: 0.9rem;
}

.nav-dropdown .dropdown-menu a::after {
    display: none;
}

.nav-dropdown .dropdown-menu a:hover {
    background: var(--color-bg-light);
    color: var(--color-primary);
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    /* Darken for text readability */
    transform: scale(1.05);
    /* Slight zoom for parallax feel effect */
}

.hero-content {
    max-width: 800px;
    color: white;
    position: relative;
    z-index: 1;
}

.hero-supertitle {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    font-weight: 300;
}

/* ===================================
   Stats Bar
   =================================== */
.stats-bar {
    background-color: var(--color-primary);
    color: white;
    padding: 3rem 0;
    position: relative;
    z-index: 10;
    margin-top: -80px;
    /* Overlap hero */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    font-family: 'Playfair Display', serif;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* ===================================
   About Section (Big Image Left)
   =================================== */
.section-padding {
    padding: var(--section-spacing) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-standard);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-accent);
    z-index: -1;
    border-radius: var(--radius-standard);
}

.about-text h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.lead-text {
    font-size: 1.2rem;
    color: var(--color-text-main);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.check-list {
    margin-top: 2rem;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.check-icon {
    color: var(--color-accent);
    font-size: 1.2rem;
}

/* ===================================
   Academics (Cards)
   =================================== */
.bg-light {
    background-color: var(--color-bg-light);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.academic-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-standard);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.academic-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--color-accent);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.academic-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.academic-card p {
    color: var(--color-text-muted);
}

/* ===================================
   Principal Section
   =================================== */
.principal-section {
    background-color: var(--color-bg-dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.principal-bg-pattern {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 50%;
    opacity: 0.05;
    background: repeating-linear-gradient(45deg, white 0, white 1px, transparent 0, transparent 50%);
}

.principal-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.principal-image {
    position: relative;
}

.principal-image img {
    border-radius: var(--radius-standard);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.quote-box {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--color-accent);
    font-style: italic;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ===================================
   Footer
   =================================== */
.site-footer {
    background-color: #0B1120;
    color: white;
    padding-top: 5rem;
    padding-bottom: 2rem;
    border-top: 4px solid var(--color-accent);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo h2 {
    color: white;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.5);
}

.footer-heading {
    color: var(--color-accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-contact li {
    margin-bottom: 1rem;
    opacity: 0.8;
    display: flex;
    gap: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* ===================================
   Principal Page (About Principal)
   =================================== */
.principal-page-main {
    padding-top: calc(var(--header-height) + 2rem);
    min-height: 60vh;
}

.principal-intro-section {
    max-width: 720px;
    margin: 0 auto;
}

.principal-intro .principal-name {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.principal-intro .principal-bio {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.principal-intro .principal-bio p {
    margin-bottom: 1.25rem;
}

.principal-intro .principal-bio p:last-child {
    margin-bottom: 0;
}

.principal-contact {
    padding: 1.25rem 0;
    border-top: 1px solid var(--color-bg-light);
}

.principal-contact-label {
    font-weight: 600;
    color: var(--color-primary);
    margin-right: 0.5rem;
}

.principal-email {
    color: var(--color-accent);
    font-weight: 500;
}

.principal-email:hover {
    text-decoration: underline;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: inherit;
}

/* 校长寄语区块 */
.principal-message-section {
    background-color: var(--color-bg-light);
}

.principal-message-inner {
    max-width: 720px;
    margin: 0 auto;
}

.principal-message-title {
    margin-bottom: 2rem;
}

.principal-message-body {
    margin-bottom: 2.5rem;
}

.principal-message-body p {
    margin-bottom: 1.25rem;
    color: var(--color-text-main);
    line-height: 1.8;
}

.principal-message-body p:last-of-type {
    margin-bottom: 0;
}

.principal-signature {
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: right;
}

.principal-signature-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.principal-signature-title {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 0.15rem;
}

.principal-signature-school {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .features-grid,
    .principal-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 2rem;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .site-header {
        background-color: var(--color-primary);
        padding: 1rem 0;
    }

    .main-nav {
        display: none;
    }

    /* Mobile Menu would go here */
    .hero-title {
        font-size: 2.2rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .image-wrapper::before {
        display: none;
    }

    .stats-bar {
        margin-top: 0;
    }

    .section-spacing {
        padding: 4rem 0;
    }
}