/*
Theme Name: Zhiling Property
Theme URI: https://www.gzzlyj.cn/
Author: Zhiling Youjia
Description: A purpose-built property operations and community IoT theme for Zhiling Youjia.
Version: 1.0.0
Text Domain: zhiling-property
*/

:root {
    --ink: #102a43;
    --navy: #0b2038;
    --sea: #0e6678;
    --lime: #b9d83a;
    --sky: #dff1f4;
    --sand: #f5f0e7;
    --paper: #fbfcfa;
    --line: #d5e0e4;
    --muted: #5d7080;
    --white: #fff;
    --shadow: 0 18px 50px rgba(16, 42, 67, .12);
    --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Microsoft YaHei", "Noto Sans SC", "PingFang SC", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 252, 250, .96);
    border-bottom: 1px solid rgba(213, 224, 228, .9);
    backdrop-filter: blur(14px);
}
.header-inner { max-width: 1240px; min-height: 78px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 245px; }
.brand-mark { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--navy); background: var(--lime); font-size: 18px; font-weight: 900; letter-spacing: 0; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-size: 17px; letter-spacing: .04em; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.primary-nav { flex: 1; }
.primary-nav ul { display: flex; justify-content: center; gap: 28px; padding: 0; margin: 0; list-style: none; }
.primary-nav a { color: var(--muted); font-size: 14px; font-weight: 700; transition: color .2s ease; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--sea); }
.header-cta, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--sea); border-radius: 999px; background: var(--sea); color: var(--white); font-size: 14px; font-weight: 800; transition: transform .2s ease, background .2s ease; }
.header-cta:hover, .button:hover { background: var(--navy); transform: translateY(-2px); }
.button-secondary { background: transparent; color: var(--sea); }
.button-secondary:hover { color: var(--white); }
.nav-toggle { display: none; border: 0; background: none; color: var(--ink); font-size: 26px; }

