/* ========================================================================
   PANTEX WEBSITE STYLESHEET
   Created: 2026/1/5
   Description: Main stylesheet for Pantex company website
   ======================================================================== */

/* ========================================================================
   GOOGLE FONTS IMPORT
   ======================================================================== */

@import url('https://fonts.bluecdn.com/css2?family=Leckerli+One&display=swap');
@import url('https://fonts.bluecdn.com/css2?family=Cabin:wght@400;500;600;700&display=swap');
@import url('https://fonts.bluecdn.com/css2?family=Cinzel:wght@400;500;600;700&display=swap');
@import url('https://fonts.bluecdn.com/css2?family=Cormorant+SC:wght@400;500;600;700&display=swap');
@import url('https://fonts.bluecdn.com/css2?family=Faustina:wght@400;500;600;700&display=swap');

/* ========================================================================
   1. GLOBAL STYLES
   ======================================================================== */

/* Overall Page Style */
body {
    font-family: 'Cabin', 'Microsoft JhengHei', sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #355E3B #F3F1EC;
    scrollbar-gutter: stable;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* 深色模式 */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode #container {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

body.dark-mode #welcome {
    background-color: #1f1f1f;
}

body.dark-mode .stylish-heading {
    color: #355E3B;
}

body.dark-mode .welcome-text p {
    color: #d0d0d0;
}

body.dark-mode .business-item {
    background-color: #2a2a2a;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .business-item p {
    color: #c0c0c0;
}

body.dark-mode .business-item h3 {
    background: linear-gradient(135deg, #2d4a33 0%, #355E3B 100%);
}

body.dark-mode .business-overlay {
    background-color: rgba(107, 90, 62, 0.9);
}

body.dark-mode .tag {
    background-color: #355E3B;
    box-shadow: 0 2px 8px rgba(53, 94, 59, 0.4);
}

body.dark-mode .timeline-item {
    background-color: #2a2a2a;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

body.dark-mode .description h3 {
    color: #e0e0e0;
}

body.dark-mode .description p {
    color: #b0b0b0;
}

body.dark-mode .modal-content {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

body.dark-mode .contact-form {
    background-color: #2a2a2a;
}

body.dark-mode .contact-form h3 {
    color: #355E3B;
}

body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
    background-color: #1f1f1f;
    border-color: #404040;
    color: #e0e0e0;
}

body.dark-mode .modal-close {
    color: #b0b0b0;
}

body.dark-mode .modal-close:hover {
    color: #355E3B;
}

body.dark-mode ::-webkit-scrollbar-track {
    background: #2a2a2a;
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #355E3B, #4a7d52);
    border-color: #2a2a2a;
}

body.modal-open {
    overflow: hidden;
}

/* Custom scrollbar to avoid overlaying header/footer */
::-webkit-scrollbar {
    width: 10px;
    background: #f4f6fa;
}

::-webkit-scrollbar-track {
    background: #f4f6fa;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #355E3B, #4a7d52);
    border-radius: 8px;
    border: 2px solid #f4f6fa;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #4a7d52, #355E3B);
}

/* Smooth transitions for theme switching */
body,
body * {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Disable transitions during scroll for better performance */
.scrolling * {
    transition: none !important;
}

/* ========================================================================
   2. PRELOADER / LOADING ANIMATION
   ======================================================================== */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #355E3B 0%, #2d4a33 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

/* Progress Bar */
.progress-container {
    position: relative;
    width: 60%;
    max-width: 500px;
    height: 20px;
    background: radial-gradient(circle, #1b2735, #090a0f);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    border: 1px solid #313131;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #00f260, #0575e6);
    border-radius: 30px;
    animation: grow 1.5s ease-in-out forwards;
    box-shadow:
        0 0 15px #00f260,
        0 0 30px #0575e6;
}

.progress-bar::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0.5;
    animation: ripple 3s infinite;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 5s infinite ease-in-out;
}

.particle:nth-child(1) {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 30%;
    left: 70%;
    animation-delay: 1s;
}

.particle:nth-child(3) {
    top: 50%;
    left: 50%;
    animation-delay: 2s;
}

.particle:nth-child(4) {
    top: 80%;
    left: 40%;
    animation-delay: 1.5s;
}

.particle:nth-child(5) {
    top: 90%;
    left: 60%;
    animation-delay: 2.5s;
}

@keyframes grow {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-20px) translateX(10px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

/* ========================================================================
   3. HEADER & NAVIGATION
   ======================================================================== */

/* Header Section */
#head {
    padding: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0px 6px 18px rgba(16, 32, 24, 0.35);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(23, 52, 35, 0.95) 0%, rgba(42, 92, 61, 0.92) 50%, rgba(30, 66, 46, 0.96) 100%);
    z-index: 1000;
    transition: all 0.3s ease;
    will-change: transform;
}

#head:not(.scrolling) {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    position: relative;
    min-height: 72px;
}

#head.scrolled {
    box-shadow: 0px 6px 20px rgba(53, 94, 59, 0.3);
}

body.dark-mode #head {
    background: linear-gradient(135deg, rgba(21, 44, 31, 0.95) 0%, rgba(34, 72, 50, 0.94) 50%, rgba(24, 52, 36, 0.97) 100%);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode #head.scrolled {
    box-shadow: 0px 6px 20px rgba(107, 90, 62, 0.4);
}

/* Logo Styling */
.logo {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    z-index: 10;
}

.logo a {
    display: block;
    text-decoration: none;
}

