/* ============================================================
   Shenzhou Trademark Agency · English theme
   Clean, restrained corporate style for international visitors.
   ============================================================ */

:root {
    --bg: #ffffff;
    --bg-soft: #f6f8fb;
    --ink: #0f172a;
    --ink-soft: #475569;
    --ink-faint: #94a3b8;
    --brand: #2563eb;
    --brand-deep: #1d4ed8;
    --line: #e2e8f0;
    --ok: #059669;
    --err: #dc2626;
    --maxw: 1120px;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 32px -16px rgba(15, 23, 42, .18);
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-deep); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--ink);
    line-height: 1.25;
    margin: 0 0 .5em;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(30px, 4.5vw, 46px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 18px; }
h4 { font-size: 15px; }

p { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 800px; }

.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-soft); margin-bottom: 0; }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: transparent;
    border-bottom: 0;
    transition: background .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
    background: rgba(11, 22, 48, .55);
    box-shadow: 0 1px 8px rgba(0, 0, 0, .22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mainnav {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 78px;
}

.brand { display: flex; align-items: center; color: #fff; }
.brand-logo { height: 66px; width: auto; }

.nav {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-left: auto;
}

.nav a {
    display: block;
    padding: 8px 14px;
    color: rgba(255, 255, 255, .92);
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
}

.nav a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.nav a.is-active { color: #fff; }

.lang { position: relative; }
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 8px;
    cursor: pointer;
}
.lang-toggle:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .14); }
.lang-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 160px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: .15s ease;
}
.lang:hover .lang-dropdown,
.lang-toggle:focus + .lang-dropdown { opacity: 1; visibility: visible; transform: none; }
.lang-dropdown a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--ink-soft); font-size: 14px; }
.lang-dropdown a:hover { background: var(--bg-soft); color: var(--ink); }
.lang-dropdown a.is-active { color: var(--brand); font-weight: 600; }

.nav-toggle {
    display: none;
    margin-left: auto;
    font-size: 22px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* ---------- Banner slider ---------- */
.banner-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    color: #fff;
    background: #0b1b3f;
}
.banner-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease;
}
.banner-slide.is-active { opacity: 1; visibility: visible; }
.banner-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(11, 27, 63, .88), rgba(37, 99, 235, .5));
}
.banner-slide .container { position: relative; }
.banner-slide h1 { color: #fff; max-width: 720px; }
.banner-slide p.lead { color: rgba(255, 255, 255, .85); max-width: 640px; font-size: 18px; margin-bottom: 32px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s ease;
}
.banner-arrow:hover { background: rgba(255, 255, 255, .28); }
.banner-arrow--prev { left: 20px; }
.banner-arrow--next { right: 20px; }

.banner-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 72px;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 5;
}
.banner-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: .2s ease;
}
.banner-dot.is-active { background: #fff; width: 24px; border-radius: 5px; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    font: inherit;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: .15s ease;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-deep); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.btn--outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--ink-faint); color: var(--ink); }

/* ---------- Interior page hero ---------- */
.page-hero {
    background: linear-gradient(120deg, #0b1b3f, #2563eb);
    color: #fff;
    padding: 96px 0 72px;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p.lead { color: rgba(255, 255, 255, .82); max-width: 720px; margin: 0; font-size: 17px; }

/* 带背景图的 Banner 页头（图片由视图内联指定，叠加暗色渐变保证白字可读） */
.page-hero--banner {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    padding: 0;
    background-color: #0b1b3f;
    background-size: cover;
    background-position: center;
}
.page-hero--banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(11, 27, 63, .85), rgba(37, 99, 235, .45));
    pointer-events: none;
}
.page-hero--banner .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* ---------- Stat band ---------- */
.stat-band {
    margin-top: -56px;
    position: relative;
}
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 28px 24px;
}
.stat { text-align: center; }
.stat .num { font-size: 34px; font-weight: 800; color: var(--brand); letter-spacing: -0.02em; }
.stat .num em { font-style: normal; font-size: 22px; }
.stat .lbl { color: var(--ink-soft); font-size: 14px; margin-top: 2px; }

