/* About Us Page Styles */
/* UI UX Pro Max Design System: Accessible & Ethical with Blue Theme */
/* Consistent with STAT website design - Blue theme, clean and professional */

:root {
    /* Blue theme - matches index page */
    --about-primary: #3b82f6;
    --about-primary-dark: #2563eb;
    --about-primary-darker: #1d4ed8;
    --about-primary-darkest: #1e40af;
    --about-primary-ultra: #0b2e6f;
    --about-bg: #ffffff;
    --about-bg-light: #f8faff;
    --about-text: #0f172a;
    --about-text-light: #475569;
    --about-text-lighter: #64748b;
    --about-border: #eef0f4;
    
    /* Typography - Same as index page (Figtree, Noto Sans) */
    --font-heading: 'Figtree', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-body: 'Noto Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    /* Spacing - aligned with index page */
    --section-max-width: min(1700px, 95vw);
    --section-padding-x: clamp(16px, 4vw, 64px);
    --section-padding-y: clamp(32px, 5vw, 80px);
    
    --focus-ring: 3px solid var(--about-primary);
    --transition-speed: 200ms;
}

/* Our Story Section - Full Width & Height with Background Image */
/* Responsive height: Desktop > Tablet > Mobile (index page reference) */
.story-section {
    position: relative;
    width: 100%;
    height: 55vh;
    min-height: 420px;
    max-height: 520px;
    overflow: hidden;
    margin-top: 0;
    /* 
    ============================================
    在这里添加你的背景图片！
    ============================================
    将你的图片放在 'assests/image/' 文件夹中
    然后修改下面的 url() 路径
    
    例如：url('../image/your-background-image.jpg')
    ============================================
    */
    background: 
        /* 
        蓝色渐变遮罩层 - 调整透明度
        ⬇️ 修改这里的数字来调整遮罩透明度 ⬇️
        0.0 = 完全透明（无遮罩）
        0.5 = 半透明
        1.0 = 完全不透明（遮罩最强）
        
        当前设置：0.55（55%不透明）和 0.45（45%不透明）
        想要更透明：改为 0.3-0.4
        想要更不透明：改为 0.6-0.8
        */
        linear-gradient(135deg, rgba(30, 64, 175, 0.15) 0%, rgba(59, 130, 246, 0.25) 50%, rgba(30, 64, 175, 0.35) 100%),
        /* 
        ⬇️ 在这里添加你的背景图片路径 ⬇️
        将图片放在 'assests/image/' 文件夹，然后修改下面的路径
        支持的格式：.jpg, .jpeg, .png, .webp
        
        示例：
        url('../image/medical-background.jpg')
        url('../image/healthcare-background.png')
        url('../image/clinic-background.webp')
        */
        url('../image/About_Us.jpg');
    /* 
    背景图片设置：
    - cover: 图片覆盖整个区域
    - center: 图片居中
    - no-repeat: 不重复
    - fixed: 固定背景（滚动时背景不动，可选）
    */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(40px, 6vw, 60px) clamp(16px, 3vw, 24px) clamp(60px, 8vw, 80px);
    margin: 0;
    margin-top: -10px;
}

/* Animated background particles effect */
.story-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(96, 165, 250, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
    animation: backgroundPulse 8s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Overlay for better text readability - blue overlay restored */
.story-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 
    第二层遮罩 - 调整透明度
    ⬇️ 修改这里的数字来调整第二层遮罩透明度 ⬇️
    当前设置：0.25（25%不透明）和 0.15（15%不透明）
    想要更透明：改为 0.1-0.15
    想要更不透明：改为 0.3-0.4
    */
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.25) 0%,
        rgba(30, 64, 175, 0.15) 50%,
        rgba(15, 23, 42, 0.25) 100%
    );
    z-index: 2;
}

/* Story Content - positioned above overlay */
.story-content {
    position: relative;
    z-index: 3;
    max-width: 100%;
    width: 100%;
    color: #ffffff;
    text-align: center;
    animation: fadeInOnly 1s ease-out;
    padding: 0;
    box-sizing: border-box;
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeInOnly {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.story-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 5vw, 60px);
    margin: 0 40px 56px;
    position: relative;
    z-index: 4;
}

