/* ============ QHDYP — Qinhuangdao Yipu Air Conditioning ============ */
:root {
    --primary: #1f2933;      /* deep industrial blue-grey */
    --primary-2: #263545;
    --accent: #e47b02;       /* brand orange (from original site) */
    --accent-dark: #b85f00;
    --text: #e9eef2;
    --muted: #a3b1bf;
    --bg: #161d24;
    --card: #222d37;
    --line: #34424f;
    --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ============ Header ============ */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(31,41,51,.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.nav { display: flex; gap: 6px; }
.nav a {
    padding: 8px 16px; border-radius: 6px; font-size: 15px; color: var(--muted);
    transition: all .2s;
}
.nav a:hover, .nav a.active { color: #fff; background: rgba(228,123,2,.14); }
.nav a.active { color: var(--accent); font-weight: 600; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }

/* ============ Hero ============ */
.hero {
    position: relative; min-height: 460px;
    display: flex; align-items: center;
    background: linear-gradient(rgba(22,29,36,.82), rgba(22,29,36,.9)), url('/assets/images/banner.jpg') center/cover no-repeat;
}
.hero-content { padding: 70px 0; }
.hero h1 { font-size: clamp(28px, 5vw, 44px); font-weight: 800; line-height: 1.3; margin-bottom: 16px; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p.sub { font-size: clamp(15px, 2vw, 19px); color: var(--muted); max-width: 640px; margin-bottom: 30px; }
.btn {
    display: inline-block; padding: 13px 34px; border-radius: 8px; font-size: 16px; font-weight: 600;
    background: var(--accent); color: #fff; transition: all .2s; border: none; cursor: pointer;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn.ghost { background: transparent; border: 1px solid var(--muted); margin-left: 12px; }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }

/* ============ Sections ============ */
section.block { padding: 72px 0; }
section.block.alt { background: var(--primary); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 700; }
.section-head .bar { width: 56px; height: 4px; background: var(--accent); margin: 14px auto 0; border-radius: 2px; }

/* ============ Services ============ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.service-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    transition: all .25s; position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; z-index: 2;
    background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .3s;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleY(1); }
.service-card .svc-img { display: block; width: 100%; height: 230px; object-fit: cover; }
.service-card .svc-body { padding: 26px 28px 30px; }
.service-card h3 { font-size: 19px; margin-bottom: 12px; color: #fff; }
.service-card .num { position: absolute; right: 20px; top: 14px; z-index: 2; font-size: 42px; font-weight: 800; color: rgba(255,255,255,.25); text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.service-card p { color: var(--muted); font-size: 15px; }

/* ============ Promise ============ */
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.promise-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; text-align: center; }
.promise-card .tag { display: inline-block; font-size: 20px; font-weight: 700; color: var(--accent); margin-bottom: 14px; letter-spacing: 2px; }
.promise-card p { color: var(--muted); font-size: 14.5px; }
.promise-top { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.promise-line { background: linear-gradient(135deg, var(--primary-2), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 30px; font-size: 18px; font-weight: 600; display: flex; align-items: center; }
.promise-line b { color: var(--accent); margin-right: 10px; }

/* ============ Brands ============ */
.brands { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.brand-chip {
    padding: 12px 28px; border: 1px solid var(--line); border-radius: 999px;
    font-size: 15px; color: var(--muted); background: var(--card); transition: all .2s;
}
.brand-chip:hover { border-color: var(--accent); color: #fff; }

/* ============ News ============ */
.news-list { display: grid; gap: 20px; }
.news-item {
    display: grid; grid-template-columns: 320px 1fr; gap: 24px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; cursor: pointer; transition: all .25s;
}
.news-item:hover { border-color: var(--accent); transform: translateX(4px); }
.news-thumb { background: #0f151b center/cover no-repeat; min-height: 200px; }
.news-body { padding: 24px 26px 24px 0; display: flex; flex-direction: column; justify-content: center; }
.news-body h3 { font-size: 19px; color: #fff; margin-bottom: 8px; }
.news-body .date { color: var(--accent); font-size: 13.5px; margin-bottom: 10px; letter-spacing: 1px; }
.news-body p { color: var(--muted); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============ About ============ */
.about-text { font-size: 16.5px; color: var(--muted); max-width: 860px; margin: 0 auto; text-align: justify; }
.about-text strong { color: #fff; }
.about-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.fact { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 16px; }
.fact .big { font-size: 30px; font-weight: 800; color: var(--accent); margin-bottom: 6px; }
.fact .label { color: var(--muted); font-size: 14px; }

/* ============ Contact ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; }
.contact-row { display: flex; gap: 16px; margin-bottom: 22px; align-items: flex-start; }
.contact-row .ico {
    width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px;
    background: rgba(228,123,2,.15); color: var(--accent);
    display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.contact-row .label { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.contact-row .value { font-size: 16.5px; color: #fff; font-weight: 600; word-break: break-all; }
.contact-row .value a:hover { color: var(--accent); }

/* ============ Footer ============ */
.site-footer { background: #10151a; border-top: 1px solid var(--line); padding: 34px 0; text-align: center; color: var(--muted); font-size: 14px; }
.site-footer .foot-name { color: var(--text); font-weight: 600; margin-bottom: 8px; font-size: 15px; }

/* ============ Lightbox ============ */
.lightbox {
    position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,.92);
    display: none; align-items: center; justify-content: center; flex-direction: column; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 6px; box-shadow: 0 10px 60px rgba(0,0,0,.6); }
.lightbox .close { position: absolute; top: 22px; right: 30px; font-size: 42px; color: #fff; cursor: pointer; background: none; border: none; line-height: 1; }
.lightbox .cap { color: var(--muted); margin-top: 16px; font-size: 14px; }

/* ============ Post gallery (news detail) ============ */
.post-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 30px; }
.post-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; background: #0f151b; }
.post-content p { color: var(--muted); font-size: 16px; margin-bottom: 16px; text-align: justify; }

/* ============ Mobile ============ */
@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .nav {
        position: absolute; top: 68px; left: 0; right: 0;
        background: var(--primary); border-bottom: 1px solid var(--line);
        flex-direction: column; padding: 12px 20px 18px; gap: 4px;
        display: none;
    }
    .nav.open { display: flex; }
    .grid-2, .promise-grid, .about-facts, .contact-grid, .promise-top { grid-template-columns: 1fr; }
    .news-item { grid-template-columns: 1fr; }
    .news-thumb { min-height: 180px; }
    .news-body { padding: 22px 24px; }
    section.block { padding: 52px 0; }
    .btn.ghost { margin-left: 0; margin-top: 12px; }
}
