/* ==================== 全局变量 ==================== */
:root {
    --primary-color: #A3D9B1;
    --primary-dark: #7DC8A8;
    --primary-darker: #5CB8A0;
    --accent-color: #4AA898;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --white: #FFFFFF;
    --gray-light: #F8F9FA;
    --gray-dark: #34495E;
    --success: #27AE60;
    --warning: #F39C12;
    --danger: #E74C3C;
    --shadow: 0 5px 20px rgba(0,0,0,0.1);
    --shadow-light: 0 2px 10px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==================== 导航栏 ==================== */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(163, 217, 177, 0.95);
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.logo-img {
    height: auto;
    width: 220px;
    object-fit: contain;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    color: var(--white);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

nav a:hover {
    border-bottom-color: var(--white);
    opacity: 0.9;
}

nav a.active {
    border-bottom-color: var(--white);
    opacity: 1;
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--white);
}

/* ==================== 轮播图 ==================== */
.carousel-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: var(--gray-light);
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-content {
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 40px;
    z-index: 2;
}

.slide-content h2 {
    font-size: 56px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    animation: slideUp 0.8s ease;
}

.slide-content p {
    font-size: 24px;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: slideUp 0.8s ease 0.2s both;
}

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

.slide-decoration {
    position: absolute;
    right: 10%;
    font-size: 150px;
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 2;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--white);
    transform: scale(1.2);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.3);
    color: var(--white);
    font-size: 30px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: rgba(255,255,255,0.5);
}

.carousel-arrow.prev {
    left: 30px;
}

.carousel-arrow.next {
    right: 30px;
}

/* ==================== 按钮样式 ==================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn:active {
    transform: translateY(0);
}

.btn-white {
    background: var(--white);
    color: var(--accent-color);
}

.btn-white:hover {
    background: var(--gray-light);
    color: var(--primary-darker);
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
}

.btn-block {
    width: 100%;
}

/* ==================== 快速入口 ==================== */
.quick-access {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.quick-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    color: var(--text-dark);
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease;
}

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

.quick-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.quick-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

.quick-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.quick-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* ==================== 通用区块 ==================== */
.section {
    padding: 80px 0;
}

.section-gray {
    background: var(--gray-light);
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

/* ==================== 活动亮点 ==================== */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.highlight-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 2px solid transparent;
}

.highlight-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.highlight-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-darker);
    margin-bottom: 15px;
}

.highlight-label {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.highlight-desc {
    color: var(--text-light);
    font-size: 14px;
}

/* ==================== 最新动态 ==================== */
.news-list {
    max-width: 900px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    gap: 30px;
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.news-item:hover {
    box-shadow: var(--shadow);
    transform: translateX(5px);
}

.news-date {
    flex-shrink: 0;
    width: 120px;
    text-align: center;
    padding: 20px 10px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
}

.news-content {
    flex: 1;
}

.news-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.news-content p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ==================== 友情链接 ==================== */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.link-item {
    display: block;
    padding: 20px 30px;
    background: var(--white);
    text-align: center;
    border-radius: 10px;
    color: var(--text-dark);
    font-weight: 500;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 2px solid transparent;
}

.link-item:hover {
    border-color: var(--primary-color);
    color: var(--primary-darker);
    transform: translateY(-3px);
}

/* ==================== 页脚 ==================== */
.footer {
    background: var(--gray-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    padding: 20px;
}

.footer-logo {
    font-size: 28px;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: auto;
    width: 160px;
    object-fit: contain;
    margin-bottom: 20px;
}

.footer-section p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
    }

    nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        padding: 20px 0;
        background: var(--primary-darker);
    }

    nav.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .logo-img {
        width: 160px;
        height: auto;
    }

    .footer-logo-img {
        width: 130px;
        height: auto;
    }

    .carousel-container {
        height: 400px;
    }

    .carousel-slide {
        flex-direction: column;
    }

    .slide-content h2 {
        font-size: 36px;
    }

    .slide-content p {
        font-size: 18px;
    }

    .slide-decoration {
        display: none;
    }

    .news-item {
        flex-direction: column;
    }

    .news-date {
        width: 100%;
        margin-bottom: 15px;
    }

    .section-title {
        font-size: 28px;
    }

    .section {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .logo-img {
        width: 130px;
        height: auto;
    }

    .footer-logo-img {
        width: 110px;
        height: auto;
    }
}

/* ==================== 滚动条样式 ==================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-darker);
}

/* ==================== 选择文本样式 ==================== */
::selection {
    background: var(--primary-color);
    color: var(--white);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--white);
}
