/* ==========================================================================
   Kuaizai Intelligence - Corporate Site Styles  v2.0
   ========================================================================== */

:root {
    --color-bg: #ffffff;
    --color-bg-soft: #f6f8fb;
    --color-bg-muted: #eef1f6;
    --color-paper: #faf6ed;          /* 米色宣纸基底，呼应 logo */
    --color-paper-deep: #f3ebd8;
    --color-ink: #0a1830;             /* 深墨蓝（深色 section 用） */
    --color-ink-soft: #16243f;
    --color-text: #0f1f3d;
    --color-text-muted: #4a5876;
    --color-text-soft: #6b7898;
    --color-accent: #0a2540;
    --color-accent-hover: #1a3b66;
    --color-border: #e3e8f0;
    --color-border-strong: #d3dbe6;
    --color-link: #1a4d8f;
    --color-seal: #b9302a;            /* 印章红，作强调色 */
    --color-seal-deep: #931f1a;
    --color-seal-soft: rgba(185, 48, 42, 0.08);
    --color-seal-soft-2: rgba(185, 48, 42, 0.16);

    --font-cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    --font-en: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-stack: var(--font-en), var(--font-cjk);
    --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Roboto Mono", monospace;

    --radius: 6px;
    --radius-lg: 12px;
    --radius-xl: 18px;
    --shadow-sm: 0 1px 2px rgba(15, 31, 61, 0.04);
    --shadow-md: 0 4px 16px rgba(15, 31, 61, 0.06);
    --shadow-lg: 0 12px 40px rgba(15, 31, 61, 0.08);
    --shadow-xl: 0 24px 60px -16px rgba(15, 31, 61, 0.18);

    --max-w: 1120px;
    --pad-x: 24px;
    --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-stack);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

html { scroll-behavior: smooth; }

a {
    color: var(--color-link);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

/* Selection color */
::selection { background: var(--color-seal-soft-2); color: var(--color-accent); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 1px 0 rgba(15, 31, 61, 0.04), 0 4px 16px -4px rgba(15, 31, 61, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text);
    text-decoration: none;
}

.brand:hover { text-decoration: none; color: var(--color-text); }

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(15, 31, 61, 0.08);
    transition: transform 0.4s var(--ease-out);
}

.brand:hover .brand-mark { transform: rotate(-4deg) scale(1.04); }

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-cn {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.5px;
}

.brand-en {
    font-size: 11.5px;
    color: var(--color-text-soft);
    letter-spacing: 0.4px;
    margin-top: 2px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav a {
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--color-seal);
    border-radius: 2px;
    transition: width 0.25s var(--ease-out);
}

.site-nav a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.site-nav a:hover::after { width: 100%; }

.lang-toggle {
    border: 1px solid var(--color-border-strong);
    background: #fff;
    color: var(--color-text-muted);
    padding: 6px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.lang-toggle:hover {
    border-color: var(--color-seal);
    color: var(--color-seal);
    background: var(--color-seal-soft);
}

/* ==========================================================================
   Scroll rail (right side, desktop only) — corporate version of liberhome's pip rail
   ========================================================================== */
.scroll-rail {
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--color-text-soft);
    letter-spacing: 0.08em;
    pointer-events: auto;
}

.scroll-rail .pip {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.45;
    transition: opacity 0.3s ease, color 0.3s ease;
    text-decoration: none;
    color: inherit;
    flex-direction: row-reverse;
}

.scroll-rail .pip:hover { opacity: 1; color: var(--color-accent); text-decoration: none; }

.scroll-rail .pip.is-active {
    opacity: 1;
    color: var(--color-seal);
}

.scroll-rail .pip .dot {
    width: 8px;
    height: 8px;
    border: 1.5px solid var(--color-border-strong);
    border-radius: 50%;
    background: #fff;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.scroll-rail .pip:hover .dot { border-color: var(--color-accent); }

.scroll-rail .pip.is-active .dot {
    background: var(--color-seal);
    border-color: var(--color-seal);
    box-shadow: 0 0 0 4px var(--color-seal-soft);
}

.scroll-rail .label {
    text-transform: uppercase;
}

@media (max-width: 1200px) {
    .scroll-rail { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    padding: 96px 0 104px;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
    isolation: isolate;
}

/* 宣纸纹理背景：米色径向渐变 + SVG noise + 点阵 grid */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 80% 60% at 85% 30%, rgba(243, 235, 216, 0.55), transparent 70%),
        radial-gradient(ellipse 60% 50% at 10% 90%, rgba(250, 246, 237, 0.6), transparent 70%),
        linear-gradient(180deg, #fdfbf6 0%, #ffffff 60%, #ffffff 100%);
}

/* SVG nose 纹理 */
.hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.6  0 0 0 0 0.5  0 0 0 0 0.35  0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    opacity: 0.55;
    mix-blend-mode: multiply;
    pointer-events: none;
}

