/**
 * 社会责任页面 — 1:1 复刻 demo.reemoon.com/zeren
 * 依赖: common/base.css（设计令牌）
 */

/* 隐藏 base.html 的 hr 分隔线 */
#main-content + hr { display: none; }

/* ================================================================
   页面级别名 — 指向 base.css 设计令牌
   ================================================================ */
.zeren-page {
    --zeren-text: var(--rm-color-neutral-800);
    --zeren-text-muted: var(--rm-color-neutral-500);
    --zeren-max: min(var(--rm-container-full), 100%);
    --zeren-gutter: var(--rm-gutter-fluid);
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: clip;
    color: var(--zeren-text);
    background: var(--rm-color-neutral-0);
}

.zeren-container {
    width: 100%;
    max-width: var(--zeren-max);
    margin: 0 auto;
    padding-left: var(--zeren-gutter);
    padding-right: var(--zeren-gutter);
    box-sizing: border-box;
}

/* ---- Typography ---- */
.zeren-eyebrow {
    margin: 0 0 var(--rm-space-3);
    font-size: 13px;
    font-weight: var(--rm-font-semibold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rm-color-brand);
}

.zeren-heading {
    margin: 0 0 var(--rm-space-4);
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    font-weight: var(--rm-font-bold);
    line-height: var(--rm-leading-tight);
    letter-spacing: var(--rm-tracking-tight);
}

.zeren-heading--light { color: var(--rm-color-neutral-0); }

.zeren-headline {
    margin: 0 0 var(--rm-space-5);
    font-size: clamp(1.625rem, 3vw, 2.375rem);
    font-weight: var(--rm-font-bold);
    line-height: 1.3;
    letter-spacing: var(--rm-tracking-tight);
    color: var(--zeren-text);
}

.zeren-lead {
    margin: 0;
    font-size: clamp(1rem, 1.15vw, 1.125rem);
    line-height: 1.8;
    color: var(--zeren-text-muted);
}

.zeren-lead--light { color: rgba(255, 255, 255, 0.82); }

.zeren-section {
    width: 100%;
    padding: clamp(64px, 8vw, 112px) 0;
}

.zeren-section__head {
    max-width: 760px;
    margin: 0 auto clamp(48px, 5vw, 64px);
    text-align: center;
}

.zeren-section__head .zeren-lead {
    margin-inline: auto;
}

/* ---- Buttons ---- */
.zeren-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: var(--rm-space-4) var(--rm-space-8);
    font-size: var(--rm-text-base);
    font-weight: var(--rm-font-semibold);
    line-height: var(--rm-leading-none);
    text-decoration: none;
    border-radius: var(--rm-radius-pill);
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.zeren-btn--light {
    color: var(--rm-color-brand-800);
    background: var(--rm-color-neutral-0);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.zeren-btn--light:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

.zeren-btn__icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: currentColor;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

/* ================================================================
   Hero
   ================================================================ */
.zeren-hero {
    position: relative;
    min-height: clamp(440px, 55vh, 620px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.zeren-hero__media {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, var(--rm-color-brand-800), var(--rm-color-brand-600), var(--rm-color-brand-800));
}

.zeren-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
}

.zeren-hero__overlay {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg, rgba(0, 30, 26, 0.72) 0%, rgba(0, 50, 42, 0.3) 55%, rgba(0, 40, 35, 0.48) 100%), linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0%, transparent 55%);
}

.zeren-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: clamp(120px, 14vw, 180px);
    padding-bottom: clamp(48px, 6vw, 88px);
}

.zeren-hero .techd-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 28px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

.zeren-hero .techd-breadcrumb a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.zeren-hero .techd-breadcrumb a:hover {
    color: var(--rm-color-brand-300);
}

.zeren-hero .techd-breadcrumb span[aria-hidden] {
    color: rgba(255, 255, 255, 0.55);
}

.zeren-hero .techd-breadcrumb span[aria-current] {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
}

.zeren-hero__eyebrow {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: var(--rm-font-semibold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rm-color-brand-300);
}

.zeren-hero__title {
    margin: 0 0 18px;
    max-width: 14ch;
    font-size: clamp(2.5rem, 5.5vw, 4.25rem);
    font-weight: var(--rm-font-bold);
    line-height: var(--rm-leading-none);
    letter-spacing: -0.03em;
    color: var(--rm-color-neutral-0);
}

.zeren-hero__tagline {
    margin: 0;
    max-width: 520px;
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    line-height: var(--rm-leading-relaxed);
    color: rgba(255, 255, 255, 0.78);
}

/* ================================================================
   Intro (DNA)
   ================================================================ */
.zeren-intro {
    background: linear-gradient(180deg, var(--rm-color-neutral-0) 0%, var(--rm-color-brand-50) 100%);
}

.zeren-intro__grid {
    display: grid;
    gap: clamp(40px, 5vw, 72px);
    align-items: center;
}

@media (min-width: 900px) {
    .zeren-intro__grid {
        grid-template-columns: minmax(280px, 380px) 1fr;
    }
}

.zeren-intro__visual {
    display: flex;
    flex-direction: column;
    gap: var(--rm-space-8);
}

.zeren-intro__logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(32px, 4vw, 48px);
    background: var(--rm-color-neutral-0);
    border-radius: var(--rm-radius-card);
    box-shadow:
        0 4px 24px rgba(0, 77, 65, 0.06),
        0 0 0 1px rgba(0, 133, 111, 0.08);
}

.zeren-intro__logo {
    width: min(220px, 70%);
    height: auto;
    object-fit: contain;
}

.zeren-intro__copy .zeren-lead {
    max-width: 640px;
}

