/* ========== 全局变量 & 基础重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #8B5A2B;
    /* 温暖橘 */
    --primary-light: #d19068;
    --secondary: #2f5d62;
    /* 深绿松石 */
    --secondary-light: #e0f0f2;
    --text-dark: #3e3e3e;
    --text-soft: #5e5e5e;
    --bg-light: #faf8f5;
    --card-shadow: 0 12px 28px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.02);
    --border-radius-card: 32px 20px 32px 20px;
    /* 可爱不规则 */
}

body {
    font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 0px !important;
    width: 100%;
}

/* ========== 移除丝滑沉浸式一滑一屏核心样式 ========== */
html {
    /* 1. 删除 scroll-snap-type 属性（核心一滑一屏控制） */
    /* scroll-snap-type: y mandatory; */
    scroll-behavior: smooth;
    /* 保留平滑滚动（可选，若不需要也可删除） */
    /* 2. 删除 scroll-padding-top 属性 */
    /* scroll-padding-top: 0; */
}

/* 每个主要板块样式 - 仅删除滚动捕捉相关属性 */
.snap-section {
    /* 1. 删除 scroll-snap-align 属性 */
    /* scroll-snap-align: start; */
    /* 2. 删除 scroll-snap-stop 属性 */
    /* scroll-snap-stop: always; */
    min-height: 100vh;
    height: auto;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    opacity: 0.98;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
    padding: 15px;
}

/* 滚动时的视差效果 - 背景微动（保留） */
.snap-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%);
    pointer-events: none;
    z-index: 1;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 头部样式 - 移除 snap-section 的动画效果 */
.site-header.snap-section {
    min-height: auto;
    height: 80px;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 3px solid var(--primary-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    opacity: 1 !important;
    animation: none !important;
}

/* 为每个section添加进入动画 */
.snap-section {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.snap-section.in-view,
.snap-section:hover {
    opacity: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.snap-section:hover {
    transform: scale(1.002);
}

/* 为hero添加特殊的淡入效果（保留） */
.hero.snap-section {
    animation: zoomIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========== 头部样式 ========== */
.site-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 3px solid var(--primary-light);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding-left: 0 !important;
    margin-left: 40px !important;
    padding-right: 0 !important;
    margin-right: 20px !important;
    width: 100%;
    overflow: visible;
}

.logo-area {
    display: flex;
    align-items: left;
    gap: 12px;
    margin-left: -30px;
    padding-left: 0;
}

.logo-icon {
    font-size: 2.4rem;
    filter: drop-shadow(2px 4px 4px rgba(181, 89, 43, 0.2));
    transition: transform 0.3s ease;
}

.logo-icon:hover {
    transform: rotate(10deg) scale(1.1);
}

.logo-text h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.2;
    transition: color 0.3s ease;
}

.logo-text span {
    font-size: 0.85rem;
    color: var(--primary);
    letter-spacing: 1px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 45px;
    margin: 0px auto;
    margin-left: 250px;
    margin-left: 300px;
}

.main-nav a {
    text-decoration: none;
    font-weight: 650;
    color: var(--text-dark);
    font-size: 1.2rem;
    font-family: 黑体;
    transition: color 0.2s, border-color 0.2s, transform 0.2s;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;

    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.1s cubic-bezier(0.2, 0, 0.2, 1);
}

.main-nav a:hover {
    color: var(--primary);
}

.main-nav a:hover::after {
    width: 100%;
}

.user-menu {
    position: relative;
    z-index: 101;
    margin-right: -120px;
    flex-shrink: 0;
}

.user-icon-btn {
    background: none;
    border: 2px solid var(--primary-light);
    border-radius: 40px;
    padding: 8px 16px 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--secondary);
    transition: all 0.3s ease;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-right: -1000px;
}

.user-icon-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.user-icon-btn .animal-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.user-icon-btn .arrow {
    font-size: 1.2rem;
    opacity: 0.6;
}

/* 用户信息显示（登录后） */
.user-profile-btn {
    background: none;
    border: 2px solid var(--primary);
    border-radius: 50px;
    padding: 4px 16px 4px 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background-color: white;
    box-shadow: 0 4px 12px rgba(230, 126, 74, 0.2);
}

.user-profile-btn .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border: 2px solid white;
}