.story-title::before,
.story-title::after {
    content: '';
    flex: 1;
    max-width: clamp(120px, 22vw, 240px);
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
    border-radius: 2px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.55);
}

.story-title span {
    font-family: var(--font-heading);
    font-size: clamp(36px, 8vw, 84px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: clamp(-1px, -0.2vw, -2px);
    text-shadow: 0 0 clamp(20px, 4vw, 40px) rgba(255, 255, 255, 0.6),
                 0 0 clamp(40px, 8vw, 80px) rgba(255, 255, 255, 0.4),
                 0 0 clamp(60px, 12vw, 120px) rgba(255, 255, 255, 0.2),
                 2px 4px 12px rgba(0, 0, 0, 0.5);
    animation: titleGlow 3s ease-in-out infinite;
    position: relative;
    padding: 0 clamp(12px, 2vw, 20px);
}

.story-title span::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(60px, 10vw, 100px);
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

@keyframes titleGlow {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 30px rgba(255, 255, 255, 0.5));
        text-shadow: 0 0 40px rgba(255, 255, 255, 0.6),
                     0 0 80px rgba(255, 255, 255, 0.4),
                     0 0 120px rgba(255, 255, 255, 0.2),
                     2px 4px 12px rgba(0, 0, 0, 0.5);
    }
    50% {
        filter: brightness(1.00) drop-shadow(0 0 35px rgba(255, 255, 255, 0.6));
        text-shadow: 0 0 45px rgba(255, 255, 255, 0.65),
                     0 0 90px rgba(255, 255, 255, 0.45),
                     0 0 130px rgba(255, 255, 255, 0.25),
                     2px 4px 12px rgba(0, 0, 0, 0.5);
    }
}

/* White Paint Image - 图片，缩小尺寸 */
.white-paint-img {
    width: 75%;
    max-width: 1200px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.25);
    position: relative;
    z-index: 1;
}

/* Story Text - 文字覆盖在图片上，缩小尺寸 */
.story-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(70%, 700px);
    max-width: 700px;
    text-align: justify;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    animation: none;
    z-index: 2;
    pointer-events: none;
}

.story-text p {
    pointer-events: auto;
}

.story-intro {
    font-size: 20px;
    color: #000000;
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: none;
}

.story-body {
    font-size: 16px;
    color: #000000;
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 400;
    text-shadow: none;
}

.story-body:last-child {
    margin-bottom: 0;
}

/* About Section Base Styles - aligned with index .about_us, .products, .locate */
.about-section {
    background: #ffffff;
    max-width: var(--section-max-width);
    margin: clamp(24px, 3.75vw, 60px) auto;
    padding: var(--section-padding-y) var(--section-padding-x);
    border-radius: clamp(16px, 1.5vw, 24px);
    box-shadow: 0 clamp(12px, 1.25vw, 20px) clamp(36px, 3.75vw, 60px) rgba(15, 23, 42, 0.12),
                0 0 0 1px rgba(59, 130, 246, 0.05);
    border: none;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.about-section > * {
    position: relative;
    z-index: 1;
}

.about-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18),
                0 0 0 1px rgba(59, 130, 246, 0.1);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: clamp(32px, 4vw, 48px);
    position: relative;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 600;
    color: var(--about-primary-ultra); /* Keep user's blue */
    margin-bottom: 16px;
    line-height: 1.2;
}

.title-underline {
    width: clamp(100px, 15vw, 120px);
    height: 4px;
    background: linear-gradient(135deg, var(--about-primary) 0%, var(--about-primary-darker) 100%); /* Keep user's blue gradient */
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: clamp(16px, 2vw, 20px);
    color: var(--about-text-lighter); /* Keep user's color */
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
}

/* Mission & Vision Section */
.mission-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(30, 64, 175, 0.05) 100%);
    margin-top: clamp(20px, 3vw, 40px);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(32px, 4vw, 40px);
    max-width: min(1200px, 90vw);
    margin: 0 auto;
}

.mission-card {
    background: var(--about-bg);
    padding: clamp(36px, 4vw, 48px) clamp(32px, 3.5vw, 40px);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border: 1px solid var(--about-border);
    cursor: pointer; /* UI UX Pro Max: cursor-pointer on clickable elements */
}

