@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --primary-red: #7a1a1a;
    /* Deep Chinese Red */
    --accent-gold: #c5a059;
    /* Muted Gold */
    --bg-white: #faf9f6;
    /* Off-white, rice paper feel */
    --text-dark: #2c2c2c;
    /* Charcoal */
    --text-light: #ffffff;

    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Playfair Display', 'Noto Serif SC', serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

section {
    padding: 80px 0;
}

/* --- Language Switcher --- */
.lang-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.9);
    /* More visible on mobile */
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    padding: 8px 16px;
    font-family: 'Noto Serif SC', serif;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-weight: bold;
    backdrop-filter: blur(5px);
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--primary-red);
    color: var(--bg-white);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    /* Changed from height to min-height for mobile landscape */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 2rem;
    background: linear-gradient(rgba(255, 249, 246, 0.9), rgba(255, 249, 246, 0.8)), url('image/main_image_01.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Chinese Pattern Overlay */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(var(--primary-red) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

.logo-container {
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease-out;
}

.logo-container img {
    max-width: 250px;
    width: 60vw;
    /* Scales with screen width on mobile */
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.title-container {
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

h1 {
    font-size: 3.5rem;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--accent-gold);
    font-style: italic;
    margin-bottom: 2rem;
}


/* --- Info Section (Premium Redesign) --- */
.info-section {
    background: linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)),
        url('image/main_image_01.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Semi-transparent white overlay on main image */
    position: relative;
    padding: 80px 0;
}

/* Decorative background elements */
.info-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            var(--accent-gold) 30%,
            var(--accent-gold) 70%,
            transparent);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.info-card {
    background: linear-gradient(135deg, var(--primary-red) 0%, #6a1515 100%);
    color: var(--text-light);
    padding: 3.5rem 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    position: relative;

    box-shadow:
        0 15px 35px rgba(122, 26, 26, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);

    /* Clip corners for Chinese style */
    clip-path: polygon(0 8px, 8px 0, calc(100% - 8px) 0, 100% 8px,
            100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px));
}

/* Stagger effect - second card offset */
.info-card:nth-child(2) {
    margin-top: 20px;
}

/* Gold accent border */
.info-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid var(--accent-gold);
    opacity: 0.5;
    transition: opacity 0.4s ease;
    pointer-events: none;

    clip-path: polygon(0 8px, 8px 0, calc(100% - 8px) 0, 100% 8px,
            100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px));
}

/* Decorative corner elements */
.info-card::after {
    content: "◆";
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    color: var(--accent-gold);
    font-size: 1.2rem;
    opacity: 0.6;
    transition: all 0.4s ease;
}