.user-profile-btn .user-name {
    font-weight: 600;
    color: var(--secondary);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

/* 下拉菜单 */
.dropdown-menu {
    position: absolute;
    top: 60px;
    right: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 200px;
    padding: 10px 0;
    display: none;
    border: 3px solid var(--primary-light);
    z-index: 102;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-dark);
    transition: background 0.2s;
    font-size: 1rem;
}

.dropdown-menu a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.dropdown-menu .logout {
    border-top: 1px solid #eee;
    color: #ce8059;
}

/* ========== 模态框（登录/注册） ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 40px 20px 40px 20px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border: 4px solid var(--primary-light);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-soft);
}

.modal-close:hover {
    color: var(--primary);
}

.modal h2 {
    color: var(--secondary);
    margin-bottom: 10px;
    font-size: 2rem;
}

.modal p {
    color: var(--text-soft);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--primary-light);
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 126, 74, 0.1);
}

.form-group input.error {
    border-color: #8B5A2B;
    background-color: #fff0f0;
}

.error-message {
    color: #8B5A2B;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

.modal-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.modal-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.modal-switch {
    text-align: center;
    margin-top: 25px;
    color: var(--text-soft);
}

.modal-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.modal-switch a:hover {
    text-decoration: underline;
}

/* 用户信息编辑页面 */
.profile-container {
    max-width: 600px;
    margin: 50px auto;
    background: white;
    border-radius: 40px 20px 40px 20px;
    padding: 40px;
    border: 4px solid var(--primary-light);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.avatar-upload {
    position: relative;
    width: 100px;
    height: 100px;
}

.avatar-preview {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    border: 3px solid var(--primary);
    cursor: pointer;
    transition: all 0.3s;
}

.avatar-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

#avatarInput {
    display: none;
}

.profile-form .form-group {
    margin-bottom: 25px;
}

.profile-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary);
    font-weight: 600;
}

.profile-form input,
.profile-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--primary-light);
    border-radius: 30px;
    font-size: 1rem;
}

.profile-form textarea {
    min-height: 100px;
    resize: vertical;
}

.profile-form input:focus,
.profile-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.save-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
}

.save-btn:hover {
    background: var(--secondary);
}

/* 占位内容 */
.hero {
    height: 90vh;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--secondary);
    border-radius: 60px;
    margin: 20px 0;
}

/* ========== 按钮 ========== */
.btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 60px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--primary);
    font-size: 1.05rem;
    box-shadow: 0 4px 8px rgba(230, 126, 74, 0.2);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    background-color: #a76727;
    border-color: #a7692a;
    transform: translateY(-3px);
    box-shadow: 0 10px 18px rgba(230, 126, 74, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
    box-shadow: none;
    margin-left: 12px;
}

.btn-outline:hover {
    background-color: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.btn-small {
    background-color: white;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.btn-small::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(230, 126, 74, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-small:hover::before {
    width: 200px;
    height: 200px;
}

.btn-small:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(152, 107, 49, 0.473);
}

/* ========== HERO 视频区域样式 ========== */
.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border-radius: 0 !important;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%) scale(1.02);
    z-index: 0;
    transition: transform 0.5s ease;
}

.hero:hover .hero-video {
    transform: translate(-50%, -50%) scale(1.03);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
    transition: background 0.5s ease;
}

.hero:hover .hero-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.25) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 1280px;
    margin: 0 !important;
    padding: 0 32px;
}

.hero-text {
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    animation: slideInLeft 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    margin-right: auto;
    margin-left: 0;
    max-width: 650px;
    margin-top: -80px;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-text h2 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 0.8s 0.2s both;
    white-space: nowrap;
}

.hero-text p {
    font-size: 1.4rem;
    margin-bottom: 32px;
    max-width: 600px;
    animation: fadeInUp 0.8s 0.4s both;
}

.hero-text .btn-outline {
    border-color: white;
    color: white;
    margin-left: 16px;
}

.hero-text .btn-outline:hover {
    background-color: white;
    color: var(--secondary);
    border-color: white;
}

