:root {
    --ink: #172033;
    --muted: #667085;
    --line: #d9e0ea;
    --blue: #2477e8;
    --cyan: #00c8d7;
    --green: #17a673;
    --orange: #f59e0b;
    --surface: #ffffff;
    --soft: #f5f8fc;
    --deep: #0b1b38;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    /* 吸顶导航约 70px 高，给锚点跳转和 scrollIntoView 预留偏移，避免落点被导航遮挡 */
    scroll-padding-top: 90px;
}

body {
    min-width: 320px;
    color: var(--ink);
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(217, 224, 234, 0.8);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.nav {
    width: min(1180px, calc(100% - 32px));
    min-height: 70px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 260px;
}

.brand img {
    width: 34px;
    height: 34px;
    object-fit: cover;
    object-position: left center;
    border-radius: 8px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.brand-title {
    color: var(--ink);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.1;
}

.brand-name {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #344054;
    font-size: 14px;
}

.nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 48px;
}

.nav-item > a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 10px;
    border-radius: 6px;
}

.nav-item > a:hover {
    color: var(--blue);
    background: #f3f7ff;
}

.nav-item.is-active > a {
    color: var(--blue);
    font-weight: 800;
}

.nav-item.is-active:not(.nav-cta) > a {
    position: relative;
}

.nav-item.is-active:not(.nav-cta) > a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--blue);
}

.nav-item.has-menu > a::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 7px;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    border-top: 5px solid currentColor;
    order: 2;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% - 4px);
    left: 0;
    z-index: 30;
    min-width: 240px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(23, 32, 51, 0.15);
    display: grid;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.nav-item.has-menu .nav-dropdown {
    min-width: 470px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown a {
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    color: #344054;
    white-space: nowrap;
}

.nav-dropdown a:hover,
.nav-dropdown a.is-active {
    color: var(--blue);
    background: #eef5ff;
    font-weight: 800;
}

.nav-links .nav-cta > a:hover {
    color: #ffffff;
    background: #1c64d8;
}

.nav-links .nav-cta.is-active > a {
    color: #ffffff;
    background: #1c64d8;
}

.nav-cta > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 6px;
    color: #ffffff;
    background: var(--blue);
    font-weight: 700;
}

.page-hero {
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(7, 24, 55, 0.94), rgba(10, 60, 105, 0.82)),
        url("https://zhide-hongkong.oss-cn-hongkong.aliyuncs.com/ysmen/www/img_bg.png") center / cover no-repeat;
}

.page-hero-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 86px 0 92px;
}

.compact-hero .page-hero-inner {
    padding: 54px 0 58px;
}

.eyebrow {
    color: #82edf5;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.page-hero h1 {
    max-width: 860px;
    margin-top: 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: 0;
}

.page-hero p {
    max-width: 760px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.section {
    padding: 68px 0;
}

.section.alt {
    background: var(--soft);
}

.section-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 28px;
}

.section-head h2 {
    max-width: 760px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.14;
}

.section-head p {
    max-width: 430px;
    color: var(--muted);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.card,
.tool-panel,
.article-card,
.legal-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.card,
.article-card,
.legal-card {
    padding: 24px;
}

.card h3,
.article-card h3,
.tool-panel h3,
.legal-card h3 {
    color: var(--ink);
    line-height: 1.25;
}

.card p,
.article-card p,
.tool-panel p,
.legal-card p,
.legal-card li {
    margin-top: 10px;
    color: var(--muted);
    font-size: 15px;
}

.article-card {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    justify-content: space-between;
}

.article-card small {
    color: var(--green);
    font-weight: 800;
    text-transform: uppercase;
}

.article-card a,
.inline-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--blue);
    font-weight: 700;
}

.tool-panel {
    padding: 24px;
}

.tools-layout {
    display: grid;
    grid-template-columns: 430px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    color: #475467;
    font-size: 13px;
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: var(--ink);
    background: #ffffff;
}

.field textarea {
    min-height: 136px;
    padding: 12px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(36, 119, 232, 0.13);
    outline: none;
}

