/* ===================================
   哈罗礼德学校课后平台 - 主样式表
   Harrow LiDe School Co-Curricular Portal
   =================================== */

/* 字体导入 - 使用Google Fonts替代本地字体 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&family=Noto+Sans+SC:wght@400;500;700&display=swap');

/* 移动端优化 - 平滑滚动和触摸优化 */
html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
    /* 防止过度滚动导致页面弹跳 */
    overscroll-behavior: none;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
    /* 防止过度滚动 */
    overscroll-behavior-x: none;
    position: relative;
}

/* 手势滑动视觉反馈 */
@media (max-width: 768px) {
    body {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* 滑动返回指示器 */
    body::before {
        content: '←';
        position: fixed;
        left: -50px;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background: rgba(21, 34, 66, 0.9);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 9999;
        pointer-events: none;
    }
    
    body.swiping-back::before {
        left: 20px;
        opacity: 1;
    }
}

@font-face {
    font-family: 'Bembo';
    src: url('../fonts/Bembo标准(BemboStd)_爱给网_aigei_com.otf') format('opentype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Bembo';
    src: url('../fonts/Bembo粗体(Bembo-Bold)_爱给网_aigei_com.otf') format('opentype');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham';
    src: url('../fonts/Gotham-Light-ca7739fa9c72.otf') format('opentype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham';
    src: url('../fonts/Gotham-BookItalic-3f3388c6c0dc.otf') format('opentype');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham';
    src: url('../fonts/Gotham-Bold-2d9c4008ed97.otf') format('opentype');
    font-weight: 700;
    font-display: swap;
}

:root {
    /* 主色系统 - 基于哈罗学校品牌色 */
    --primary-navy: #152242;        /* 主色：深蓝 */
    --primary-navy-light: #1e3158;  /* 浅深蓝 */
    --primary-navy-dark: #0d1629;   /* 深深蓝 */
    
    --accent-gold: #A69867;         /* 副色：金色 */
    --accent-gold-light: #c4b589;   /* 浅金色 */
    --accent-gold-dark: #8a7d52;    /* 深金色 */
    
    /* 辅助色系统 - 莫兰迪色系 */
    --accent-sage: #7a9b8e;         /* 鼠尾草绿 - 用于成功/自然 */
    --accent-terracotta: #c17767;   /* 陶土红 - 用于警告/强调 */
    --accent-slate: #6b7c93;        /* 石板蓝 - 用于信息 */
    --accent-mauve: #9d8b9e;        /* 淡紫 - 用于特殊标记 */
    
    /* 背景色 */
    --bg-cream: #f8f6f1;            /* 奶油白 */
    --bg-light: #ffffff;            /* 纯白 */
    --bg-warm: #faf8f3;             /* 暖白 */
    --bg-dark: #0d1629;             /* 深色背景 */
    --bg-overlay: rgba(21, 34, 66, 0.95);
    
    /* 文字色 */
    --text-primary: #2a2a2a;        /* 主文字 */
    --text-secondary: #5a5a5a;      /* 次要文字 */
    --text-light: #8a8a8a;          /* 浅色文字 */
    --text-inverse: #ffffff;        /* 反色文字 */
    
    /* 功能色 */
    --success: #7a9b8e;             /* 成功 - 鼠尾草绿 */
    --warning: #d4a574;             /* 警告 - 暖金色 */
    --error: #c17767;               /* 错误 - 陶土红 */
    --info: #6b7c93;                /* 信息 - 石板蓝 */
    
    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(21, 34, 66, 0.08);
    --shadow-md: 0 4px 16px rgba(21, 34, 66, 0.12);
    --shadow-lg: 0 8px 32px rgba(21, 34, 66, 0.16);
    --shadow-xl: 0 16px 48px rgba(21, 34, 66, 0.2);
    
    /* 字体 */
    --font-serif: 'Noto Serif SC', serif;
    --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-en-serif: 'Bembo', 'Times New Roman', serif;
    --font-en-sans: 'Gotham', 'Helvetica Neue', Arial, sans-serif;
    
    /* 组合字体：Banner标题用（中文Noto宋体 + 西文Bembo，加粗） */
    --font-banner: 'Bembo', 'Noto Serif SC', serif;
    /* 组合字体：所有其他文字用（中文Noto黑体 + 西文Gotham） */
    --font-body: 'Gotham', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* 间距 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 2.5rem;
    --spacing-2xl: 3rem;
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* 过渡 */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   语言切换按钮 - 液态玻璃效果
   Language Toggle Button - Glassmorphism
   =================================== */
.language-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 10000;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(21, 34, 66, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
}

.language-toggle .flag-emoji {
    display: inline-block;
}

.language-toggle .flag-separator {
    color: #A69867;
    font-weight: 700;
    margin: 0 0.25rem;
    text-shadow: 0 0 8px rgba(166, 152, 103, 0.6);
}

.language-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.6s ease;
}

.language-toggle:hover::before {
    left: 100%;
}

.language-toggle:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 40px rgba(21, 34, 66, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.language-toggle:hover .flag-separator {
    color: #c4b589;
    text-shadow: 0 0 12px rgba(196, 181, 137, 0.8);
}

.language-toggle:active {
    transform: translateY(0) scale(0.98);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .language-toggle {
        top: 15px;
        right: 15px;
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    .language-toggle .flag-separator {
        margin: 0 0.15rem;
    }
}

/* ===================================
   中国新年特效 - 飘落的中国结
   =================================== */

.chinese-knots-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.chinese-knot {
    position: absolute;
    top: -100px;
    animation: fallDown 10s linear infinite, rotateKnotRight 3s ease-in-out infinite;
    opacity: 0.85;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes fallDown {
    0% {
        top: -100px;
        opacity: 0;
    }
    10% {
        opacity: 0.85;
    }
    90% {
        opacity: 0.85;
    }
    100% {
        top: 100vh;
        opacity: 0;
    }
}

@keyframes rotateKnotRight {
    0%, 100% {
        transform: rotate(0deg) translateX(0);
    }
    25% {
        transform: rotate(10deg) translateX(20px);
    }
    50% {
        transform: rotate(0deg) translateX(0);
    }
    75% {
        transform: rotate(-10deg) translateX(-20px);
    }
}

@keyframes rotateKnotLeft {
    0%, 100% {
        transform: rotate(0deg) translateX(0);
    }
    25% {
        transform: rotate(-10deg) translateX(-20px);
    }
    50% {
        transform: rotate(0deg) translateX(0);
    }
    75% {
        transform: rotate(10deg) translateX(20px);
    }
}

/* 祥云背景图案 */
body {
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='400' height='400' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='cloud-pattern' x='0' y='0' width='200' height='200' patternUnits='userSpaceOnUse'%3E%3Cg fill='none' stroke='%23A69867' stroke-width='1.5' opacity='0.6'%3E%3Cpath d='M50,80 Q40,70 35,65 Q30,60 25,60 Q20,60 18,65 Q16,70 20,75 Q25,80 30,80 Q35,80 40,85 Q45,90 50,90 Q55,90 60,85 Q65,80 70,80 Q75,80 80,75 Q84,70 82,65 Q80,60 75,60 Q70,60 65,65 Q60,70 50,80 Z'/%3E%3Cpath d='M45,72 Q42,72 40,74 Q38,76 40,78 Q42,80 45,79' stroke-width='1'/%3E%3Cpath d='M55,72 Q58,72 60,74 Q62,76 60,78 Q58,80 55,79' stroke-width='1'/%3E%3Ccircle cx='50' cy='82' r='2' fill='%23A69867' opacity='0.4'/%3E%3Cpath d='M120,140 Q110,130 105,125 Q100,120 95,120 Q90,120 88,125 Q86,130 90,135 Q95,140 100,140 Q105,140 110,145 Q115,150 120,150 Q125,150 130,145 Q135,140 140,140 Q145,140 150,135 Q154,130 152,125 Q150,120 145,120 Q140,120 135,125 Q130,130 120,140 Z'/%3E%3Cpath d='M115,132 Q112,132 110,134 Q108,136 110,138 Q112,140 115,139' stroke-width='1'/%3E%3Cpath d='M125,132 Q128,132 130,134 Q132,136 130,138 Q128,140 125,139' stroke-width='1'/%3E%3Ccircle cx='120' cy='142' r='2' fill='%23A69867' opacity='0.4'/%3E%3C/g%3E%3C/pattern%3E%3C/defs%3E%3Crect width='400' height='400' fill='url(%23cloud-pattern)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 400px 400px;
}

.app-container {
    position: relative;
    z-index: 1;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .chinese-knot {
        opacity: 0.7;
    }
    
    body::before {
        opacity: 0.025;
        background-size: 300px 300px;
    }
}

@media (max-width: 480px) {
    .chinese-knot {
        opacity: 0.6;
    }
    
    body::before {
        opacity: 0.02;
        background-size: 250px 250px;
    }
}

/* ===================================
   全局重置与基础样式
   =================================== */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-cream);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===================================
   容器与布局
   =================================== */

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===================================
   主页头部
   =================================== */

.main-header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-light) 100%);
    color: var(--text-inverse);
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(166, 152, 103, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(122, 155, 142, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-section {
    margin-bottom: var(--spacing-md);
}

/* 哈罗Logo */
.harrow-logo {
    width: 80px;
    height: auto;
    margin: 0 auto var(--spacing-md);
    display: block;
    animation: fadeInDown 0.6s ease-out;
    filter: drop-shadow(0 2px 8px rgba(166, 152, 103, 0.3));
}

.school-name-en {
    font-family: 'Bembo', serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: var(--spacing-xs);
    animation: fadeInDown 0.6s ease-out;
}

.school-name-cn {
    font-family: 'Bembo', serif;
    font-size: 1.125rem;
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: 0.01em;
    animation: fadeInDown 0.6s ease-out 0.1s backwards;
}

/* 中文模式下使用Noto宋体 */
html[lang="zh-CN"] .school-name-cn {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.5rem;
    font-weight: 700;
    opacity: 0.95;
}

.header-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 0.05em;
    animation: fadeInDown 0.6s ease-out 0.2s backwards;
}

/* ===================================
   Hero Section
   =================================== */

.hero-section {
    background: linear-gradient(to bottom, rgba(166, 152, 103, 0.08) 0%, transparent 100%);
    padding: var(--spacing-2xl) var(--spacing-md);
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: var(--spacing-sm);
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

/* 英文模式下隐藏中文标题 */
html[lang="en"] .hero-title {
    display: none;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.6s ease-out 0.4s backwards;
    line-height: 1.6;
}

/* 英文模式下隐藏英文副标题文字 */
html[lang="en"] .hero-subtitle {
    display: none;
}

.harrow-hat {
    display: none;
    max-width: 200px;
    height: auto;
    margin: 0 auto var(--spacing-lg);
    animation: fadeInUp 0.6s ease-out 0.4s backwards;
    filter: drop-shadow(0 4px 12px rgba(21, 34, 66, 0.2));
}

html[lang="en"] .harrow-hat {
    display: block;
}

.motto-bold {
    font-family: 'Times New Roman', serif;
    font-weight: 700;
    color: var(--text-secondary);
}

.motto-italic {
    font-family: 'Times New Roman', serif;
    font-style: italic;
    color: #A69867;
    font-weight: 400;
}

.hero-values {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.value-badge {
    background: linear-gradient(135deg, #152242 0%, #1e3158 100%);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-body);
    box-shadow: 0 3px 12px rgba(21, 34, 66, 0.3);
    transition: all var(--transition-base);
    animation: fadeInUp 0.6s ease-out calc(0.5s + var(--delay, 0s)) backwards;
    position: relative;
    overflow: hidden;
}

.value-badge:nth-child(1) { 
    --delay: 0s;
    --gradient: linear-gradient(135deg, #7a9b8e 0%, #92b5a8 50%, #aacfc2 100%);
}
.value-badge:nth-child(2) { 
    --delay: 0.1s;
    --gradient: linear-gradient(135deg, #A69867 0%, #c4b589 50%, #e8d4a8 100%);
}
.value-badge:nth-child(3) { 
    --delay: 0.2s;
    --gradient: linear-gradient(135deg, #6b7c93 0%, #8a9bb2 50%, #aabbd2 100%);
}
.value-badge:nth-child(4) { 
    --delay: 0.3s;
    --gradient: linear-gradient(135deg, #c17767 0%, #d89787 50%, #f0b7a7 100%);
}

.value-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
}

.value-badge:hover::before {
    opacity: 1;
}

.value-badge:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(21, 34, 66, 0.4);
}

.value-badge span {
    position: relative;
    z-index: 2;
}

/* ===================================
   主内容区域
   =================================== */

.main-content {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-md);
    width: 100%;
}

/* ===================================
   导航卡片
   =================================== */

.nav-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.nav-card {
    background: var(--bg-light);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out calc(0.6s + var(--card-delay, 0s)) backwards;
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--card-color-1), var(--card-color-2), var(--card-color-1));
    background-size: 200% 100%;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.nav-card:hover::before {
    transform: scaleX(1);
    animation: gradientFlow 2s ease infinite;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.cca-card {
    --card-color-1: var(--accent-sage);
    --card-color-2: var(--accent-gold);
    --card-delay: 0s;
}

.scholarship-card {
    --card-color-1: var(--accent-terracotta);
    --card-color-2: var(--accent-gold);
    --card-delay: 0.1s;
}

.nav-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, #152242 0%, #2a4070 50%, #A69867 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.9;
    transition: all var(--transition-slow);
    filter: drop-shadow(0 2px 4px rgba(21, 34, 66, 0.2));
}

.nav-card:hover .card-icon {
    transform: scale(1.15) rotate(8deg);
    opacity: 1;
    background: linear-gradient(135deg, #A69867 0%, #c4b589 50%, #7a9b8e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(166, 152, 103, 0.4));
    animation: iconPulse 0.6s ease-out;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1.15) rotate(8deg); }
    50% { transform: scale(1.25) rotate(8deg); }
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card-title {
    font-family: var(--font-body);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: var(--spacing-xs);
}

.card-title-en {
    font-size: 1rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: var(--spacing-md);
}

.card-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
}

.feature-tag {
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-body);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* CCA 卡片标签 */
.cca-card .feature-tag:nth-child(1) {
    /* 精英体育 - 金色 */
    background: linear-gradient(135deg, #d4a574 0%, #e8c49a 50%, #f5d8b8 100%);
    color: #152242;
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.cca-card .feature-tag:nth-child(2) {
    /* 音乐学院 - 蓝绿色 */
    background: linear-gradient(135deg, #5a8b8e 0%, #7aabae 50%, #9acbce 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(90, 139, 142, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.cca-card .feature-tag:nth-child(3) {
    /* 学术竞赛 - 绿色 */
    background: linear-gradient(135deg, #6a9b7a 0%, #8abb9a 50%, #aadbb8 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(106, 155, 122, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.cca-card .feature-tag:nth-child(4) {
    /* CCA选课 - 紫色 */
    background: linear-gradient(135deg, #8a7b9e 0%, #aa9bbe 50%, #cabbd8 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(138, 123, 158, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.cca-card .feature-tag:nth-child(5) {
    /* 学生乐队 - 深红色 */
    background: linear-gradient(135deg, #8b2635 0%, #ab3645 50%, #cb4655 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(139, 38, 53, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.cca-card .feature-tag:nth-child(6) {
    /* 学术支持 - 海蓝色 */
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 50%, #38bdf8 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* 奖学金卡片标签 */
.scholarship-card .feature-tag:nth-child(1) {
    /* 约翰·里昂全奖 - 橙色 */
    background: linear-gradient(135deg, #d97a3a 0%, #f99a5a 50%, #ffba7a 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(217, 122, 58, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.scholarship-card .feature-tag:nth-child(2) {
    /* 校长半额奖 - 红色 */
    background: linear-gradient(135deg, #c17767 0%, #e19787 50%, #ffb7a7 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(193, 119, 103, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.scholarship-card .feature-tag:nth-child(3) {
    /* 优才奖 - 黄色 */
    background: linear-gradient(135deg, #d4b557 0%, #f4d577 50%, #fff597 100%);
    color: #152242;
    box-shadow: 0 2px 8px rgba(212, 181, 87, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.feature-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-card:hover .feature-tag {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.nav-card:hover .feature-tag::before {
    opacity: 1;
}

.feature-tag span {
    position: relative;
    z-index: 1;
}

.card-button {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(135deg, #152242 0%, #1e3158 50%, #2a4070 100%);
    color: var(--text-inverse);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(21, 34, 66, 0.3);
}

/* 金色流光动效 - 从左向右 */
.card-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #A69867 0%, #c4b589 50%, #d4c49a 100%);
    transition: left var(--transition-slow);
    z-index: 1;
}

/* 流光动画 - 持续从左向右移动 */
.card-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(212, 196, 154, 0.4) 30%,
        rgba(255, 243, 205, 0.8) 50%,
        rgba(212, 196, 154, 0.4) 70%,
        transparent 100%);
    animation: shimmer 3s ease-in-out infinite;
    z-index: 2;
    transform: skewX(-20deg);
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 150%;
    }
}

.card-button:hover::before {
    left: 0;
}

/* hover时暂停流光动画 */
.card-button:hover::after {
    animation-play-state: paused;
}

.card-button:hover {
    transform: translateX(4px) translateY(-2px);
    box-shadow: 0 6px 25px rgba(166, 152, 103, 0.5);
}

.card-button span,
.card-button svg {
    position: relative;
    z-index: 3;
}

/* ===================================
   快速信息卡片
   =================================== */

.quick-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.info-card {
    background: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: 50px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    animation: fadeInUp 0.6s ease-out calc(0.8s + var(--info-delay, 0s)) backwards;
}

.info-card:nth-child(1) { --info-delay: 0s; }
.info-card:nth-child(2) { --info-delay: 0.1s; }
.info-card:nth-child(3) { --info-delay: 0.2s; }
.info-card:nth-child(4) { --info-delay: 0.3s; }

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.info-card h4 {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-xs);
}

.info-highlight {
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #A69867 0%, #c4b589 50%, #d4c49a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs);
    animation: shimmer 3s ease-in-out infinite;
    background-size: 200% 200%;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.info-detail {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 平台卡片特殊样式 */
.platform-card {
    grid-column: span 1;
    padding: var(--spacing-md);
    text-align: left;
}

.platform-card h4 {
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.platform-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.platform-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--bg-cream);
    border-radius: 50px;
    text-decoration: none;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.platform-link:hover {
    transform: translateX(4px);
    border-color: var(--accent-gold);
    box-shadow: 0 4px 12px rgba(166, 152, 103, 0.2);
}

.platform-logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.platform-logo svg {
    width: 100%;
    height: 100%;
}

.wecom-logo {
    border-radius: 12px;
}

.platform-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.platform-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-navy);
    line-height: 1.3;
}

.platform-name-en {
    font-size: 0.75rem;
    color: var(--text-light);
    font-style: italic;
    line-height: 1.3;
    margin-top: 2px;
}

.platform-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.schoolsbuddy-link:hover .platform-logo {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(74, 29, 111, 0.3);
}

.wecom-link:hover .platform-logo {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* 响应式 - 平台卡片 */
@media (max-width: 1024px) {
    .platform-card {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .quick-info {
        grid-template-columns: 1fr;
    }
    
    .platform-card {
        grid-column: span 1;
    }
    
    .platform-links {
        gap: var(--spacing-xs);
    }
    
    .platform-link {
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .platform-logo {
        width: 36px;
        height: 36px;
    }
    
    .platform-name {
        font-size: 0.875rem;
    }
    
    .platform-name-en {
        font-size: 0.7rem;
    }
    
    .platform-desc {
        font-size: 0.7rem;
    }
}

/* ===================================
   页脚
   =================================== */

.main-footer {
    background: var(--primary-navy);
    color: var(--text-inverse);
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
    margin-top: auto;
    position: relative;
}

.main-footer p {
    margin-bottom: var(--spacing-xs);
    opacity: 0.8;
}

.footer-motto {
    font-family: var(--font-body);
    font-style: normal;
    font-size: 1.125rem;
    opacity: 0.9;
    font-weight: 400;
    margin-bottom: var(--spacing-sm) !important;
}

.footer-department {
    font-family: var(--font-body);
    font-size: 1rem;
    opacity: 0.85;
    font-weight: 400;
    margin-bottom: var(--spacing-sm) !important;
}

.footer-copyright {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* 隐藏的管理入口 */
.admin-entry {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    cursor: pointer;
    opacity: 0.15;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-entry span {
    font-size: 8px;
    color: var(--text-inverse);
    user-select: none;
}

.admin-entry:hover {
    opacity: 0.5;
    transform: scale(1.5);
}

.admin-entry:active {
    opacity: 1;
    transform: scale(2);
}

/* ===================================
   子页面头部
   =================================== */

.sub-header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--accent-slate) 100%);
    color: var(--text-inverse);
    padding: var(--spacing-lg) var(--spacing-md);
    position: relative;
}

.sub-header-top {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.sub-header-logo {
    height: 40px;
    width: auto;
    opacity: 0.9;
    transition: all var(--transition-base);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

.sub-header-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-inverse);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 50px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.back-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(166, 152, 103, 0.3) 0%, rgba(122, 155, 142, 0.3) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
}

.back-button:hover::before {
    opacity: 1;
}

.back-button svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-base);
    position: relative;
    z-index: 2;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-4px);
    box-shadow: 0 4px 15px rgba(166, 152, 103, 0.3);
}

.back-button:hover svg {
    transform: translateX(-4px);
}

.back-button span {
    position: relative;
    z-index: 2;
}

.page-title {
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.page-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    font-style: italic;
}

/* ===================================
   按钮样式
   =================================== */

.primary-button {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: linear-gradient(135deg, #152242 0%, #1e3158 50%, #2a4070 100%);
    color: var(--text-inverse);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(21, 34, 66, 0.3);
    position: relative;
    overflow: hidden;
}

.primary-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #A69867 0%, #c4b589 50%, #e8d4a8 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
}

.primary-button:hover::before {
    opacity: 1;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(166, 152, 103, 0.6);
}

.primary-button span,
.primary-button svg {
    position: relative;
    z-index: 3;
}

.secondary-button {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--bg-light);
    color: var(--primary-navy);
    border: 2px solid var(--primary-navy);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all var(--transition-base);
}

.secondary-button:hover {
    background: var(--primary-navy);
    color: var(--text-inverse);
}

.success-button {
    background: var(--success);
}

.success-button:hover {
    background: var(--accent-sage);
    color: var(--text-inverse);
}

/* ===================================
   动画
   =================================== */

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===================================
   响应式设计
   =================================== */

@media (max-width: 1024px) {
    .nav-cards-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .language-toggle {
        top: 10px;
        right: 10px;
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }
    
    .main-header {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .school-name-en {
        font-size: 1.75rem;
    }
    
    .school-name-cn {
        font-size: 1rem;
    }
    
    html[lang="zh-CN"] .school-name-cn {
        font-size: 1.75rem;
    }
    
    .header-subtitle {
        font-size: 1rem;
    }
    
    .hero-section {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .harrow-hat {
        max-width: 150px;
    }
    
    .hero-values {
        gap: var(--spacing-xs);
    }
    
    .value-badge {
        font-size: 0.85rem;
        padding: 0.5rem var(--spacing-sm);
    }
    
    .nav-cards-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .nav-card {
        padding: var(--spacing-lg);
    }
    
    .card-icon {
        width: 56px;
        height: 56px;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
    
    .card-features {
        gap: var(--spacing-xs);
    }
    
    .feature-tag {
        font-size: 0.8rem;
        padding: 0.375rem 0.625rem;
    }
    
    .quick-info {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .info-card {
        padding: var(--spacing-md);
    }
    
    .info-highlight {
        font-size: 1.75rem;
    }
    
    /* 平台卡片移动端优化 */
    .platform-card {
        padding: var(--spacing-md);
    }
    
    .platform-links {
        gap: var(--spacing-sm);
    }
    
    .platform-link {
        padding: var(--spacing-sm);
    }
    
    .platform-logo {
        width: 36px;
        height: 36px;
    }
    
    .platform-info h5 {
        font-size: 0.9rem;
    }
    
    .platform-info p {
        font-size: 0.75rem;
    }
    
    .main-content {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .main-footer {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .sub-header-logo {
        height: 32px;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .language-toggle {
        top: 8px;
        right: 8px;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .main-header {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .school-name-en {
        font-size: 1.5rem;
    }
    
    .school-name-cn {
        font-size: 0.9rem;
    }
    
    html[lang="zh-CN"] .school-name-cn {
        font-size: 1.5rem;
    }
    
    .header-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .harrow-hat {
        max-width: 120px;
    }
    
    .value-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.625rem;
    }
    
    .nav-card {
        padding: var(--spacing-md);
    }
    
    .card-icon {
        width: 48px;
        height: 48px;
    }
    
    .card-title {
        font-size: 1.375rem;
    }
    
    .card-title-en {
        font-size: 0.9rem;
    }
    
    .card-description {
        font-size: 0.95rem;
    }
    
    .feature-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }
    
    .card-button {
        padding: var(--spacing-sm);
        font-size: 0.95rem;
    }
    
    .info-card {
        padding: var(--spacing-sm);
    }
    
    .info-card h4 {
        font-size: 0.8rem;
    }
    
    .info-highlight {
        font-size: 1.5rem;
    }
    
    .info-detail {
        font-size: 0.85rem;
    }
    
    /* 平台卡片小屏优化 */
    .platform-card {
        padding: var(--spacing-sm);
    }
    
    .platform-card h4 {
        font-size: 0.75rem;
        margin-bottom: var(--spacing-xs);
    }
    
    .platform-links {
        gap: var(--spacing-xs);
        margin-top: var(--spacing-xs);
    }
    
    .platform-link {
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .platform-logo {
        width: 32px;
        height: 32px;
    }
    
    .platform-info h5 {
        font-size: 0.85rem;
    }
    
    .platform-info p {
        font-size: 0.7rem;
    }
    
    .main-content {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .main-footer {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .footer-motto {
        font-size: 1rem;
    }
    
    .footer-department {
        font-size: 0.9rem;
    }
    
    .footer-copyright {
        font-size: 0.8rem;
    }
    
    .sub-header-logo {
        height: 28px;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .page-subtitle {
        font-size: 0.9rem;
    }
    
    .back-button {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.85rem;
    }
    
    .back-button svg {
        width: 16px;
        height: 16px;
    }
}