.hero-text div {
    animation: fadeInUp 0.8s 0.6s both;
}







/* ========== 动物卡片 ========== */
.animal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.animal-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.animal-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.animal-card:nth-child(1) { animation-delay: 0.1s; }
.animal-card:nth-child(2) { animation-delay: 0.2s; }
.animal-card:nth-child(3) { animation-delay: 0.3s; }
.animal-card:nth-child(4) { animation-delay: 0.4s; }

.animal-card:hover {
    box-shadow: 0 25px 35px -10px rgba(47, 93, 98, 0.25);
    border-color: var(--primary-light);
}

.animal-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid #f5f5f5;
}

.animal-card:hover .animal-photo {
    /* 已移除放大效果 */
}

.animal-info {
    padding: 16px 14px 18px;
    background: white;
}

.animal-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.animal-tag {
    border-radius: 0;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.8rem;
    padding: 4px 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.animal-card:hover .animal-tag {
    background: var(--primary);
    color: white;
}

.animal-meta {
    display: flex;
    gap: 18px;
    margin: 10px 0 8px;
    color: #7b8d8e;
    font-size: 0.95rem;
}

.animal-info p {
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 800;
    font-family: 宋体;
    transition: color 0.3s ease;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 25px;
    margin-top: 20px;
}

/* 响应式布局 */
@media (max-width: 1000px) {
    .animal-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .animal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .animal-grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 1.6rem;
    }
}

/* ========== 科普板块样式 ========== */

.科普-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.科普-card {
    background: white;
    border-radius: 15px 15px 15px 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    border: 3px solid white;
}

.科普-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 35px -10px rgba(47, 93, 98, 0.25);
    border-color: var(--primary-light);
}

.科普-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.科普-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.科普-card:hover .科普-image img {
    transform: scale(1.05);
}

.科普-content {
    padding: 25px;
}

.科普-content h3 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 20px;
    border-left: 8px solid var(--primary);
    padding-left: 15px;
}

.科普-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.科普-list li {
    margin-bottom: 15px;
    padding-left: 35px;
    position: relative;
    line-height: 1.6;
    color: var(--text-soft);
}

.stat-icon {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
}

.科普-list strong {
    color: var(--secondary);
}