.mission-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.15);
}

.mission-card:focus-visible {
    outline: var(--focus-ring); /* UI UX Pro Max: 3px focus ring */
    outline-offset: 4px;
}

.mission-icon {
    width: clamp(80px, 8vw, 100px);
    height: clamp(80px, 8vw, 100px);
    background: linear-gradient(135deg, var(--about-primary) 0%, var(--about-primary-darker) 100%); /* Keep user's blue gradient */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto clamp(24px, 3vw, 32px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    transition: transform var(--transition-speed) ease;
    min-width: 44px; /* UI UX Pro Max: 44px touch target */
    min-height: 44px;
}

.mission-card:hover .mission-icon {
    transform: scale(1.1) rotate(5deg);
}

.mission-icon i {
    font-size: 48px;
    color: #ffffff;
}

.mission-title {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    color: var(--about-text); /* Keep user's color */
    margin-bottom: clamp(16px, 2vw, 20px);
    line-height: 1.3;
}

.mission-text {
    font-family: var(--font-body);
    font-size: clamp(16px, 1.8vw, 18px);
    color: var(--about-text-light); /* Keep user's color */
    line-height: 1.8;
    text-align: justify;
}

/* Our Commitment Section */
.commitment-section {
    margin-bottom: clamp(48px, 6vw, 96px);
}

.commitment-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(24px, 3vw, 32px);
    max-width: min(1600px, 95vw);
    margin: 0 auto;
}

.commitment-card {
    background: var(--about-bg);
    padding: clamp(32px, 3.5vw, 40px) clamp(24px, 3vw, 32px);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border: 1px solid var(--about-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer; /* UI UX Pro Max: cursor-pointer on clickable elements */
}

.commitment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, rgba(30, 64, 175, 0.04) 100%); /* Keep user's blue gradient */
}

.commitment-card:focus-visible {
    outline: var(--focus-ring); /* UI UX Pro Max: 3px focus ring */
    outline-offset: 4px;
}

.commitment-icon {
    width: clamp(70px, 7vw, 80px);
    height: clamp(70px, 7vw, 80px);
    background: linear-gradient(135deg, #60a5fa 0%, var(--about-primary) 100%); /* Keep user's blue gradient */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(20px, 2.5vw, 24px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
    transition: transform var(--transition-speed) ease;
    min-width: 44px; /* UI UX Pro Max: 44px touch target */
    min-height: 44px;
}

.commitment-card:hover .commitment-icon {
    transform: scale(1.15) rotate(-5deg);
}

.commitment-icon i {
    font-size: clamp(28px, 3.5vw, 36px);
    color: #ffffff;
}

.commitment-title {
    font-family: var(--font-heading);
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: 600;
    color: var(--about-text); /* Keep user's color */
    margin-bottom: clamp(12px, 1.5vw, 16px);
    line-height: 1.3;
}

.commitment-text {
    font-family: var(--font-body);
    font-size: clamp(15px, 1.6vw, 16px);
    color: var(--about-text-lighter); /* Keep user's color */
    line-height: 1.7;
    text-align: justify;
    flex-grow: 1;
}

/* Responsive Design - index page breakpoints: 1024px, 768px, 640px, 480px, 425px, 375px, 320px */
@media (min-width: 1025px) {
    .story-section {
        height: 55vh;
        min-height: 450px;
        max-height: 560px;
    }
}

@media (max-width: 1440px) {
    .commitment-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .commitment-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: clamp(20px, 2.5vw, 28px);
    }
    
    .products-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== TABLET (768px - 1024px) - index reference ========== */
@media (max-width: 1024px) {
    .story-section {
        height: 50vh;
        min-height: 380px;
        max-height: 480px;
        padding: clamp(50px, 6vw, 70px) clamp(20px, 3vw, 32px) clamp(50px, 7vw, 60px);
        background-attachment: scroll;
    }

    .story-title {
        margin: 0 30px 40px;
        gap: clamp(16px, 4vw, 40px);
    }

    .story-title::before,
    .story-title::after {
        max-width: 140px;
        height: 3px;
    }

    .story-title span {
        font-size: clamp(52px, 8vw, 60px);
    }

    .story-title::before,
    .story-title::after {
        max-width: clamp(100px, 20vw, 200px);
    }

    .story-title span::after {
        width: clamp(120px, 28vw, 180px);
        bottom: -14px;
    }

    .story-content {
        margin-top: clamp(28px, 4vw, 36px);
    }

    .white-paint-img {
        width: 80%;
        max-width: 1000px;
    }

    .story-text {
        width: 75%;
        max-width: 600px;
    }

    .story-intro {
        font-size: 18px;
    }

    .story-body {
        font-size: 15px;
    }

    .about-section {
        padding: clamp(48px, 5vw, 60px) clamp(32px, 4vw, 40px);
        margin: clamp(20px, 3vw, 40px) auto;
    }

    .section-title {
        font-size: clamp(32px, 4.5vw, 48px);
    }

    .section-subtitle {
        font-size: clamp(16px, 2vw, 18px);
    }

    .mission-grid {
        grid-template-columns: 1fr;
        gap: clamp(28px, 3.5vw, 32px);
    }

    .commitment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(20px, 2.5vw, 24px);
    }

    .products-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(24px, 3vw, 32px);
    }
    
    .product-card-tilted[data-category="1"],
    .product-card-tilted[data-category="2"],
    .product-card-tilted[data-category="3"] {
        transform: rotate(-1deg);
    }
    
    .product-card-tilted[data-category="2"] {
        transform: rotate(1deg);
    }
    
    .products-services-section {
        padding: clamp(24px, 3.5vw, 36px) 0;
        margin: clamp(24px, 4vw, 40px) 0;
    }
    
    .products-services-header {
        margin-bottom: clamp(24px, 4vw, 40px);
    }

    .who-we-are-text {
        font-size: clamp(16px, 1.9vw, 17px);
        padding: clamp(18px, 2.2vw, 20px);
    }
}