/* 底部柔化淡入下一段 */
.hero-bg::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(180deg, transparent, #ffffff);
    pointer-events: none;
}

/* 等高线点阵装饰 */
.hero-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(15, 31, 61, 0.08) 1px, transparent 0);
    background-size: 22px 22px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
    opacity: 0.55;
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 56px;
    align-items: center;
    position: relative;
}

.hero-copy {
    min-width: 0;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--color-seal);
    background: var(--color-seal-soft);
    border: 1px solid rgba(185, 48, 42, 0.18);
    padding: 6px 14px;
    border-radius: 999px;
    letter-spacing: 0.4px;
    margin: 0 0 24px;
    font-weight: 500;
    backdrop-filter: blur(8px);
}

.hero-eyebrow::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--color-seal);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(185, 48, 42, 0.18);
    animation: sealPulse 2.4s ease-in-out infinite;
}

@keyframes sealPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.55; transform: scale(1.35); }
}

.hero-title {
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.06;
    font-weight: 700;
    letter-spacing: -1.2px;
    margin: 0 0 22px;
    color: var(--color-accent);
    max-width: 640px;
}

.hero-title .accent {
    background: linear-gradient(135deg, var(--color-seal) 0%, var(--color-seal-deep) 50%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    /* fallback */
    display: inline;
}

.hero-title .accent-underline {
    position: relative;
    display: inline-block;
}

.hero-title .accent-underline::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 6px;
    background: linear-gradient(90deg, var(--color-seal-soft-2), transparent);
    border-radius: 3px;
    z-index: -1;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.65;
    color: var(--color-text-muted);
    margin: 0 0 28px;
    max-width: 560px;
}

/* 能力 pill timeline — 转译 liberhome meta-line */
.hero-pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 32px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--color-text-soft);
}

.hero-pill {
    padding: 6px 12px;
    border: 1px solid var(--color-border-strong);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.6);
    color: var(--color-text-muted);
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.hero-pill:hover {
    border-color: var(--color-seal);
    color: var(--color-seal);
    background: #fff;
}

.hero-pill-arrow {
    color: var(--color-seal);
    opacity: 0.55;
    font-family: var(--font-mono);
}

.hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--color-text-soft);
    font-size: 14px;
}

.hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-meta-icon {
    width: 14px;
    height: 14px;
    color: var(--color-text-soft);
    flex-shrink: 0;
}

.hero-meta-sep {
    margin: 0 6px;
    color: var(--color-border);
}

/* Hero art (logo display) */
.hero-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
}

.hero-logo-frame {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow:
        0 30px 60px -20px rgba(15, 31, 61, 0.25),
        0 12px 24px -8px rgba(185, 48, 42, 0.12),
        0 0 0 1px rgba(243, 235, 216, 0.6);
    transform: rotate(-1.2deg);
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
    z-index: 2;
}

.hero-logo-frame:hover {
    transform: rotate(0deg) translateY(-6px) scale(1.01);
    box-shadow:
        0 40px 80px -20px rgba(15, 31, 61, 0.3),
        0 16px 32px -8px rgba(185, 48, 42, 0.18),
        0 0 0 1px rgba(243, 235, 216, 0.8);
}

.hero-logo-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(185, 48, 42, 0.14), transparent 65%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
    animation: glowDrift 8s ease-in-out infinite;
}

@keyframes glowDrift {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
    50%      { transform: translate(-4%, 2%) scale(1.06); opacity: 0.85; }
}