.info-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 25px 50px rgba(122, 26, 26, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.info-card:hover::before {
    opacity: 1;
}

.info-card:hover::after {
    transform: rotate(180deg);
    opacity: 1;
}

.info-card h2 {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.info-content p {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

/* --- Brand Story --- */
.story-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.story-section h2 {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 2rem;
    display: inline-block;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 10px;
}

.story-content {
    font-size: 1.2rem;
    color: #555;
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.8;
}

/* --- Footer --- */
footer {
    background-color: #1a1a1a;
    color: #aaa;
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    text-align: left;
}

.footer-col h3 {
    color: var(--primary-red);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-col h4 {
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #666;
}

/* --- Gallery Section --- */
.gallery-section {
    background-color: var(--bg-white);
    text-align: center;
}

.gallery-section h2 {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 3rem;
    display: inline-block;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 10px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.gallery-item {
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: #fff;
    aspect-ratio: 4/3;
    /* Enforce consistent aspect ratio */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

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

/* --- Features/SEO Section --- */
.features-section {
    background-color: var(--primary-red);
    color: var(--text-light);
    text-align: center;
}

.features-section h2 {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border: 1px solid rgba(197, 160, 89, 0.3);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

.feature-item h3 {
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.seo-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.8;
}

/* --- Social Media Section --- */
.social-section {
    background-color: var(--bg-white);
    text-align: center;
    padding: 60px 0;
}

.social-section h2 {
    font-size: 2.2rem;
    color: var(--primary-red);
    margin-bottom: 2.5rem;
    display: inline-block;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 10px;
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.social-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: transparent;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border-radius: 50%;
    overflow: hidden;
    /* Ensure image stays within circle */
}

.social-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-btn:hover {
    background-color: var(--primary-red);
    color: var(--text-light);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 5px 15px rgba(122, 26, 26, 0.3);
}

/* --- Environment Section (Flex Accordion) --- */
.envi-section {
    background-color: var(--bg-white);
    text-align: center;
    padding-bottom: 0;
    /* Let images go to edge if desired, but here we have container */
    overflow: hidden;
}

.envi-section h2 {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 3rem;
    display: inline-block;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 10px;
}

.container-fluid {
    width: 100%;
    padding: 0 5%;
    /* Slight padding */
}

.envi-gallery {
    display: flex;
    height: 500px;
    gap: 10px;
    margin-bottom: 2rem;
}

.envi-item {
    flex: 1;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    transition: flex 0.5s ease-in-out, filter 0.5s ease;
    cursor: pointer;
    filter: brightness(0.8) grayscale(0.2);
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.envi-item:hover {
    flex: 5;
    /* Expand significantly */
    filter: brightness(1) grayscale(0);
    z-index: 2;
    /* Bring to front context */
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Recruitment Section (Premium Redesign) --- */
.recruitment-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #faf9f6 0%, #f5f3ed 100%);
    position: relative;
    overflow: hidden;
}

/* Chinese pattern overlay */
.recruitment-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(197, 160, 89, 0.03) 35px, rgba(197, 160, 89, 0.03) 70px);
    pointer-events: none;
}

.recruitment-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
}

/* Decorative top border */
.recruitment-content::before {
    content: "◆";
    display: block;
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-bottom: -1rem;
}

.recruitment-text {
    position: relative;
    padding: 2.5rem 3rem;
    background-color: var(--primary-red);
    color: var(--text-light);
    border-radius: 4px;
    width: 100%;

    /* Decorative corners */
    clip-path: polygon(0 12px, 12px 0, calc(100% - 12px) 0, 100% 12px,
            100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px));

    box-shadow:
        0 10px 40px rgba(122, 26, 26, 0.2),
        inset 0 1px 0 rgba(197, 160, 89, 0.3);
}

/* Gold corner accents */
.recruitment-text::before,
.recruitment-text::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-gold);
}

.recruitment-text::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.recruitment-text::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

.recruitment-text h2 {
    font-size: 2.2rem;
    color: var(--accent-gold);
    margin-bottom: 0.8rem;
    font-family: 'Playfair Display', serif;
    letter-spacing: 2px;
    font-weight: 700;
}

.recruitment-text p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.15rem;
    font-family: 'Noto Serif SC', serif;
    line-height: 1.6;
}

.recruit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #d4b76a 100%);
    color: var(--primary-red);
    text-decoration: none;
    font-family: 'Noto Serif SC', serif;
    font-weight: bold;
    font-size: 1.05rem;
    border-radius: 2px;
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow:
        0 4px 15px rgba(197, 160, 89, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.recruit-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.recruit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.recruit-btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 25px rgba(197, 160, 89, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .recruitment-section {
        padding: 60px 0;
    }

    .recruitment-text {
        padding: 2rem;
    }

    .recruitment-text h2 {
        font-size: 1.8rem;
    }

    .recruitment-text p {
        font-size: 1rem;
    }

    .recruit-btn {
        padding: 12px 30px;
        font-size: 0.95rem;
    }
}

/* --- Mobile Responsiveness (Enhanced) --- */
@media (max-width: 768px) {
    section {
        padding: 50px 0;
        /* Reduced padding on mobile */
    }

    h1 {
        font-size: 2.2rem;
        /* Smaller prominent title */
        line-height: 1.2;
    }

    .subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .info-card {
        padding: 1.5rem;
        /* Compact card padding */
    }

    .info-card h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .story-section h2 {
        font-size: 1.8rem;
    }

    .story-content {
        padding: 0 10px;
        font-size: 1rem;
        text-align: left;
        /* Easier to read on small screens than justify */
    }

    .container {
        padding: 0 15px;
        /* Tighter container on mobile */
    }

    .lang-switch {
        top: 15px;
        right: 15px;
    }

    .lang-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    /* Info Section Mobile */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .info-card:nth-child(2) {
        margin-top: 0;
    }

    .info-card {
        padding: 2.5rem 2rem;
    }

    /* Mobile Environment Gallery: Horizontal Scroll */
    .envi-gallery {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        height: 300px;
        /* Smaller height */
        gap: 15px;
        padding-bottom: 10px;
        /* For scrollbar space */
    }

    .envi-item {
        flex: 0 0 85%;
        /* Shows 85% of image width */
        scroll-snap-align: center;
        border-radius: 10px;
        filter: brightness(1) grayscale(0);
        /* No filter on mobile */
    }

    .envi-item:hover {
        flex: 0 0 85%;
        /* Disable expansion effect on mobile touch */
    }
}

@media (max-width: 480px) {

    /* Optimization for very small screens */
    h1 {
        font-size: 1.8rem;
    }

    .logo-container img {
        width: 70vw;
    }
}