/* ========== MOBILE (below 768px) - index reference ========== */
@media (max-width: 768px) {
    .story-section {
        height: 45vh;
        min-height: 340px;
        max-height: 420px;
        padding: clamp(36px, 5vw, 48px) clamp(16px, 4vw, 24px) clamp(40px, 6vw, 50px);
    }

    .story-title {
        margin: 0 20px 32px;
        gap: clamp(12px, 6vw, 28px);
    }

    .story-title::before,
    .story-title::after {
        max-width: 110px;
        height: 3px;
    }

    .story-title span {
        font-size: clamp(38px, 9vw, 44px);
    }

    .story-title::before,
    .story-title::after {
        max-width: clamp(80px, 24vw, 160px);
    }

    .story-title span::after {
        width: clamp(100px, 36vw, 150px);
        bottom: -12px;
        height: 3px;
    }

    .story-content {
        margin-top: clamp(24px, 4vw, 32px);
    }

    .white-paint-img {
        width: 85%;
        max-width: 900px;
    }

    .story-text {
        width: 80%;
        max-width: 550px;
    }

    .story-intro {
        font-size: 17px;
    }

    .story-body {
        font-size: 14px;
    }

    .about-section {
        padding: clamp(40px, 5vw, 50px) clamp(24px, 3.5vw, 30px);
        margin: clamp(20px, 3vw, 40px) auto;
        border-radius: clamp(14px, 1.8vw, 18px);
    }
    
    .section-header {
        margin-bottom: clamp(24px, 3.5vw, 32px);
    }

    .section-title {
        font-size: clamp(28px, 4vw, 36px);
    }

    .section-subtitle {
        font-size: clamp(15px, 2vw, 17px);
    }
    
    .mission-grid,
    .commitment-grid,
    .products-services-grid {
        gap: clamp(20px, 3vw, 24px);
    }
    
    .products-services-section {
        padding: clamp(20px, 3vw, 32px) 0;
        margin: clamp(20px, 3.5vw, 36px) 0;
    }
    
    .products-services-header {
        margin-bottom: clamp(22px, 3.5vw, 36px);
    }
    
    .products-services-grid {
        grid-template-columns: 1fr;
        gap: clamp(24px, 4vw, 32px);
    }
    
    /* 平板保持傾斜 */
    .product-card-tilted[data-category="1"] {
        transform: rotate(-4deg);
    }
    .product-card-tilted[data-category="2"] {
        transform: rotate(3deg);
    }
    .product-card-tilted[data-category="3"] {
        transform: rotate(-2deg);
    }
    
    .product-service-card:hover {
        transform: rotate(0deg) translateY(-8px) scale(1.02);
    }
    
    .product-category-overlay {
        font-size: clamp(24px, 4vw, 32px);
    }
    
    .who-we-are-text {
        padding: clamp(16px, 2.5vw, 20px);
        font-size: clamp(15px, 1.9vw, 16px);
        line-height: 1.8;
    }

    .title-underline {
        width: 80px;
        height: 3px;
    }

    .mission-card {
        padding: 36px 28px;
    }

    .mission-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 24px;
    }

    .mission-icon i {
        font-size: 40px;
    }

    .mission-title {
        font-size: 28px;
    }

    .mission-text {
        font-size: 17px;
    }

    .commitment-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .products-services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }


    .product-service-content {
        padding: 24px 20px;
    }

    .product-service-name {
        font-size: 20px;
    }

    .product-service-description {
        font-size: 15px;
    }

    .product-service-price {
        font-size: 20px;
    }

    .who-we-are-text {
        font-size: 16px;
    }

    .commitment-card {
        padding: 32px 24px;
    }

    .commitment-icon {
        width: 70px;
        height: 70px;
    }

    .commitment-icon i {
        font-size: 32px;
    }

    .commitment-title {
        font-size: 22px;
    }

    .commitment-text {
        font-size: 15px;
    }
}