.logo-svg {
    height: 60px;
    width: auto;
    display: block;
    transform: scale(1);
    transform-origin: center center;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover .logo-svg {
    transform: scale(1.1);
}

/* Navigation Menu */
#menu {
    background: transparent;
    text-align: center;
    padding: 0;
    width: auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
    flex: 1;
    height: 72px;
}

#menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.28s ease-in-out;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    font-size: 0.92em;
    height: 100%;
    border-radius: 0;
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
}

#menu a:after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px;
    height: 2px;
    background-color: #355E3B;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: opacity 0.26s ease-in-out, transform 0.26s ease-in-out;
}

#menu a:hover {
    color: #355E3B;
    background: #ffffff;
    border-color: #ffffff;
    transform: translateY(0);
    box-shadow: none;
}

#menu a:hover:after {
    opacity: 1;
    transform: scaleX(1);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-left: auto;
}

.toggle {
    width: auto;
    height: auto;
    border-radius: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    line-height: 1;
    background: transparent;
    transition: all 0.3s ease;
    margin-left: 8px;
}

.toggle:hover {
    background: transparent;
}

.input {
    display: none;
}

.icon {
    grid-column: 1 / 1;
    grid-row: 1 / 1;
    transition: transform 500ms;
    line-height: 0.1;
}

.icon--moon {
    transition-delay: 200ms;
    color: #b4b4b4;
}

.icon--sun {
    transform: scale(0);
    color: #ffa500;
}

#switch:checked + .icon--moon {
    transform: rotate(360deg) scale(0);
}

#switch:checked ~ .icon--sun {
    transition-delay: 200ms;
    transform: scale(1) rotate(360deg);
}

.lang-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    padding: 4px 6px;
    transition: all 0.3s ease;
    border-radius: 0;
}

.lang-link:hover {
    color: #fff;
    background: transparent;
}

.lang-link.active {
    color: #fff;
    font-weight: 700;
    background: transparent;
}

.lang-separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9em;
    user-select: none;
}

/* ========================================================================
   4. MAIN CONTENT CONTAINER
   ======================================================================== */

#container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    margin-top: 100px;
    background-color: #fff;
    padding: 0;
    flex-grow: 1;
}

/* ========================================================================
   5. WELCOME SECTION
   ======================================================================== */

#welcome {
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    scroll-margin-top: 100px;
    max-width: 100%;
    margin: 0;
}

/* Banner Carousel Styles */
.banner-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0;
    background-color: #000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.banner-slides {
    position: relative;
    width: 100%;
    height: 600px;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
    z-index: 1;
}

.banner-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.banner-slide.active .banner-image img {
    transform: scale(1.1);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
    color: #ffffff;
    max-width: 900px;
    padding: 40px;
    width: 90%;
}

.banner-title {
    font-family: 'Cormorant SC', 'Microsoft JhengHei', cursive;
    font-size: 3.5em;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out;
}

