@font-face {
    font-family: '霞鹜文楷';
    src: url('../fonts/霞鹜文楷.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.spirit-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.spirit-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(196, 30, 58, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(139, 0, 0, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, var(--red-deeper) 0%, var(--bg-dark) 70%);
    z-index: 0;
}

.spirit-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 80px,
        rgba(196, 30, 58, 0.05) 80px,
        rgba(196, 30, 58, 0.05) 82px
    );
    z-index: 0;
}

.spirit-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

.spirit-emblem {
    margin-bottom: 30px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.spirit-hero h1 {
    font-size: 3rem;
    color: var(--gold);
    text-shadow: 2px 2px 8px rgba(196, 30, 58, 0.5);
    margin-bottom: 20px;
    letter-spacing: 8px;
}

.spirit-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 30px;
    letter-spacing: 4px;
    opacity: 0.9;
}

.spirit-divider {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 30px auto;
}

.spirit-desc {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-light);
    opacity: 0.9;
}

.spirit-intro {
    padding: 80px 24px;
    background: linear-gradient(180deg, var(--bg-dark), rgba(92, 0, 17, 0.2), var(--bg-dark));
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.intro-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.intro-card {
    background: var(--bg-card);
    border: 1px solid rgba(196, 30, 58, 0.3);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red-primary), var(--gold));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.intro-card:hover::before {
    transform: scaleX(1);
}

.intro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px var(--shadow-red);
}

.intro-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gold);
    border-radius: 50%;
}

.intro-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--gold);
}

.intro-card h3 {
    color: var(--gold);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.intro-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.85;
}

.spirit-section {
    padding: 100px 24px;
    position: relative;
}

#revolution {
    background: linear-gradient(180deg, var(--bg-dark), rgba(139, 0, 0, 0.15), var(--bg-dark));
}

.construction {
    background: linear-gradient(180deg, var(--bg-dark), rgba(255, 140, 0, 0.08), var(--bg-dark));
}

.reform {
    background: linear-gradient(180deg, var(--bg-dark), rgba(30, 144, 255, 0.08), var(--bg-dark));
}

.newera {
    background: linear-gradient(180deg, var(--bg-dark), rgba(50, 205, 50, 0.08), var(--bg-dark));
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 10px;
    letter-spacing: 4px;
}

.section-header h2 span {
    display: block;
    font-size: 1rem;
    color: var(--text-light);
    font-weight: normal;
    opacity: 0.7;
    margin-top: 8px;
    letter-spacing: 2px;
}

.header-line {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--red-primary), transparent);
    margin: 20px auto;
}

.spirit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.spirit-card {
    background: var(--bg-card);
    border: 1px solid rgba(196, 30, 58, 0.3);
    border-radius: 16px;
    padding: 35px 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.spirit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--red-primary), var(--gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spirit-card:hover::before {
    opacity: 1;
}

.spirit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 215, 0, 0.3);
}

.spirit-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.spirit-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
    border-radius: 12px;
    flex-shrink: 0;
}

.spirit-icon-inner {
    width: 40px;
    height: 40px;
    background: var(--gold);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2L14.5 9H22L16 13.5L18 21L12 16.5L6 21L8 13.5L2 9H9.5L12 2Z'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2L14.5 9H22L16 13.5L18 21L12 16.5L6 21L8 13.5L2 9H9.5L12 2Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.spirit-title-wrap h3 {
    color: var(--gold);
    font-size: 1.4rem;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.spirit-period {
    color: var(--text-light);
    opacity: 0.6;
    font-size: 0.85rem;
}

.spirit-content {
    margin-top: 15px;
}

.spirit-core {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.9;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(196, 30, 58, 0.3);
}

.spirit-detail {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.9;
    opacity: 0.85;
    margin-bottom: 20px;
}

.spirit-quote {
    background: rgba(196, 30, 58, 0.2);
    padding: 15px 20px;
    font-style: italic;
    color: var(--gold);
    font-size: 0.9rem;
    border-radius: 8px;
    position: relative;
    padding-left: 30px;
}

.spirit-quote::before {
    content: '"';
    position: absolute;
    left: 10px;
    top: 5px;
    font-size: 2rem;
    color: var(--gold);
    opacity: 0.5;
}

@media (max-width: 768px) {
    .spirit-hero h1 {
        font-size: 2rem;
        letter-spacing: 4px;
    }

    .spirit-subtitle {
        font-size: 1.1rem;
    }

    .spirit-desc {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .intro-cards {
        grid-template-columns: 1fr;
    }

    .spirit-grid {
        grid-template-columns: 1fr;
    }
}

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

.spirit-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.spirit-grid .spirit-card:nth-child(1) { animation-delay: 0.1s; }
.spirit-grid .spirit-card:nth-child(2) { animation-delay: 0.2s; }
.spirit-grid .spirit-card:nth-child(3) { animation-delay: 0.3s; }
.spirit-grid .spirit-card:nth-child(4) { animation-delay: 0.4s; }