:root {
    /* 
      Design Tokens: Low Saturation, Cool & Elegant (Sage Green / Fog Blue / Ash Gray)
      All colors have Saturation < 30%, Lightness < 60% where applicable.
      No Yellow colors.
    */
    
    /* Light Mode (Default) */
    --color-primary: #9C6B57;
    --color-primary-hover: #8C5E4D;
    --color-primary-active: #7D5243;
    --color-secondary: #8B6F62;
    --color-secondary-hover: #7B6156;
    --color-surface: #F4EFE9;
    --color-background: #D8CFC3;
    --color-background-grad: #C9BBAE;
    --color-text-main: #3A2F2A;
    --color-text-inverse: #F7F3EE;
    --color-border: #CBB9AD;
    --color-disabled: #D9D0C8;
    --color-disabled-text: #B7A69A;
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Dark Mode overrides */
        --color-surface: #2D2623;
        --color-background: #3A312D;
        --color-background-grad: #2F2724;
        --color-text-main: #EDE6E0;
        --color-text-inverse: #EDE6E0;
        --color-border: #5A4A43;
        --color-disabled: #5A4A43;
        --color-disabled-text: #A08E82;
    }
}

* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Times New Roman', Times, serif;
    background-color: var(--color-background);
    color: var(--color-text-main);
    /* Removed overflow: hidden to allow scrolling for the nav bar */
}

/* Global Glass Backdrop */
.global-glass-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 25; /* Below header-gallery (z:40) and product-image (z:30), but above most things */
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Let clicks pass through if needed, though usually it blocks */
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.global-glass-backdrop.is-active {
    opacity: 1;
    visibility: visible;
}

/* Top White Section Replacement */
.header-area {
    background-color: var(--color-surface);
    height: 38vh;
    width: 100%;
    position: relative;
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.3s ease;
}

/* Header Background Image */
.header-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Lowest z-index within header */
}

.header-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the entire area */
    object-position: center;
}

/* Header Gallery Layout */
.header-gallery {
    position: absolute;
    left: 50%;
    bottom: -80px; /* Adjust to overlap both sections nicely */
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    z-index: 40; /* Make sure it sits above the glass backdrop */
    pointer-events: none; /* Allows clicks to pass through to elements below if needed */
    
    /* Initially hidden for the hover/click interaction */
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(20px); /* Start slightly lower */
    transition: opacity 0.5s ease-out, 
                transform 0.5s ease-out,
                visibility 0.5s;
}

.gallery-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: var(--color-text-inverse);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.3s ease-out, visibility 0.3s ease-out;
    align-self: flex-end;
    margin-left: 8px;
    opacity: 0;
    visibility: hidden;
}
.header-gallery.is-active .gallery-next {
    opacity: 1;
    visibility: visible;
}
.gallery-next:hover {
    background: var(--color-primary-hover);
    transform: scale(1.06);
}
.gallery-next:active {
    background: var(--color-primary-active);
    transform: scale(0.98);
}

/* Class to trigger visibility */
.header-gallery.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0); /* Move to final position */
    pointer-events: auto; /* Make them interactive when visible */
}
.header-gallery.is-switching {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.header-gallery.is-switching .gallery-image {
    opacity: 0;
    transform: translateY(20px);
    transition: none;
}

.gallery-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
    transition: transform 0.35s ease-out;
    
    /* Staggered entrance animation base state */
    opacity: 0;
    transform: translateY(20px);
}

/* Staggered entrance animation active state */
.header-gallery.is-active .gallery-image {
    opacity: 1;
}

/* Use odd/even for alternating animation, allowing any number of images */
.header-gallery.is-active .gallery-image:nth-child(odd) {
    transform: translateY(0);
}

.header-gallery.is-active .gallery-image:nth-child(even) {
    transform: translateY(-12px);
}

/* Base delay applied via JS or a generic rule, but we keep the nth-child staggered delay for the first few as fallback */
.header-gallery.is-active .gallery-image:nth-child(1) { transition-delay: 0.1s; }
.header-gallery.is-active .gallery-image:nth-child(2) { transition-delay: 0.2s; }
.header-gallery.is-active .gallery-image:nth-child(3) { transition-delay: 0.3s; }
.header-gallery.is-active .gallery-image:nth-child(4) { transition-delay: 0.4s; }
.header-gallery.is-active .gallery-image:nth-child(5) { transition-delay: 0.5s; }
.header-gallery.is-active .gallery-image:nth-child(6) { transition-delay: 0.6s; }

/* Hover effect on individual gallery images when they are active */
.header-gallery.is-active .gallery-image:hover {
    transform: translateY(-30px) scale(1.05) !important; /* Overrides the nth-child transform */
    z-index: 2;
    filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.2));
}

/* Make the first image slightly larger to act as the main hero if desired, 
   or keep them all equal. Here they are equal but responsive. */
   
