/* HEBOSI corporate website styles */

:root {
    --hebosi-blue: #12365b;
    --hebosi-blue-deep: #0b2642;
    --hebosi-blue-soft: #1f4f7e;
    --hebosi-gold: #c7a15d;
    --hebosi-gold-soft: #e6d2ad;
    --hebosi-ink: #1b2b3a;
    --hebosi-muted: #66758a;
    --hebosi-line: #d9e1ea;
    --hebosi-panel: #f4f7fb;
    --hebosi-white: #ffffff;
    --shadow-soft: 0 18px 45px rgba(18, 54, 91, 0.12);
    --shadow-card: 0 14px 30px rgba(10, 29, 49, 0.08);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--hebosi-ink);
    background:
        radial-gradient(circle at top left, rgba(199, 161, 93, 0.12), transparent 28%),
        radial-gradient(circle at top right, rgba(31, 79, 126, 0.1), transparent 24%),
        #f7f9fc;
}

a,
button,
input,
textarea,
select {
    transition: all 0.25s ease;
}

nav a {
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--hebosi-gold), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

nav a.flex > img {
    display: none;
}

nav a:hover::after,
nav a.nav-active::after {
    transform: scaleX(1);
}

.section-shell {
    position: relative;
    overflow: hidden;
}

.section-shell::before {
    content: "";
    position: absolute;
    inset: auto -10% 0 auto;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(199, 161, 93, 0.12), transparent 70%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
}

.hero-grid::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -40px;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(199, 161, 93, 0.18), transparent 70%);
    filter: blur(8px);
    pointer-events: none;
}

.hero-card,
.info-card,
.metric-card,
.contact-card,
.support-card,
.timeline-card,
.category-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(217, 225, 234, 0.9);
    box-shadow: var(--shadow-card);
    border-radius: var(--radius-lg);
}

.hero-card {
    backdrop-filter: blur(6px);
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(199, 161, 93, 0.12);
    color: var(--hebosi-blue);
    font-size: 0.9rem;
    font-weight: 600;
}