.banner-description {
    font-family: 'Faustina', 'Microsoft JhengHei', sans-serif;
    font-size: 1.3em;
    line-height: 1.8;
    color: #ffffff;
    margin: 0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

/* Banner Indicators - Square dots that become rectangles when active */
.banner-indicators {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 12px;
    z-index: 10;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    backdrop-filter: none;
}

.banner-dot {
    width: 12px;
    height: 12px;
    background-color: #ffffff;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.banner-dot:hover {
    background-color: #355E3B;
    transform: scale(1.2);
}

.banner-dot.active {
    width: 32px;
    height: 12px;
    background-color: #355E3B;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(53, 94, 59, 0.4);
}

/* Navigation Arrows - Square buttons at bottom left */
.banner-nav {
    position: absolute;
    bottom: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #355E3B;
    font-size: 18px;
}

.banner-nav:hover {
    background-color: #355E3B;
    color: #ffffff;
    transform: scale(1.05);
}

.banner-prev {
    left: 20px;
}

.banner-next {
    left: 80px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark Mode Styles for Banner */
body.dark-mode .banner-carousel {
    background-color: #000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

body.dark-mode .banner-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
}

body.dark-mode .banner-title {
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

body.dark-mode .banner-description {
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

body.dark-mode .banner-indicators {
    background-color: transparent;
}

body.dark-mode .banner-dot {
    background-color: #ffffff;
}

body.dark-mode .banner-dot.active {
    background-color: #355E3B;
    box-shadow: 0 2px 8px rgba(53, 94, 59, 0.4);
}

body.dark-mode .banner-nav {
    background-color: rgba(42, 42, 42, 0.9);
    color: #7fbf8f;
}

body.dark-mode .banner-nav:hover {
    background-color: #7fbf8f;
    color: #2a2a2a;
}

/* ========================================================================
   6. ABOUT SECTION
   ======================================================================== */

.about-section {
    padding: 0 20px 30px 20px;
    scroll-margin-top: 100px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 36px;
    align-items: center;
}

.about-media {
    width: 100%;
    display: flex;
    justify-content: center;
}

.about-image-frame {
    position: relative;
    width: 100%;
    max-width: 442px;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    background: #f2f4f3;
}

.about-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.5s ease, transform 0.8s ease;
}

.about-image.active {
    opacity: 1;
    transform: scale(1);
}

.about-panels {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.about-item {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    padding: 10px 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.about-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(53, 94, 59, 0.12);
}

.about-item.active {
    border-color: #355E3B;
    box-shadow: 0 14px 34px rgba(53, 94, 59, 0.15);
}

.about-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.about-item-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(53, 94, 59, 0.12);
    color: #355E3B;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.about-item h3 {
    margin: 2px 0 2px 0;
    font-size: 0.95rem;
}

.about-item p {
    margin: 0;
    color: #555;
    line-height: 1.7;
    font-size: 0.9rem;
}

body.dark-mode .about-image-frame {
    background: #1f1f1f;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
}

body.dark-mode .about-item {
    background-color: #2a2a2a;
    border-color: #3a3a3a;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

body.dark-mode .about-item.active {
    border-color: #7fbf8f;
    box-shadow: 0 14px 34px rgba(53, 94, 59, 0.25);
}

body.dark-mode .about-item p {
    color: #c0c0c0;
}

/* About extra tabs */
.about-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 0;
    margin-bottom: 20px;
    padding-right: 20px;
    padding-bottom: 8px;
    padding-top: 20px;
    position: relative;
    border-bottom: none !important;
}

.about-section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -20px;
    right: -20px;
    height: 3px;
    background-color: #355E3B;
}

.section-heading-text {
    flex: 1 1 auto;
    min-width: 220px;
}

.about-tab-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.about-tab-btn {
    border: 1px solid #d8e1d8;
    background: #f7f9f7;
    color: #355E3B;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(53, 94, 59, 0.08);
}

.about-tab-btn:hover {
    background: #edf3ed;
    border-color: #c8d6c8;
    transform: translateY(-1px);
}

.about-tab-btn.active {
    background: linear-gradient(135deg, #355E3B 0%, #4a7d52 100%);
    color: #fff;
    border-color: #355E3B;
    box-shadow: 0 8px 20px rgba(53, 94, 59, 0.18);
}

.about-tab-panels {
    margin-top: 28px;
}

.about-tab-panel {
    display: none;
    padding-top: 12px;
    border-top: none;
}

.about-tab-panel.active {
    display: block;
}

.about-core.hidden {
    display: none;
}

.history-panel-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

body.dark-mode .about-tab-btn {
    background: #1f1f1f;
    border-color: #3a3a3a;
    color: #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .about-tab-btn:hover {
    background: #2a2a2a;
    border-color: #4a4a4a;
}

body.dark-mode .about-tab-btn.active {
    background: linear-gradient(135deg, #355E3B 0%, #4a7d52 100%);
    border-color: #355E3B;
    color: #fff;
}

body.dark-mode .about-tab-panel {
    border-top-color: #404040;
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-section {
        padding: 40px 0 30px 0;
    }

    .about-image-frame {
        max-width: 480px;
    }
}

@media (max-width: 640px) {
    .about-section {
        padding: 32px 0 24px 0;
    }

    .about-item {
        padding: 14px 16px;
    }

    .about-item h3 {
        font-size: 1rem;
    }
}

/* ========================================================================
   7. PRODUCTS / SOLUTIONS SECTION
   ======================================================================== */

.business-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.business-item {
    text-align: center;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
}

.business-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(139, 111, 78, 0.2);
}

.business-front {
    position: relative;
    overflow: hidden;
}

.business-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.business-item:hover img {
    transform: scale(1.15) rotate(2deg);
}

/* Business Title on Image with Frosted Glass Effect */
.business-item h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: #ffffff;
    font-size: 1.2em;
    margin: 0;
    padding: 20px 15px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.business-item h3 i {
    margin-right: 8px;
    color: #ffffff;
}

/* Business Overlay on Hover */
.business-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(53, 94, 59, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.business-item:hover .business-overlay {
    opacity: 1;
}

.business-overlay i {
    color: #fff;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.business-item:hover .business-overlay i {
    transform: translateY(0);
}

/* Business Content */
.business-content {
    padding: 25px 20px;
    text-align: left;
}

.business-item p {
    font-size: 0.95em;
    color: #555;
    line-height: 1.7;
    margin: 15px 0;
    min-height: 60px;
    text-align: left;
}

/* Business Tags */
.business-tags {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.tag {
    background-color: #355E3B;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(139, 111, 78, 0.3);
}

/* ========================================================================
   7. HISTORY / TIMELINE SECTION - 横向滑动卡片
   ======================================================================== */

.history-timeline {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 40px 20px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.history-timeline::-webkit-scrollbar {
    display: none;
}

.timeline-item {
    position: relative;
    min-width: 360px;
    max-width: 360px;
    background: #fff;
    border-radius: 20px;
    padding: 30px 25px 25px 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    overflow: hidden;
    flex-shrink: 0;
}

body.dark-mode .timeline-item {
    background: #2a2a2a;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.timeline-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(53, 94, 59, 0.25);
    border-color: #355E3B;
}

body.dark-mode .timeline-item:hover {
    border-color: #355E3B;
    box-shadow: 0 15px 40px rgba(53, 94, 59, 0.3);
}

/* 年份背景 - 左上角 */
.timeline-item .year {
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 6em;
    font-weight: 900;
    color: rgba(53, 94, 59, 0.08);
    line-height: 1;
    z-index: 1;
    pointer-events: none;
    font-family: 'Cabin', sans-serif;
}

body.dark-mode .timeline-item .year {
    color: rgba(53, 94, 59, 0.12);
}

.timeline-item:hover .year {
    color: rgba(53, 94, 59, 0.20);
}

body.dark-mode .timeline-item:hover .year {
    color: rgba(53, 94, 59, 0.25);
}

/* 图标 - 右上角 */
.timeline-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #355E3B;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6em;
    box-shadow: 0 5px 15px rgba(53, 94, 59, 0.3);
    transition: all 0.4s ease;
    z-index: 2;
}

body.dark-mode .timeline-icon {
    background: #355E3B;
    box-shadow: 0 5px 15px rgba(53, 94, 59, 0.4);
}

.timeline-item:hover .timeline-icon {
    transform: rotate(360deg) scale(1.15);
    box-shadow: 0 8px 25px rgba(53, 94, 59, 0.5);
}

body.dark-mode .timeline-item:hover .timeline-icon {
    box-shadow: 0 8px 25px rgba(53, 94, 59, 0.6);
}

/* 内容区域 - 下方 */
.description {
    position: relative;
    z-index: 2;
    margin-top: 80px;
}

.description h3 {
    color: #355E3B;
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

body.dark-mode .description h3 {
    color: #355E3B;
}

.description p {
    color: #555;
    font-size: 0.95em;
    line-height: 1.7;
    margin: 0;
}

body.dark-mode .description p {
    color: #b0b0b0;
}

/* ========================================================================
   7.5 VALUES SECTION
   ======================================================================== */

.values-section {
    margin: 50px 0;
    padding: 20px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.value-item {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.value-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(53, 94, 59, 0.15);
    border-color: #355E3B;
}

.value-icon {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, rgba(53, 94, 59, 0.08), rgba(74, 125, 82, 0.08));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5em;
    color: rgba(53, 94, 59, 0.15);
    transition: all 0.3s ease;
}

.value-item:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(74, 125, 82, 0.12), rgba(53, 94, 59, 0.12));
    color: rgba(53, 94, 59, 0.25);
}

.value-item h3 {
    font-size: 1.3em;
    color: #355E3B;
    margin: 0 0 12px 0;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.value-item p {
    font-size: 0.9em;
    color: #555;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 2;
}

body.dark-mode .value-item {
    background: #2a2a2a;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .value-item:hover {
    border-color: #355E3B;
    box-shadow: 0 15px 35px rgba(53, 94, 59, 0.2);
}

body.dark-mode .value-icon {
    background: linear-gradient(135deg, rgba(53, 94, 59, 0.1), rgba(74, 125, 82, 0.1));
    color: rgba(53, 94, 59, 0.2);
}

body.dark-mode .value-item:hover .value-icon {
    background: linear-gradient(135deg, rgba(74, 125, 82, 0.15), rgba(53, 94, 59, 0.15));
    color: rgba(53, 94, 59, 0.3);
}

body.dark-mode .value-item h3 {
    color: #355E3B;
}

body.dark-mode .value-item p {
    color: #c0c0c0;
}

/* ========================================================================
   8. CONTACT SECTION
   ======================================================================== */

/* Contact Section - Full Width Map + Overlay Card */
.contact-section {
    padding: 50px 20px 0 20px;
    scroll-margin-top: 100px;
}

.contact-section .section-header {
    padding-right: 20px;
    position: relative;
    border-bottom: none !important;
}

.contact-section .section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -20px;
    right: -20px;
    height: 3px;
    background-color: #355E3B;
}

.contact-map-wrapper {
    position: relative;
    width: calc(100% + 40px);
    margin-bottom: 0;
    margin-left: -20px;
    margin-right: -20px;
}

.contact-map {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.contact-map-frame {
    width: 100%;
    height: 100%;
    background: #f2f2f2;
}

body.dark-mode .contact-map-frame {
    background: #1f1f1f;
}

.contact-map iframe,
.contact-map .leaflet-container {
    display: block;
    width: 100%;
    height: 100%;
    filter: saturate(0.9) contrast(1.05);
}

body.dark-mode .contact-map iframe,
body.dark-mode .contact-map .leaflet-container {
    filter: saturate(0.7) brightness(0.7) contrast(1.1);
}

/* Contact Info Card - Overlay on Map */
.contact-info-card {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    color: #2d7a4a;
    width: 275px !important;
    max-width: 275px !important;
    z-index: 10;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(45, 122, 74, 0.1);
    cursor: move;
    user-select: none;
    transition: box-shadow 0.3s ease;
}

.contact-info-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.contact-card-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #2d7a4a;
    width: 24px;
    height: 24px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
    padding: 0;
    opacity: 0.7;
}

.contact-card-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.info-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(45, 122, 74, 0.2);
}

.info-header i {
    font-size: 1.4em;
    margin: 0;
    opacity: 0.95;
}

.info-header h3 {
    font-size: 1.25em;
    margin: 0;
    font-weight: 700;
    color: #2d7a4a;
}

.info-items {
    display: grid;
    gap: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(45, 122, 74, 0.08);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(45, 122, 74, 0.15);
}

.info-item:hover {
    background: rgba(45, 122, 74, 0.12);
    transform: translateX(6px);
    box-shadow: 0 6px 20px rgba(45, 122, 74, 0.15);
}

.info-icon {
    width: 34px;
    height: 34px;
    background: rgba(45, 122, 74, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 1em;
    color: #2d7a4a;
}

.info-text {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.contact-social-icons {
    display: flex;
    gap: 8px;
    margin-top: 0;
}

.contact-social-icons a {
    color: #2d7a4a;
    text-decoration: none;
    font-size: 1.1em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-social-icons a:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

.info-label {
    display: block;
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.85;
    margin-bottom: 2px;
    font-weight: 600;
}

.info-text a {
    color: #2d7a4a;
    text-decoration: none;
    font-size: 0.88em;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.info-text a:hover {
    transform: translateX(4px);
    opacity: 0.9;
}

.info-text p {
    margin: 0;
    font-size: 0.82em;
    line-height: 1.45;
    opacity: 0.95;
}

/* Dark Mode Contact Info Card */
body.dark-mode .contact-info-card {
    background: linear-gradient(135deg, rgba(45, 74, 51, 0.96) 0%, rgba(53, 94, 59, 0.96) 100%);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
}

body.dark-mode .info-header {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .info-item {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .info-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

body.dark-mode .info-icon {
    background: rgba(255, 255, 255, 0.15);
}

/* ========================================================================
   9. CONTACT FORM (Modal)
   ======================================================================== */

/* Contact Form Styling */
.contact-form {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-form h3 {
    color: #355E3B;
    font-size: 1.4em;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-form h3 i {
    margin-right: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1em;
    font-family: 'Cabin', sans-serif;
    transition: all 0.3s ease;
    background-color: #fff;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #355E3B;
    box-shadow: 0 0 0 3px rgba(53, 94, 59, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    background-color: #355E3B;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(53, 94, 59, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(53, 94, 59, 0.4);
}

.submit-btn i {
    margin-right: 8px;
}

/* ========================================================================
   10. MODAL / POPUP
   ======================================================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 0;
    border-radius: 15px;
    max-width: 520px;
    width: calc(100% - 60px);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    z-index: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #355E3B;
}

.modal .contact-form {
    padding: 40px 30px 30px;
}

.modal .contact-form h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #355E3B;
    font-size: 1.5em;
}

/* ========================================================================
   11. FLOATING BUTTONS (Messenger & Back to Top)
   ======================================================================== */

/* Messenger Button */
.messenger-btn {
    position: fixed;
    bottom: 20px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: #355E3B;
    color: #fff;
    border: 2px solid #355E3B;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 998;
    box-shadow: 0 2px 8px rgba(53, 94, 59, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.messenger-btn:hover {
    background-color: #2d4a33;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(53, 94, 59, 0.5);
    border-color: #2d4a33;
}

.messenger-btn.inverted {
    background-color: #F3F1EC;
    color: #355E3B;
    border-color: #F3F1EC;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.messenger-btn.inverted:hover {
    background-color: #f0f4ff;
    border-color: #f0f4ff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.messenger-btn i {
    animation: pulse 2s infinite;
}

body.dark-mode .messenger-btn {
    background-color: #2d4a33;
    border-color: #2d4a33;
    box-shadow: 0 2px 8px rgba(53, 94, 59, 0.4);
}

body.dark-mode .messenger-btn:hover {
    background-color: #355E3B;
    border-color: #355E3B;
    box-shadow: 0 4px 12px rgba(53, 94, 59, 0.5);
}

body.dark-mode .messenger-btn.inverted {
    background-color: #F3F1EC;
    color: #2d4a33;
    border-color: #F3F1EC;
}

body.dark-mode .messenger-btn.inverted:hover {
    background-color: #E5E1D8;
    color: #2d4a33;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #355E3B;
    color: #fff;
    border: 2px solid #355E3B;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(53, 94, 59, 0.3);
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(53, 94, 59, 0.5);
    background-color: #2C4A2F;
    border-color: #2C4A2F;
}

.back-to-top.inverted {
    background-color: #F3F1EC;
    color: #355E3B;
    border-color: #F3F1EC;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.back-to-top.inverted:hover {
    background-color: #f0f4ff;
    border-color: #f0f4ff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.back-to-top i {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

body.dark-mode .back-to-top {
    background-color: #2C4A2F;
    border-color: #2C4A2F;
    box-shadow: 0 2px 8px rgba(44, 74, 47, 0.4);
}

body.dark-mode .back-to-top:hover {
    background-color: #355E3B;
    border-color: #355E3B;
    box-shadow: 0 4px 12px rgba(53, 94, 59, 0.5);
}

body.dark-mode .back-to-top.inverted {
    background-color: #F3F1EC;
    color: #2C4A2F;
    border-color: #F3F1EC;
}

body.dark-mode .back-to-top.inverted:hover {
    background-color: #E5E1D8;
    color: #2C4A2F;
}

/* ========================================================================
   12. FOOTER
   ======================================================================== */

#footer {
    background-color: #355E3B;
    color: #fff;
    padding: 0;
    width: 100%;
    box-shadow: 0 -5px 20px rgba(53, 94, 59, 0.3);
    min-height: 80px;
    display: flex;
    align-items: center;
    margin-top: 20px;
}

body.dark-mode #footer {
    background-color: #2d4a33;
    color: #e0e0e0;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left p {
    margin: 0;
    font-size: 0.95em;
    color: #fff;
    letter-spacing: 0.3px;
}

body.dark-mode .footer-left p {
    color: #e0e0e0;
}

.footer-right {
    display: flex;
    align-items: center;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icons a {
    font-size: 1.3em;
    color: #fff;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    text-decoration: none;
}

body.dark-mode .social-icons a {
    color: #e0e0e0;
    background: rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
    transform: translateY(-3px) scale(1.1);
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

body.dark-mode .social-icons a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.25);
}

/* ========================================================================
   13. SECTION TITLES & UTILITIES
   ======================================================================== */

/* General section styling */
.business-section,
.history-section,
.values-section {
    margin: 0;
    padding: 0 20px;
    scroll-margin-top: 100px;
}

.business-section .section-header {
    padding-right: 20px;
    position: relative;
    border-bottom: none !important;
}

.business-section .section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -20px;
    right: -20px;
    height: 3px;
    background-color: #355E3B;
}

/* History Section Navigation */
.history-section {
    position: relative;
}

.timeline-nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

.timeline-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #355E3B;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2em;
    box-shadow: 0 3px 10px rgba(53, 94, 59, 0.3);
}

.timeline-nav-btn:hover {
    background: #2C4A2F;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(53, 94, 59, 0.5);
}

.timeline-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #ccc;
}

.timeline-nav-btn:disabled:hover {
    transform: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

body.dark-mode .timeline-nav-btn {
    background: #355E3B;
    box-shadow: 0 3px 10px rgba(53, 94, 59, 0.4);
}

body.dark-mode .timeline-nav-btn:hover {
    background: #4A7650;
    box-shadow: 0 5px 15px rgba(53, 94, 59, 0.6);
}

body.dark-mode .timeline-nav-btn:disabled {
    background: #555;
}

/* Section header wrapper to keep title and subtitle on same line */
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    margin: 50px 0 40px 0;
    border-bottom: 3px solid #355E3B;
    padding-bottom: 8px;
    flex-wrap: wrap;
    gap: 0;
    position: relative;
}

.history-section .section-header {
    justify-content: space-between;
    align-items: center;
}

.history-section .section-header .timeline-nav {
    margin-left: auto;
}

.section-title {
    color: #355E3B;
    font-size: 2em;
    margin: 0;
    padding: 0;
    font-weight: bold;
    text-transform: uppercase;
    display: inline;
    border: none;
    line-height: 1.2;
}

.section-subtitle {
    display: inline;
    color: #888;
    font-size: 1.1em;
    margin: 0;
    padding: 0;
    font-style: normal;
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.2;
    font-family: 'Faustina', 'Microsoft JhengHei', serif;
}

.section-subtitle::before {
    content: '|';
    color: #ccc;
    margin: 0 15px;
    font-weight: 300;
}

body.dark-mode .section-header {
    border-bottom-color: #355E3B;
}

body.dark-mode .about-section-header,
body.dark-mode .business-section .section-header,
body.dark-mode .contact-section .section-header {
    border-bottom: none;
}

body.dark-mode .section-title {
    color: #355E3B;
}

body.dark-mode .section-subtitle {
    color: #b0b0b0;
}

body.dark-mode .section-subtitle::before {
    color: #666;
}

.visible {
    animation: fadeInUp 0.6s ease forwards;
}

/* ========================================================================
   14. KEYFRAME ANIMATIONS
   ======================================================================== */

/* Spinner Rotation (legacy, unused) */
@keyframes spinRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fade In Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Slide Up Animation */
@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ========================================================================
   15. RESPONSIVE DESIGN - MEDIA QUERIES
   ======================================================================== */

/* Tablet Devices (768px and below) */
@media (max-width: 768px) {
    /* Header & Navigation */
    #container {
        margin-top: 60px;
        padding: 15px;
        box-sizing: border-box;
    }
    
    #head {
        padding: 12px 0;
    }
    
    .nav-inner {
        flex-direction: column;
        gap: 12px;
        padding: 0 15px;
        align-items: center;
    }
    
    .logo {
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .logo-svg {
        transform: scale(1);
        transform-origin: center center;
        height: 50px;
    }
    
    #menu {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
        font-size: 0.8em;
        justify-content: center;
        height: auto;
        padding: 10px 0;
        align-items: stretch;
    }
    
    #menu a {
        padding: 0 14px;
        height: 40px;
        font-size: 0.9em;
        border-radius: 0;
    }
    
    .lang-switcher {
        width: 100%;
        justify-content: center;
        gap: 6px;
        display: flex;
        align-items: center;
    }
    
    .lang-link {
        font-size: 0.85em;
        padding: 3px 5px;
    }
    
    .toggle {
        margin-left: 6px;
    }
    
    .icon svg {
        width: 26px;
        height: 26px;
    }
    
    /* Welcome Section */
    #welcome {
        padding: 30px 20px;
    }
    
    .banner-slides {
        height: 500px;
    }
    
    .banner-text {
        padding: 30px 20px;
        max-width: 95%;
    }
    
    .banner-title {
        font-size: 2.5em;
        margin-bottom: 20px;
    }
    
    .banner-description {
        font-size: 1.1em;
        line-height: 1.6;
    }
    
    .banner-nav {
        width: 40px;
        height: 40px;
        font-size: 14px;
        bottom: 10px;
    }
    
    .banner-prev {
        left: 10px;
    }
    
    .banner-next {
        left: 60px;
    }
    
    .banner-indicators {
        bottom: 10px;
        right: 10px;
        padding: 0;
        gap: 10px;
    }
    
    .banner-dot {
        width: 10px;
        height: 10px;
    }
    
    .banner-dot.active {
        width: 28px;
        height: 10px;
    }
    
    .stylish-heading {
        font-size: 2em;
    }
    
    /* Business */
    .business-section {
        padding: 30px 20px;
    }
    
    .business-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .business-item img {
        height: 220px;
    }
    
    /* History Timeline */
    .history-section {
        padding: 30px 20px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .history-section .section-header {
        align-items: center;
    }
    
    .history-section .section-header .timeline-nav {
        display: none;
    }
    
    .section-title {
        font-size: 1.6em;
    }
    
    .section-subtitle {
        font-size: 0.95em;
    }
    
    .section-subtitle::before {
        content: '';
    }
    
    .history-timeline {
        padding: 20px 10px;
        overflow-x: auto;
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
    }
    
    .history-timeline::-webkit-scrollbar {
        height: 6px;
    }
    
    .history-timeline::-webkit-scrollbar-track {
        background: rgba(53, 94, 59, 0.1);
        border-radius: 3px;
    }
    
    .history-timeline::-webkit-scrollbar-thumb {
        background: rgba(53, 94, 59, 0.4);
        border-radius: 3px;
    }
    
    .history-timeline::-webkit-scrollbar-thumb:hover {
        background: rgba(53, 94, 59, 0.6);
    }
    
    body.dark-mode .history-timeline::-webkit-scrollbar-track {
        background: rgba(74, 125, 82, 0.15);
    }
    
    body.dark-mode .history-timeline::-webkit-scrollbar-thumb {
        background: rgba(74, 125, 82, 0.5);
    }
    
    body.dark-mode .history-timeline::-webkit-scrollbar-thumb:hover {
        background: rgba(74, 125, 82, 0.7);
    }
    
    .timeline-item {
        width: 320px;
        min-width: 320px;
        padding: 20px;
    }
    
    .timeline-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3em;
    }
    
    .year {
        font-size: 4.5em;
    }
    
    .description h3 {
        font-size: 1.1em;
    }
    
    .description p {
        font-size: 0.9em;
    }
    
    /* Values */
    .values-section {
        padding: 30px 20px;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .value-item {
        padding: 25px 20px;
        min-height: 240px;
    }
    
    .value-icon {
        font-size: 2.2em;
        margin-bottom: 12px;
    }
    
    .value-item h3 {
        font-size: 1.1em;
    }
    
    .value-item p {
        font-size: 0.85em;
    }
    
    /* Contact */
    .contact-section {
        margin: 0;
        padding: 30px 20px;
    }
    
    .contact-map {
        display: none;
    }
    
    .contact-info-card {
        position: static;
        padding: 20px;
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto;
        top: auto;
        right: auto;
        left: auto;
        background: linear-gradient(135deg, rgba(53, 94, 59, 0.98) 0%, rgba(74, 125, 82, 0.98) 100%);
    }
    
    body.dark-mode .contact-info-card {
        background: linear-gradient(135deg, rgba(45, 74, 51, 0.98) 0%, rgba(53, 94, 59, 0.98) 100%);
    }
    
    .info-header h3 {
        font-size: 1.1em;
    }
    
    .info-header i {
        font-size: 1.4em;
    }
    
    .info-item {
        padding: 8px 10px;
        gap: 10px;
    }
    
    .info-icon {
        width: 30px;
        height: 30px;
    }
    
    .info-icon i {
        font-size: 0.9em;
    }
    
    .info-text {
        font-size: 0.85em;
    }
    
    /* Modal */
    .modal-content {
        width: 90%;
        margin: 10% auto;
        padding: 25px;
    }
    
    .contact-form h3 {
        font-size: 1.3em;
    }
    
    /* Floating Buttons */
    .back-to-top,
    .messenger-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
        border-width: 2px;
    }
    
    .back-to-top {
        position: fixed;
        bottom: 20px;
        right: 20px;
    }
    
    .messenger-btn {
        position: fixed;
        bottom: 20px;
        left: 20px;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-left p {
        font-size: 0.85em;
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* Mobile Devices (480px and below) */
@media (max-width: 480px) {
    /* Header */
    #head {
        padding: 10px 0;
    }
    
    #container {
        margin-top: 70px;
        padding: 15px;
        box-sizing: border-box;
    }
    
    .nav-inner {
        gap: 10px;
        padding: 0 10px;
        align-items: center;
    }
    
    .logo {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .logo-svg {
        transform: scale(1);
        transform-origin: center center;
        height: 45px;
    }
    
    #menu {
        gap: 6px;
        font-size: 0.75em;
        justify-content: center;
        height: auto;
        padding: 8px 0;
        align-items: stretch;
    }
    
    #menu a {
        padding: 0 12px;
        height: 36px;
        font-size: 0.85em;
        border-radius: 0;
    }
    
    .lang-switcher {
        gap: 4px;
        display: flex;
        align-items: center;
        height: auto;
    }
    
    .lang-link {
        font-size: 0.8em;
        padding: 4px 6px;
        height: auto;
        border-radius: 0;
    }
    
    .toggle {
        height: auto;
        width: auto;
        padding: 0;
        border-radius: 0;
    }
    
    /* Welcome */
    #welcome {
        padding: 0;
    }
    
    .banner-slides {
        height: 400px;
    }
    
    .banner-text {
        padding: 20px 15px;
        max-width: 98%;
    }
    
    .banner-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    
    .banner-description {
        font-size: 0.95em;
        line-height: 1.5;
    }
    
    .banner-nav {
        width: 35px;
        height: 35px;
        font-size: 12px;
        bottom: 5px;
    }
    
    .banner-prev {
        left: 5px;
    }
    
    .banner-next {
        left: 50px;
    }
    
    .banner-indicators {
        bottom: 5px;
        right: 5px;
        padding: 0;
        gap: 8px;
    }
    
    .banner-dot {
        width: 8px;
        height: 8px;
    }
    
    .banner-dot.active {
        width: 24px;
        height: 8px;
    }
    
    .stylish-heading {
        font-size: 1.6em;
    }
    
    .compact-text {
        font-size: 0.9em;
        line-height: 1.6;
    }
    
    .welcome-image {
        max-width: 100%;
    }
    
    /* Sections */
    .business-section,
    .history-section,
    .values-section,
    .contact-section {
        padding: 25px 15px;
    }
    
    .contact-section {
        margin: 0;
    }
    
    .section-header {
        text-align: center;
        align-items: center;
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.3em;
        text-align: center;
    }
    
    .section-subtitle {
        font-size: 0.75em;
        text-align: center;
    }
    
    /* Business */
    .business-item {
        padding: 15px;
    }
    
    .business-item img {
        height: 200px;
    }
    
    .business-item h3 {
        font-size: 1.1em;
    }
    
    .business-content p {
        font-size: 0.85em;
    }
    
    .tag {
        font-size: 0.75em;
        padding: 4px 10px;
    }
    
    /* History Timeline */
    .history-timeline {
        padding: 15px 5px;
        overflow-x: auto;
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
    }
    
    .timeline-item {
        width: 280px;
        min-width: 280px;
        padding: 18px;
    }
    
    .timeline-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2em;
    }
    
    .year {
        font-size: 4em;
    }
    
    .description h3 {
        font-size: 1em;
    }
    
    .description p {
        font-size: 0.85em;
    }
    
    /* Values */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .value-item {
        padding: 20px 15px;
        min-height: auto;
    }
    
    .value-icon {
        font-size: 2em;
        margin-bottom: 10px;
    }
    
    .value-item h3 {
        font-size: 1em;
    }
    
    .value-item p {
        font-size: 0.8em;
    }
    
    /* Contact */
    .contact-map-wrapper {
        position: relative;
    }
    
    .contact-map {
        display: none;
    }
    
    .contact-info-card {
        position: static;
        top: auto;
        right: auto;
        left: auto;
        width: calc(100% - 30px) !important;
        max-width: 320px !important;
        padding: 18px;
        margin: 0 auto;
        background: linear-gradient(135deg, rgba(53, 94, 59, 0.98) 0%, rgba(74, 125, 82, 0.98) 100%);
    }
    
    body.dark-mode .contact-info-card {
        background: linear-gradient(135deg, rgba(45, 74, 51, 0.98) 0%, rgba(53, 94, 59, 0.98) 100%);
    }
    
    .info-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .info-header h3 {
        font-size: 0.95em;
    }
    
    .info-header i {
        font-size: 1.1em;
    }
    
    .info-item {
        padding: 8px 10px;
        gap: 10px;
    }
    
    .info-icon {
        width: 30px;
        height: 30px;
    }
    
    .info-icon i {
        font-size: 0.9em;
    }
    
    .info-text {
        font-size: 0.85em;
    }
    
    .info-text a {
        font-size: 1em;
    }
    
    .info-text p {
        font-size: 0.95em;
    }
    
    .info-text a,
    .info-text p {
        font-size: 0.85em;
    }
    
    .contact-map {
        height: 350px;
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 20px;
    }
    
    .contact-form h3 {
        font-size: 1.2em;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.9em;
        padding: 10px;
    }
    
    .submit-btn {
        font-size: 0.9em;
        padding: 12px 20px;
    }
    
    /* Footer */
    .footer-content {
        padding: 15px 10px;
    }
    
    .footer-left p {
        font-size: 0.75em;
    }
    
    .social-icons a {
        width: 32px;
        height: 32px;
        font-size: 0.9em;
    }
}

/* ========================================================================
   19. PRODUCT DETAILS MODAL
   ======================================================================== */

.product-details-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.product-details-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-details-content {
    background-color: #ffffff;
    position: relative;
    padding: 40px;
    border-radius: 12px;
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

body.dark-mode .product-details-content {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

.product-close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #355E3B;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.2s ease;
}

body.dark-mode .product-close-btn {
    color: #7fbf8f;
}

.product-close-btn:hover {
    color: #4a9d62;
}

.product-details-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: center;
}

.product-details-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(53, 94, 59, 0.2);
}

.product-details-title {
    font-size: 2.5em;
    color: #355E3B;
    margin: 0 0 20px 0;
    font-weight: 700;
}

body.dark-mode .product-details-title {
    color: #7fbf8f;
}

.product-details-subtitle {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 20px;
}

body.dark-mode .product-details-subtitle {
    color: #aaa;
}

.product-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.spec-item {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #355E3B;
}

body.dark-mode .spec-item {
    background-color: #3a3a3a;
    border-left-color: #7fbf8f;
}

.spec-label {
    font-size: 0.9em;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 5px;
}

body.dark-mode .spec-label {
    color: #999;
}

.spec-value {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

body.dark-mode .spec-value {
    color: #e0e0e0;
}

.product-section {
    margin-bottom: 35px;
}

.product-section-title {
    font-size: 1.5em;
    color: #355E3B;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 2px solid #355E3B;
    padding-bottom: 10px;
}

body.dark-mode .product-section-title {
    color: #7fbf8f;
    border-bottom-color: #7fbf8f;
}

.product-section p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 12px;
}

body.dark-mode .product-section p {
    color: #ccc;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 10px 0 10px 30px;
    position: relative;
    color: #555;
}

body.dark-mode .feature-list li {
    color: #ccc;
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #355E3B;
    font-weight: bold;
    font-size: 1.2em;
}

body.dark-mode .feature-list li:before {
    color: #7fbf8f;
}

.product-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.product-tag {
    background: linear-gradient(135deg, #355E3B 0%, #4a9d62 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

.product-contact-cta {
    background: linear-gradient(135deg, #355E3B 0%, #4a9d62 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-contact-cta:hover {
    box-shadow: 0 4px 15px rgba(53, 94, 59, 0.4);
    transform: translateY(-2px);
}

.product-contact-cta-text {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-contact-cta-desc {
    font-size: 0.95em;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .product-details-content {
        padding: 25px;
    }

    .product-details-header {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-details-image {
        height: 300px;
    }

    .product-details-title {
        font-size: 1.8em;
    }

    .product-specs {
        grid-template-columns: 1fr;
    }
}

/* ========================================================================
   END OF STYLESHEET
   ======================================================================== */

