/* ==========================================================================
   内页：产品中心 / 新闻动态 / 关于我们 / 联系我们
   依赖 index.css 的设计 tokens 与页头页脚
   ========================================================================== */

.page-hero {
    padding: clamp(36px, 5vw, 64px) 0 clamp(32px, 4vw, 48px);
    background:
        radial-gradient(circle at 82% 18%, rgba(14, 124, 123, .1), transparent 46%),
        linear-gradient(180deg, #f8fbfa, #f2f7f6);
    border-bottom: 1px solid var(--line);
}

.page-hero .breadcrumb {
    margin-bottom: 26px;
}

.page-title {
    margin: 14px 0 14px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.2;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.page-lead {
    max-width: 680px;
    font-size: 16px;
    line-height: 1.9;
    color: var(--muted);
}

.page-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 24px;
    font-size: 13px;
    color: var(--muted);
}

.page-hero-meta strong {
    color: var(--brand-600);
    font-weight: 600;
}

/* ---------- 产品中心 ---------- */
.products-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: clamp(28px, 4vw, 48px);
    align-items: start;
}

.filter-panel {
    min-width: 0;
    max-width: 100%;
    position: sticky;
    top: calc(var(--header-h) + 24px);
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.filter-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.filter-head h2 {
    font-size: 15px;
    letter-spacing: .02em;
}

.filter-head span {
    font-size: 12px;
    color: var(--muted);
}

.filter-list {
    min-width: 0;
    max-width: 100%;
    display: grid;
    gap: 2px;
    margin: 10px 0 0;
}

.filter-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--ink-2);
}

.filter-link em {
    min-width: 24px;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--bg);
    font-style: normal;
    font-size: 11.5px;
    text-align: center;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.filter-link:hover {
    background: var(--brand-050);
    color: var(--brand-600);
}

.filter-link.is-active {
    background: var(--ink);
    color: #fff;
}