/* 影响网格 */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.impact-item {
    background: var(--primary-light);
    padding: 20px 15px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.impact-item:hover {
    background: var(--primary);
    color: white;
}

.impact-item:hover h4,
.impact-item:hover p {
    color: white;
}

.impact-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.impact-item h4 {
    color: var(--secondary);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.impact-item p {
    font-size: 0.9rem;
    color: var(--text-soft);
    line-height: 1.4;
}

/* 行动列表 */
.行动列表 {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.行动项 {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px;
    background: var(--primary-light);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.行动项:hover {
    background: var(--secondary);
    transform: translateX(5px);
}

.行动项:hover h4,
.行动项:hover p {
    color: white;
}

.行动图标 {
    font-size: 2rem;
    min-width: 40px;
    text-align: center;
}

.行动项 h4 {
    color: var(--secondary);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.行动项 p {
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 响应式 */
@media (max-width: 1000px) {
    .科普-grid {
        grid-template-columns: 1fr;
    }

    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .impact-grid {
        grid-template-columns: 1fr;
    }

    .科普-content h3 {
        font-size: 1.5rem;
    }
}

/* 使用ID选择器 */
#animal-section {
    background-image: url('');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* 遮罩层 */
#animal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    z-index: 0;
}

#animal-section .container {
    position: relative;
    z-index: 1;
}

/* 修复选择器缺失的#，并保留所有原有样式 */
/* 修复选择器缺失的#，并保留所有原有样式 */
#us-section {
    background-image: url('../img/2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    /* 关键修改：设置边框为直角（默认就是0，若之前有圆角则显式声明） */
    border-radius: 0;
    /* 若容器有边框样式，补充边框属性（根据你的页面需求，可按需调整） */
    border: none;
    /* 若无边框则保留none，有边框则改为具体样式如 1px solid #ccc */
}

/* 遮罩层 - 完全保留原有样式 */
#us-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    z-index: 0;
    /* 遮罩层同步设为直角，避免遮罩圆角和容器直角冲突 */
    border-radius: 0;
}

#us-section .container {
    position: relative;
    z-index: 1;
    /* 若container容器本身有圆角，也同步改为直角 */
    border-radius: 0;
}

.animal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.animal-card {
    background: white;
    /* 关键修改1：将圆角变量改为0，实现直角 */
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    cursor: pointer;
    border: 3px solid white;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.animal-card:nth-child(1) {
    animation-delay: 0.1s;
}

.animal-card:nth-child(2) {
    animation-delay: 0.2s;
}

.animal-card:nth-child(3) {
    animation-delay: 0.3s;
}

.animal-card:nth-child(4) {
    animation-delay: 0.4s;
}

.animal-card:hover {
    box-shadow: 0 25px 35px -10px rgba(47, 93, 98, 0.25);
    border-color: var(--primary-light);
}

.animal-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover !important;
    background-position: center;
}

.card-1 .animal-photo {
    /* 已移除特殊形状，保持矩形 */
}

.card-2 .animal-photo {
    /* 已移除特殊形状，保持矩形 */
}

.card-3 .animal-photo {
    /* 已移除特殊形状，保持矩形 */
}

.card-4 .animal-photo {
    /* 已移除特殊形状，保持矩形 */
}

.animal-info {
    padding: 20px 16px 20px;
}

.animal-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.animal-tag {
    /* 关键修改2：如果需要标签也改为直角，添加这行；如果保留标签圆角则删除 */
    border-radius: 0;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.8rem;
    padding: 4px 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.animal-card:hover .animal-tag {
    background: var(--primary);
    color: white;
}

.animal-meta {
    display: flex;
    gap: 18px;
    margin: 10px 0 8px;
    color: #7b8d8e;
    font-size: 0.95rem;
}

.animal-info p {
    color: var(--text-soft);
    transition: color 0.3s ease;
}



/* ========== 故事卡片 ========== */
.stories-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
}

.story-item {
    background: white;
    padding: 28px 28px;
    border-radius: 30px 12px 30px 12px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.story-item:nth-child(1) {
    animation-delay: 0.1s;
}

.story-item:nth-child(2) {
    animation-delay: 0.2s;
}

.story-item:nth-child(3) {
    animation-delay: 0.3s;
}

.story-item:hover {
    border-color: var(--primary);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 30px -10px rgba(47, 93, 98, 0.2);
}

/* ========== 支持卡片 ========== */
.support-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.support-card {
    background: white;
    border-radius: 28px 12px 28px 12px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid white;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.support-card:nth-child(1) {
    animation-delay: 0.1s;
}

.support-card:nth-child(2) {
    animation-delay: 0.2s;
}

.support-card:nth-child(3) {
    animation-delay: 0.3s;
}

.support-card:nth-child(4) {
    animation-delay: 0.4s;
}

.support-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 35px -10px rgba(47, 93, 98, 0.2);
}

.support-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.support-card:hover .support-icon {
    transform: scale(1.2) rotate(5deg);
}

/* ========== AI 对话浮窗 ========== */
.ai-chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-chat-button:hover {
    transform: scale(1.15) rotate(5deg);
    background: var(--secondary);
}

.chat-panel {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 360px;
    height: 480px;
    background: white;
    border-radius: 40px 20px 40px 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 4px solid var(--primary-light);
    z-index: 99;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
}

.chat-panel.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chat-header {
    background: var(--secondary);
    color: white;
    padding: 18px 20px;
    font-weight: 700;
    font-size: 1.3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header button {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s ease;
}

.chat-header button:hover {
    transform: rotate(90deg);
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fefefe;
}

.message {
    padding: 12px 16px;
    border-radius: 24px 8px 24px 8px;
    max-width: 80%;
    word-break: break-word;
    animation: fadeInUp 0.3s ease forwards;
}

.user-message {
    background: var(--primary-light);
    align-self: flex-end;
    color: var(--text-dark);
}

.ai-message {
    background: #e9f3f5;
    align-self: flex-start;
    color: var(--secondary);
    border: 1px solid var(--secondary-light);
}

.chat-input-area {
    display: flex;
    padding: 16px;
    border-top: 2px solid #eee;
    gap: 8px;
}

.chat-input-area input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid var(--primary-light);
    border-radius: 50px;
    outline: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.chat-input-area input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 126, 74, 0.1);
}

.chat-input-area button {
    background: var(--primary);
    border: none;
    color: white;
    font-size: 1.3rem;
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-input-area button:hover {
    background: var(--secondary);
    transform: translateX(2px);
}

/* ========== 关于我们区域 ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin: 40px 0;
}

.about-text h3 {
    font-size: 1.9rem;
    color: var(--secondary);
    margin-bottom: 20px;
    animation: slideInLeft 0.6s ease forwards;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--text-soft);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: calc(0.1s * var(--i, 0));
}

.timeline {
    list-style: none;
}

.timeline li {
    margin-bottom: 15px;
    padding-left: 24px;
    border-left: 4px solid var(--primary-light);
    color: var(--text-soft);
    transition: all 0.3s ease;
    animation: fadeInRight 0.5s ease forwards;
    opacity: 0;
}

.timeline li:hover {
    border-left-color: var(--primary);
    transform: translateX(5px);
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline strong {
    color: var(--secondary);
    margin-right: 15px;
}

/* ========== 财务公示 ========== */
.finance-preview {
    background-color: var(--secondary-light);
    border-radius: 30px;
    padding: 24px;
    margin-top: 24px;
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s 0.3s both;
}

.finance-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(47, 93, 98, 0.1);
}

.finance-preview p {
    font-weight: 600;
    color: var(--secondary);
}

/* ========== 联系区域 ========== */
.contact-section {
    background: white;
    border-radius: 40px;
    padding: 40px;
    margin: 50px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s forwards;
}

.contact-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.1);
}