.hero { position: relative; min-height: min(720px, 76vh); display: flex; align-items: flex-end; overflow: hidden; background: var(--navy); color: var(--white); }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(6, 26, 43, .57); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-content { position: relative; width: min(1240px, 100%); padding: 118px 28px 86px; margin: 0 auto; }
.eyebrow { margin: 0 0 18px; color: var(--lime); font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(42px, 5.5vw, 76px); line-height: 1.08; letter-spacing: 0; }
.hero p { max-width: 620px; margin: 24px 0 0; color: rgba(255,255,255,.86); font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .button-secondary { border-color: rgba(255,255,255,.7); color: var(--white); }
.hero .button-secondary:hover { background: var(--white); color: var(--navy); }
.hero-scroll { position: absolute; right: 28px; bottom: 34px; color: rgba(255,255,255,.72); font-size: 11px; letter-spacing: .16em; writing-mode: vertical-rl; }

.section { padding: 104px 28px; }
.section-sand { background: var(--sand); }
.section-navy { background: var(--navy); color: var(--white); }
.section-inner { max-width: 1184px; margin: 0 auto; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 42px; }
.section-heading h2 { max-width: 660px; margin: 0; font-size: clamp(30px, 4vw, 50px); line-height: 1.15; letter-spacing: 0; }
.section-heading p { max-width: 470px; margin: 0; color: var(--muted); }
.section-navy .section-heading p { color: rgba(255,255,255,.68); }
.kicker { display: block; margin-bottom: 12px; color: var(--sea); font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.section-navy .kicker { color: var(--lime); }

.stat-strip { position: relative; z-index: 2; margin-top: -48px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.stat { min-height: 132px; padding: 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; color: var(--sea); font-size: 36px; line-height: 1; }
.stat span { display: block; margin-top: 12px; color: var(--muted); font-size: 13px; }

.split { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr); gap: 72px; align-items: center; }
.split h2 { margin: 0; font-size: clamp(30px, 4vw, 52px); line-height: 1.18; }
.split p { color: var(--muted); }
.split-visual { position: relative; min-height: 430px; }
.split-visual img { width: 100%; height: 430px; object-fit: cover; border-radius: var(--radius); }
.visual-note { position: absolute; left: -24px; bottom: 24px; max-width: 240px; padding: 18px 20px; border-radius: var(--radius); background: var(--lime); color: var(--navy); box-shadow: var(--shadow); }
.visual-note strong { display: block; font-size: 24px; line-height: 1.1; }
.visual-note span { display: block; margin-top: 5px; font-size: 12px; font-weight: 700; }

.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.capability { min-height: 250px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.capability-number { color: var(--lime); font-size: 30px; font-weight: 900; line-height: 1; }
.capability h3 { margin: 28px 0 10px; font-size: 24px; }
.capability p { margin: 0; color: var(--muted); }
.capability a { display: inline-flex; margin-top: 22px; color: var(--sea); font-size: 13px; font-weight: 800; }

.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-card { overflow: hidden; border-radius: var(--radius); background: var(--white); color: var(--ink); }
.case-card-image { aspect-ratio: 1.48; overflow: hidden; background: #c7d8da; }
.case-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.case-card:hover .case-card-image img { transform: scale(1.04); }
.case-card-body { padding: 25px 26px 28px; }
.case-card-meta { color: var(--sea); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.case-card h3 { margin: 9px 0 8px; font-size: 22px; line-height: 1.3; }
.case-card p { margin: 0; color: var(--muted); font-size: 14px; }
.case-card-link { display: inline-flex; margin-top: 20px; color: var(--sea); font-size: 13px; font-weight: 900; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.25); }
.step { padding: 30px 22px 0 0; border-right: 1px solid rgba(255,255,255,.2); }
.step:not(:first-child) { padding-left: 22px; }
.step:last-child { border-right: 0; }
.step-index { color: var(--lime); font-size: 13px; font-weight: 900; }
.step h3 { margin: 20px 0 8px; font-size: 20px; }
.step p { margin: 0; color: rgba(255,255,255,.68); font-size: 14px; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-card { padding: 26px; border-top: 3px solid var(--lime); background: var(--white); }
.news-card time { color: var(--muted); font-size: 12px; }
.news-card h3 { margin: 16px 0 0; font-size: 20px; line-height: 1.4; }
.news-card p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

.page-hero { padding: 94px 28px 76px; background: var(--navy); color: var(--white); }
.page-hero-inner { max-width: 1184px; margin: 0 auto; }
.page-hero h1 { max-width: 780px; margin: 0; font-size: clamp(40px, 6vw, 70px); line-height: 1.1; }
.page-hero p { max-width: 620px; margin: 20px 0 0; color: rgba(255,255,255,.74); font-size: 18px; }
.content-shell { max-width: 960px; margin: 0 auto; padding: 76px 28px 110px; }
.content-shell h2 { margin: 48px 0 14px; font-size: 32px; line-height: 1.25; }
.content-shell h3 { margin: 34px 0 10px; font-size: 22px; }
.content-shell p, .content-shell li { color: var(--muted); }
.content-shell ul, .content-shell ol { padding-left: 1.35em; }
.content-shell a { color: var(--sea); text-decoration: underline; text-underline-offset: 3px; }
.content-shell .case-grid { margin: 30px 0; }

.post-shell { max-width: 860px; margin: 0 auto; padding: 80px 28px 110px; }
.post-shell h1 { margin: 0; font-size: clamp(36px, 5vw, 60px); line-height: 1.15; }
.post-date { display: block; margin: 18px 0 32px; color: var(--muted); font-size: 13px; }
.post-featured { margin: 0 0 42px; border-radius: var(--radius); overflow: hidden; }
.post-content p, .post-content li { color: var(--muted); }
.post-content h2 { margin-top: 44px; font-size: 30px; }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; }
.contact-panel { padding: 34px; border-radius: var(--radius); background: var(--sand); }
.contact-panel h2 { margin-top: 0; }
.contact-row { padding: 15px 0; border-bottom: 1px solid rgba(16,42,67,.12); }
.contact-row:last-child { border-bottom: 0; }
.contact-row strong { display: block; color: var(--ink); }
.contact-row span { color: var(--muted); }

.site-footer { padding: 64px 28px 26px; background: #081b2e; color: var(--white); }
.footer-inner { max-width: 1184px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .8fr .85fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { max-width: 350px; color: rgba(255,255,255,.62); }
.footer-title { margin: 0 0 18px; color: var(--lime); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.footer-nav ul { display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 24px; padding: 0; margin: 0; list-style: none; }
.footer-nav a, .footer-contact a { color: rgba(255,255,255,.74); font-size: 14px; }
.footer-contact p { margin: 8px 0; color: rgba(255,255,255,.74); font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.5); font-size: 12px; }

@media (max-width: 900px) {
    .header-inner { min-height: 68px; padding: 0 20px; }
    .brand { min-width: auto; flex: 1; }
    .nav-toggle { display: block; }
    .primary-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; padding: 18px 20px 24px; background: var(--paper); border-bottom: 1px solid var(--line); }
    .primary-nav.is-open { display: block; }
    .primary-nav ul { display: grid; justify-content: stretch; gap: 0; }
    .primary-nav li { border-bottom: 1px solid var(--line); }
    .primary-nav a { display: block; padding: 12px 0; }
    .header-cta { display: none; }
    .hero-content { padding: 100px 20px 70px; }
    .section { padding: 74px 20px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .split { grid-template-columns: 1fr; gap: 38px; }
    .split-visual { order: -1; min-height: 300px; }
    .split-visual img { height: 330px; }
    .capability-grid, .case-grid, .news-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: repeat(2, 1fr); gap: 0; }
    .step:nth-child(2) { border-right: 0; }
    .step:nth-child(-n+2) { padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.2); }
    .step:nth-child(3) { padding-left: 0; padding-top: 26px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .hero { min-height: 680px; }
    .hero h1 { font-size: 43px; }
    .hero p { font-size: 16px; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stat { min-height: 118px; padding: 20px 16px; }
    .stat strong { font-size: 29px; }
    .stat span { font-size: 12px; }
    .section-heading { display: block; }
    .section-heading p { margin-top: 14px; }
    .visual-note { left: 12px; bottom: 12px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { display: block; }
    .footer-bottom span { display: block; margin-top: 8px; }
}