@media (max-width: 992px) {
    .header-gallery {
        gap: 15px;
        bottom: -20px;
        flex-wrap: wrap; /* 允许换行以适应更多图片 */
    }
    .gallery-image {
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .header-area {
        height: auto;
        min-height: 45vh;
        padding-bottom: 100px; /* Make more room for gallery on mobile */
    }
    
    .header-gallery {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
        width: auto;
        max-width: none;
        gap: 12px;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        padding: 12px 14px 16px;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        border-radius: 0;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        transform: translateY(24px);
        
        /* Hide scrollbar but keep functionality */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }

    .header-gallery.is-active,
    .header-gallery.is-switching {
        transform: translateY(0);
    }
    
    /* Hide scrollbar for Chrome/Safari/Opera */
    .header-gallery::-webkit-scrollbar {
        display: none;
    }
    
    .gallery-image {
        max-width: 140px;
        flex: 0 0 auto;
        height: auto;
        aspect-ratio: 3 / 4; /* Maintain consistent aspect ratio */
        object-fit: cover;
        border-radius: 12px;
        filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
        transition: transform 0.3s ease, filter 0.3s ease;
    }
    
    .gallery-image:active {
        transform: scale(0.95);
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    }
    
    .gallery-next {
        width: 36px;
        height: 36px;
        font-size: 18px;
        flex-shrink: 0;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .header-gallery {
        gap: 10px;
        left: 10px;
        right: 10px;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
        padding: 10px 12px 14px;
        border-radius: 0;
    }
    
    .gallery-image {
        max-width: 120px;
        border-radius: 10px;
    }
    
    .gallery-next {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

/* Top-left Shape (formerly Orange) */
.brand-shape {
    position: fixed; /* Changed to fixed so it stays visible when scrolling */
    top: 0;
    left: 0;
    background-color: var(--color-primary);
    height: 90px; /* 进一步缩小高度 */
    width: 200px;  /* 进一步缩小宽度 */
    
    /* 
      iOS-style Continuous/Squircle border-radius approach.
      Instead of a simple circle arc, we use distinct X/Y values to mimic a G2 continuous curvature.
      By setting large pixel values combined with percentage bounds, the browser renders a smoother 
      transition from the straight edge to the curve, reducing the "bump" where the arc begins.
    */
    border-bottom-right-radius: 90px 75px; /* 相应缩小圆角 */
    
    /* Anti-aliasing optimizations for high-DPI screens */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    
    /* Animation driven by CSS variable from JS */
    --scroll-scale: 1;
    transform: scale(var(--scroll-scale)) translateZ(0);
    
    display: flex;
    align-items: center;
    padding-left: 25px; /* 相应减少内边距 */
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
    /* 优化动画：统一缓动函数为 cubic-bezier，确保丝滑。transform 由 JS 控制，这里不加 transition 避免冲突卡顿 */
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    z-index: 999; /* Ensure it stays above other content */
    will-change: auto; /* Managed by JS now */
    transform-origin: top left; /* 确保 CSS 和 JS 中的缩放基点一致 */
}

.brand-shape:hover {
    background-color: var(--color-primary-hover);
}

/* 视觉反馈：点击时的高亮效果 */
.brand-shape.is-clicked {
    filter: brightness(1.2);
    background-color: var(--color-primary-active);
}

.brand-text {
    color: var(--color-text-inverse);
    font-size: 24px; /* 进一步缩小字体 */
    letter-spacing: 0.5px;
}

/* Header Company Title Typing Animation */
.header-company-title {
    position: absolute;
    bottom: 25%;
    right: 5%; /* Align to the right */
    text-align: right; /* Right align the text */
    z-index: 10;
    pointer-events: none;
    font-family: "Noto Serif SC", "Times New Roman", serif;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Ensure blocks grow from right */
    /* Add particle fade out animation to the entire block after typing finishes */
    animation: particleFadeOut 2s ease-in forwards;
    animation-delay: 6s; /* Waits for both lines to type and sit for a moment */
}

@keyframes particleFadeOut {
    0% {
        opacity: 1;
        filter: blur(0) drop-shadow(0 0 0 rgba(0,0,0,0));
        transform: translateX(0) scale(1);
        letter-spacing: 4px;
    }
    50% {
        opacity: 0.6;
        filter: blur(4px) drop-shadow(0 0 10px rgba(44, 53, 50, 0.5));
        letter-spacing: 8px;
    }
    100% {
        opacity: 0;
        filter: blur(12px) drop-shadow(0 0 20px rgba(44, 53, 50, 0));
        transform: translateX(20px) scale(1.1) translateY(-10px);
        letter-spacing: 12px;
        visibility: hidden;
    }
}

.typing-line {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: bold;
    color: var(--color-text-main);
    letter-spacing: 4px;
    margin: 8px 0;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    /* Restore normal LTR direction so typing starts from the first character (left) */
    direction: ltr; 
    border-right: 2px solid transparent; /* cursor on the right */
}

/* First line animation */
.typing-line:nth-child(1) {
    animation: 
        typeLine1 1.5s steps(4, end) 0.5s forwards,
        blinkCursor 0.8s step-end 0.5s 3;
}

/* Second line animation */
.typing-line:nth-child(2) {
    animation: 
        typeLine2 2s steps(8, end) 2s forwards,
        blinkCursor 0.8s step-end 2s infinite;
}

@keyframes typeLine1 {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes typeLine2 {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blinkCursor {
    from, to { border-right-color: transparent; }
    50% { border-right-color: var(--color-text-main); }
}

/* Bottom Section (formerly Yellow) */
.product-area {
    height: 62vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom, var(--color-background) 0%, var(--color-background-grad) 100%);
    position: relative;
    transition: background 0.3s ease;
}

.product-area-title {
    position: absolute;
    top: 40px;
    left: 5%;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-text-main);
    text-transform: uppercase;
    margin: 0;
    z-index: 10;
}

.product-next {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: var(--color-text-inverse);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transition: background-color 0.2s ease, transform 0.2s ease;
    z-index: 40;
}
.product-next:hover {
    background: var(--color-primary-hover);
    transform: translateY(-50%) scale(1.06);
}
.product-next:active {
    background: var(--color-primary-active);
    transform: translateY(-50%) scale(0.98);
}

.product-typing {
    flex: 0 0 420px;
    max-width: 420px;
    color: var(--color-text-main);
    font-size: 18px;
    line-height: 1.8;
    white-space: pre-wrap;
    margin-right: 24px;
    opacity: 0.95;
}
.product-typing::after {
    content: '▍';
    margin-left: 4px;
    color: var(--color-text-main);
    animation: blink 1s step-end infinite;
}
.product-typing.typing-done::after {
    content: '';
}
@keyframes blink {
    50% { opacity: 0; }
}
 
.product-image-container {
    position: relative;
    display: inline-block;
}

.product-image {
    height: 60vh;
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 30;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

.product-image:hover {
    transform: scale(1.08) translateY(-10px);
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
}

/* Hover Hint Arrow */
.hover-hint {
    position: absolute;
    top: 50%;
    right: -120px; /* Position to the right of the image */
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: none; /* Let clicks pass through to image */
    color: var(--color-text-main);
    opacity: 0.7;
    transition: opacity 0.3s ease;
    animation: bounceLeft 2s infinite ease-in-out;
}

.hover-hint-arrow {
    font-size: 24px;
    font-weight: bold;
}

.hover-hint-text {
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    writing-mode: vertical-rl; /* Optional: vertical text to save space */
    text-orientation: upright;
}

/* Hide hint when hovering the image */
.product-image-container:hover .hover-hint {
    opacity: 0;
    animation: none;
}

@keyframes bounceLeft {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-50%) translateX(-15px);
    }
}

/* --- New Page Content Sections --- */

.content-section {
    padding: 80px 20px;
    background-color: var(--color-surface);
}

/* Section Decorators */
.junction-decorator {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    height: 48px;
    z-index: 0; /* 降低 z-index，确保它作为背景装饰，不会覆盖到标题等内容 */
    /* Remove transform so it sits exactly at the top right of the #projects section */
}

.junction-decorator::before {
    content: '';
    width: 200px;
    height: 100%;
    background-color: #BDE4CE; /* 薄荷绿 */
}

.junction-decorator::after {
    content: '';
    width: 200px;
    height: 100%;
    background-color: #DE8642; /* 图片中的橙色 */
}

#projects,
#partners,
#news {
    position: relative;
}

#projects .container,
#partners .container,
#news .container {
    max-width: none;
    margin: 0;
    padding: 90px 5% 0;
}

#projects.content-section,
#partners.content-section,
#news.content-section {
    padding-left: 0;
    padding-right: 0;
}