.result-box {
    min-height: 92px;
    margin-top: 16px;
    padding: 16px;
    border-radius: 8px;
    color: #344054;
    background: #eef7ff;
    font-size: 14px;
}

.result-box strong {
    display: block;
    color: var(--blue);
    font-size: 24px;
    line-height: 1.15;
}

.copy-box {
    width: 100%;
    min-height: 132px;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: var(--ink);
    background: #ffffff;
    resize: vertical;
}

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #d7dee9;
    border-radius: 6px;
    color: #344054;
    background: #f8fafc;
    font-size: 13px;
}

.check-item input {
    width: 16px;
    height: 16px;
    accent-color: var(--blue);
    flex: 0 0 auto;
}

.progress-bar {
    height: 9px;
    overflow: hidden;
    margin-top: 14px;
    border-radius: 999px;
    background: #e5eaf1;
}

.progress-bar span {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: var(--green);
    transition: width 0.2s ease;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px) 320px;
    gap: 42px;
    align-items: start;
}

.article-body {
    font-size: 17px;
}

.article-body h2 {
    margin-top: 38px;
    font-size: 30px;
    line-height: 1.2;
}

.article-body h3 {
    margin-top: 28px;
    font-size: 22px;
}

.article-body p,
.article-body li {
    margin-top: 14px;
    color: #344054;
}

.article-body ul,
.article-body ol {
    margin-top: 14px;
    padding-left: 22px;
}

.article-body table {
    width: 100%;
    margin-top: 18px;
    border-collapse: collapse;
    font-size: 15px;
}

.article-body th,
.article-body td {
    padding: 12px;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.article-body th {
    background: #f2f6fb;
}

.sidebar {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 16px;
}

.sidebar-box {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.sidebar-box h3 {
    font-size: 18px;
}

.sidebar-box a {
    display: block;
    margin-top: 10px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 700;
}

.ad-slot {
    margin: 28px 0;
    padding: 18px;
    border: 1px dashed #b8c4d4;
    border-radius: 8px;
    color: var(--muted);
    background: #f8fafc;
    font-size: 13px;
    text-align: center;
}

.contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: stretch;
}

.contact-form-card {
    padding: 28px;
    border-radius: 8px;
    color: #ffffff;
    background: #3f4447;
}

.contact-form-card h2,
.contact-hotline h3 {
    color: #ffffff;
}

.contact-form-card p,
.contact-hotline p {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.76);
}

.contact-form {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--ink);
    background: #ffffff;
}

.contact-form textarea {
    min-height: 112px;
    padding: 12px 14px;
    resize: vertical;
}

.contact-form button {
    min-height: 50px;
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    background: #f59e0b;
    cursor: pointer;
    font-weight: 800;
}

.contact-form-status {
    min-height: 22px;
    color: #d8ffe9;
    font-size: 14px;
}

.contact-hotline {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
    border-radius: 8px;
    background: var(--deep);
}

.hotline-number {
    display: inline-flex;
    margin-top: 10px;
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
}