/* 装饰小印章 */
.hero-art-stamp {
    position: absolute;
    bottom: 14px;
    right: -8px;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    background: var(--color-seal);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    box-shadow: 0 8px 24px rgba(185, 48, 42, 0.32);
    transform: rotate(8deg);
    z-index: 3;
    letter-spacing: 1px;
    font-family: var(--font-mono);
    padding: 6px;
}

/* ==========================================================================
   Sections — shared
   ========================================================================== */
.section {
    padding: 104px 0;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.section:last-of-type {
    border-bottom: none;
}

.section-head {
    margin-bottom: 56px;
    max-width: 760px;
}

.section-head-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-seal);
    text-transform: uppercase;
    margin-bottom: 14px;
    font-family: var(--font-mono);
}

.section-kicker::before {
    content: "//";
    color: var(--color-seal);
    opacity: 0.5;
    letter-spacing: 0;
}

.section-kicker .num {
    color: var(--color-text-soft);
    font-weight: 500;
}

.section-head-center .section-kicker { justify-content: center; }

.section-title {
    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 700;
    letter-spacing: -0.6px;
    line-height: 1.15;
    margin: 0 0 16px;
    color: var(--color-accent);
}

.section-lead {
    font-size: 17px;
    color: var(--color-text-muted);
    max-width: 720px;
    margin: 0;
    line-height: 1.65;
}

/* ==========================================================================
   About
   ========================================================================== */
.section-about {
    background: #ffffff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 56px;
    margin-top: 16px;
}

.about-text {
    position: relative;
    padding-left: 26px;
}

.about-text::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    background: linear-gradient(180deg, var(--color-seal), var(--color-paper-deep));
    border-radius: 2px;
}

.about-text p {
    font-size: 16px;
    color: var(--color-text-muted);
    margin: 0 0 18px;
    line-height: 1.78;
}

.about-text p:last-child { margin-bottom: 0; }

.about-text strong {
    color: var(--color-accent);
    font-weight: 600;
}

.about-facts {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, var(--color-paper) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px 32px 28px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.about-facts::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-seal), var(--color-accent));
}

.about-facts::after {
    content: "";
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-seal-soft), transparent 70%);
    pointer-events: none;
}

.about-facts-tag {
    display: inline-block;
    font-size: 11px;
    color: var(--color-seal);
    background: var(--color-seal-soft);
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    font-weight: 600;
}

.about-facts dl {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    position: relative;
}

.about-facts dt {
    font-size: 11.5px;
    color: var(--color-text-soft);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0 0 4px;
    font-weight: 600;
    font-family: var(--font-mono);
}

.about-facts dd {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
}

/* Timeline （新增） — 转译 liberhome 时间轴 */
.about-timeline {
    margin-top: 56px;
    position: relative;
}

.timeline-head {
    font-size: 14px;
    color: var(--color-text-soft);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 24px;
    font-family: var(--font-mono);
    font-weight: 600;
}

.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-seal) 0%, var(--color-accent) 100%);
    opacity: 0.25;
    border-radius: 2px;
}

.timeline li {
    position: relative;
    padding: 0 12px;
    text-align: center;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--color-seal);
    margin: 14px auto 16px;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--color-border);
    transition: all 0.3s var(--ease-out);
}

.timeline li.is-current .timeline-dot {
    background: var(--color-seal);
    box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--color-seal-soft-2),
                0 0 14px rgba(185, 48, 42, 0.4);
}

.timeline-when {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--color-seal);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.timeline-role {
    font-size: 14px;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.35;
}

.timeline-desc {
    font-size: 12.5px;
    color: var(--color-text-soft);
    line-height: 1.5;
}

/* Stats band — 升级 */
.stats-band {
    margin-top: 64px;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 36px 16px;
    background:
        linear-gradient(180deg, #ffffff 0%, var(--color-paper) 100%),
        radial-gradient(circle at 50% 0%, var(--color-seal-soft), transparent 60%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.stats-band::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-seal), transparent);
    opacity: 0.4;
}

.stat {
    text-align: center;
    min-width: 0;
}

.stat-num {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: -0.8px;
    line-height: 1.15;
    font-family: var(--font-en), var(--font-cjk);
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-seal) 110%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--color-text-soft);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: var(--font-mono);
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: linear-gradient(180deg, transparent, var(--color-border), transparent);
}

/* ==========================================================================
   Services
   ========================================================================== */
