/* 全局样式 */
:root {
    --primary-color: #00B2D0;
    --primary-dark: #00B2D0;
    --secondary-color: #F5A623;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f9f9f9;
    --bg-blue-light: #eaf2f8;
    --white: #ffffff;
    --max-width: 1200px;
    --spacing-section: 80px 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background-color: #e0961f;
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* 头部导航 */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    max-width: none;
    padding: 0 40px;
}

.logo img {
    height: 50px;
    width: auto;
}

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

.main-nav a {
    font-size: 16px;
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.btn-contact {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 20px;
}

.btn-contact:hover {
    background-color: var(--primary-dark);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 160px 0 100px; /* Top padding for fixed header */
    text-align: center;
    position: relative;
    overflow: hidden;
}

#dandelion-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content img {
    width: 220px;
    margin: 0 auto 40px;
    display: block;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
    transition: transform 0.3s ease;
}

.hero-content img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.6));
}

.hero-content h2 {
    font-size: 46px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-content p {
    font-size: 22px;
    opacity: 0.95;
    margin-bottom: 50px;
    letter-spacing: 3px;
    font-weight: 300;
}

/* Mission Section */
.mission-section {
    padding: 60px 0;
    background-color: var(--white);
    margin-top: -50px; /* Overlap effect */
    position: relative;
    z-index: 10;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mission-item {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}

.mission-item:hover {
    transform: translateY(-5px);
}

.mission-item i {
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.brand-intro-text {
    margin-bottom: 50px;
    margin-left: auto;
    margin-right: auto;
}

.intro-block {
    margin-bottom: 40px;
    background: #fdfdfd;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.intro-block h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-left: 4px solid var(--secondary-color);
    padding-left: 15px;
    display: flex;
    align-items: center;
}

.intro-block p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    text-align: justify;
    margin-bottom: 15px;
}

.intro-block p:last-child {
    margin-bottom: 0;
}

.intro-block span {
    color: var(--secondary-color);
    font-weight: bold;
}

.logo-desc {
    margin-top: 15px;
}

.logo-desc li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #555;
}

.logo-desc strong {
    color: #333;
    margin-right: 8px;
    font-size: 17px;
}

.color-dot {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.color-dot.orange {
    background-color: var(--secondary-color);
}

.color-dot.blue {
    background-color: var(--primary-color);
}

.mission-item h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* 通用 Section 样式 */
section {
    padding: var(--spacing-section);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-title .subtitle {
    display: block;
    font-size: 18px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-primary-light {
    background-color: var(--bg-blue-light);
}

/* 品牌简介部分 */
.about-section {
    background-color: var(--bg-blue-light);
}

.brand-intro-content {
    margin-bottom: 50px;
}

.intro-text-wrapper {
    max-width: 900px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

.intro-text-wrapper p {
    margin-bottom: 20px;
    text-indent: 2em; /* Optional: standard Chinese paragraph indentation */
}

.intro-text-wrapper .highlight {
    color: var(--secondary-color);
    font-weight: bold;
}

/* Legacy intro-block styles (can be removed if no longer used) */
.intro-block {
    margin-bottom: 40px;
    background: #fdfdfd;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
}

/* 品牌理念与Logo解读 Grid */
.brand-concept-grid {
    display: flex;
    gap: 30px;
    margin-top: 50px;
}

.concept-card {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s;
}

.concept-card:hover {
    transform: translateY(-5px);
}

.core-idea-card {
    border-top-color: var(--secondary-color); /* 橙色 */
}

.logo-card {
    border-top-color: var(--primary-color); /* 蓝色 */
}

.concept-title {
    font-size: 22px;
    color: var(--primary-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.concept-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
}

.logo-card .concept-title::after {
    background: var(--primary-color);
}

.logo-desc-img {
    width: 30%;
    display: block;
    height: auto;
    border-radius: 4px;
}

/* 创始人部分 */
.founder-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.founder-gallery {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.founder-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    aspect-ratio: 4/3;
    transition: transform 0.3s ease;
}

.founder-gallery img:hover {
    transform: scale(1.02);
}

.founder-text {
    flex: 1.5;
    padding-left: 20px;
}

.founder-intro {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 10px;
}

.founder-intro::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
}

.timeline-wrapper {
    position: relative;
    padding-left: 20px;
    margin-bottom: 30px;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: linear-gradient(to bottom, var(--secondary-color), var(--bg-blue-light));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-left: 25px;
    margin-bottom: 25px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px; /* Adjust to align with line wrapper padding + offset */
    left: -6px;
    top: 6px;
    width: 14px;
    height: 14px;
    background: var(--white);
    border: 3px solid var(--secondary-color);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item .year {
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 18px;
    margin-bottom: 5px;
    line-height: 1.2;
    padding-top: 5px;
}

.timeline-item .desc {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

.founder-footer {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
    background: var(--bg-blue-light);
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid var(--primary-color);
}

/* 书籍部分 */
.books-grid {
    width: 100%;
}

.books-grid ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.books-grid li {
    flex: 0 0 calc(25% - 23px);
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.books-grid li:hover {
    transform: translateY(-5px);
}

.books-grid img {
    height: 200px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
    max-width: 100%;
}

.books-grid h3 {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

@media (max-width: 992px) {
    .books-grid li {
        flex: 0 0 calc(33.333% - 20px);
    }
}

@media (max-width: 768px) {
    .books-grid li {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 480px) {
    .books-grid li {
        flex: 0 0 100%;
    }
}

/* 培训部分 */
.subsection {
    margin-bottom: 40px;
}

.subsection-title {
    font-size: 26px;
    color: var(--primary-dark);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.subsection-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--bg-blue-light);
}

.subsection-desc {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-light);
    font-size: 18px;
}

.map-stats {
    text-align: center;
}

.highlight-stats {
    font-size: 20px;
    margin-bottom: 30px;
}

.highlight-stats strong {
    color: var(--secondary-color);
    font-size: 28px;
    margin: 0 5px;
}

.map-img {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.feature-tag {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-blue-light);
    color: var(--primary-color);
    border-radius: 20px;
    font-weight: bold;
    font-size: 16px;
}

.charity-content {
    display: flex;
    justify-content: space-between!important;
    gap: 40px;
    margin-bottom: 40px;
}

.charity-stat {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.charity-stat h4 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--bg-blue-light);
    padding-bottom: 10px;
}

.training-stats {
    text-align: center;
    font-size: 20px;
    margin-bottom: 40px;
}

.training-stats strong {
    color: var(--secondary-color);
    font-size: 28px;
}

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

.training-card {
    background: #fff;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.training-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
}

.icon-wrapper.blue {
    background: rgba(0, 91, 172, 0.1); /* 童真蓝的淡色背景 */
    color: var(--primary-color);
}

.icon-wrapper.orange {
    background: rgba(255, 153, 51, 0.1); /* 善解橙的淡色背景 */
    color: var(--secondary-color);
}

.training-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    font-weight: bold;
    line-height: 1.4;
}

.training-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    text-align: left; /* 保持文字左对齐更易读，虽然整体居中 */
    text-align-last: center; /* 尝试让最后一行居中，或者直接 justify */
    text-align: justify;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-color);
}

.card h3 {
    margin-bottom: 15px;
    color: #333;
}

/* 课程部分 */
.service-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.service-item {
    padding: 20px;
}

.icon-box {
    width: 80px;
    height: 80px;
    background: var(--bg-blue-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 32px;
}

/* 善伙伴与研讨会 */
.row {
    display: flex;
    gap: 50px;
}

.col-half {
    flex: 1;
}

.col-half h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.highlight-text {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 15px;
}

.check-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.event-box {
    background: var(--primary-color);
    color: var(--white);
    padding: 30px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
}

.event-box h4 {
    margin-bottom: 10px;
    font-size: 20px;
}

/* 公益部分 */
.charity-content {
    display: flex;
    justify-content: center;
    gap: 50px;
    text-align: center;
}

.charity-stat {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    flex: 1;
}

.charity-stat h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 22px;
}

.charity-stat p.charity-desc {
    font-size: 16px;
    text-align: left;
    line-height: 1.6;
    color: #555;
}

.charity-stat p.charity-desc span {
    color: var(--secondary-color);
    font-size: 18px;
    font-weight: bold;
    margin: 0 2px;
}

.charity-stat .small {
    font-size: 14px;
    color: #777;
    margin-top: 15px;
}

/* 联系我们 */
.qr-codes-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.qr-item {
    text-align: center;
}

.qr-item img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.qr-item p {
    font-size: 16px;
    color: var(--primary-dark);
    font-weight: bold;
}

.contact-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 50px;
}

.contact-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    flex: 0 1 350px;
    width: 100%;
    max-width: 350px;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--secondary-color);
}

.contact-card .icon-box {
    width: 60px;
    height: 60px;
    background: rgba(245, 166, 35, 0.1); /* Orange tint */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--secondary-color);
    font-size: 24px;
}