/* ========== 640px - index reference ========== */
@media (max-width: 640px) {
    .about-section {
        padding: clamp(36px, 5vw, 44px) clamp(20px, 4vw, 28px);
    }
    .products-services-section {
        padding: clamp(20px, 4vw, 28px) 0;
        margin: clamp(20px, 3.5vw, 32px) 0;
    }
}

/* Touch-friendly improvements for mobile */
@media (max-width: 768px) {
    .mission-card,
    .commitment-card {
        touch-action: manipulation;
    }
    
    .mission-card:hover,
    .commitment-card:hover {
        transform: none;
    }
    
    .mission-card:active,
    .commitment-card:active {
        transform: scale(0.98);
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: clamp(28px, 5vw, 32px) clamp(20px, 4vw, 24px);
        margin: clamp(12px, 2.5vw, 20px) auto;
        border-radius: clamp(10px, 2vw, 14px);
    }
    
    .section-header {
        margin-bottom: clamp(20px, 3vw, 24px);
    }
    
    .section-title {
        font-size: clamp(24px, 5vw, 28px);
        margin-bottom: clamp(8px, 1.5vw, 12px);
    }
    
    .section-subtitle {
        font-size: clamp(14px, 3vw, 16px);
        margin-bottom: clamp(16px, 3vw, 20px);
    }
    
    .commitment-grid {
        grid-template-columns: 1fr;
        gap: clamp(16px, 3vw, 20px);
    }
    
    .products-services-section {
        padding: clamp(20px, 4vw, 28px) 0;
        margin: clamp(20px, 3.5vw, 30px) 0;
    }
    
    .products-services-header {
        margin-bottom: clamp(20px, 3.5vw, 32px);
    }
    
    .products-services-title {
        font-size: clamp(28px, 6vw, 36px);
    }
    
    .products-services-subtitle {
        font-size: clamp(14px, 3vw, 16px);
    }
    
    .products-services-section .product-service-card {
        max-width: min(300px, 88vw);
    }
    
    
    .product-category-overlay {
        font-size: clamp(20px, 5vw, 28px);
        bottom: clamp(15px, 3vw, 20px);
        left: clamp(15px, 3vw, 20px);
    }
    
    .who-we-are-text {
        padding: clamp(14px, 2.5vw, 18px);
        font-size: clamp(14px, 1.8vw, 15px);
        line-height: 1.75;
        border-left-width: 3px;
    }
    
/* ========== SMALL MOBILE (480px and below) - index reference ========== */
    .story-section {
        height: 40vh;
        min-height: 280px;
        max-height: 360px;
        padding: clamp(32px, 6vw, 40px) clamp(12px, 3vw, 16px) clamp(28px, 5vw, 36px);
    }

    .story-title {
        margin: 0 15px 20px;
        line-height: 1.2;
        gap: 10px;
    }

    .story-title::before,
    .story-title::after {
        max-width: 70px;
        height: 2px;
    }

    .story-title span {
        font-size: clamp(26px, 7vw, 30px);
    }

    .story-title::before,
    .story-title::after {
        max-width: clamp(50px, 20vw, 100px);
    }

    .story-title span::after {
        width: clamp(60px, 35vw, 110px);
        height: 2px;
        bottom: -8px;
    }

    .story-content {
        margin-top: clamp(16px, 3vw, 20px);
    }

    .white-paint-img {
        width: 95%;
        max-width: 100%;
        border-radius: 6px;
    }

    .story-text {
        width: 90%;
        max-width: 100%;
        padding: 0 15px;
    }

    .story-intro {
        font-size: 15px;
        line-height: 1.6;
    }

    .story-body {
        font-size: 13px;
        line-height: 1.6;
    }

    .about-section {
        padding: clamp(24px, 6vw, 28px) clamp(16px, 4vw, 20px);
        margin: clamp(12px, 3vw, 16px) clamp(8px, 2vw, 12px);
        border-radius: clamp(10px, 2.5vw, 12px);
    }
    
    .section-header {
        margin-bottom: clamp(18px, 4vw, 20px);
    }

    .section-title {
        font-size: clamp(22px, 5.5vw, 24px);
        margin-bottom: clamp(8px, 2vw, 12px);
    }

    .section-subtitle {
        font-size: clamp(13px, 3.5vw, 15px);
        margin-bottom: clamp(14px, 3.5vw, 18px);
    }
    
    .who-we-are-text {
        padding: clamp(12px, 3vw, 16px);
        font-size: clamp(13px, 1.8vw, 14px);
        line-height: 1.7;
        border-left-width: 3px;
    }
    
    .mission-card,
    .commitment-card,
    .product-service-card {
        padding: clamp(20px, 4vw, 24px) clamp(16px, 3vw, 20px);
    }

    .mission-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mission-card {
        padding: 24px 18px;
        touch-action: manipulation;
    }

    .mission-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 16px;
    }

    .mission-icon i {
        font-size: 30px;
    }

    .mission-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .mission-text {
        font-size: 14px;
        line-height: 1.6;
    }

    .commitment-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .commitment-card {
        padding: 20px 16px;
        touch-action: manipulation;
    }

    .commitment-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 16px;
    }

    .commitment-icon i {
        font-size: 28px;
    }

    .commitment-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .commitment-text {
        font-size: 13px;
        line-height: 1.6;
    }

    .products-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }


    .product-service-content {
        padding: 20px 16px;
    }

    .product-service-name {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .product-service-description {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .product-service-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-top: 12px;
    }

    .product-service-price {
        font-size: 18px;
    }

    .product-service-link {
        font-size: 14px;
    }

    .who-we-are-text {
        font-size: 15px;
        line-height: 1.7;
    }
}