/* ================================================================
   Pillars（理念体系 3 列卡片）
   ================================================================ */
.zeren-pillars {
    background: var(--rm-color-neutral-0);
}

.zeren-pillars__grid {
    display: grid;
    gap: clamp(20px, 2.5vw, 28px);
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .zeren-pillars__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.zeren-pillar {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--rm-space-4);
    padding: clamp(28px, 3vw, 36px);
    background: var(--rm-color-brand-50);
    border-radius: var(--rm-radius-card);
    border: 1px solid rgba(0, 133, 111, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.zeren-pillar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 28px;
    right: 28px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, var(--rm-color-brand), var(--rm-color-brand-400));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.zeren-pillar:hover {
    transform: translateY(-4px);
    background: var(--rm-color-neutral-0);
    box-shadow: var(--rm-shadow-lg);
}

.zeren-pillar:hover::before { opacity: 1; }

.zeren-pillar__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    color: var(--rm-color-brand);
    background: rgba(0, 133, 111, 0.1);
}

.zeren-pillar__icon .citrus-icon {
    width: 26px;
    height: 26px;
}

.zeren-pillar__title {
    margin: 0;
    font-size: var(--rm-text-xl);
    font-weight: var(--rm-font-bold);
    color: var(--zeren-text);
}

.zeren-pillar__body {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--zeren-text-muted);
}

/* ================================================================
   Motto（社会责任理念）
   ================================================================ */
.zeren-motto {
    position: relative;
    padding: clamp(72px, 9vw, 120px) 0;
    overflow: hidden;
}

.zeren-motto__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 10% 50%, rgba(0, 168, 138, 0.25), transparent 60%),
        radial-gradient(ellipse 50% 70% at 90% 30%, rgba(110, 231, 199, 0.12), transparent 55%),
        linear-gradient(135deg, var(--rm-color-brand-800) 0%, var(--rm-color-brand-800) 40%, var(--rm-color-brand-600) 100%);
}

.zeren-motto__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
    background-size: 64px 64px;
}

.zeren-motto__inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.zeren-motto__title {
    margin: 0 0 clamp(36px, 4vw, 56px);
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: var(--rm-font-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rm-color-brand-300);
}

.zeren-motto__lines {
    display: grid;
    gap: clamp(16px, 2vw, 24px);
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .zeren-motto__lines {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(20px, 2.5vw, 32px) clamp(40px, 5vw, 80px);
        max-width: 960px;
        margin-inline: auto;
    }
}

.zeren-motto__line {
    position: relative;
    padding-left: var(--rm-space-6);
    font-size: clamp(1.125rem, 2vw, 1.625rem);
    font-weight: var(--rm-font-medium);
    line-height: 1.5;
    text-align: left;
    color: rgba(255, 255, 255, 0.92);
}

.zeren-motto__line::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rm-color-brand-300);
    box-shadow: 0 0 12px rgba(110, 231, 199, 0.6);
}

/* ================================================================
   Projects Gallery（公益实践）
   ================================================================ */
.zeren-projects {
    background: var(--rm-color-neutral-0);
}

.zeren-projects__grid {
    display: grid;
    gap: clamp(16px, 2vw, 24px);
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .zeren-projects__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .zeren-projects__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .zeren-project--featured {
        grid-column: span 2;
        grid-row: span 2;
    }

    .zeren-project--featured .zeren-project__media {
        aspect-ratio: 16 / 10;
    }
}

.zeren-project__figure {
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
    background: var(--rm-color-brand-50);
    box-shadow: 0 2px 20px rgba(0, 77, 65, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.zeren-project__figure:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0, 77, 65, 0.12);
}

.zeren-project__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(145deg, #e8f4f1, #d4ebe5);
}

.zeren-project__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.zeren-project__figure:hover .zeren-project__img {
    transform: scale(1.04);
}

.zeren-project__caption {
    display: flex;
    flex-direction: column;
    gap: var(--rm-space-2);
    padding: clamp(16px, 2vw, 22px);
    flex: 1;
}

.zeren-project__tag {
    align-self: flex-start;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: var(--rm-font-semibold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--rm-color-brand);
    background: rgba(0, 133, 111, 0.1);
    border-radius: var(--rm-radius-pill);
}

.zeren-project__title {
    font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
    font-weight: var(--rm-font-semibold);
    line-height: 1.5;
    color: var(--zeren-text);
}

/* ================================================================
   CTA
   ================================================================ */
.zeren-cta {
    padding: clamp(36px, 4.5vw, 52px) 0;
    background: linear-gradient(135deg, var(--rm-color-brand-800) 0%, var(--rm-color-brand) 100%);
}

.zeren-cta__inner {
    display: flex;
    flex-direction: column;
    gap: var(--rm-space-5);
    align-items: flex-start;
}

@media (min-width: 768px) {
    .zeren-cta__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.zeren-cta__copy {
    max-width: 640px;
}

.zeren-cta .zeren-heading--light {
    margin: 0 0 var(--rm-space-2);
    font-size: clamp(1.25rem, 2.2vw, 1.625rem);
    line-height: 1.3;
}

.zeren-cta .zeren-lead--light {
    font-size: clamp(0.9375rem, 1vw, 1rem);
    line-height: var(--rm-leading-relaxed);
}

.zeren-cta .zeren-btn {
    padding: var(--rm-space-3) var(--rm-space-6);
    font-size: var(--rm-text-sm);
}

/* ================================================================
   Reduced motion
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
    .zeren-pillar:hover,
    .zeren-project__figure:hover,
    .zeren-project__figure:hover .zeren-project__img,
    .zeren-btn--light:hover {
        transform: none;
    }
}