.contact-card h4 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 700;
}

.contact-info {
    border-top: 1px dashed #eee;
    padding-top: 15px;
}

.contact-name {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.contact-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: background 0.3s;
}

.contact-btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: scale(1.05);
}

.contact-btn i {
    margin-right: 5px;
    font-size: 14px;
}

.social-media {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.social-icons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons span {
    background: #eee;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: #555;
}

/* 页脚 */
.site-footer {
    background-color: #333;
    color: #999;
    padding: 30px 0;
    text-align: center;
}

.site-footer a {
    color: #999;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* 图片网格与列表 */
.img-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.img-grid img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}

.img-grid.training-grid img {
    height: 180px;
}

.img-grid img:hover {
    transform: scale(1.05);
}

/* Special grid layout: 3 on top, 2 on bottom (centered) */
@media (min-width: 768px) {
    .img-grid.special-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .img-grid.special-grid img {
        width: calc((100% - 30px) / 3);
    }
}

.img-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .img-list {
        grid-template-columns: 1fr;
    }
}

.img-list img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.partner-desc {
    line-height: 1.8;
    text-align: justify;
}

.partner-desc span {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 18px;
    margin: 0 3px;
}

/* 品牌创始人新布局 */
.founder-profile-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 30px;
}

.founder-left-col {
    width: 300px;
}

