/* --- START OF FILE style.css --- */
/*  颜色变量  */
:root {
    --primary-color-light-blue: #E0F7FA;
    --secondary-color-white: #F8F8FF;
    --accent-color-orange: #FFA726;
    --text-color-gray: #757575;
    --text-color-dark: #333333;
    --font-family-chinese: '思源黑体', '苹方', sans-serif;
    --font-family-english: 'Roboto', 'Open Sans', sans-serif;
}

body {
    font-family: var(--font-family-chinese); /* Default, will be overridden by JS for English */
    color: var(--text-color-dark);
    margin: 0;
    padding: 0;
    background-color: var(--secondary-color-white);
    line-height: 1.6;
}

/* Language specific body class */
body.lang-en-US {
    font-family: var(--font-family-english);
}
body.lang-zh-CN {
    font-family: var(--font-family-chinese);
}


header {
    background-color: var(--primary-color-light-blue);
    padding: 10px 0 20px 0; /* Adjusted padding */
    position: relative; /* 确保 header 相对于 main 定位 */
    z-index: 100; /* 确保 header 在最上层 */
}

/* Language Switcher Styles */
.language-switcher {
    text-align: right;
    padding: 5px 20px;
    font-size: 0.9em;
}
.language-switcher a {
    color: var(--text-color-dark);
    text-decoration: none;
    margin: 0 5px;
    padding: 5px;
    border-radius: 3px;
}
.language-switcher a:hover, .language-switcher a.active-lang {
    background-color: rgba(0,0,0,0.1);
    font-weight: bold;
}


main {
    position: relative;
    padding-top: 700px; /* 与 Hero 区高度一致 */
}

/* 导航栏样式调整 */
#main-nav {
    display: flex;
    justify-content: center;
    position: relative;
    margin-top: 5px; /* Added margin */
}

.nav-link {
    color: var(--text-color-dark);
    text-decoration: none;
    margin: 0 20px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* 导航卡片容器样式 */
#nav-cards-container {
    position: absolute;
    top: 60px; /* Adjusted based on new header layout */
    left: 0;
    width: 100%;
    z-index: 90; 
    pointer-events: none;
}

/* 导航卡片样式 */
.nav-card {
    display: none;
    background-color: var(--secondary-color-white);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    padding: 30px;
    margin-top: 10px;
    text-align: center;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease, display 0.3s ease;
}

.nav-card.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.nav-card h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: var(--text-color-dark);
}

.nav-card p {
    color: var(--text-color-gray);
    margin-bottom: 30px;
}

.nav-card a {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    background-color: var(--accent-color-orange);
    color: var(--secondary-color-white);
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav-card a:hover {
    background-color: #FF8F00;
    transform: scale(1.05);
}

/* 首页链接特殊样式 */
#home-link {
    background-color: transparent;
    border: none; 
    font-weight: bold; 
}

/* Hero 区样式 */
#hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 700px;
    overflow: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#hero.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--secondary-color-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 30px;
}

.hero-overlay h1 {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-overlay p {
    font-size: 1.3em;
    font-weight: normal;
    max-width: 800px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}


/* 通用区块描述段落样式 */
.section-description {
    color: var(--text-color-gray);
    max-width: 800px;
    margin: 20px auto 40px auto;
    line-height: 1.8;
    text-align: center;
    font-size: 1.1em;
}

/* 各 Section 标题居中醒目 */
section > h2 {
    font-size: 2.5em; 
    text-align: center;
    font-weight: bold;
    margin-bottom: 40px;
    position: relative;
    color: var(--text-color-dark); 
}

section > h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px; 
    transform: translateX(-50%);
    width: 100px; 
    height: 4px;   
    background-color: var(--accent-color-orange); 
    border-radius: 2px; 
}


/* 核心价值区域 */
#core-values .section-description {
    margin-bottom: 60px; 
}

.values-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 40px; 
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.value-item {
    flex: 1;
    min-width: 250px; 
    padding: 40px 20px; 
    background-color: var(--secondary-color-white);
    border-radius: 15px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08); 
    text-align: center; 
}

.value-item img {
    width: 300px; 
    height: 300px;
    margin-bottom: 25px; 
    display: block; 
    margin-left: auto;  
    margin-right: auto;
}


/* 故事案例区域 */
#story-wall {
    background-color: var(--primary-color-light-blue);
    padding: 80px 20px; 
}

#story-wall .section-description {
    color: var(--text-color-dark); /* Changed to dark for better contrast on light blue */
    margin-bottom: 50px; 
}
/* Ensure story wall title also has dark text on light blue for readability */
#story-wall > h2 {
    color: var(--text-color-dark);
}
#story-wall > h2::after {
    background-color: var(--accent-color-orange); /* Keep accent for underline */
}


.story-categories {
    display: flex;
    justify-content: center;
    gap: 20px; 
    margin-bottom: 40px; 
}

.category-button {
    padding: 12px 25px; 
    border: none;
    border-radius: 8px; 
    background-color: var(--secondary-color-white); 
    color: var(--text-color-dark);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease; 
    font-size: 1.1em; 
    font-weight: 500; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); 
}

