/* --- Global Settings & Variables --- */
:root {
    --color-primary: #0a192f; /* 深海军蓝 - 主色，科技感 */
    --color-secondary: #1a2942; /* 稍亮的蓝色 */
    --color-accent: #64ffda;  /* 青色 - 强调色，点亮科技感 */
    --color-text: #ccd6f6;    /* 浅蓝灰 - 用于深色背景的文本 */
    --color-text-dark: #333; /* 深灰 - 用于浅色背景的文本 */
    --color-light-bg: #f8f9fa; /* 极浅的灰色背景 */
    --color-white: #ffffff;
    --font-family: 'Noto Sans SC', sans-serif;
    --header-height: 80px;
    --transition-speed: 0.3s;
}

/* --- Base & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-light-bg);
    color: var(--color-text-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
}

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

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

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

.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
    color: #666;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-primary);
    border: 2px solid var(--color-accent);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-accent);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-dark);
    border: 2px solid #ddd;
}
.btn-secondary:hover {
    background-color: var(--color-text-dark);
    color: var(--color-white);
    border-color: var(--color-text-dark);
}


/* --- Header --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background-color: transparent;
    transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-image {
    height: 40px;
    transition: filter var(--transition-speed) ease;
}
.main-header.scrolled .logo-image {
    filter: brightness(0.1);
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--color-white);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

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

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

.main-header.scrolled .main-nav a {
    color: var(--color-text-dark);
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-white);
    transition: all var(--transition-speed) ease-in-out;
}
.main-header.scrolled .hamburger-menu .bar {
     background-color: var(--color-text-dark);
}


/* --- Mobile Nav --- */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-white);
    z-index: 999;
    padding-top: var(--header-height);
    transition: right var(--transition-speed) ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.mobile-nav.active {
    right: 0;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}
.mobile-nav ul {
    text-align: center;
}
.mobile-nav li {
    margin: 25px 0;
}
.mobile-nav a {
    font-size: 1.5rem;
    color: var(--color-text-dark);
    font-weight: 500;
}

/* Hamburger animation */
.hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
.hamburger-menu.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-menu.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}
.hero-background {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}
.hero-video-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.7);
    z-index: -1;
}
.hero-content {
    max-width: 800px;
    padding: 20px;
}
.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--color-text);
}
/* Fade-in animation for hero text */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}
@keyframes fadeIn {
    to { opacity: 1; }
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--color-white);
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -15px); }
    60% { transform: translate(-50%, -5px); }
}

/* --- Intro Section --- */
.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}
.intro-item {
    text-align: center;
}
.intro-item i {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 20px;
    opacity: 0.5;
}
.intro-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.intro-item p {
    color: #666;
}

/* --- Features Section --- */
.features-section {
    background-color: var(--color-white);
}
.feature-block {
    display: flex;
    min-height: 60vh;
    background-color: var(--color-light-bg);
}
.feature-block.reverse {
    flex-direction: row-reverse;
}
.feature-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    min-width: 50%;
}
.feature-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
}
.content-wrapper {
    max-width: 450px;
}
.feature-content span {
    display: block;
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: 10px;
}
.feature-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}
.feature-content p {
    color: #555;
    margin-bottom: 30px;
}

/* --- Story Section --- */
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.story-card {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    padding-bottom: 30px;
}
.story-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.story-card h3 {
    font-size: 1.4rem;
    margin: 20px 0 10px;
}
.story-card p {
    padding: 0 20px;
    color: #666;
}

/* --- Gallery Section --- */
.gallery-section {
    background-color: var(--color-white);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    grid-auto-flow: dense;
    gap: 15px;
    margin-top: 50px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

/* --- Community Section --- */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.community-item {
    text-align: center;
    padding: 30px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all var(--transition-speed) ease;
}
.community-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: var(--color-accent);
}
.community-item i {
    font-size: 2.5rem;
    color: var(--color-accent);
    opacity: 0.6;
    margin-bottom: 20px;
}
.community-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.community-item p {
    color: #666;
}