.content-section.alt-bg {
    background-color: var(--color-background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--color-primary);
}

/* Projects List Layout */
.projects-list {
    list-style: none;
    padding: 0;
    margin: 60px 0 0 0;
    width: 100%;
}

.project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.3s ease;
    position: relative; /* 为悬浮图片提供定位基准 */
}

.project-hover-images {
    position: absolute;
    left: 80px; /* 放在数字右侧靠左位置 */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column; /* 改为上下排列 */
    gap: 12px; /* 稍微减小一点上下间距 */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.project-item.project-item-with-hover:hover .project-hover-images {
    opacity: 1;
}

.hover-img {
    width: 240px;
    height: 180px;
    object-fit: contain;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-item.project-item-with-hover:hover .hover-img {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 多张图片依次出现，制造层次感 */
.project-item.project-item-with-hover:hover .hover-img.img-1 {
    transition-delay: 0s;
}

.project-item.project-item-with-hover:hover .hover-img.img-2 {
    transition-delay: 0.1s;
}

.project-item.project-item-with-hover:hover .hover-img.img-3 {
    transition-delay: 0.2s;
}

.project-item.project-item-with-hover:hover .hover-img.img-4 {
    transition-delay: 0.3s;
}

/* 悬浮时不再让文字变透明 */
.project-item.project-item-with-hover:hover .project-number,
.project-item.project-item-with-hover:hover .project-copy {
    transition: opacity 0.3s ease;
}

.project-item-contact {
    cursor: pointer; /* 仅为第5项添加鼠标指针样式，提示可点击 */
}

.project-item:first-child {
    border-top: 1px solid var(--color-border);
}

.project-item:hover {
    background-color: var(--color-disabled);
}

.project-number {
    font-size: 34px;
    font-weight: 400;
    color: var(--color-primary);
    font-family: inherit;
}

.project-title {
    font-size: 52px;
    font-weight: 300;
    color: var(--color-text-main);
    margin: 0;
    text-align: right;
    font-family: "Noto Serif SC", "Times New Roman", serif;
}

.project-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.project-desc {
    max-width: 760px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-secondary);
    text-align: right;
    opacity: 0;
    min-height: 1.6em;
    transform: translateY(2px);
    transition: opacity 0.26s ease, transform 0.26s ease;
}

.project-item.is-desc-visible .project-desc {
    opacity: 0.95;
    transform: translateY(0);
}

.project-desc::after {
    content: '▍';
    margin-left: 4px;
    color: var(--color-text-main);
    animation: blink 1s step-end infinite;
}

.project-item:not(.is-desc-visible) .project-desc::after {
    content: '';
}

.project-desc.typing-done::after {
    content: '';
}

/* Projects Grid (kept for reference if needed elsewhere) */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--color-surface);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card-placeholder {
    height: 200px;
    background-color: var(--color-disabled);
    border-radius: 8px;
    margin-bottom: 20px;
}

.card h3 {
    margin-top: 0;
    color: var(--color-text-main);
}

/* About Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.text-content p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--color-text-main);
}

.large-placeholder {
    width: 100%;
    height: 400px;
    background-color: var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-main);
    border-radius: 12px;
}

/* Partners Section */
#partners {
    position: relative;
}

