/* ruizheng — 瑞证工坊 · Indigo studio
   Indigo #312E81 + Cyan #0891B2 on cool mist #F4F7FB
   Distinct: photo hero, stats strip, photo bento, quotes, filmstrip, FAQ cards
   No process, no homepage about */

:root {
    --rz-ink: #1E1B4B;
    --rz-indigo: #312E81;
    --rz-cyan: #0891B2;
    --rz-cyan-h: #0E7490;
    --rz-mist: #F4F7FB;
    --rz-card: #FFFFFF;
    --rz-line: #D7DEEA;
    --rz-muted: #475569;
    --rz-text: #1E293B;
    --rz-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    --rz-t: .22s ease;
    --rz-r: 16px;
    --rz-z-nav: 40;
    --rz-z-lb: 70;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body { font-family: var(--rz-sans); font-size: 16px; line-height: 1.7; color: var(--rz-text); background: var(--rz-mist); overflow-x: hidden; }
a { color: inherit; text-decoration: none; cursor: pointer; transition: color var(--rz-t), background var(--rz-t), border-color var(--rz-t), transform var(--rz-t); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--rz-ink); }
:focus-visible { outline: 2px solid var(--rz-cyan); outline-offset: 3px; }

.rz-container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.rz-nav {
    position: sticky; top: 0; z-index: var(--rz-z-nav);
    background: rgba(244, 247, 251, .92); backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
}
.rz-nav.scrolled { border-bottom-color: var(--rz-line); box-shadow: 0 8px 24px rgba(30, 27, 75, .06); }
.rz-nav-inner { position: relative; max-width: 1160px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rz-logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; font-size: 1.05rem; color: var(--rz-ink); }
.rz-mark {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--rz-indigo), var(--rz-cyan));
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: .95rem;
}
.rz-nav-links { display: flex; gap: 4px; }
.rz-nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; color: var(--rz-muted); font-size: .92rem; border-radius: 10px; }
.rz-nav-links a:hover { color: var(--rz-indigo); background: #E8EEF8; }
.rz-nav-cta {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 8px 18px; border-radius: 999px;
    background: var(--rz-indigo); color: #fff; font-weight: 600; font-size: .88rem;
}
.rz-nav-cta:hover { background: #1E1B4B; }
.rz-mobile-btn { display: none; width: 44px; height: 44px; border: 0; background: none; color: var(--rz-ink); border-radius: 10px; }

.rz-hero { position: relative; min-height: 72vh; display: grid; }
.rz-hero > img { width: 100%; height: 72vh; min-height: 420px; object-fit: cover; }
.rz-hero-mask {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(30, 27, 75, .82) 0%, rgba(30, 27, 75, .35) 55%, rgba(8, 145, 178, .18) 100%);
    display: flex; align-items: center;
}
.rz-hero-copy { color: #fff; max-width: 560px; padding: 48px 0; }
.rz-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 10px 0 16px; }
.rz-kicker { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #67E8F9; font-weight: 700; }
.rz-lede { color: #E2E8F0; margin-bottom: 28px; }
.rz-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rz-btn-cyan, .rz-btn-ghost, .rz-btn-outline {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 12px 24px; border-radius: 999px; font-weight: 700;
}
.rz-btn-cyan { background: var(--rz-cyan); color: #fff; }
.rz-btn-cyan:hover { background: var(--rz-cyan-h); }
.rz-btn-ghost { border: 1px solid rgba(255,255,255,.55); color: #fff; }
.rz-btn-ghost:hover { background: #fff; color: var(--rz-ink); }
.rz-btn-outline { border: 1px solid var(--rz-indigo); color: var(--rz-indigo); }
.rz-btn-outline:hover { background: var(--rz-indigo); color: #fff; }

.rz-stats { background: var(--rz-card); border-bottom: 1px solid var(--rz-line); }
.rz-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 28px 24px; }
.rz-stats-row div { text-align: center; }
.rz-stats-row strong { display: block; font-size: 1.6rem; color: var(--rz-indigo); }
.rz-stats-row span { font-size: .82rem; color: var(--rz-muted); }

.rz-section { padding: 80px 0; }
.rz-section-mist { background: #EAF0F8; }
.rz-section-ink { background: var(--rz-indigo); }
.rz-head { margin-bottom: 32px; }
.rz-head h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
.rz-head-light h2 { color: #fff; }
.rz-head-light .rz-kicker { color: #67E8F9; }

.rz-bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; gap: 14px; }
.rz-tile {
    position: relative; overflow: hidden; border-radius: var(--rz-r);
    display: block; color: #fff; min-height: 180px;
}
.rz-tile img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.rz-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,27,75,.15), rgba(30,27,75,.78)); }
.rz-tile div { position: relative; z-index: 1; height: 100%; padding: 18px 18px 16px; display: flex; flex-direction: column; justify-content: flex-end; }
.rz-tile span { font-size: .78rem; color: #67E8F9; font-weight: 700; letter-spacing: .08em; }
.rz-tile h3 { color: #fff; font-size: 1.12rem; margin: 4px 0 4px; }
.rz-tile p { font-size: .82rem; color: #CBD5E1; }
.rz-tile:hover img { transform: scale(1.05); }
.rz-tile img { transition: transform .4s; }
.rz-tile-lg { grid-column: span 2; grid-row: span 2; min-height: 374px; }
.rz-tile-wide { grid-column: span 2; }

.rz-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rz-quotes blockquote {
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--rz-r); padding: 24px 22px; color: #E2E8F0;
}
.rz-quotes p { margin-bottom: 16px; }
.rz-quotes footer { font-size: .82rem; color: #67E8F9; }

.rz-film {
    display: flex; gap: 12px; overflow-x: auto; padding: 0 24px 8px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.rz-film-item {
    flex: 0 0 240px; height: 160px; border: 0; padding: 0; border-radius: 12px;
    overflow: hidden; background: none; scroll-snap-align: start;
}
.rz-film-item img { width: 100%; height: 100%; object-fit: cover; }
.rz-film-item:hover img { transform: scale(1.04); }
.rz-film-item img { transition: transform .35s; }

.rz-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rz-faq-grid article {
    background: var(--rz-card); border: 1px solid var(--rz-line);
    border-radius: var(--rz-r); padding: 22px 22px 20px;
}
.rz-faq-grid h3 { font-size: 1.02rem; margin-bottom: 8px; }
.rz-faq-grid p { color: var(--rz-muted); font-size: .9rem; }

.rz-links { display: flex; flex-wrap: wrap; gap: 10px; }
.rz-links a {
    display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px;
    border-radius: 999px; background: var(--rz-card); border: 1px solid var(--rz-line); font-size: .86rem;
}
.rz-links a:hover { border-color: var(--rz-cyan); color: var(--rz-cyan); }
.rz-more { margin-top: 16px; }
.rz-more a { color: var(--rz-cyan); font-weight: 700; }

.rz-cta { padding: 0 24px 80px; }
.rz-cta-box {
    background: linear-gradient(135deg, var(--rz-indigo), #0F766E);
    border-radius: 24px; padding: 48px 40px; text-align: center; color: #fff;
}
.rz-cta-box h2 { color: #fff; margin-bottom: 10px; }
.rz-cta-box p { color: #CFFAFE; margin-bottom: 24px; }

.rz-footer { background: #0F172A; color: #94A3B8; padding: 48px 0 0; }
.rz-logo-light { color: #fff; margin-bottom: 12px; }
.rz-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.08); }
.rz-footer h4 { color: #fff; font-size: .88rem; margin-bottom: 12px; }
.rz-footer p { font-size: .86rem; max-width: 360px; }
.rz-footer a { display: inline-flex; align-items: center; min-height: 36px; font-size: .86rem; color: #94A3B8; }
.rz-footer a:hover { color: #67E8F9; }
.rz-footer-base { padding: 16px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .76rem; }

.rz-page-hero { padding: 56px 0 32px; }
.rz-page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 8px 0; }
.rz-page-hero p { color: var(--rz-muted); }

.rz-svc-stack { display: grid; gap: 16px; }
.rz-svc-card {
    display: grid; grid-template-columns: 220px 1fr; gap: 0;
    background: var(--rz-card); border: 1px solid var(--rz-line); border-radius: var(--rz-r); overflow: hidden;
}
.rz-svc-card img { width: 100%; height: 160px; object-fit: cover; }
.rz-svc-card div { padding: 22px 24px; }
.rz-svc-card span { color: var(--rz-cyan); font-size: .78rem; font-weight: 700; letter-spacing: .08em; }
.rz-svc-card h2 { font-size: 1.25rem; margin: 6px 0 8px; }
.rz-svc-card p { color: var(--rz-muted); font-size: .92rem; }

.rz-about-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: center; }
.rz-about-split img { width: 100%; height: 360px; object-fit: cover; border-radius: 20px; }
.rz-about-split p { color: var(--rz-muted); margin-bottom: 12px; }
.rz-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.rz-pills span { display: inline-flex; min-height: 36px; align-items: center; padding: 6px 14px; border-radius: 999px; background: #E0F2FE; color: #0E7490; font-size: .82rem; font-weight: 600; }

.rz-empty { min-height: 56vh; display: flex; align-items: center; text-align: center; padding: 80px 0; }
.rz-empty-inner { width: 100%; }
.rz-empty strong { display: block; font-size: 6rem; color: var(--rz-line); line-height: 1; }
.rz-empty h1 { margin: 8px 0 12px; }
.rz-empty p { color: var(--rz-muted); margin-bottom: 24px; }

.rz-lightbox { display: none; position: fixed; inset: 0; z-index: var(--rz-z-lb); background: rgba(15, 23, 42, .88); align-items: center; justify-content: center; padding: 32px; cursor: zoom-out; }
.rz-lightbox.active { display: flex; }
.rz-lightbox img { max-width: 90%; max-height: 88vh; object-fit: contain; border-radius: 12px; }
.rz-lightbox-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1.6rem; }

@media (max-width: 1024px) {
    .rz-bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
    .rz-tile-lg { grid-column: span 2; grid-row: span 1; min-height: 220px; }
    .rz-quotes, .rz-faq-grid, .rz-footer-grid, .rz-about-split { grid-template-columns: 1fr; }
    .rz-stats-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .rz-nav-links { display: none; position: absolute; top: 100%; left: 12px; right: 12px; flex-direction: column; background: var(--rz-card); border: 1px solid var(--rz-line); border-radius: 14px; padding: 8px; }
    .rz-nav-links.active { display: flex; }
    .rz-nav-cta { display: none; }
    .rz-mobile-btn { display: inline-flex; align-items: center; justify-content: center; }
    .rz-hero > img, .rz-hero { min-height: 520px; height: auto; }
    .rz-hero > img { height: 520px; }
    .rz-hero-actions { flex-direction: column; }
    .rz-btn-cyan, .rz-btn-ghost, .rz-btn-outline { width: 100%; }
    .rz-bento { grid-template-columns: 1fr; }
    .rz-tile, .rz-tile-lg, .rz-tile-wide { grid-column: span 1; grid-row: span 1; min-height: 200px; }
    .rz-svc-card { grid-template-columns: 1fr; }
    .rz-section { padding: 56px 0; }
    .rz-cta { padding-bottom: 56px; }
    .rz-cta-box { padding: 32px 20px; }
}
@media (max-width: 480px) {
    .rz-container, .rz-nav-inner { padding-left: 16px; padding-right: 16px; }
    .rz-stats-row { grid-template-columns: 1fr 1fr; gap: 12px; }
    .rz-film-item { flex-basis: 200px; }
}