/* --- CTA Section --- */
.cta-section {
    position: relative;
    padding: 100px 20px;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
}
.cta-background {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}
.cta-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10, 25, 47, 0.85);
    z-index: -1;
}
.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.cta-content p {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}
.form-row input {
    flex: 1;
    padding: 15px;
    border: 1px solid rgba(204, 214, 246, 0.5);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    font-size: 1rem;
}
.form-row input::placeholder {
    color: var(--color-text);
    opacity: 0.7;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--color-primary);
    color: var(--color-text);
    padding: 60px 0 20px;
}
.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-secondary);
}
.footer-col .footer-logo {
    height: 40px;
    margin-bottom: 15px;
}
.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--color-white);
}
.footer-col p {
    font-size: 0.9rem;
    line-height: 1.8;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul a:hover {
    color: var(--color-accent);
}
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}
.social-links a {
    font-size: 1.5rem;
}
.social-links a:hover {
    color: var(--color-accent);
}
.footer-bottom {
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #8892b0;
}
.footer-bottom a {
    color: #8892b0;
    margin: 0 5px;
}
.footer-bottom a:hover {
    color: var(--color-accent);
}
.footer-bottom .divider {
    color: #8892b0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .feature-block, .feature-block.reverse {
        flex-direction: column;
    }
    .feature-image {
        min-height: 300px;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
    .gallery-item.wide { grid-column: span 2; }
}

@media (max-width: 768px) {
    .section-padding { padding: 80px 0; }
    .section-title, .cta-content h2, .hero-content h1 { font-size: 2.2rem; }
    
    .main-nav { display: none; }
    .hamburger-menu { display: block; }
    
    .feature-content { padding: 40px 20px; }
    .form-row { flex-direction: column; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item.wide, .gallery-item.tall { grid-column: auto; grid-row: auto; }
}

.policy-content {
    background-color: #f8f9fa; /* 灰色背景 */
    border: 1px solid #ddd; /* 边框 */
    border-radius: 8px; /* 圆角 */
    padding: 30px; /* 内边距 */
    margin: 40px auto; /* 居中并添加外边距 */
    max-width: 800px; /* 最大宽度 */
}
.story-card img {
    width: 100%; /* 宽度占满容器 */
    height: 250px; /* 高度固定为250像素 */
    object-fit: cover; /* 自动裁剪以适应，不变形 */
}

/* --- Team Section Layout --- */
/* 添加在 style.css 文件末尾 */

.team-layout-container {
  display: flex;
  flex-direction: column;
  gap: 30px; /* 设置上下两行之间的距离 */
  margin-top: 60px; /* 保持与标题的距离 */
}

.team-row {
  display: flex;
  flex-wrap: wrap; /* 允许在小屏幕上换行 */
  justify-content: center; /* 居中卡片 */
  gap: 30px; /* 卡片之间的距离 */
}

/* 继承 .story-card 的所有已有样式，只调整布局相关的部分 */
.team-row .story-card {
  flex-grow: 1; /* 允许卡片在行内伸展 */
  width: calc(33.333% - 20px); /* 默认基础宽度 */
}

/* 调整图片高度，使其更协调 */
.team-row .story-card img {
    height: 240px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  /* 在手机上，所有卡片都变成单列 */
  .team-row .story-card {
    width: 100%;
    max-width: 350px; /* 在手机上给一个最大宽度，避免过宽 */
  }
}
/* =================================================== */
/* ===         增强的人物卡片和图片样式          === */
/* ===      请将此段代码添加到 style.css 文件末尾     === */
/* =================================================== */

/* 1. 为卡片本身添加平滑过渡效果和统一边框 */
.team-row .story-card {
    border: 1px solid #e0e0e0; /* 添加一个细微的边框，使其更精致 */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* 核心：为动效添加过渡 */
}

/* 2. 为图片容器设置，防止放大时图片溢出圆角 */
.team-row .story-card .img-wrapper {
    overflow: hidden;
    /* 如果您的卡片有圆角，这里也应该有 */
    border-radius: 8px 8px 0 0; 
}

/* 3. 为图片本身添加平滑过渡效果 */
.team-row .story-card img {
    transition: transform 0.3s ease; /* 核心：为图片放大动效添加过渡 */
}

/* 4. 定义鼠标悬停时的效果 */
.team-row .story-card:hover {
    transform: translateY(-8px); /* 卡片向上移动8像素 */
    box-shadow: 0 15px 25px rgba(0,0,0,0.1); /* 阴影变得更深、更弥散 */
    border-color: transparent; /* 悬停时隐藏边框 */
}

/* 5. 定义鼠标悬停时图片的效果 */
.team-row .story-card:hover img {
    transform: scale(1.05); /* 图片放大5% */
}