#partners .product-area-title {
    color: #000000; /* 强制 OUR PARTNERS 标题在所有模式下（包括夜间模式）保持黑色，因为其父容器背景是写死的白色 */
}

.partners-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible;
    padding: 20px 0;
}

.partners-item,
.partners-link {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    flex: 0 1 auto;
}

.partners-link {
    text-decoration: none;
}

.partners-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

@media (max-width: 768px) {
    #projects .container,
    #news .container,
    #partners .container {
        padding-top: 80px;
        position: relative;
        z-index: 2; /* 确保移动端容器内容层级高于绝对定位的背景装饰 */
    }

    .partners-content {
        padding: 20px 0;
        gap: 16px;
    }
}

/* =========================================
   About Page Specific Styles
   ========================================= */

.about-hero {
    position: relative;
    height: 100vh; /* Fullscreen */
    width: 100%;
    overflow: hidden;
    /* Fixed position so it stays still while the rest scrolls over it */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
}

.about-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.about-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Container to push the content down initially by 100vh so hero is visible */
.about-scroll-container {
    position: relative;
    z-index: 10;
    margin-top: 100vh; /* Start content below the hero */
}

.about-content-overlay {
    background: var(--color-surface);
    min-height: 100vh;
    padding: 80px 5% 60px; /* Reduced top padding, changed to % for side padding */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align left */
    /* Top rounded corners */
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    /* Soft shadow to separate it from the image underneath */
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
}

.about-text-container {
    max-width: 1200px; /* 增加最大宽度以容纳四个卡片 */
    width: 100%;
    text-align: left;
    background: transparent;
    padding: 0;
    margin-top: 20px;
}

.about-title {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 40px; /* Increase space below title */
    color: var(--color-text-main);
    font-family: "Noto Serif SC", "Times New Roman", serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-desc {
    font-size: 18px;
    line-height: 2;
    color: var(--color-secondary);
    margin-bottom: 24px;
    /* Hide initially for typing animation */
    opacity: 0; 
}

/* Custom Typing Animation Classes for About Paragraphs */
.about-desc.is-typing {
    opacity: 1;
    overflow: hidden;
    white-space: pre-wrap; /* Preserve spaces and wrap */
    /* Width will be animated via JS or CSS steps */
}

/* About Stats Cards */
.about-stats-container {
    display: flex;
    align-items: flex-end; /* 底部对齐以体现阶梯效果 */
    gap: 20px;
    margin-top: 60px;
    width: 100%;
    flex-wrap: nowrap; /* 桌面端不换行 */
}

.stat-card {
    background-color: var(--color-surface); /* 使用主题变量代替写死的 #ffffff */
    flex: 1;
    height: var(--card-height);
    min-height: 160px;
    position: relative;
    /* border-left: 6px solid var(--accent-color); 移除原生边框，改用伪元素 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 30px 20px 30px 26px; /* 增加左侧内边距，为伪元素留出空间 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    overflow: hidden; /* 防止伪元素溢出 */
}

/* 使用伪元素作为左侧进度条 */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: var(--progress-height, 0%); /* 使用 CSS 变量控制高度，默认为 0 */
    background-color: var(--accent-color);
    transition: height 0.1s ease-out; /* 平滑过渡 */
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.stat-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.stat-number {
    font-size: clamp(32px, 3vw, 42px);
    font-family: "Noto Serif SC", "Times New Roman", serif;
    color: var(--color-text-main); /* 改为使用主题主文本颜色，暗黑模式下自动变亮 */
    font-weight: 400;
    margin: 0;
    line-height: 1.1;
    transition: color 0.3s ease;
}

.stat-label {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 右上角装饰角标 */
.stat-corner-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--color-border); /* 使用主题边框颜色 */
    border-right: 2px solid var(--color-border);
    transition: border-color 0.3s ease;
}