.section-label {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(18, 54, 91, 0.08);
    color: var(--hebosi-blue);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-heading {
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.1;
    color: var(--hebosi-blue-deep);
}

.section-copy {
    color: var(--hebosi-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.metric-card {
    padding: 24px;
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--hebosi-blue);
}

.metric-label {
    margin-top: 8px;
    color: var(--hebosi-muted);
    font-size: 0.92rem;
}

.info-card,
.support-card,
.category-card,
.contact-card,
.timeline-card {
    padding: 28px;
}

.catalog-card {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 20px;
    padding: 22px;
    border: 1px solid rgba(217, 225, 234, 0.95);
    background: rgba(255, 255, 255, 0.94);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.catalog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.catalog-card img {
    width: 112px;
    height: 112px;
    object-fit: contain;
    border-radius: 16px;
    background: #f7f9fc;
}

.catalog-card span {
    color: var(--hebosi-gold);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.catalog-card h3 {
    margin-top: 7px;
    color: var(--hebosi-blue);
    font-size: 1.18rem;
    font-weight: 800;
}

.catalog-card p {
    margin-top: 9px;
    color: var(--hebosi-muted);
    font-size: .9rem;
    line-height: 1.7;
}

.catalog-card b {
    display: block;
    margin-top: 9px;
    color: var(--hebosi-ink);
    font-size: .78rem;
}

.download-card {
    display: flex;
    flex-direction: column;
    min-height: 240px;
    padding: 28px;
    border: 1px solid rgba(217, 225, 234, 0.9);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-card);
}

.download-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.download-card .file-type { color: var(--hebosi-gold); font-size: .75rem; font-weight: 800; letter-spacing: .1em; }
.download-card h3 { margin-top: 12px; color: var(--hebosi-blue); font-size: 1.3rem; font-weight: 800; }
.download-card p { margin-top: 10px; color: var(--hebosi-muted); line-height: 1.7; font-size: .92rem; }
.download-card a { margin-top: auto; padding-top: 20px; color: var(--hebosi-blue); font-weight: 800; }

.document-category-card {
    padding: 24px;
    border: 1px solid rgba(217, 225, 234, .95);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-card);
}

.document-category-card h3 { color: var(--hebosi-blue); font-size: 1.18rem; font-weight: 800; }
.document-category-links { display: grid; gap: 10px; margin-top: 17px; }
.document-category-links a { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; background: var(--hebosi-panel); color: var(--hebosi-blue); font-size: .88rem; font-weight: 700; }
.document-category-links a:hover { background: rgba(199,161,93,.16); transform: translateX(3px); }
.document-category-links .unavailable { color: var(--hebosi-muted); font-size: .82rem; }

.contact-qr-frame {
    height: 280px;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
}

.contact-qr-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.contact-info-card h2,
.contact-form-card h2 {
    margin-top: 12px;
}

.contact-window-card {
    padding: 24px;
}

.contact-window-card .contact-qr-frame {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.industry-nav-chip {
    padding: 8px 14px;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--hebosi-blue);
    font-weight: 700;
}

.industry-nav-chip:hover { background: var(--hebosi-blue); color: #fff; }

.industry-case-section { padding: 80px 0; }
.industry-case-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; align-items: start; }
.industry-case-grid.reverse > img { order: initial; }
.industry-case-grid > img { display: none; }
.industry-case-grid > div { width: 100%; max-width: 1120px; margin: 0 auto; }
.industry-case-grid h2 { margin-top: 16px; color: var(--hebosi-blue); font-size: clamp(2rem, 3vw, 3rem); font-weight: 800; }
.application-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 30px; }
.application-list > div { overflow: hidden; border: 1px solid var(--hebosi-line); border-radius: 18px; background: #fff; box-shadow: 0 10px 24px rgba(12, 41, 69, .08); }
.application-scene-image { display: block; width: 100%; aspect-ratio: 365 / 288; object-fit: contain; background: #f1f5f9; }
.application-list b { display: block; padding: 18px 18px 0; color: var(--hebosi-blue-deep); font-size: 1.12rem; font-weight: 800; line-height: 1.45; }
.application-list span { display: block; padding: 8px 18px 19px; color: #42617e; font-size: .96rem; font-weight: 600; line-height: 1.55; }
.application-list > div { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.application-list > div:hover { transform: translateY(-3px); border-color: rgba(18,54,91,.34); box-shadow: 0 16px 32px rgba(12,41,69,.14); }

@media (max-width: 900px) { .industry-case-grid { gap: 28px; } .application-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 560px) { .application-list { grid-template-columns: 1fr; } }

.product-spec-thumb {
    width: 100%;
    height: 150px;
    object-fit: contain;
    background: #f6f8fb;
    border-radius: 16px;
    padding: 10px;
}

.product-spec-thumb-sm { height: 112px; }

.brand-film {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 22px;
    background: #081e34;
    object-fit: contain;
}

/* Product center: keep every product line on one clear visual system. */
.products-page .product-category-nav { box-shadow: 0 8px 20px rgba(12, 41, 69, .05); }
.products-page .product-center-section { padding: 88px 0; }
.products-page .product-center-section .section-label { letter-spacing: .12em; }
.products-page .product-center-section h2 { letter-spacing: -.025em; }
.products-page .category-card { height: 100%; padding: 26px; display: flex; flex-direction: column; }
.products-page .category-card .cta-link { margin-top: auto; }
.products-page .product-spec-thumb { height: 190px; object-fit: contain; padding: 12px; background: #f8fafc; }
.products-page #fiber img,
.products-page #photoelectric img,
.products-page #capacitive img { object-fit: contain !important; padding: 24px; background: #f8fafc; }

.product-safety-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .88fr); gap: 64px; align-items: center; padding: 42px; border-radius: 30px; background: linear-gradient(135deg, #0b2642, #163f68); color: #fff; box-shadow: 0 24px 55px rgba(12, 41, 69, .18); }
.product-safety-copy .section-label { background: rgba(255,255,255,.13); color: #fff; }
.product-safety-copy h2 { margin-top: 18px; font-size: clamp(2.25rem, 4vw, 3.5rem); font-weight: 800; line-height: 1.15; }
.product-safety-copy > p { max-width: 620px; margin-top: 22px; color: #dce8f4; font-size: 1.05rem; line-height: 1.9; }
.product-safety-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.product-safety-points span { padding: 8px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #fff; font-size: .86rem; }
.product-safety-image { min-height: 360px; display: grid; place-items: center; border-radius: 24px; overflow: hidden; background: #fff; }
.product-safety-image img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 900px) {
    .products-page .product-center-section { padding: 64px 0; }
    .product-safety-feature { grid-template-columns: 1fr; gap: 30px; padding: 28px; }
    .product-safety-image { min-height: 280px; }
}

.industry-application-film {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    background: #081e34;
    object-fit: contain;
}

.industry-application-showcase {
    --slide-duration: 5s;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 178px;
    grid-template-areas: "stage rail" "meta rail" "progress rail";
    grid-template-rows: minmax(0, 1fr) auto auto;
    width: 100%;
    max-width: 1120px;
    height: min(440px, calc(100vh - 180px));
    margin: 0 auto;
    overflow: hidden;
    overflow-anchor: none;
    border-radius: 22px;
    background: var(--hebosi-blue-deep);
}

/* 首页产品展示沿用行业方案的高清主图、缩略图轨道与进度表达。 */
.product-showcase { height: min(390px, calc(100vh - 220px)); }

.industry-application-viewport {
    grid-area: stage;
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    min-height: 0;
    overflow: hidden;
    border: 0;
    padding: 0;
    background: #f7f9fb;
    cursor: zoom-in;
}

.industry-application-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    background: #f7f9fb;
    opacity: 0;
    transition: opacity .28s ease;
}

.industry-application-image.is-visible { opacity: 1; }

.industry-application-rail {
    grid-area: rail;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    overflow-anchor: none;
    scroll-snap-type: y proximity;
    background: #09223d;
    scrollbar-width: thin;
    scrollbar-color: var(--hebosi-gold) transparent;
}

.industry-application-thumb {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 0;
    background: #183b5f;
    cursor: pointer;
    scroll-snap-align: center;
    opacity: .68;
    transition: opacity .2s ease, border-color .2s ease, transform .2s ease;
}

.industry-application-thumb:hover, .industry-application-thumb:focus-visible, .industry-application-thumb.is-selected { border-color: var(--hebosi-gold); opacity: 1; transform: scale(1.025); outline: none; }
.industry-application-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.industry-application-thumb span { position: absolute; right: 5px; bottom: 5px; min-width: 26px; border-radius: 99px; padding: 2px 5px; background: rgba(8,30,52,.82); color: #fff; font-size: .66rem; font-weight: 800; }

.industry-application-meta {
    grid-area: meta;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px 8px;
    color: #fff;
    font-size: .78rem;
    line-height: 1.2;
}

.industry-application-index { color: #bfd1e6; font-variant-numeric: tabular-nums; }
.industry-application-title { font-weight: 700; letter-spacing: .04em; }
.industry-application-hint { margin-left: auto; color: #bfd1e6; font-size: .7rem; white-space: nowrap; }

.industry-application-progress {
    grid-area: progress;
    height: 4px;
    overflow: hidden;
    background: rgba(255,255,255,.26);
}

.industry-application-progress > span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--hebosi-gold);
    transform: scaleX(0);
    transform-origin: left;
}

.industry-application-progress > span.is-running {
    animation: industry-application-progress var(--slide-duration) linear forwards;
}

@keyframes industry-application-progress { to { transform: scaleX(1); } }

.application-image-lightbox { width: min(1180px, 94vw); max-width: none; max-height: 94vh; overflow: visible; border: 0; border-radius: 18px; padding: 12px; background: #071b30; box-shadow: 0 28px 80px rgba(0,0,0,.55); }
.application-image-lightbox::backdrop { background: rgba(3, 14, 26, .82); backdrop-filter: blur(4px); }
.application-image-lightbox img { display: block; max-width: 100%; max-height: calc(94vh - 62px); margin: 0 auto; object-fit: contain; }
.application-image-lightbox p { margin: 10px 46px 0 6px; color: #fff; font-size: .9rem; font-weight: 700; }
.application-lightbox-close { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--hebosi-blue-deep); font-size: 1.55rem; line-height: 1; cursor: pointer; }

@media (max-width: 640px) {
    .brand-film { border-radius: 18px; }
    .industry-application-showcase { grid-template-columns: 1fr; grid-template-areas: "stage" "meta" "progress" "rail"; grid-template-rows: auto auto auto auto; height: auto; border-radius: 18px; }
    .product-showcase { height: auto; }
    .industry-application-viewport { height: auto; aspect-ratio: 16 / 10; }
    .industry-application-rail { flex-direction: row; max-width: 100%; min-height: 105px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; }
    .industry-application-thumb { flex-basis: 124px; width: 124px; }
    .industry-application-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .industry-application-progress > span.is-running { animation: none; }
}

.nav-download-entry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 11px;
    border-radius: 999px;
    font-weight: 800;
    white-space: nowrap;
}

.nav-download-entry { border: 1px solid rgba(255,255,255,.45); color: #fff; }
.nav-download-entry:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-download-mobile { color: #fff; font-weight: 700; }
.icp-record a { color: inherit; text-decoration: none; }
.icp-record a:hover { color: #fff; text-decoration: underline; }

@media (min-width: 1024px) {
    nav > div > div > .hidden.lg\:flex.items-center.space-x-8 {
        gap: 16px !important;
        margin-left: auto;
    }

    nav > div > div > .hidden.lg\:flex.items-center.space-x-8 > a {
        margin-left: 0 !important;
        font-size: .78rem;
    }

    nav .nav-download-entry {
        padding: 7px 10px;
        font-size: .76rem;
    }
}

/* Keep the full navigation usable on narrow desktop screens. */
@media (min-width: 1024px) and (max-width: 1180px) {
    nav > div > div > .hidden.lg\:flex.items-center.space-x-8 {
        display: none !important;
    }

    nav > div > div > button.lg\:hidden {
        display: block !important;
    }

    nav #mobile-menu.lg\:hidden.open {
        display: block !important;
    }
}

@media (max-width: 640px) {
    nav a.flex .text-lg { font-size: .76rem; line-height: 1.15; }
    nav a.flex .text-xs { font-size: .62rem; }
}

@media (max-width: 480px) {
    .catalog-card { grid-template-columns: 84px 1fr; gap: 14px; padding: 18px; }
    .catalog-card img { width: 84px; height: 84px; }
}

.info-card:hover,
.support-card:hover,
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--hebosi-blue), var(--hebosi-blue-soft));
    color: var(--hebosi-white);
    box-shadow: 0 10px 24px rgba(18, 54, 91, 0.2);
}

.accent-rule {
    width: 72px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--hebosi-gold), rgba(199, 161, 93, 0.15));
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--hebosi-white);
    box-shadow: var(--shadow-card);
}

.data-table thead {
    background: linear-gradient(90deg, var(--hebosi-blue-deep), var(--hebosi-blue));
    color: var(--hebosi-white);
}

.data-table th,
.data-table td {
    padding: 16px 18px;
    border-bottom: 1px solid #ebf0f5;
    text-align: left;
    font-size: 0.95rem;
}

.data-table tbody tr:hover {
    background: rgba(18, 54, 91, 0.03);
}

.table-note {
    padding: 16px 18px;
    border-left: 4px solid var(--hebosi-gold);
    background: rgba(199, 161, 93, 0.08);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--hebosi-muted);
}

.banner-panel {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(11, 38, 66, 0.98), rgba(18, 54, 91, 0.9)),
        #12365b;
    color: var(--hebosi-white);
    box-shadow: var(--shadow-soft);
}

.banner-panel::before {
    content: "";
    position: absolute;
    inset: -30% auto auto -10%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(199, 161, 93, 0.22), transparent 68%);
}

.banner-panel::after {
    content: "";
    position: absolute;
    inset: auto -6% -30% auto;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 72%);
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--hebosi-blue);
}