.common-tools-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.logistics-tool-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.tool-sidebar {
    position: sticky;
    top: 88px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.tool-sidebar h2 {
    font-size: 18px;
    line-height: 1.25;
}

.tool-menu {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.tool-menu-link {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: #344054;
    background: #ffffff;
    font-weight: 800;
}

.tool-menu-link:hover,
.tool-menu-link.is-active {
    color: #ffffff;
    border-color: var(--blue);
    background: var(--blue);
}

.tool-workbench {
    min-height: 430px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.tool-workbench h2 {
    font-size: 30px;
    line-height: 1.18;
}

.tool-directory {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.tool-directory a {
    display: grid;
    gap: 6px;
    min-height: 112px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}

.tool-directory a:hover {
    border-color: var(--blue);
    background: #eef5ff;
}

.tool-directory span {
    color: var(--muted);
    font-size: 14px;
}

.tool-tabs {
    display: grid;
    gap: 8px;
}

.tool-tab {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: #344054;
    background: #ffffff;
    cursor: pointer;
    text-align: left;
    font-weight: 700;
}

.tool-tab.is-active {
    color: #ffffff;
    border-color: var(--blue);
    background: var(--blue);
}

.tool-searchbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-top: 18px;
}

.tool-searchbar input {
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}

.tool-searchbar button {
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    background: var(--blue);
    cursor: pointer;
    font-weight: 800;
}

.tool-results {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.tool-list-group {
    display: grid;
    gap: 14px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.tool-list-group:first-child {
    border-top: 0;
}

.tool-list-group h3 {
    display: inline-flex;
    width: fit-content;
    min-width: 58px;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    color: #ffffff;
    border-radius: 0;
    background: var(--blue);
    font-size: 15px;
}

.tool-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 22px;
}

.tool-list-item {
    min-height: 44px;
    padding: 8px 10px;
    border: 0;
    border-radius: 6px;
    color: #24324a;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.tool-list-item:hover {
    color: var(--blue);
    background: #eef5ff;
}

.tool-list-item span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}

.tool-list-item small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
}

.tool-detail {
    padding-top: 4px;
}

.tool-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.tool-detail-head h3 {
    font-size: 26px;
}

.tool-back {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: #344054;
    background: #ffffff;
    cursor: pointer;
    font-weight: 800;
}

.tool-back:hover {
    color: #ffffff;
    border-color: var(--blue);
    background: var(--blue);
}

.tool-detail dl {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 12px 18px;
    margin-top: 20px;
}

.tool-detail dt {
    color: var(--muted);
    font-weight: 800;
}

.tool-description {
    margin-top: 24px;
    padding: 18px;
    border-radius: 8px;
    background: #f8fbff;
}

.tool-description h4 {
    font-size: 18px;
}

.tool-description p {
    margin-top: 10px;
    color: #344054;
}

.tool-result {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.tool-result h3 {
    font-size: 18px;
    line-height: 1.25;
}

.tool-result dl {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 6px 12px;
    margin-top: 12px;
    color: #344054;
    font-size: 14px;
}

.tool-result dt {
    color: var(--muted);
    font-weight: 800;
}

.tool-note {
    margin-top: 14px;
    color: var(--muted);
    font-size: 14px;
}

.cta-band {
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(9, 27, 56, 0.96), rgba(10, 67, 116, 0.88)),
        url("https://zhide-hongkong.oss-cn-hongkong.aliyuncs.com/ysmen/www/img_bg2.png") center / cover no-repeat;
}

.cta-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    padding: 58px 0;
}

.cta-inner h2 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.14;
}

.cta-inner p {
    max-width: 690px;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.78);
}

.download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 190px;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 7px;
    color: #ffffff;
    background: rgba(20, 102, 210, 0.42);
    box-shadow: inset 0 0 26px rgba(43, 157, 255, 0.58);
    font-weight: 700;
}

.download:hover {
    background: rgba(20, 102, 210, 0.64);
}

.footer {
    padding: 34px 0;
    color: #c7d7ef;
    background: var(--deep);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    font-size: 13px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer a:hover {
    color: #ffffff;
}

@media (max-width: 980px) {
    .nav {
        min-height: auto;
        padding: 14px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        width: 100%;
        align-items: flex-start;
        gap: 6px;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .nav-item {
        min-height: 42px;
    }

    .nav-dropdown {
        top: 100%;
        left: 0;
    }

    .card-grid,
    .tools-layout,
    .content-layout,
    .contact-panel,
    .common-tools-layout,
    .logistics-tool-layout,
    .cta-inner {
        grid-template-columns: 1fr;
    }

    .sidebar,
    .tool-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .page-hero-inner {
        padding: 58px 0 64px;
    }

    .section {
        padding: 52px 0;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .form-grid,
    .checklist-grid,
    .tool-searchbar,
    .tool-result dl,
    .tool-directory,
    .tool-list-grid,
    .tool-detail dl {
        grid-template-columns: 1fr;
    }

    .download {
        width: 100%;
    }

    .nav-links {
        flex-wrap: wrap;
        overflow: visible;
    }

    .nav-item {
        position: static;
    }

    .nav-dropdown {
        right: 16px;
        left: 16px;
        min-width: 0;
        grid-template-columns: 1fr !important;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}