@media (max-width: 900px) {
    .about-stats-container {
        flex-wrap: wrap; /* 平板/手机端换行 */
        align-items: stretch; /* 换行后取消底部对齐，使其等高或自然流 */
    }
    .stat-card {
        flex: 1 1 calc(50% - 20px); /* 一行两个 */
        height: 200px !important; /* 统一高度 */
    }
}

@media (max-width: 480px) {
    .stat-card {
        flex: 1 1 100%; /* 一行一个 */
        height: auto !important; /* 自动高度 */
        min-height: 140px;
    }
}

/* News List */
.news-list {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 默认一行四个 */
    gap: 20px;
}

.news-item.card-style {
    position: relative;
    background-color: #EFECE5; /* 参考图片中的米色背景 */
    padding: 0; /* 移除默认 padding，重新在内部控制 */
    border-bottom: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* 确保内容不溢出卡片 */
    border-left: 6px solid var(--accent-color, transparent); /* 添加左侧边框，默认透明，通过内联变量覆盖 */
}

/* 覆盖全卡片的隐藏链接，实现整块可点击 */
.news-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* 右上角箭头图标 */
.news-arrow-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    z-index: 5;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.news-arrow-icon i {
    color: #000;
    font-size: 14px;
    transform: rotate(45deg); /* 如果原本是向上箭头，旋转使其变成右上 */
    transition: transform 0.3s ease;
}

/* 悬停效果：卡片上浮，箭头变化 */
.news-item.card-style:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-item.card-style:hover .news-arrow-icon {
    background-color: var(--accent-color, var(--color-primary)); /* 悬浮时背景色与左侧彩条颜色一致，兜底使用主色 */
}

.news-item.card-style:hover .news-arrow-icon i {
    color: #ffffff;
    transform: rotate(45deg) scale(1.1);
}

/* 图片区域 */
.news-image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    display: block; /* 移除之前的 flex，因为它可能导致图片尺寸计算异常 */
    position: relative; /* 为子元素绝对定位做准备 */
}

.news-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保证图片按比例填满容器不拉伸 */
    object-position: center; /* 确保图片居中裁剪 */
    transition: transform 0.5s ease;
}

.news-item.card-style:hover .news-image-wrapper img {
    transform: scale(1.05); /* 悬停时图片轻微放大 */
}

/* 内容区域 */
.news-content {
    padding: 24px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 13px;
    color: var(--color-secondary);
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-content h3 {
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 12px 0;
    color: #000000; /* 强制黑色字体 */
    font-family: var(--font-family-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-content p {
    font-size: 14px;
    color: #333333;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3; /* 限制显示三行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 暗黑模式适配 */
body.dark-mode .news-item.card-style {
    background-color: var(--color-surface); /* 在暗黑模式下使用深色表面 */
}
body.dark-mode .news-content h3,
body.dark-mode .news-content p {
    color: var(--color-text-main); /* 使用主题文字颜色 */
}
body.dark-mode .news-arrow-icon {
    background-color: rgba(255, 255, 255, 0.1);
}
body.dark-mode .news-arrow-icon i {
    color: #ffffff;
}

/* 响应式布局 */
@media (max-width: 1024px) {
    .news-list {
        grid-template-columns: repeat(2, 1fr); /* 平板一行两个 */
    }
}

@media (max-width: 600px) {
    .news-list {
        grid-template-columns: 1fr; /* 手机一行一个 */
    }
}

/* =========================================
   Utility Classes & Animations
   ========================================= */

/* Loading Spinner */
.loading-spinner-container {
    grid-column: 1 / -1; /* 占据所有网格列 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    width: 100%;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(226, 136, 84, 0.2); /* 使用主题色的淡色作为背景圈 */
    border-radius: 50%;
    border-top-color: var(--color-primary); /* 主题色作为旋转的实体圈 */
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: var(--color-secondary);
    font-size: 14px;
    letter-spacing: 1px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* 稍微调浅背景色 */
    backdrop-filter: blur(8px); /* 增加毛玻璃模糊度 */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background-color: var(--color-surface);
    padding: 48px; /* 增加内边距，让内容更呼吸 */
    border-radius: 24px; /* 更圆润的边角 */
    width: 90%;
    max-width: 480px; /* 稍微收窄一点，显得更修长精致 */
    position: relative;
    transform: translateY(30px) scale(0.95); /* 增加缩放动画效果 */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* 更平滑的动画曲线 */
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.1) inset; /* 更柔和且有层次的阴影 */
}

.modal.show .modal-content {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;
    right: 24px;
    top: 24px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: 50%;
    background-color: var(--color-background); /* 给关闭按钮一个淡背景 */
    transition: all 0.2s ease;
}

.close-modal:hover {
    color: var(--color-text-main);
    background-color: #E6E4DF; /* 悬停时稍微加深背景 */
    transform: rotate(90deg); /* 添加一点趣味旋转 */
}

.modal-header {
    margin-bottom: 32px;
    text-align: center; /* 标题居中 */
}

.modal-header h2 {
    font-size: 28px;
    color: var(--color-text-main);
    margin-bottom: 12px;
    font-family: "Noto Serif SC", "Times New Roman", serif; /* 使用衬线字体提升高级感 */
}

.modal-header p {
    color: var(--color-secondary);
    font-size: 15px;
    line-height: 1.5;
}

.modal-form .form-group {
    margin-bottom: 24px;
}

.modal-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text-main);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 14px 16px; /* 增加输入框高度 */
    border: 1px solid var(--color-border);
    border-radius: 12px; /* 更圆润的输入框 */
    background-color: var(--color-background);
    color: var(--color-text-main);
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02) inset; /* 内部微小阴影 */
}