/* ---------- Service cards ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 28px 24px;
    transition: .15s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--bg-soft);
    color: var(--brand);
    font-size: 20px;
    margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ---------- Honor cards ---------- */
.honor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.honor-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 28px 22px;
    text-align: center;
    transition: .15s ease;
}
.honor-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.honor-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--brand);
    font-size: 24px;
}
.honor-item h4 { font-size: 16px; margin-bottom: 6px; }
.honor-year { color: var(--brand); font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.honor-intro { color: var(--ink-soft); font-size: 14px; margin: 0; }

/* ---------- Areas (Services page) ---------- */
.area { padding: 56px 0; }
.area:nth-of-type(even) { background: var(--bg-soft); }
.area-head { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; margin-bottom: 32px; }
.area-head h2 { margin-bottom: 6px; }
.area-tagline { color: var(--brand); font-weight: 600; margin: 0; }
.area-desc { color: var(--ink-soft); margin: 0; }

.svc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.svc-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 18px 16px;
}
.svc-icon { color: var(--brand); font-size: 18px; margin-top: 3px; width: 22px; text-align: center; }
.svc-body h3 { font-size: 16px; margin-bottom: 4px; }
.svc-body p { color: var(--ink-soft); font-size: 14px; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(120deg, #0b1b3f, #2563eb);
    color: #fff;
    border-radius: 16px;
    padding: 48px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, .82); margin: 0; }
.cta-band .btn--primary { background: #fff; color: var(--brand); }
.cta-band .btn--primary:hover { background: #f1f5f9; color: var(--brand-deep); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 20px 0 0; color: var(--ink-faint); font-size: 14px; }
.breadcrumb a { color: var(--ink-faint); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { margin: 0 8px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.contact-list { display: grid; gap: 14px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 16px; border: 1px solid var(--line); border-radius: 10px; }
.contact-item i { color: var(--brand); font-size: 18px; width: 22px; text-align: center; margin-top: 3px; }
.contact-item .cc-label { display: block; font-size: 13px; color: var(--ink-faint); }
.contact-item .cc-value { font-weight: 600; }

.form-panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 11px 12px;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.field-err { color: var(--err); font-size: 13px; }
.form-msg { padding: 12px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.form-msg--ok { background: #ecfdf5; color: var(--ok); }
.form-msg--err { background: #fef2f2; color: var(--err); }
.form-check { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; font-size: 14px; color: var(--ink-soft); }
.form-check input { width: auto; margin-top: 4px; }
.captcha-row { display: flex; gap: 10px; align-items: stretch; }
.captcha-row input { flex: 1; }
.captcha-img { height: 44px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }

/* ---------- Article (Privacy) ---------- */
.article-body { font-size: 15.5px; color: var(--ink-soft); }
.article-body h2 { color: var(--ink); font-size: 20px; margin: 1.6em 0 .5em; }
.article-body a { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1b3f; color: #cbd5e1; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-brand .brand-logo { height: 32px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; margin: 0 0 8px; }
.site-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.site-footer a { display: block; color: #cbd5e1; font-size: 14px; margin-bottom: 10px; }
.site-footer a:hover { color: #fff; }
.footer-contact li { list-style: none; font-size: 14px; margin-bottom: 10px; }
.footer-contact ul { padding: 0; margin: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; padding-top: 20px; font-size: 13px; color: #94a3b8; }
.footer-bottom a { color: #94a3b8; display: inline; }

/* ---------- Floating contact ---------- */
.float-contact {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 999px;
    box-shadow: 0 8px 24px -6px rgba(37, 99, 235, .55);
}
.float-contact:hover { background: var(--brand-deep); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .card-grid { grid-template-columns: 1fr; }
    .honor-grid { grid-template-columns: repeat(2, 1fr); }
    .area-head { grid-template-columns: 1fr; }
    .svc-list { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .nav-toggle { display: block; }
    .nav {
        display: none;
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 8px 16px 16px;
    }
    .nav-open .nav { display: flex; }
    .nav a { padding: 12px 10px; color: var(--ink-soft); }
    .nav a:hover { color: var(--ink); background: var(--bg-soft); }
    .nav a.is-active { color: var(--brand); }
    .banner-slider { height: 420px; }
    .honor-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