/* Scroll reveal animation support - uses existing floatIn animation from style.css */
.story-section.observed {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
}

.story-section.reveal {
    animation: floatIn 0.45s ease both;
}

.about-section.observed {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
}

.about-section.reveal {
    animation: floatIn 0.45s ease both;
}

/* Ensure mission and commitment cards also work with reveal animation */
.mission-card.observed,
.commitment-card.observed {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
}

.mission-card.reveal,
.commitment-card.reveal {
    animation: floatIn 0.45s ease both;
}

/* Nudge the first content container up to tuck under navbar */
.about-section.mission-section {
    margin-top: -18px;
}

/* Who We Are Section - Fixed background for better readability */
.who-we-are-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%); /* Same as index page about_us section */
    box-shadow: 0 clamp(12px, 1.25vw, 20px) clamp(36px, 3.75vw, 60px) rgba(15, 23, 42, 0.12),
                0 0 0 1px rgba(59, 130, 246, 0.05);
}

.who-we-are-section::before {
    content: '';
    position: absolute;
    inset: -120px -120px auto auto;
    width: clamp(260px, 32vw, 520px);
    height: clamp(260px, 32vw, 520px);
    background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.14) 0%, rgba(59, 130, 246, 0) 60%);
    pointer-events: none;
    z-index: 0;
}

