/* --- 全局样式和变量 --- */
:root {
    --primary-color: #66c0ff;
    --secondary-color: #ff88c2;
    --accent-color: #ffd700;
    --white-color: #ffffff;
    --text-color: #333;
    --light-gray-bg: #f8f9fa;
    --border-radius: 12px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', 'Microsoft Yahei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
}

/* --- 顶部导航栏 --- */
header {
    background-color: var(--white-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo a {
    text-decoration: none;
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    padding: 10px 15px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-nav ul li a:hover {
    color: var(--primary-color);
}

.main-nav ul li a:hover::after {
    width: 100%;
}

.hamburger-menu {
    display: none;
    font-size: 1.8em;
    cursor: pointer;
    color: var(--primary-color);
}

/* --- 移动端导航样式 --- */
.mobile-nav {
    display: none;
    background-color: rgba(255, 255, 255, 0.98);
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    padding-top: 30px;
    transform: translateY(-110%);
    transition: transform 0.4s ease-in-out;
}

.mobile-nav.active {
    transform: translateY(0);
}

.mobile-nav ul {
    list-style: none;
    width: 100%;
    text-align: center;
}

.mobile-nav ul li {
    margin: 20px 0;
}

.mobile-nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.5em;
    padding: 10px;
    transition: color 0.3s ease;
}

.mobile-nav ul li a:hover {
    color: var(--primary-color);
}


/* --- 巨幅头图区域 --- */
.hero-section {
    height: 60vh;
    background-image: linear-gradient(to right, rgba(102, 192, 255, 0.7), rgba(255, 136, 194, 0.5)), url('https://placehold.co/1920x1080/f0f0f0/cccccc?text=Hero+Background');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white-color);
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 30px;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
}

.hero-button {
    text-decoration: none;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: var(--shadow);
}

.hero-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* --- 主体内容 --- */
.main-content {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-weight: bold;
}

/* 新闻板块 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--white-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card .card-content {
    padding: 20px;
}

.news-card time {
    font-size: 0.9em;
    color: #888;
}

.news-card h3 {
    font-size: 1.25em;
    margin: 10px 0;
}

.view-more-link {
    display: block;
    text-align: center;
    margin-top: 30px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

/* 成员介绍板块 */
.members-section {
    margin-top: 60px;
    background-color: var(--light-gray-bg);
    padding: 50px 0;
    overflow: hidden;
}

.members-container {
    display: flex;
    overflow-x: auto;
    padding: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #e0e0e0;
}

.members-container::-webkit-scrollbar { height: 8px; }
.members-container::-webkit-scrollbar-track { background: #e0e0e0; }
.members-container::-webkit-scrollbar-thumb { background-color: var(--primary-color); border-radius: 10px; }

.member-card {
    flex: 0 0 220px;
    margin-right: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.member-card:hover {
    transform: scale(1.05);
}

.member-card img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.member-name {
    margin-top: 15px;
    font-size: 1.2em;
    font-weight: bold;
}

/* --- 功能入口卡片样式 --- */
.feature-entry-section {
    padding: 50px 0;
    margin-top: 60px;
}

.entry-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.entry-content {
    padding: 40px;
    flex: 1;
}

.entry-content h3 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.entry-content p {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.7;
}

.entry-image {
    flex-basis: 300px;
    flex-shrink: 0;
}

.entry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- 页脚 --- */
.site-footer {
    background-color: #333;
    color: var(--white-color);
    padding: 40px 20px;
    text-align: center;
}

.social-links { margin-bottom: 20px; }
.social-links a { color: var(--white-color); font-size: 1.8em; margin: 0 15px; transition: color 0.3s ease; }
.social-links a:hover { color: var(--primary-color); }
.footer-nav { margin-bottom: 20px; }
.footer-nav a { color: var(--white-color); text-decoration: none; margin: 0 10px; }
.footer-nav a:hover { text-decoration: underline; }
.copyright { font-size: 0.9em; color: #ccc; }


/* --- 响应式设计 --- */
@media (max-width: 768px) {
    .main-nav { display: none; }
    .hamburger-menu { display: block; }
    .mobile-nav { display: flex; }
    .hero-content h1 { font-size: 2.5em; }
    .hero-content p { font-size: 1.2em; }
    .section-title { font-size: 2em; }

    .entry-card { flex-direction: column; }
    .entry-content { text-align: center; }
    .entry-image { width: 100%; max-height: 200px; }
}