.contact-info {
    flex: 1 1 200px;
}

.contact-info h3 {
    color: var(--secondary);
    font-size: 2rem;
}

.contact-info p {
    margin: 12px 0;
    color: var(--text-soft);
}

.qr-code {
    flex: 1 1 200px;
    background: var(--primary-light);
    border-radius: 24px;
    padding: 20px;
    transition: all 0.4s ease;
}

.qr-code:hover {
    background: var(--primary);
    color: white;
}

.qr-code p {
    font-weight: 600;
    margin-bottom: 10px;
}

.qr-placeholder {
    display: flex;
    gap: 20px;
    font-size: 2rem;
}

/* ========== 页脚 ========== */
/* ========== 页脚样式 ========== */
.site-footer {
    background: #faf8f5;
    padding: 30px 0 15px !important;
    margin-top: 0 !important;
    border-top: 2px solid var(--primary-light);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.footer-col {
    flex: 1;
    min-width: 180px;
}

.footer-col h4 {
    font-size: 1.3rem;
    color: var(--secondary);
    margin: 0 0 10px 0;
}

.footer-col p {
    margin: 4px 0;
    color: var(--text-soft);
    line-height: 1.5;
    font-size: 0.95rem;
}

.footer-col a {
    color: var(--secondary);
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--primary);
}

.social-icons {
    font-size: 1.4rem;
    margin-bottom: 8px;
    display: flex;
    gap: 12px;
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    color: #888;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-bottom:hover {
    color: white;
}

.social-icons span {
    font-size: 2rem;
    margin-right: 12px;
    cursor: default;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-icons span:hover {
    transform: translateY(-5px) scale(1.2);
    filter: drop-shadow(0 5px 10px rgba(255, 255, 255, 0.3));
}

.footer-bottom:hover {
    color: white;
}

/* ========== 响应式 ========== */
@media (max-width: 1000px) {

    .animal-grid,
    .support-grid,
    .stories-mini {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .animal-grid,
    .support-grid,
    .stories-mini {
        grid-template-columns: 1fr;
    }

    .hero-text h2 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.2rem;
    }
}

/* ========== 滚动进度条（可选，增加交互感） ========== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 1000;
    transition: width 0.1s ease;
}




/* ========== 支持我们板块样式 ========== */
.support-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}