.who-we-are-section::after {
    content: '';
    position: absolute;
    inset: auto auto -140px -140px;
    width: clamp(260px, 34vw, 560px);
    height: clamp(260px, 34vw, 560px);
    background: radial-gradient(circle at 60% 40%, rgba(96, 165, 250, 0.18) 0%, rgba(96, 165, 250, 0) 62%);
    pointer-events: none;
    z-index: 0;
}

.who-we-are-content {
    max-width: min(1000px, 90vw);
    margin: 0 auto;
    display: grid;
    gap: clamp(24px, 3vw, 32px);
    counter-reset: who;
    position: relative;
    z-index: 1;
}

.who-we-are-text {
    counter-increment: who;
    position: relative;
    font-family: var(--font-body);
    font-size: clamp(16px, 1.8vw, 18px);
    color: var(--about-text-light); /* Keep user's color */
    line-height: 1.9;
    text-align: left;
    margin-bottom: 0;
    font-weight: 500;
    padding: clamp(20px, 2.5vw, 24px) clamp(20px, 2.5vw, 24px) clamp(20px, 2.5vw, 24px) clamp(54px, 6vw, 72px);
    background: rgba(255, 255, 255, 0.75);
    border-radius: clamp(12px, 1.5vw, 16px);
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-left: 4px solid var(--about-primary);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    transition: all var(--transition-speed) ease;
}

.who-we-are-text::before {
    content: counter(who);
    position: absolute;
    top: clamp(16px, 2vw, 20px);
    left: clamp(16px, 2vw, 20px);
    width: clamp(30px, 4vw, 40px);
    height: clamp(30px, 4vw, 40px);
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.16) 0%, rgba(37, 99, 235, 0.10) 100%);
    color: var(--about-primary-darker);
    font-weight: 800;
    font-size: clamp(14px, 1.8vw, 16px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.14);
}

.who-we-are-text:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.10);
    transform: translateX(4px);
}

.who-we-are-text:last-child {
    margin-bottom: 0;
}

/* Products and Services Section - Tilted Card Design */
.products-services-section {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    padding: clamp(24px, 3vw, 40px) 0;
    margin: clamp(24px, 4vw, 48px) 0;
    position: relative;
    overflow: hidden;
}

.products-services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Header Banner */
.products-services-header {
    text-align: center;
    margin-bottom: clamp(28px, 4vw, 48px);
    position: relative;
    z-index: 1;
}

.products-services-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: clamp(12px, 1.5vw, 20px);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    letter-spacing: clamp(2px, 0.3vw, 4px);
}

.products-services-subtitle {
    font-family: var(--font-body);
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Container */
.products-services-container {
    position: relative;
    z-index: 1;
    max-width: min(1700px, 96vw);
    margin: 0 auto;
    padding: 0 clamp(16px, 2.5vw, 36px);
}

.products-services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(20px, 2.5vw, 28px);
    max-width: min(1200px, 94vw);
    margin: 0 auto;
}

/* Tilted Card Design - 圖片填滿，若裁切則加大卡片 */
.product-service-card {
    background: var(--about-bg);
    text-decoration: none;
    color: inherit;
    padding: clamp(6px, 0.8vw, 10px);
    border-radius: clamp(18px, 2.2vw, 28px);
    box-shadow: 0 clamp(12px, 1.5vw, 20px) clamp(30px, 4vw, 50px) rgba(0, 0, 0, 0.25),
                0 0 0 clamp(3px, 0.4vw, 5px) rgba(255, 255, 255, 0.9);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    flex: 0 1 auto;
    max-width: min(320px, 26vw);
    pointer-events: auto;
}

/* Different tilt angles and background colors for each card */
.product-card-tilted[data-category="1"] {
    transform: rotate(-5deg);
    background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%);
}