.filter-link.is-active em {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.filter-link.is-empty {
    color: #9fb0ad;
}

.filter-cta {
    margin-top: 20px;
    padding: 20px;
    border-radius: 14px;
    background: linear-gradient(150deg, #0a2b30, #0e7c7b);
    color: #fff;
}

.filter-cta h3 {
    font-size: 16px;
    color: #fff;
}

.filter-cta p {
    margin: 8px 0 16px;
    font-size: 12.5px;
    line-height: 1.75;
    color: rgba(255, 255, 255, .72);
}

.filter-cta .btn {
    width: 100%;
}

.products-main {
    min-width: 0;
}

.list-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.search-box {
    position: relative;
    flex: 1 1 260px;
    max-width: 380px;
}

.search-box svg {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 16px;
    height: 16px;
    color: var(--muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.search-box input {
    width: 100%;
    height: 42px;
    padding: 0 14px 0 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 14px;
    color: var(--ink);
    outline: none;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.search-box input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-050);
}

.toolbar-clear {
    font-size: 12.5px;
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.toolbar-clear:hover {
    color: var(--brand-600);
}

.list-count {
    margin-left: auto;
    font-size: 13px;
    color: var(--muted);
}

.list-count strong {
    color: var(--ink);
    font-weight: 600;
}

.search-note {
    margin: -8px 0 20px;
    font-size: 13px;
    color: var(--muted);
}

.product-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.empty-state {
    padding: clamp(40px, 6vw, 72px) 24px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    text-align: center;
    background: #fff;
}

.empty-state h2 {
    font-size: 20px;
}

.empty-state p {
    max-width: 460px;
    margin: 12px auto 22px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--muted);
}

/* 分页（ThinkPHP Paginator 输出） */
.pager {
    margin-top: 42px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.pagination li {
    display: inline-flex;
}

.pagination li a,
.pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    font-size: 13.5px;
    color: var(--ink-2);
}

.pagination li a:hover {
    border-color: var(--brand);
    color: var(--brand-600);
}

.pagination li.active span {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.pagination li.disabled span {
    color: #b9c9c6;
    background: var(--bg);
}

/* ---------- 新闻动态 ---------- */
.news-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.news-list-grid .news-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.news-list-grid .news-title {
    margin-top: 10px;
}

.news-list-grid .news-excerpt {
    -webkit-line-clamp: 3;
}

/* ---------- 关于我们 ---------- */
.about-split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.about-copy .section-title {
    margin-top: 12px;
}

.about-copy p {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.95;
    color: var(--body);
}

.about-points {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.about-points li {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: var(--ink-2);
}

.about-points svg {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin-top: 3px;
    color: var(--brand);
}

.about-media {
    position: relative;
}

.about-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.about-media-card {
    position: absolute;
    left: -18px;
    bottom: -18px;
    padding: 18px 22px;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
}

.about-media-card strong {
    display: block;
    font-size: 28px;
    line-height: 1;
    color: var(--brand-600);
    font-variant-numeric: tabular-nums;
}

.about-media-card span {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: clamp(32px, 5vw, 56px);
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.stat-cell {
    padding: 26px 24px;
    background: #fff;
}

.stat-cell .stat-num {
    color: var(--ink);
}

.stat-cell .stat-num span {
    color: var(--brand);
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.capability {
    padding: 28px 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.capability h3 {
    margin: 16px 0 10px;
    font-size: 17px;
}

.capability p {
    font-size: 14px;
    line-height: 1.85;
    color: var(--muted);
}

.capability .advantage-icon {
    width: 46px;
    height: 46px;
}

.video-block {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--ink);
    color: #fff;
}

.video-block-copy {
    padding: clamp(28px, 4vw, 56px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-block-copy .eyebrow {
    color: var(--accent);
}

.video-block-copy .eyebrow::before {
    background: rgba(255, 255, 255, .35);
}

.video-block-copy h2 {
    margin: 14px 0 12px;
    font-size: clamp(24px, 2.8vw, 34px);
    color: #fff;
}

.video-block-copy p {
    font-size: 14.5px;
    line-height: 1.9;
    color: rgba(255, 255, 255, .7);
}

.video-block-media {
    position: relative;
    min-height: 320px;
    background: #071b1e;
}

.video-block-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-band {
    padding: clamp(30px, 4vw, 56px);
    border-radius: var(--radius-lg);
    background: linear-gradient(118deg, #08282d, #0b4a4b 65%, #0e7c7b);
    color: #fff;
}

.service-band-head {
    max-width: 640px;
}

.service-band h2 {
    font-size: clamp(24px, 3vw, 34px);
    color: #fff;
    text-wrap: balance;
}

.service-band-head p {
    margin-top: 12px;
    font-size: 14.5px;
    line-height: 1.9;
    color: rgba(255, 255, 255, .72);
}

.service-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.service-step {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    background: rgba(255, 255, 255, .04);
}

.service-step em {
    font-style: normal;
    font-size: 12px;
    letter-spacing: .14em;
    color: var(--accent);
}

.service-step h3 {
    margin: 10px 0 8px;
    font-size: 16px;
    color: #fff;
}

.service-step p {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255, 255, 255, .68);
}

/* ---------- 联系我们 ---------- */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(28px, 4vw, 48px);
    align-items: start;
}

.contact-cards {
    display: grid;
    gap: 14px;
}

.contact-card {
    display: flex;
    gap: 16px;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.contact-card-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-050);
    color: var(--brand-600);
}

.contact-card-icon svg {
    width: 20px;
    height: 20px;
}

.contact-card-label {
    font-size: 12px;
    letter-spacing: .12em;
    color: var(--muted);
    text-transform: uppercase;
}

.contact-card-value {
    margin-top: 6px;
    font-size: 17px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.6;
    word-break: break-word;
}

.contact-card-value a:hover {
    color: var(--brand-600);
}

.contact-card-value--sm {
    font-size: 14px;
    font-weight: 400;
    color: var(--body);
}

.qr-panel {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.qr-panel h2 {
    font-size: 16px;
}

.qr-panel p {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--muted);
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.qr-grid figure {
    padding: 12px;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: var(--bg);
    text-align: center;
}

.qr-grid img {
    width: 100%;
    max-width: 128px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

.qr-grid figcaption {
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}

.map-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    font-size: 14px;
    color: var(--ink-2);
}

.map-link span {
    color: var(--muted);
    font-size: 12.5px;
}

.map-link:hover {
    border-color: var(--brand);
    color: var(--brand-600);
}

.contact-cta {
    padding-top: 0;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1120px) {
    .product-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .products-layout {
        grid-template-columns: 1fr;
    }

    .filter-panel {
        position: static;
        padding: 18px;
    }

    .filter-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-cta {
        display: none;
    }

    .about-split,
    .contact-layout,
    .video-block {
        grid-template-columns: 1fr;
    }

    .video-block-media {
        order: -1;
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .stat-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .capability-grid,
    .service-steps,
    .news-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .page-hero {
        padding-top: 26px;
    }

    .page-title {
        font-size: 30px;
    }

    .page-lead {
        font-size: 14.5px;
    }

    .filter-list {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        margin-right: -18px;
        padding-right: 18px;
        scrollbar-width: none;
    }

    .filter-list::-webkit-scrollbar {
        display: none;
    }

    .filter-link {
        flex: 0 0 auto;
        gap: 8px;
        padding: 8px 14px;
        border: 1px solid var(--line);
        border-radius: 999px;
        font-size: 13px;
    }

    .filter-link.is-active {
        border-color: var(--ink);
    }

    .filter-link em {
        background: var(--bg);
    }

    .filter-link.is-active em {
        background: rgba(255, 255, 255, .2);
    }

    .toolbar-clear {
        order: 3;
    }

    .list-count {
        width: 100%;
        margin-left: 0;
        order: 4;
    }

    .product-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .news-list-grid,
    .capability-grid,
    .service-steps {
        grid-template-columns: 1fr;
    }

    .stat-strip {
        margin-top: 28px;
    }

    .stat-cell {
        padding: 20px 16px;
    }

    .about-media-card {
        left: 12px;
        bottom: 12px;
        padding: 14px 16px;
    }

    .qr-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-card {
        padding: 18px;
    }
}


/* ---------- 404 ---------- */
.error-page {
    padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 10vw, 140px);
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(14, 124, 123, .1), transparent 55%),
        linear-gradient(180deg, #f8fbfa, #f2f7f6);
}

.error-code {
    display: block;
    font-size: clamp(80px, 14vw, 152px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -.04em;
    color: transparent;
    -webkit-text-stroke: 2px rgba(14, 124, 123, .28);
    font-variant-numeric: tabular-nums;
}

.error-title {
    margin: 18px 0 12px;
    font-size: clamp(24px, 3.2vw, 34px);
}

.error-desc {
    max-width: 520px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.9;
    color: var(--muted);
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.error-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 460px;
    margin: 28px auto 0;
    padding: 8px 8px 8px 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.error-search svg {
    position: absolute;
    left: 18px;
    width: 17px;
    height: 17px;
    color: var(--muted);
}

.error-search input {
    flex: 1;
    min-width: 0;
    height: 38px;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 14px;
    outline: none;
}

.error-search .btn {
    flex: 0 0 auto;
    border-radius: 999px;
}

@media (max-width: 480px) {
    .error-search {
        border-radius: 14px;
        padding: 8px 8px 8px 40px;
    }

    .error-search svg {
        left: 14px;
    }
}