.section-services {
    background:
        linear-gradient(180deg, var(--color-bg-soft) 0%, #ffffff 100%);
    position: relative;
}

.section-services::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(15, 31, 61, 0.05) 1px, transparent 0);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 80% 50% at 50% 30%, #000 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 30%, #000 20%, transparent 70%);
    opacity: 0.6;
    pointer-events: none;
}

.section-services .container { position: relative; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px 32px 32px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out), border-color 0.3s ease;
    overflow: hidden;
    isolation: isolate;
}

/* Top accent bar */
.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-seal), var(--color-accent));
    transition: width 0.4s var(--ease-out);
}

/* Hover gradient ring (translation of liberhome's card::after) */
.service-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, var(--color-seal) 0%, transparent 40%, transparent 60%, var(--color-accent) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.service-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
    border-color: rgba(185, 48, 42, 0.16);
}

.service-card:hover::before { width: 100%; }
.service-card:hover::after  { opacity: 1; }

.service-card:hover .service-icon {
    color: var(--color-seal);
    background: var(--color-seal-soft);
    border-color: rgba(185, 48, 42, 0.2);
    transform: scale(1.04) rotate(-2deg);
}

.service-card:hover .service-num {
    color: var(--color-seal);
    opacity: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    transition: all 0.3s var(--ease-out);
}

.service-icon svg {
    width: 30px;
    height: 30px;
}

.service-num {
    position: absolute;
    top: 28px;
    right: 30px;
    font-size: 38px;
    font-weight: 700;
    color: var(--color-text-soft);
    opacity: 0.18;
    letter-spacing: -1px;
    font-family: var(--font-mono);
    line-height: 1;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.service-card h3 {
    font-size: 21px;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--color-accent);
    letter-spacing: -0.2px;
}

.service-en {
    font-size: 12.5px;
    color: var(--color-text-soft);
    margin: 0 0 16px;
    letter-spacing: 0.4px;
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.service-card p:not(.service-en) {
    font-size: 15px;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.72;
}

/* ==========================================================================
   Value section — NEW (深色韵律 break)
   ========================================================================== */
.section-value {
    background:
        radial-gradient(ellipse 50% 40% at 80% 30%, rgba(185, 48, 42, 0.10), transparent 60%),
        radial-gradient(ellipse 60% 50% at 15% 80%, rgba(26, 77, 143, 0.18), transparent 60%),
        linear-gradient(180deg, var(--color-ink) 0%, var(--color-ink-soft) 100%);
    color: #f5f7fb;
    border-bottom: none;
    padding: 96px 0;
    overflow: hidden;
    position: relative;
}

/* SVG noise overlay on dark */
.section-value::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    opacity: 0.5;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.section-value::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.10) 1px, transparent 0);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 20%, transparent 75%);
    opacity: 0.5;
    pointer-events: none;
}

.section-value .container { position: relative; z-index: 2; }

.section-value .section-kicker {
    color: #f4a09a;
}
.section-value .section-kicker::before { color: #f4a09a; }

.section-value .section-title {
    color: #ffffff;
    max-width: 820px;
}

.value-quote {
    font-size: clamp(22px, 2.6vw, 30px);
    line-height: 1.5;
    color: #ffffff;
    font-weight: 500;
    letter-spacing: -0.2px;
    margin: 0 0 36px;
    max-width: 880px;
    position: relative;
    padding-left: 22px;
}

.value-quote::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: linear-gradient(180deg, var(--color-seal), transparent);
    border-radius: 2px;
}

.value-quote em {
    font-style: normal;
    color: #ffd5d2;
    font-weight: 600;
}

.value-attribution {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #aab5c8;
    font-size: 14px;
    margin-bottom: 56px;
}