.product-card-tilted[data-category="2"] {
    transform: rotate(4deg);
    background: linear-gradient(135deg, #ffffff 0%, #dbeafe 100%);
}

.product-card-tilted[data-category="3"] {
    transform: rotate(-3deg);
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.product-service-card:hover {
    transform: rotate(0deg) translateY(-12px) scale(1.03);
    box-shadow: 0 clamp(20px, 2.5vw, 30px) clamp(40px, 5vw, 60px) rgba(0, 0, 0, 0.35),
                0 0 0 clamp(3px, 0.4vw, 5px) rgba(255, 255, 255, 1);
    z-index: 10;
}

.product-service-card:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 4px;
}

/* Image Container - 圖片填滿卡片，若裁切則加大卡片 */
.product-service-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    position: relative;
    border-radius: clamp(14px, 1.8vw, 22px);
    overflow: hidden;
    background: #f1f5f9;
}

.product-service-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-service-card:hover .product-service-image img {
    transform: scale(1.1);
}

/* Category Overlay Text */
.product-category-overlay {
    position: absolute;
    left: clamp(16px, 2vw, 20px);
    right: clamp(16px, 2vw, 20px);
    bottom: clamp(16px, 2vw, 20px);
    font-family: var(--font-heading);
    font-size: clamp(22px, 2.4vw, 32px);
    font-weight: 800;
    color: #ffffff;
    padding: clamp(10px, 1.2vw, 12px) clamp(12px, 1.4vw, 14px);
    border-radius: clamp(12px, 1.6vw, 16px);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.22) 0%, rgba(15, 23, 42, 0.55) 100%);
    backdrop-filter: blur(6px);
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 0, 0, 0.3);
    letter-spacing: clamp(1px, 0.2vw, 2px);
    z-index: 2;
    pointer-events: none;
    line-height: 1.1;
}

/* Note: product cards are image-only on About Us (no description/price area) */

/* UI UX Pro Max: Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .mission-card,
    .commitment-card,
    .product-service-card,
    .mission-icon,
    .commitment-icon,
    .product-service-image img,
    .product-service-link i {
        transition: none;
        animation: none;
    }
    
    .mission-card:hover,
    .commitment-card:hover,
    .product-service-card:hover {
        transform: none;
    }
    
    .mission-card:hover .mission-icon,
    .commitment-card:hover .commitment-icon {
        transform: none;
    }
    
    .product-service-card:hover .product-service-image img {
        transform: none;
    }
    
    .product-service-link:hover i {
        transform: none;
    }
    
    .story-section::before {
        animation: none;
    }
    
    .story-title span {
        animation: none;
    }
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 18px;
    color: #64748b;
    padding: 48px 20px;
}

/* ------------------------------------------------------------ */
/* Products & Services responsive overrides (must come AFTER base rules) */
/* ------------------------------------------------------------ */
@media (max-width: 1024px) {
    .products-services-section .products-services-grid {
        max-width: min(900px, 92vw);
    }
    .products-services-section .product-service-card {
        max-width: min(280px, 40vw);
    }

    .products-services-section .product-card-tilted[data-category="1"],
    .products-services-section .product-card-tilted[data-category="2"],
    .products-services-section .product-card-tilted[data-category="3"] {
        transform: rotate(-3deg);
    }

    .products-services-section .product-card-tilted[data-category="2"] {
        transform: rotate(2.5deg);
    }
}

@media (max-width: 768px) {
    .products-services-section .products-services-grid {
        max-width: min(360px, 92vw);
        flex-direction: column;
        align-items: center;
    }
    .products-services-section .product-service-card {
        max-width: min(320px, 88vw);
    }

    /* 保持傾斜，角度稍小避免重疊 */
    .products-services-section .product-card-tilted[data-category="1"] {
        transform: rotate(-3deg);
    }
    .products-services-section .product-card-tilted[data-category="2"] {
        transform: rotate(2deg);
    }
    .products-services-section .product-card-tilted[data-category="3"] {
        transform: rotate(-2deg);
    }
    
    .products-services-section .product-service-card:hover {
        transform: rotate(0deg) translateY(-8px) scale(1.02);
    }
}

@media (max-width: 480px) {
    .products-services-section .products-services-grid {
        grid-template-columns: 1fr;
        gap: clamp(18px, 3.5vw, 22px);
    }


    .products-services-section .product-category-overlay {
        font-size: clamp(22px, 7vw, 30px);
    }
}
