:root {
    /* Colors */
    --primary-color: #000000;
    --text-main: #1A1A1A;
    --text-muted: #666666;
    --bg-light-blue: #F0F5FF;
    --bg-beige: #FFF8F0;
    --bg-pink: #FFF0F0;
    --bg-green: #F0FFF4;
    --border-color: #EEEEEE;
    
    /* Spacing */
    --container-width: 75rem; /* 1200px */
    --section-gap: 5rem; /* 80px */
    --section-gap-mobile: 2.5rem; /* 40px */
}

/* Base Styles */
body {
    background-color: #FFFFFF;
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.75;
    letter-spacing: 0.04em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.25rem; /* 20px */
}

/* Typography */
h1, h2, h3 {
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.02em;
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; } /* 收紧标题下边距 */
h2 { font-size: 2.25rem; margin-bottom: 2.5rem; text-align: left;  }
h3 { font-size: 1.25rem; margin-bottom: 0.9375rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem; /* 12px 24px */
    border-radius: 3.125rem; /* 50px */
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn--black {
    background: var(--primary-color);
    color: #fff;
}

.btn--outline {
    border: 1px solid var(--primary-color);
    background: transparent;
}

.btn--small {
    padding: 0.5rem 1rem; /* 8px 16px */
    font-size: 0.875rem; /* 14px */
}

/* Header */
.header {
    height: 5rem; 
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.72); /* Apple通透率 */
    backdrop-filter: saturate(180%) blur(20px); /* Apple磨砂感 */
    z-index: 1000;
}

.header__inner {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.header__action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.nav { 
    display: none; 
    position: fixed;
    top: 5rem;
    left: 0;
    width: 100%;
    height: calc(100vh - 5rem);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 999;
}

.nav.is-active {
    display: block;
}

.nav__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 2.5rem;
}

.nav__link {
    font-size: 0.9375rem; /* 15px */
    color: var(--text-main);
    font-weight: 500;
}

.nav__link:hover { opacity: 0.7; }

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 1.25rem;
    height: 0.875rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
}

.hamburger.is-active span:nth-child(1) {
    transform: translateY(0.45rem) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
    transform: translateY(-0.45rem) rotate(-45deg);
}

/* Hero Section */
.hero {
    padding: 0.6rem 0 2.5rem 0; /* 调整与导航间距为 0.6rem */
    overflow: hidden;
}

/* 子页面通用 Hero 样式 */
.hero--small {
    padding-top: 3.75rem; /* 60px 增加留白 */
    padding-bottom: 2.5rem;
}

.hero--small .hero__content {
    max-width: 50rem;
    margin: 0 auto;
    text-align: center;
}

.hero--small .hero__btns {
    justify-content: center;
}

.hero__card {
    background: url('/resources/images/home/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    padding: 3rem 1.25rem 0; /* 底部内边距设为0以便对齐 */
    aspect-ratio: 1 / 2.1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 恢复两端对齐，确保图片贴底 */
    align-items: center;
    gap: 2.5rem; /* 确保内容与图片之间有最小安全距离 */
    text-align: center;
    border-radius: 2.5rem; /* 40px */
    overflow: hidden;
    position: relative;
}

.hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem; /* 收紧文字块内部间距 */
    width: 100%;
    z-index: 2;
}

.hero__visual {
    width: 100%;
    max-width: 25rem;
    display: flex;
    justify-content: center;
    line-height: 0;
}

.hero__visual img {
    width: 95%;
    height: auto;
}

.hero__content {
    flex: 1;
}

.hero__image {
    flex: 1;
    position: relative;
}

.hero__btns {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem; /* 收紧按钮上方边距 */
    width: 100%;
}

.hero__btns .btn {
    width: 100%;
}

/* Section Common */
.section {
    padding: var(--section-gap-mobile) 0;
}

/* Card Common */
.card {
    background: #fff;
    border-radius: 1.25rem; /* 20px */
    padding: 1.5rem; /* 24px */
    border: 1px solid var(--border-color);
}