.modal-form input:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: var(--color-surface);
    box-shadow: 0 0 0 4px rgba(226, 136, 84, 0.1); /* 聚焦时的高光光晕 */
}

.modal-form textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-submit-btn {
    width: 100%;
    padding: 16px;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 16px;
    box-shadow: 0 4px 12px rgba(226, 136, 84, 0.3); /* 按钮添加主题色阴影 */
}

.modal-submit-btn:hover {
    background-color: #DE8642;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(226, 136, 84, 0.4);
}

.modal-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(226, 136, 84, 0.3);
}

.modal-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 480px) {
    .modal-content {
        padding: 32px 24px;
        width: 95%;
    }
}

/* --- Refactored Site Footer (BEM + Mobile First) --- */
.site-footer {
    --footer-bg: var(--color-primary-active);
    --footer-text: var(--color-text-inverse);
    --footer-text-muted: rgba(255, 255, 255, 0.7);
    --footer-input-bg: rgba(255, 255, 255, 0.05);
    --footer-input-border: rgba(255, 255, 255, 0.2);
    --footer-input-border-focus: rgba(255, 255, 255, 0.8);
    --footer-btn-bg: var(--color-surface);
    --footer-btn-color: var(--color-primary-active);
    --footer-btn-hover: #ffffff;
    
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 40px;
    --spacing-2xl: 64px;

    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    font-family: 'Times New Roman', Times, serif;
}

.site-footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.site-footer__title {
    font-size: 24px;
    margin: 0 0 var(--spacing-md);
    font-weight: normal;
    color: var(--footer-text);
}

.site-footer__address {
    font-style: normal;
}

.site-footer__text {
    margin: 0 0 var(--spacing-sm);
    font-size: 16px;
    line-height: 1.6;
    color: var(--footer-text-muted);
}

.site-footer__text strong {
    color: var(--footer-text);
    font-weight: normal;
}

.site-footer__link {
    color: var(--footer-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
    color: var(--footer-text);
    text-decoration: underline;
    outline: 2px solid var(--footer-text);
    outline-offset: 2px;
}

.site-footer__form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.site-footer__form-inputs {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    width: 100%;
}

.site-footer__input-group {
    display: flex;
    flex-direction: column;
}

.site-footer__input,
.site-footer__textarea {
    width: 100%;
    padding: 12px var(--spacing-md);
    border: 1px solid var(--footer-input-border);
    border-radius: 8px;
    background-color: var(--footer-input-bg);
    color: var(--footer-text);
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.2s ease;
}

.site-footer__textarea {
    resize: vertical;
    min-height: 100px;
    padding-bottom: 50px; /* Make room for the button */
}

.site-footer__textarea-wrapper {
    position: relative;
}

.site-footer__input::placeholder,
.site-footer__textarea::placeholder {
    color: var(--footer-text-muted);
}

.site-footer__input:focus,
.site-footer__textarea:focus {
    outline: none;
    border-color: var(--footer-input-border-focus);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.site-footer__btn-submit {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--footer-btn-bg);
    color: var(--footer-btn-color);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    z-index: 2;
}

.site-footer__btn-submit:hover {
    background-color: var(--footer-btn-hover);
    transform: scale(1.05);
}

.site-footer__btn-submit:active {
    transform: scale(0.95);
}

.site-footer__btn-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.site-footer__bottom {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.site-footer__extras {
    max-width: 1200px;
    margin: 0 auto var(--spacing-lg);
    padding: 0 var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: 32px; /* 增大移动端间距 */
    align-items: flex-start; /* 移动端改为左对齐更利于阅读 */
    text-align: left;
}

.site-footer .contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px; /* 增大每个联系方式的间距 */
    margin-top: 0;
    width: 100%;
}

.site-footer .contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start; /* 确保多行文本时图标在顶部对齐 */
}