.founder-main-img-box {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
}

.founder-main-img-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    pointer-events: none;
}

.founder-main-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.founder-main-img:hover {
    transform: scale(1.02);
}

.founder-right-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.founder-intro-header {
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.founder-name {
    font-size: 32px;
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-weight: 700;
}

.founder-title {
    font-size: 16px;
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.founder-bio {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

/* 发展历程列表 */
.founder-milestones-list {
    margin-bottom: 30px;
}

.milestones-header {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 4px solid var(--secondary-color);
}

.milestone-row {
    display: flex;
    margin-bottom: 8px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: background 0.3s;
}
.milestone-row:last-child{
    margin: 0;
}

.milestone-row:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.m-year {
    flex: 0 0 80px;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 18px;
}

.m-desc {
    flex: 1;
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

/* 缩略图画廊（底部单行） */
.founder-gallery-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.founder-gallery-row img {
    width: 100%;
    height: 180px; /* 较高的高度展示细节 */
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.9;
    transition: all 0.3s;
    border: 2px solid transparent;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.founder-gallery-row img:hover {
    opacity: 1;
    transform: translateY(-5px);
    z-index: 1;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    border-color: var(--secondary-color);
}

/* 响应式 */
@media (max-width: 768px) {
    .founder-profile-container {
        flex-direction: column;
    }
    .founder-left-col {
        width: 100%;
        margin-bottom: 30px;
    }
    .founder-gallery-row {
        grid-template-columns: repeat(2, 1fr); /* 移动端2x2堆叠 */
        gap: 15px;
    }
    .site-header .container {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }

    .mission-grid, .books-grid, .cards-grid, .service-list, .contact-grid {
        grid-template-columns: 1fr;
    }

    .row {
        flex-direction: column;
    }
    
    .founder-content {
        flex-direction: column;
    }
    
    .charity-content {
        flex-direction: column;
    }
}

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

#backToTop:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}
/* Lightbox Styles */
.lightbox {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: hidden; 
    background-color: rgba(0,0,0,0.9);
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Add cursor pointer to clickable images */
.founder-gallery-row img,
.img-list img,
.img-grid img {
    cursor: pointer;
    transition: 0.3s;
}

.founder-gallery-row img:hover,
.img-list img:hover,
.img-grid img:hover {
    opacity: 0.7;
}

/* Responsive Styles */

/* Tablet & Small Desktop (max-width: 992px) */
@media (max-width: 992px) {
    /* Navigation - Switch to Hamburger */
    button.menu-toggle {
        display: block !important;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .main-nav.active {
        transform: translateY(0);
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    /* Layout Adjustments */
    .site-header .container {
        padding: 0 20px;
    }
    
    .hero-section {
        padding: 140px 0 80px;
    }

    .hero-content h2 {
        font-size: 36px;
    }
    
    /* 2 Columns for Tablet */
    .mission-grid,
    .service-list,
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .img-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Flex Containers to Column */
    .founder-profile-container,
    .charity-content,
    .founder-content,
    .row {
        flex-direction: column;
        gap: 30px;
    }
    
    .charity-content {
        align-items: center;
    }

    .founder-left-col,
    .founder-right-col,
    .col-half,
    .charity-stat {
        width: 100%;
        max-width: none;
    }
    
    .founder-left-col {
        max-width: 500px;
        margin: 0 auto;
    }

    .founder-text {
        padding-left: 0;
    }
    
    .founder-gallery-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo-desc-img {
        width: 50%;
        margin-top: 20px;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: row; /* Ensure logo and toggle stay side-by-side */
        height: 70px; /* Maintain height */
        align-items: center;
    }

    .hero-section {
        padding: 120px 0 60px;
    }
    
    .hero-content h2 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
        letter-spacing: 1px;
    }
    
    /* Grids to 1 column */
    .mission-grid,
    .service-list,
    .contact-grid,
    .img-list,
    .brand-concept-grid,
    .img-grid {
        grid-template-columns: 1fr;
    }
    
    /* Special handling for special-grid to reset flex behavior if any */
    .img-grid.special-grid {
        display: grid; /* Reset from flex if set */
    }
    .img-grid.special-grid img {
        width: 100%; /* Reset width calc */
    }

    .map-stats #map-container {
        height: 350px !important;
    }
    
    .qr-codes-container {
        gap: 20px;
    }
    
    .qr-item img {
        width: 100px;
        height: 100px;
    }
    
    .social-icons {
        flex-wrap: wrap;
    }
    
    .logo-desc-img {
        width: 100%;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .founder-intro {
        font-size: 20px;
    }
}

/* Mobile Menu Toggle Button Style */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}