.category-button.active, .category-button:hover {
    background-color: var(--accent-color-orange); 
    color: var(--secondary-color-white); 
    transform: translateY(-2px); 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
}


.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(48%, 1fr)); 
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.story-item {
    background-color: var(--secondary-color-white);
    border-radius: 15px; 
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08); 
    transition: transform 0.3s ease; 
}

.story-item:hover {
    transform: scale(1.02); 
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); 
}


.story-item img {
    width: 100%;
    height: 350px; 
    object-fit: cover;
    display: block;
}

.story-item h3 {
    font-size: 1.3em; 
    margin: 25px 20px; 
    color: var(--text-color-dark);
    line-height: 1.4; 
}

.story-item p {
    margin: 0 20px 25px 20px; 
    color: var(--text-color-gray);
    line-height: 1.7; 
}

.story-item a {
    display: block;
    padding: 15px 25px; 
    background-color: var(--accent-color-orange);
    color: var(--secondary-color-white);
    text-decoration: none;
    text-align: center;
    border-radius: 0 0 15px 15px; 
    transition: background-color 0.3s ease, transform 0.2s ease; 
    font-weight: 500; 
}

.story-item a:hover {
    background-color: #FF8F00;
    transform: translateY(-2px); 
}


/*  加入我们区样式调整 (This section seems to have been removed from HTML, if needed, uncomment and adjust) */
/*
#join-us {
    padding: 100px 20px; 
    text-align: center;
    background-color: var(--primary-color-light-blue);
}

#join-us h2 {
    font-size: 3em; 
    margin-bottom: 50px; 
    color: var(--secondary-color-white); 
}

#join-us h2::after { 
    background-color: var(--secondary-color-white);
}


#join-us .section-description {
    color: var(--secondary-color-white); 
    margin-bottom: 60px; 
    font-size: 1.2em; 
}


.join-buttons {
    display: flex;
    justify-content: center;
    gap: 40px; 
    flex-wrap: wrap;
}

.join-group {
    flex: 1;
    min-width: 300px; 
    padding: 40px; 
    background-color: var(--secondary-color-white);
    border-radius: 15px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08); 
    text-align: center;
    transition: transform 0.3s ease; 
}

.join-group:hover {
    transform: translateY(-5px); 
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15); 
}


.join-group h3 {
    font-size: 1.7em; 
    margin-bottom: 30px; 
    color: var(--text-color-dark);
}

.join-group p {
    color: var(--text-color-gray);
    margin-bottom: 40px; 
    line-height: 1.7; 
}
*/


/* 按钮样式 */
.primary-button, .secondary-button, .outline-button {
    display: inline-block;
    padding: 15px 35px; 
    border-radius: 8px; 
    text-decoration: none;
    font-size: 1.2em; 
    font-weight: 500; 
    transition: transform 0.2s ease, box-shadow 0.2s ease; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
}

.primary-button {
    background-color: var(--accent-color-orange);
    color: var(--secondary-color-white);
}

.secondary-button {
    background-color: var(--secondary-color-white);
    color: var(--text-color-dark);
    border: 2px solid var(--primary-color-light-blue); 
}

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

.primary-button:hover, .secondary-button:hover, .outline-button:hover {
    transform: translateY(-3px); 
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); 
}


/* 隐藏类 */
.hidden {
    display: none !important;
    opacity: 0;
    transition: all 0.3s ease;
}

/* 页脚样式 */
footer {
    background-color: var(--secondary-color-white);
    padding: 40px 20px; 
    text-align: center;
    border-top: 1px solid #eee;
    color: var(--text-color-gray);
    font-size: 0.95em; 
}

footer p {
    line-height: 1.8; 
    margin-bottom: 15px; 
}


footer a {
    color: var(--accent-color-orange);
    text-decoration: none;
}

.social-links {
    margin-top: 25px; 
    text-align: center; 
}

.social-links a {
    display: inline-block;
    margin: 0 15px; 
}

.social-links img {
    width: 35px; 
    height: 35px;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.2s ease; 
}

.social-links img:hover {
    opacity: 1;
    transform: scale(1.1); 
}


/* 响应式设计 (简易示例) */
@media (max-width: 768px) {
    #main-nav { /* Changed from nav to #main-nav for specificity */
        flex-direction: column;
        text-align: center;
    }

    #main-nav a { /* Changed from nav a */
        margin: 10px 0;
    }
    
    .language-switcher {
        text-align: center;
        padding-bottom: 10px;
    }
    #nav-cards-container {
        top: 100px; /* Adjust if header height changes significantly on mobile */
    }


    #hero {
        min-height: 500px; 
    }

    .hero-overlay h1 {
        font-size: 2.5em; 
    }

    .hero-overlay p {
        font-size: 1.1em; 
    }


    .values-grid {
        flex-direction: column;
    }

    .story-grid {
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr)); 
    }

    /*
    .join-buttons {
        flex-direction: column;
    }

    .join-group {
        min-width: auto; 
    }
    */
}
/* --- END OF FILE style.css --- */