/* 汉堡菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* 发展史页面特有样式 */
.history-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), url('https://img2.baidu.com/it/u=1166098408,811706935&fm=253&fmt=auto&app=138&f=JPEG?w=760&h=475') center/cover;
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.history-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.history-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

.timeline-container {
    margin: 3rem 0;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 2rem auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    background: linear-gradient(to bottom, var(--fire), var(--metal));
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 4px solid var(--fire);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -10px;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--metal);
}

.timeline-content h3 {
    color: var(--fire);
    margin-bottom: 0.5rem;
}

.timeline-content .year {
    font-weight: bold;
    color: var(--metal);
    font-size: 1.1rem;
}

.history-section {
    margin: 3rem 0;
    padding: 2rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--metal);
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.content-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.content-card h3 {
    color: var(--fire);
    margin-bottom: 1rem;
    border-left: 4px solid var(--metal);
    padding-left: 1rem;
}

.media-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.image-placeholder {
    flex: 1;
    min-width: 300px;
    background-color: #e9e9e9;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    border: 2px dashed #ccc;
}

.image-placeholder i {
    font-size: 3rem;
    color: #888;
    margin-bottom: 1rem;
}

.video-container {
    flex: 2;
    min-width: 300px;
}

.video-placeholder {
    background-color: #e9e9e9;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    border: 2px dashed #ccc;
    height: 100%;
}

.video-placeholder i {
    font-size: 3rem;
    color: #888;
    margin-bottom: 1rem;
}

.figure-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
}

.figure-card {
    background-color: white;
    border-radius: 8px;
    width: 220px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.figure-card:hover {
    transform: translateY(-5px);
}

.figure-card h4 {
    color: var(--fire);
    margin: 0.5rem 0;
}

.figure-card .years {
    color: var(--metal);
    font-weight: bold;
    font-size: 0.9rem;
}

.animal-forms {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.animal-form {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

.animal-form h4 {
    color: var(--fire);
    margin-bottom: 0.5rem;
}

.modern-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.modern-text {
    flex: 2;
    min-width: 300px;
}

.modern-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.modern-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.quote {
    font-style: italic;
    color: var(--fire);
    border-left: 4px solid var(--metal);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-size: 1.1rem;
}

.bg-alt {
    background-color: var(--gray);
}

/* 页脚样式 */
footer {
    background-color: var(--dark);
    color: white;
    padding: 2.5rem 0;
    text-align: center;
}

.social-links {
    margin: 1rem 0;
}

.social-links a {
    color: white;
    margin: 0 0.8rem;
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--metal);
    transform: translateY(-3px);
}

/* 导航菜单高亮 */
.active {
    color: var(--metal) !important;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        align-items: center;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--dark);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    nav ul {
        flex-direction: column;
        padding: 1rem 0;
    }

    nav li {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }

    nav a {
        display: block;
        padding: 0.8rem 1rem;
    }

    .login-btn {
        margin: 0.5rem auto;
        display: block;
        width: 200px;
        text-align: center;
    }

    .history-hero h1 {
        font-size: 2.2rem;
    }

    .history-hero {
        padding: 3rem 0;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item::after {
        left: 21px;
    }

    .media-container {
        flex-direction: column;
    }
}