.card--no-border { border: none; }

/* Background Utility Classes */
.bg-light-blue { background-color: var(--bg-light-blue) !important; }
.bg-beige { background-color: var(--bg-beige) !important; }
.bg-pink { background-color: var(--bg-pink) !important; }
.bg-green { background-color: var(--bg-green) !important; }
.bg-gray { background-color: #F5F5F7 !important; }

/* Text Utility Classes */
.text-center { text-align: center !important; }
.text-muted { color: var(--text-muted) !important; }

/* Pain Points Section */
.pain-points__grid {
    display: grid;
    gap: 1.25rem; /* 20px */
    grid-template-columns: 1fr;
}

.point-card {
    position: relative;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1.25rem; /* 20px */
    overflow: hidden;
    z-index: 1;
    aspect-ratio: 1 / 1.5; /* 移动端默认 1:1.5 */
}

/* 背景图容器：铺满整个卡片 */
.point-card__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.point-card__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 核心：确保图片铺满并裁剪 */
    display: block;
}

.point-card__tag {
    color: var(--text-main);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0;
}

.point-card h3 {
    color: var(--text-main);
    margin-bottom: auto; /* 推开内容 */
}


/* Benefits Section */
.benefits__grid {
    display: grid;
    gap: 1.25rem; /* 20px */
    grid-template-columns: 1fr;
}

.benefit-card {
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;
    aspect-ratio: 1 / 1.5; /* 移动端比例 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1.25rem;
}

.benefit-card h3 {
    color: #fff;
    margin-top: 0.5rem;
}

.benefit-card .text-muted {
    color: #fff !important;
    opacity: 0.8;
    margin-top: -2rem;
}

.benefit-card--cost { background-image: url('/resources/images/home/benefits/cost-reduction.jpg'); }
.benefit-card--efficiency { background-image: url('/resources/images/home/benefits/efficiency-boost.jpg'); }
.benefit-card--replicable { background-image: url('/resources/images/home/benefits/business-replicable.jpg'); }
.benefit-card--risk { background-image: url('/resources/images/home/benefits/risk-control.jpg'); }

.solutions__grid,
.services-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

.solutions__grid .card h3,
.services-grid .card h3 {
    margin-top: 1rem;
}

/* Solutions Detail Page Cards */
.solutions-detail__grid {
    display: grid;
    gap: 1.25rem;
}

.solution-card--detail {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

.solution-card--detail .solution-card__content {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.solution-card--detail .solution-card__image-wrapper {
    width: 100%;
    background: #fff;
    border-radius: 1.25rem;
    aspect-ratio: 4/3;
    overflow: hidden;
    margin: 1.5rem 0; /* 移动端标题下方间距 */
}

.solution-card--detail .solution-card__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.solution-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.solution-card__actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem; /* 移动端基础间距 */
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-item__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.meta-item__value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-main);
}

@media (min-width: 768px) {
    .solutions-detail__grid {
        gap: 2.5rem;
    }

    .solution-card--detail {
        padding: 3rem;
    }

    .solution-card--detail .solution-card__content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: stretch; /* 关键：拉伸以匹配高度 */
    }

    .solution-card--detail:nth-child(even) .solution-card__content {
        direction: rtl; /* 简单实现交错 */
    }

    .solution-card--detail:nth-child(even) .solution-card__content > * {
        direction: ltr; /* 恢复文字方向 */
    }

    .solution-card--detail .solution-card__image-wrapper {
        margin: 0;
        aspect-ratio: 1 / 1;
        height: 100%;
        width: 100%;
    }

    .solution-card--detail .solution-card__image-wrapper img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    .solution-card--detail .solution-card__body-wrapper {
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* 顶部对齐 */
        height: 100%;
    }

    .solution-card__actions {
        margin-top: auto; /* 将按钮推到底部 */
        padding-top: 2rem;
    }

    .solution-card--detail h2 {
        margin-bottom: 1.5rem;
    }
}

.solution-card__btns {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.9375rem; /* 15px, 与hero__btns保持一致 */
    margin-bottom: 1.875rem; /* 与下方图片保持间距 */
}

