:root {
    --bg-dark: #0f0f1a;
    --primary-color: #6c5ce7;
    --accent-color: #a29bfe;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans SC', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
}

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

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: linear-gradient(135deg, var(--bg-dark), #1a1a2e);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Banner 样式 */
.banner {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.banner-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(108, 92, 231, 0.1) 0%, transparent 50%),
        linear-gradient(45deg, rgba(162, 155, 254, 0.1) 0%, transparent 50%),
        radial-gradient(at top left, rgba(108, 92, 231, 0.2) 0%, transparent 70%),
        radial-gradient(at bottom right, rgba(162, 155, 254, 0.2) 0%, transparent 70%),
        linear-gradient(to bottom right, var(--bg-dark), #1a1a2e);
    z-index: 1;
    overflow: hidden;
}

.banner-background::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    /* 删除重复的 backgroundMove 动画，只保留一个 */
    @keyframes backgroundMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-25%, -25%);
    }
    }
    opacity: 0.5;
}

@keyframes backgroundMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}

.banner-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    z-index: 2;
    position: relative;
}

.banner-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInRight 1s ease forwards;
    position: relative;
    z-index: 2;
}

.banner-image {
    width: 500px;
    height: 500px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 30px;
    transform: rotate(-10deg);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 40px rgba(108, 92, 231, 0.3);
}

.banner-image:hover {
    transform: rotate(0deg) scale(1.05);
}

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

.banner-left {
    flex: 1;
    max-width: 600px;
}

.banner-left h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease forwards;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.banner-description {
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.7);
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.banner-description p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.banner-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.primary-button, .secondary-button {
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-button {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border: none;
    color: white;
}

.secondary-button {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: white;
}

.primary-button:hover, .secondary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.2);
}

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

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

/* 响应式调整 */
@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .banner-left h1 {
        font-size: 2.5rem;
    }

    .banner-buttons {
        justify-content: center;
    }

    .banner-right {
        display: none;
    }

    .nav-content {
        padding: 0 1rem;
    }

    .nav-links {
        display: none;
    }

    .contact-container {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-social {
        text-align: left;
    }

    .social-buttons {
        justify-content: flex-start;
    }

    .timeline-content {
        width: 100%;
        margin: 0 !important;
        padding: 1rem;
    }

    .timeline::before {
        left: 20px;
    }
}

.banner-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInRight 1s ease forwards;
}

.banner-image {
    width: 500px;
    height: 500px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 30px;
    transform: rotate(-10deg);
    transition: transform 0.3s ease;
}

.banner-image:hover {
    transform: rotate(0deg) scale(1.05);
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(20px);
    z-index: 100;
    transform: translateY(-100%);
    transition: all 0.3s ease;
}

.navbar.visible {
    transform: translateY(0);
}

/* 导航栏样式 */
.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-color), rgba(162, 155, 254, 0.1));
    opacity: 0.3;
}

.timeline-item {
    margin: 4rem 0;
    width: 100%;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.timeline-item.active {
    opacity: 1;
    transform: translateY(0);
}

.timeline-content {
    width: 45%;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.timeline-date {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.timeline-info h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.timeline-info p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .timeline-content {
        width: 100%;
        margin-left: 2rem;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-date {
        font-size: 1.5rem;
    }
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
}

.timeline-content::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    top: 50%;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -60px;
    transform: translateY(-50%);
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -60px;
    transform: translateY(-50%);
}

.timeline-date {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.timeline-item:nth-child(odd) .timeline-date {
    left: -150px;
}

.timeline-item:nth-child(even) .timeline-date {
    right: -150px;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.contact-info, .contact-social {
    flex: 1;
}

.contact-info {
    text-align: left;
}

.contact-social {
    text-align: right;
}

.info-group {
    margin-bottom: 2rem;
}

.info-group h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.info-group p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-social {
        text-align: left;
    }

    .social-buttons {
        justify-content: flex-start;
    }

    .timeline-content {
        width: 100%;
        margin: 0 !important;
    }

    .timeline-date {
        position: relative;
        left: 0 !important;
        right: 0 !important;
        margin-bottom: 1rem;
    }

    .timeline-content::before {
        display: none;
    }

    .timeline::before {
        left: 20px;
    }
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-placeholder {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 8px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

@media (max-width: 768px) {
    .nav-content {
        padding: 0 1rem;
    }

    .nav-links {
        display: none; /* 移动端先隐藏，后续可以添加汉堡菜单 */
    }

    .banner-left h1 {
        font-size: 2.5rem;
    }

    .timeline-content {
        width: 100%;
        margin: 0 !important;
        padding: 1rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-date {
        position: static;
        margin-bottom: 1rem;
        transform: none;
    }
}

.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 物种展示区域通用样式 */
.section {
    padding: 6rem 2rem;
    position: relative;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

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

.species-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.species-intro h3 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.species-intro p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(108, 92, 231, 0.2);
    border-color: var(--accent-color);
}

.card-image {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.card-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(108, 92, 231, 0.2);
}

/* 关于我们样式 */
.about-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

.about-text {
    position: relative;
    padding: 2rem;
}

.about-text::before {
    content: '"';
    position: absolute;
    top: 0;
    left: 0;
    font-size: 6rem;
    color: var(--accent-color);
    opacity: 0.2;
    line-height: 1;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.9);
    margin: 1.5rem 0;
}

.highlight-text {
    font-size: 1.4rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 2rem;
}

/* 联系我们样式 */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
    padding-right: 4rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-social {
    flex: 1;
}

.info-group {
    margin-bottom: 3rem;
}

.info-group h3 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.info-group p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.social-buttons {
    display: flex;
    gap: 1.5rem;
}

.glow-button {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    border: none;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glow-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.glow-button:hover::before {
    left: 100%;
}

.glow-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.3);
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        padding: 2rem;
    }

    .contact-info {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 2rem;
    }

    .info-group {
        margin-bottom: 2rem;
    }

    .social-buttons {
        flex-direction: column;
    }

    .glow-button {
        width: 100%;
        text-align: center;
    }
}