/* ===== 重置样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'MiSans', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    background: #f8f9fa;
}

/* ===== 全屏开场动画 ===== */
/* ===== 高级材质开屏 ===== */
.beginning {
    height: 100vh;
    display: flex;
    align-items: center;
    background: 
        linear-gradient(135deg, rgba(255,107,107,0.15) 0%, rgba(255,217,61,0.15) 100%),
        radial-gradient(circle at 80% 20%, rgba(255,107,107,0.3) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(255,217,61,0.3) 0%, transparent 40%),
        #fff0f0;
    animation: gradientFlow 12s ease infinite;
}

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

.beginning::after {
    background: 
        url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.6"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.2"/></svg>'),
        linear-gradient(45deg, rgba(255,255,255,0.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.05) 25%, transparent 25%);
    background-size: 200% 200%, 30px 30px, 30px 30px;
}

.beginning-text {
    position: relative;
    z-index: 2;
    padding: 0 10%;
    font-size: clamp(2rem, 5vw, 4rem);
    background: linear-gradient(45deg, #ff6b6b, #ff922b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 4px 12px rgba(255,107,107,0.2);
}

.beginning-text::after {
    content: '';
    position: absolute;
    inset: -5px;
    background: linear-gradient(45deg, #ff6b6b33, #ffd93d33);
    filter: blur(20px);
    z-index: -1;
}

/* ===== 丝绸质感卡片 ===== */
.content-card {
    background: 
        linear-gradient(145deg, rgba(255,255,255,0.96), rgba(255,255,255,0.88)),
        radial-gradient(circle at 80% 20%, #ff6b6b11 0%, transparent 50%);
    backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 
        0 8px 32px -8px rgba(0,0,0,0.1),
        inset 0 0 12px rgba(255,255,255,0.4);
}

/* ===== 动态标题装饰 ===== */
.section-title::before {
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    animation: pulse 2s ease infinite;
    box-shadow: 0 0 12px rgba(255,107,107,0.2);
}

@keyframes pulse {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.2); }
}

/* ===== 微交互效果 ===== */
.content-card:hover {
    box-shadow: 
        0 12px 40px -8px rgba(0,0,0,0.15),
        inset 0 0 16px rgba(255,255,255,0.5);
    background: 
        linear-gradient(145deg, rgba(255,255,255,0.98), rgba(255,255,255,0.92)),
        radial-gradient(circle at 20% 80%, #ffd93d11 0%, transparent 50%);
}

/* ===== 响应式优化 ===== */
@media (max-width: 768px) {
    .beginning-text {
        font-size: clamp(1.8rem, 8vw, 3rem);
        padding: 0 8%;
    }
    
    .content-card {
        backdrop-filter: blur(8px);
    }
}

.motion-text {
    display: block;
    margin-bottom: 1rem;
    font-size: 3.5rem;
}

.slogan {
    font-size: 1.5rem;
    opacity: 0.8;
    display: block;
    margin-top: 1rem;
    font-weight: 500;
    color: #666;
    text-shadow: 0 2px 4px rgba(0,0,0,0.08);
    line-height: 1.6;
}

/* ===== 卡片式内容区块 ===== */
.content-section {
    min-height: 50vh;
    padding: 8% 12%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    align-items: center;
}

.content-card {
    background: 
        linear-gradient(145deg, rgba(255,255,255,0.96), rgba(255,255,255,0.88)),
        radial-gradient(circle at 80% 20%, #ff6b6b11 0%, transparent 50%);
    backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 
        0 8px 32px -8px rgba(0,0,0,0.1),
        inset 0 0 12px rgba(255,255,255,0.4);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.content-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 12px 40px -8px rgba(0,0,0,0.15),
        inset 0 0 16px rgba(255,255,255,0.5);
}

/* ===== 动态标题样式 ===== */
.section-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 2rem;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0.6em;
    height: 0.6em;
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
    box-shadow: 0 0 12px rgba(255,107,107,0.2);
}

@keyframes pulse {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.2); }
}

/* ===== 荣誉徽章样式 ===== */
.badge-grid {
    display: grid;
    gap: 2rem;
    padding: 1.5rem;
}

.honor-item {
    background: rgba(255,255,255,0.9);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.honor-item:hover {
    transform: scale(1.05);
}

.medal-icon, .star-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    border-radius: 50%;
}

/* ===== 时间线设计 ===== */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #ff6b6b, #ffd93d);
}

.timeline-event {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 2rem;
}

.event-date {
    font-weight: bold;
    color: #ff6b6b;
    margin-bottom: 0.5rem;
}

.event-date::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 16px;
    height: 16px;
    background: #ff6b6b;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #ff6b6b;
}

.timeline-event.highlight .event-date::before {
    background: #ffd93d;
    box-shadow: 0 0 0 2px #ffd93d;
}

/* ===== 画廊布局 ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.photo-card {
    aspect-ratio: 1;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
}

.photo-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* ===== 名人名言样式 ===== */
blockquote {
    border-left: 4px solid #ff6b6b;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    opacity: 0.9;
}

blockquote footer {
    display: block;
    margin-top: 0.5rem;
    font-style: normal;
    font-size: 0.8em;
    color: #666;
}

/* ===== 深色主题适配 ===== */
.dark-theme .content-card {
    background: rgba(0,0,0,0.1);
    backdrop-filter: blur(16px);
    border-color: rgba(255,255,255,0.1);
}

.dark-theme .honor-item {
    background: rgba(0,0,0,0.2);
}

/* ===== 页脚设计 ===== */
.footer-block {
    background: linear-gradient(135deg, #2d3436 0%, #1a1e21 100%);
    color: #fff;
    padding: 4rem 10%;
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
    margin-top: 8rem;
    position: relative;
}

.footer-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d);
}

.footer-text {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.8;
}

/* ===== 响应式优化 ===== */
@media (max-width: 768px) {
    .beginning-text {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        padding: 0 5%;
    }
    
    .content-section {
        padding: 15% 8%;
        grid-template-columns: 1fr;
    }
    
    .content-card {
        padding: 1.5rem;
        border-radius: 16px;
        margin: 0 5%;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* 诗歌盒子 */
.poem-box {
    font-family: 'Noto Serif SC', serif;
    line-height: 2;
    font-size: 1.1rem;
    color: #444;
    text-align: center;
    padding: 1.5rem;
    border-left: 4px solid #ff6b6b;
    background: linear-gradient(to right, #fefefe, #f8f8f8);
    border-radius: 12px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.03);
    animation: fadeInUp 1s ease-out forwards;
}

.poem-box .oath-text br {
    content: "";
    display: block;
    margin: 0.5em 0;
}


.blog-link-box {
    margin-top: 1.5rem;
}

.blog-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    color: #fff;
    background-color: #007BFF;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.blog-link:hover {
    background-color: #0056b3;
}