.cta-link:hover {
    color: var(--hebosi-gold);
    transform: translateX(4px);
}

.timeline-card {
    position: relative;
}

.timeline-card::before {
    content: "";
    position: absolute;
    left: 34px;
    top: 70px;
    bottom: 28px;
    width: 2px;
    background: linear-gradient(var(--hebosi-gold), rgba(199, 161, 93, 0.15));
}

.timeline-item {
    position: relative;
    padding-left: 64px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 24px;
    top: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 4px solid var(--hebosi-white);
    background: var(--hebosi-gold);
    box-shadow: 0 0 0 1px rgba(199, 161, 93, 0.4);
}

.floating {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

#mobile-menu.open {
    max-height: 420px;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--hebosi-gold);
    box-shadow: 0 0 0 4px rgba(199, 161, 93, 0.16);
}

.contact-list li,
.bullet-list li {
    position: relative;
    padding-left: 18px;
}

.contact-list li::before,
.bullet-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hebosi-gold);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #eef2f6;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--hebosi-blue), var(--hebosi-blue-soft));
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--hebosi-blue-deep);
}

@media (max-width: 768px) {
    .hero-grid::after,
    .section-shell::before,
    .banner-panel::before,
    .banner-panel::after {
        display: none;
    }

    .timeline-card::before {
        left: 23px;
    }

    .timeline-item {
        padding-left: 52px;
    }

    .timeline-item::before {
        left: 14px;
    }
}