.solution-card__image {
    margin-top: 1.875rem;
    overflow: hidden;
    border-radius: 0.625rem;
    background: #fff;
}

.solution-card__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Blog/Insights Section */
.insights__grid {
    display: grid;
    gap: 1.25rem; /* 20px */
    grid-template-columns: 1fr;
}

/* Footer */
.footer {
    padding: 3.75rem 0 4.25rem; /* 60px 0 68px */
    background: #F9FAFB;
}

.footer__grid {
    display: grid;
    gap: 2.5rem; /* 40px */
    grid-template-columns: 1fr;
}

.footer__links--right ul {
    list-style: none;
    padding: 0;
}

@media (min-width: 768px) {
    .footer__links--right {
        text-align: right;
    }
}

/* Utility visibility classes */
.show-on-mobile { display: none !important; }
.hide-on-mobile { display: inline-flex !important; }

@media (max-width: 767px) {
    .show-on-mobile { display: inline-flex !important; }
    .hide-on-mobile { display: none !important; }
    
    .footer__grid {
        display: flex;
        flex-direction: column;
    }
    .footer__brand {
        order: 3;
    }
    .footer__links:nth-child(2) {
        order: 1;
    }
    .footer__links:nth-child(3) {
        order: 2;
    }
}

/* Media Queries for Tablet/Desktop */
@media (min-width: 768px) {
    .section { padding: var(--section-gap) 0; }

    .hero__btns {
        flex-direction: row;
        width: auto;
    }

    .hero__btns .btn {
        width: auto;
    }

    .header__inner {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
    }
    
    .nav { 
        display: block;
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        backdrop-filter: none;
    }

    .hamburger { display: none; }

    .nav__list {
        flex-direction: row;
        gap: 1.875rem;
    }

    .container {
        max-width: none;
        padding: 0 4rem;
    }

    .solutions__grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero { padding: 0.6rem 0 5rem 0; } /* 调整桌面端与导航间距为 0.6rem */

    .hero--small {
        padding-top: 6.25rem; /* 100px 桌面端更强调呼吸感 */
        padding-bottom: 3.75rem;
    }

    .hero__card {
        padding: 4rem 4rem 0; /* 64px padding top, 0 bottom */
        min-height: 70vh;
        aspect-ratio: auto;
        justify-content: space-between; /* 桌面端也保持图片贴底 */
        gap: 4rem; 
    }

    .hero__visual img {
        width: 100%;
        max-width: 37.5rem; /* 600px */
    }

    .cta-container {
        flex-direction: row !important;
        text-align: left;
    }

    .hero { text-align: center; }

    .hero h1 { margin-left: auto; margin-right: auto; }

    .hero__inner {
        flex-direction: column;
        align-items: center;
    }

    .pain-points__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .point-card { aspect-ratio: 1 / 1.5; } /* 平板端 1:1.5 */
    .benefits__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .benefit-card { aspect-ratio: 1 / 1.5; }
    .insights__grid { grid-template-columns: repeat(3, 1fr); }
    .footer__grid { 
        grid-template-columns: 2fr 1fr 1fr; 
    }
}

@media (min-width: 1200px) {
    .pain-points__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .point-card { aspect-ratio: 1 / 1.6; }
    .benefits__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .benefit-card { aspect-ratio: 1 / 1.6; }
}

/* Footer Copyright */
.footer-copyright {
    color: #999;
    font-size: 0.875rem;
}
.footer-copyright--first {
    margin-top: 1rem;
}

/* Blog Post Content Styles */
.content-body p {
    margin-bottom: 1.5em;
    line-height: 1.8;
}
.content-body h2 {
    margin-top: 2.5em;
    margin-bottom: 1em;
}
.content-body h3 {
    margin-top: 2em;
    margin-bottom: 0.8em;
}
.content-body ul, .content-body ol {
    margin-bottom: 1.5em;
}
.content-body li {
    margin-bottom: 0.5em;
}