.value-attribution-line {
    width: 28px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.value-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.value-pillar {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: all 0.3s var(--ease-out);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.value-pillar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(244, 160, 154, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.value-pillar:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(244, 160, 154, 0.35);
    transform: translateY(-4px);
}

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

.value-pillar-num {
    font-family: var(--font-mono);
    font-size: 11px;
    color: #f4a09a;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    font-weight: 600;
}

.value-pillar h3 {
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 10px;
    letter-spacing: -0.1px;
}

.value-pillar p {
    font-size: 13.5px;
    color: #c2cbdc;
    line-height: 1.65;
    margin: 0;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.section-contact {
    background: #ffffff;
}

.contact-email-card {
    max-width: 580px;
    margin: 0 auto 48px;
    text-align: center;
    padding: 44px 32px;
    background: linear-gradient(180deg, #ffffff 0%, var(--color-paper) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.contact-email-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-seal), var(--color-accent));
}

.contact-email-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(360px 240px at 50% 0%, var(--color-seal-soft), transparent 70%);
    pointer-events: none;
}

.contact-email-card > * { position: relative; }

.contact-email-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-seal-soft);
    color: var(--color-seal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 1px solid rgba(185, 48, 42, 0.15);
}

.contact-email-icon svg {
    width: 28px;
    height: 28px;
}

.contact-email-label {
    font-size: 12px;
    color: var(--color-text-soft);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin: 0 0 10px;
    font-weight: 600;
    font-family: var(--font-mono);
}

.contact-email-link {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 600;
    color: var(--color-accent);
    word-break: break-all;
    letter-spacing: 0.2px;
    transition: color 0.15s ease, transform 0.2s ease;
}

.contact-email-link:hover {
    color: var(--color-seal);
    text-decoration: none;
    transform: translateY(-1px);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.contact-block {
    text-align: center;
    padding: 32px 22px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: #ffffff;
    transition: all 0.25s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.contact-block::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, var(--color-paper) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.contact-block > * { position: relative; }

.contact-block:hover {
    border-color: rgba(185, 48, 42, 0.2);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.contact-block:hover::before { opacity: 1; }

.contact-block:hover .contact-icon {
    color: var(--color-seal);
    background: var(--color-seal-soft);
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-bg-soft);
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    transition: all 0.25s ease;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
}

.contact-block h3 {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-soft);
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin: 0 0 10px;
    font-family: var(--font-mono);
}

.contact-block p {
    font-size: 14.5px;
    color: var(--color-text);
    margin: 0;
    line-height: 1.65;
}

/* Map of China — small SVG anchor below contact */
.contact-map {
    margin: 56px auto 0;
    max-width: 420px;
    text-align: center;
    color: var(--color-text-soft);
}

.contact-map svg {
    width: 100%;
    max-width: 360px;
    height: auto;
    display: block;
    margin: 0 auto 12px;
}

.contact-map-caption {
    font-size: 12px;
    letter-spacing: 0.5px;
    color: var(--color-text-soft);
    font-family: var(--font-mono);
    margin: 0;
}

.contact-map-caption strong {
    color: var(--color-seal);
    font-weight: 600;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background:
        radial-gradient(ellipse 60% 100% at 50% 0%, rgba(185, 48, 42, 0.10), transparent 60%),
        var(--color-accent);
    color: #cdd5e3;
    padding: 64px 0 24px;
    font-size: 13px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-seal) 30%, var(--color-seal) 70%, transparent);
}

.site-footer::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 100%, #000, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 100%, #000, transparent 70%);
    opacity: 0.6;
    pointer-events: none;
}

.site-footer .container { position: relative; }

.site-footer a {
    color: #cdd5e3;
    transition: color 0.15s ease;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1.6fr 0.8fr;
    gap: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.footer-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    display: inline-flex;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.footer-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.footer-col p {
    margin: 0 0 8px;
    line-height: 1.6;
}

.footer-brand-cn {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    margin: 0;
}

.footer-brand-en {
    color: #8a96b0;
    font-size: 11.5px;
    margin: 4px 0 0 !important;
    letter-spacing: 0.3px;
}

.footer-slogan {
    font-size: 12.5px;
    color: #8a96b0;
    margin: 0;
    letter-spacing: 0.3px;
    padding-left: 58px;
    line-height: 1.6;
}

.footer-col-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col-links a {
    position: relative;
    padding-left: 14px;
}

.footer-col-links a::before {
    content: "→";
    position: absolute;
    left: 0;
    opacity: 0;
    transform: translateX(-4px);
    color: var(--color-seal);
    transition: all 0.2s ease;
}

.footer-col-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    color: #8a96b0;
    font-size: 12px;
}

.footer-bottom p {
    margin: 0;
}

/* ==========================================================================
   Privacy / Terms pages
   ========================================================================== */
.legal-page {
    padding: 64px 0 96px;
}