.site-footer .contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; /* 稍微增大图标容器 */
    height: 44px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--footer-text);
    font-size: 1.1rem;
    flex-shrink: 0; /* 防止图标被压缩 */
    border-radius: 50%;
}

.site-footer .contact-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.site-footer .contact-text strong {
    color: var(--footer-text);
    font-size: 15px;
    letter-spacing: 0.5px;
}

.site-footer .contact-text span,
.site-footer .contact-text a {
    color: var(--footer-text-muted);
    opacity: 1;
    font-size: 14px;
    line-height: 1.5;
}

.site-footer .contact-text a:hover,
.site-footer .contact-text a:focus {
    color: var(--footer-text);
}

.site-footer .social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px; /* 增大社交图标间距 */
    width: 100%;
    justify-content: flex-start; /* 移动端左对齐 */
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* 添加微弱分隔线 */
}

.site-footer .social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08); /* 稍微降低默认背景透明度 */
    color: var(--footer-text);
    box-shadow: none;
    transition: all 0.3s ease;
    border-radius: 50%;
    text-decoration: none;
}

.site-footer .social-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.site-footer .social-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6);
}

.site-footer__copyright {
    margin: 0;
    font-size: 14px;
    color: var(--footer-text-muted);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .site-footer__btn-submit {
        transition: none;
    }
    .site-footer__btn-submit:hover,
    .site-footer__btn-submit:active {
        transform: none;
    }
}

/* Responsive Breakpoints (Mobile First to Desktop) */
@media (min-width: 768px) {
    .site-footer {
        padding: var(--spacing-2xl) 0 var(--spacing-xl);
    }
    
    .site-footer__container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: var(--spacing-2xl);
    }
    
    .site-footer__contact-info {
        flex: 1;
        max-width: 400px;
    }
    
    .site-footer__contact-form-wrapper {
        flex: 1.5;
        max-width: 600px;
    }
    
    .site-footer__form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .site-footer__btn-submit {
        margin-bottom: 0;
    }

    .site-footer__extras {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        padding: 0; /* 桌面端由容器控制 padding */
    }

    .site-footer .contact-details {
        width: auto;
        gap: 32px; /* 桌面端联系方式水平排列间距 */
    }

    .site-footer .social-icons {
        width: auto;
        justify-content: flex-end;
        padding-top: 0;
        border-top: none;
    }
}

/* ------------------------------------------- */

/* Floating Navigation Bar */
.floating-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: linear-gradient(to right, #F4EFE9, #EDE7E1);
    padding: 12px 30px;
    border-radius: 40px;
    display: flex;
    gap: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.6);
    z-index: 100;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.4);
}

/* Class added via JS when scrolling */
.floating-nav.is-visible,
.floating-nav.always-visible {
    transform: translateX(-50%) translateY(0);
}

.nav-link {
    text-decoration: none;
    color: #6F6058;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 16px;
    font-weight: normal;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-primary); /* Use primary color on hover for consistency */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-nav {
        padding: 10px 20px;
        gap: 16px;
        top: 10px;
    }
    
    .nav-link {
        font-size: 14px;
    }

    .brand-shape {
        width: 180px;
        height: 80px;
        border-bottom-right-radius: 80px 65px; /* Scale squircle down for mobile */
        padding-left: 15px;
    }
    .brand-text {
        font-size: 22px;
    }

    .split-layout, .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-title {
        font-size: 28px;
    }
    .product-area {
        flex-direction: column;
        padding: 60px 20px 30px; /* Add top padding to clear absolute title */
        height: auto;
        min-height: 62vh;
        align-items: flex-start; /* Align contents to left for better reading on mobile */
    }
    
    .product-area .product-area-title {
        position: relative; /* Change from absolute to relative to sit naturally */
        top: 0;
        left: 0;
        font-size: 16px; /* Slightly smaller for mobile */
        margin-bottom: 20px; /* Space between title and typing text */
        text-align: left;
    }

    .product-typing {
        max-width: 100%;
        flex: 0 0 auto;
        font-size: 16px;
        line-height: 1.8; /* Improve readability */
        margin: 0 0 30px; /* More space before image */
        text-align: left; /* Left align for better mobile reading */
        /* Make sure padding doesn't push it out */
        padding-right: 10px;
    }
    
    .product-image-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 14px;
    }

    .product-image {
        height: auto;
        max-height: 52vh;
        width: 88vw;
        transition: transform 0.3s ease-out, filter 0.3s ease-out;
    }

    .hover-hint {
        position: static;
        transform: none;
        max-width: min(88vw, 320px);
        width: fit-content;
        justify-content: center;
        gap: 8px;
        padding: 8px 12px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.72);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        opacity: 0.92;
        animation: none;
    }

    .hover-hint-arrow {
        font-size: 18px;
        line-height: 1;
    }

    .hover-hint-text {
        font-size: 12px;
        letter-spacing: 0.2px;
        text-transform: none;
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        white-space: normal;
        text-align: center;
    }

    .product-image-container:hover .hover-hint {
        opacity: 0.92;
        animation: none;
    }

    .product-image:hover {
        transform: none;
        filter: none;
    }
    
    .project-item {
        padding: 24px 0;
        /* 在移动端移除 relative，方便图片根据整个屏幕或者列表来定位，或者调整图片定位方式 */
    }

    /* 手机端悬浮图片适配 */
    .project-hover-images {
        left: 40px; /* 手机端数字较小，靠左的距离减小 */
        gap: 8px; /* 减小图片间距 */
    }

    .project-item.project-item-with-hover:active .project-hover-images {
        opacity: 1;
        transform: translateY(-50%) scale(1.05);
    }

    .hover-img {
        width: 140px; /* 缩小图片尺寸以适应手机屏幕 */
        height: 105px;
    }
    
    .projects-list {
        padding: 0;
    }
    
    .project-number {
        font-size: 24px;
    }
    
    .project-title {
        font-size: 20px;
        text-align: right;
    }

    .project-copy {
        gap: 8px;
    }

    .project-desc {
        font-size: 14px;
        max-width: 100%;
        min-height: 1.6em;
    }
}

