﻿/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Century Gothic', Arial, sans-serif;
    line-height: 1.6;
    color: #040000;
    background-color: #222021;
}

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



/* About Section */
.about-section {
    width: 100%;
    background-color: #1e0c06;
    overflow: hidden;
    padding: 48px 0;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
}

.about-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    min-height: 300px;
    border-radius: 20px;
    margin: 0 auto 24px;
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.about-title {
    font-size: 32px;
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.about-subtitle {
    font-size: 20px;
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 600;
    color: #f7c35f;
    text-align: left;
    line-height: 1.3;
}

.about-description {
    font-size: 21px;
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #ffffff;
    opacity: 0.7;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/* Story Section */
.story-section {
    width: 100%;
    background-color: #222021;
    padding: 48px 0 24px;
    overflow: hidden;
}

.story-header {
    text-align: center;
    margin-bottom: 32px;
}

.story-title {
    font-size: 38px;
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.story-subtitle {
    font-size: 32px;
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 600;
    color: #f7c35f;
    text-align: center;
}

.gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 32px;
}

.gallery-item {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
}

.story-text {
    font-size: 20px;
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #ffffff;
    text-align: left;
    opacity: 0.7;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/* Vision Mission Section */
.vision-mission {
    width: 100%;
    background-color: #1b181a;
    padding: 48px 0;
}

.vision-mission-content {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.vision-card, .mission-card {
    background-color: #1b181a;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0px 2px 45px rgba(255, 255, 255, 0.5);
}

.card-title {
    font-size: 32px;
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.card-subtitle {
    font-size: 28px;
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 600;
    color: #f7c35f;
    margin-bottom: 24px;
    line-height: 1.5;
}

.card-description {
    font-size: 18px;
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive media queries */
@media (min-width: 640px) {

    .about-content {
        flex-direction: row;
        align-items: stretch; /* 让左右两列等高 */
    }

    .about-image {
        width: 45%;
        min-height: 400px;
        object-fit: cover; /* 图片铺满 */
        border-radius: 20px;
        margin: 0;
    }

    .about-text {
        width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* 文字块上下分布 */
        padding: 24px; /* 给点内边距，文字不会贴边 */
        overflow: hidden; /* 防止超出 */
    }

    .about-description {
        font-size: 21px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .gallery-item {
        height: 250px;
    }

    .story-text {
        font-size: 22px;
    }

    .vision-mission-content {
        flex-direction: row;
        gap: 32px;
    }

    .vision-card, .mission-card {
        flex: 1;
    }
}

@media (min-width: 768px) {

    .about-content {
        flex-direction: row;
        align-items: flex-start;
        gap: 48px;
    }

    .about-image {
        width: 45%;
        max-width: none;
        margin: 0;
        min-height: 400px;
        flex-shrink: 0;
    }

    .about-text {
        width: 50%;
        max-width: 100%;
        flex-shrink: 1;
        min-width: 0;
    }

    .about-title {
        font-size: 42px;
    }

    .about-subtitle {
        font-size: 24px;
        text-align: left;
    }

    .about-description {
        font-size: 21px;
    }

    .story-title {
        font-size: 48px;
    }

    .story-subtitle {
        font-size: 42px;
    }

    .gallery {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .gallery-item {
        height: 300px;
    }

    .story-text {
        font-size: 24px;
    }

    .card-title {
        font-size: 42px;
    }

    .card-subtitle {
        font-size: 36px;
    }

    .card-description {
        font-size: 20px;
    }
}

@media (min-width: 1024px) {

    .about-image {
        width: 45%;
        min-height: 480px;
    }

    .about-text {
        width: 45%;
    }

    .about-title {
        font-size: 55px;
    }

    .about-subtitle {
        font-size: 36px;
    }

    .about-description {
        font-size: 21px;
    }

    .story-section {
        padding: 72px 56px 42px;
    }

    .story-title {
        font-size: 65px;
    }

    .story-subtitle {
        font-size: 55px;
    }

    .story-text {
        font-size: 25px;
    }

    .vision-mission {
        padding: 76px 180px 76px 180px;
    }

    .vision-mission-content {
        gap: 70px;
    }

    .card-title {
        font-size: 52px;
    }

    .card-subtitle {
        font-size: 40px;
    }

    .card-description {
        font-size: 21px;
    }
}

/* Additional responsive text overflow prevention */
@media (max-width: 767px) {
    .about-description {
        font-size: 21px;
        line-height: 1.5;
    }

    .story-text {
        font-size: 18px;
        line-height: 1.5;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .about-text {
        padding-right: 16px;
    }
}

/* Prevent text overflow on all screen sizes */
.about-text,
.story-text {
    max-width: 100%;
    overflow: hidden;
}