.legal-page h1 {
    font-size: 36px;
    color: var(--color-accent);
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.legal-page .legal-meta {
    color: var(--color-text-soft);
    font-size: 14px;
    margin: 0 0 40px;
    font-family: var(--font-mono);
}

.legal-page h2 {
    font-size: 22px;
    color: var(--color-accent);
    margin: 40px 0 12px;
    font-weight: 600;
}

.legal-page p, .legal-page li {
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.75;
}

.legal-page ul {
    padding-left: 22px;
}

.legal-page .legal-content {
    max-width: 760px;
}

.legal-page .back-link {
    display: inline-block;
    margin-top: 48px;
    font-size: 14px;
    color: var(--color-link);
}

/* ==========================================================================
   Reveal-on-scroll (translation of liberhome's .reveal pattern)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
    html.js-ready .reveal {
        opacity: 0;
        transform: translateY(22px);
        transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
        will-change: opacity, transform;
    }
    html.js-ready .reveal.is-in {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger children */
    html.js-ready .reveal.stagger > * {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
    }
    html.js-ready .reveal.stagger.is-in > *      { opacity: 1; transform: translateY(0); transition-delay: 0s; }
    html.js-ready .reveal.stagger.is-in > *:nth-child(2) { transition-delay: 0.08s; }
    html.js-ready .reveal.stagger.is-in > *:nth-child(3) { transition-delay: 0.16s; }
    html.js-ready .reveal.stagger.is-in > *:nth-child(4) { transition-delay: 0.24s; }
    html.js-ready .reveal.stagger.is-in > *:nth-child(5) { transition-delay: 0.32s; }
}

/* prefers-reduced-motion fallback: just show, no animation */
@media (prefers-reduced-motion: reduce) {
    .hero-glow,
    .hero-eyebrow::before {
        animation: none !important;
    }
    .reveal,
    .reveal.stagger > * {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 0;
    }
    .timeline::before { display: none; }
    .value-pillars {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
    }
    .hero-art {
        min-height: auto;
        order: -1;
    }
    .hero-logo-frame {
        max-width: 280px;
    }
    .hero-art-stamp {
        width: 56px;
        height: 56px;
        font-size: 10px;
    }
    .stats-band {
        grid-template-columns: 1fr 1fr;
        gap: 20px 12px;
    }
    .stats-band .stat-divider {
        display: none;
    }
    .value-pillars {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .hero {
        padding: 64px 0 72px;
    }
    .hero-title {
        letter-spacing: -0.6px;
    }
    .hero-subtitle {
        font-size: 16.5px;
    }
    .hero-pills {
        font-size: 11.5px;
    }
    .section {
        padding: 72px 0;
    }
    .section-value {
        padding: 72px 0;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-num {
        font-size: 32px;
        top: 24px;
        right: 24px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .contact-email-link {
        font-size: 18px;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-slogan {
        padding-left: 0;
    }
    .footer-bottom {
        flex-direction: column;
    }
    .site-nav {
        gap: 16px;
    }
    .site-nav a {
        display: none;
    }
    .header-inner {
        height: 60px;
    }
    .legal-page h1 {
        font-size: 28px;
    }
    .timeline {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 48px 0 56px;
    }
    .hero-eyebrow {
        font-size: 11px;
        padding: 5px 10px;
    }
    .brand-en {
        display: none;
    }
    .hero-logo-frame {
        max-width: 220px;
    }
    .stats-band {
        grid-template-columns: 1fr 1fr;
        padding: 24px 12px;
    }
    .stat-num {
        font-size: 24px;
    }
    .contact-email-card {
        padding: 32px 20px;
    }
    .contact-email-link {
        font-size: 16px;
    }
    .service-card {
        padding: 28px 22px 24px;
    }
    .service-num {
        font-size: 28px;
        top: 20px;
        right: 20px;
    }
    .value-quote {
        padding-left: 16px;
    }
}

/* ==========================================================================
   Language switching
   ========================================================================== */
html[lang="en"] body {
    font-family: var(--font-en), var(--font-cjk);
}

html[lang="en"] .brand-cn { display: none; }
html[lang="en"] .brand-en { font-size: 16px; font-weight: 600; color: var(--color-text); }

html[lang="zh-CN"] .brand-en { font-size: 11.5px; }