/* Extra small mobile devices (phones) */
@media (max-width: 480px) {
    .brand-shape {
        width: 150px;
        height: 65px;
        border-bottom-right-radius: 65px 50px;
        padding-left: 12px;
    }
    .brand-text {
        font-size: 18px;
    }
    
    /* Make the brand shape scale down even faster on very small screens */
    .brand-shape {
        --scroll-scale: 0.8; /* Start smaller on very small screens */
    }

    .hover-hint {
        max-width: min(92vw, 280px);
        padding: 7px 10px;
        gap: 6px;
    }

    .hover-hint-arrow {
        font-size: 16px;
    }

    .hover-hint-text {
        font-size: 11px;
    }
}

/* =========================================
   Contact Page Styles
   ========================================= */
.contact-page-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.contact-main {
    flex: 1;
    padding: 140px 20px 80px; /* clear fixed nav */
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

/* Contact Info Side */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-primary);
    line-height: 1.1;
}

.contact-description {
    font-size: 1.1rem;
    color: var(--color-text-main);
    line-height: 1.6;
    opacity: 0.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: var(--color-primary-light, rgba(230, 108, 35, 0.1));
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-text strong {
    font-size: 1rem;
    color: var(--color-text-main);
}

.contact-text span,
.contact-text a {
    font-size: 1rem;
    color: var(--color-text-main);
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.3s, color 0.3s;
}

.contact-text a:hover,
.contact-text a:focus {
    opacity: 1;
    color: var(--color-primary);
}

/* Social Media */
.social-media {
    margin-top: 20px;
}

.social-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-text-main);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 44px; /* WCAG touch target size */
    height: 44px;
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s, color 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.social-btn:hover,
.social-btn:focus {
    transform: translateY(-5px);
    outline: none;
}
.social-btn:focus-visible {
    box-shadow: 0 0 0 3px var(--color-primary);
}

.social-btn.wechat:hover { background: #07c160; color: #fff; }
.social-btn.weibo:hover { background: #df2029; color: #fff; }
.social-btn.qq:hover { background: #12b7f5; color: #fff; }
.social-btn.email:hover { background: var(--color-primary); color: #fff; }

/* Contact Form Side */
.form-card {
    background: var(--color-surface);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.required {
    color: #e53e3e;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--color-text-main);
    opacity: 0.4;
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.3s, opacity 0.3s;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px 14px 44px; /* Space for icon */
    background: var(--color-background);
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--color-text-main);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.contact-form textarea {
    padding: 14px 16px; /* No icon for textarea usually */
    resize: vertical;
    min-height: 120px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-surface);
}

.contact-form input:focus + .input-icon {
    color: var(--color-primary);
    opacity: 1;
}

/* Error States */
.contact-form input.is-invalid,
.contact-form textarea.is-invalid {
    border-color: #e53e3e;
}
.error-message {
    color: #e53e3e;
    font-size: 0.85rem;
    min-height: 1.2em;
}

/* Submit Button */
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    min-height: 54px; /* Touch target */
    position: relative;
    overflow: hidden;
}

.submit-btn:hover,
.submit-btn:focus {
    background: var(--color-primary-hover);
    outline: none;
}
.submit-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(230, 108, 35, 0.4);
}
.submit-btn:active {
    transform: scale(0.98);
}

/* Spinner */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

.submit-btn.is-loading .btn-text,
.submit-btn.is-loading .btn-icon {
    display: none;
}
.submit-btn.is-loading .spinner {
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form Status */
.form-status {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none;
}
.form-status.success {
    display: block;
    background: rgba(56, 161, 105, 0.1);
    color: #38a169;
}
.form-status.error {
    display: block;
    background: rgba(229, 62, 62, 0.1);
    color: #e53e3e;
}

/* Responsive */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .form-card {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .contact-title {
        font-size: 2.5rem;
    }
    .contact-main {
        padding: 100px 15px 60px;
    }
}
