﻿:root {
    --bg: #f3f7fb;
    --panel: #ffffff;
    --panel-alt: #0d223a;
    --panel-soft: #e8f1fb;
    --text: #112033;
    --muted: #60708a;
    --line: rgba(17, 32, 51, 0.12);
    --brand: #0e6ba8;
    --brand-strong: #073b5c;
    --accent: #ff8a3d;
    --shadow: 0 22px 60px rgba(10, 32, 56, 0.14);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --container: min(1320px, calc(100vw - 16px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    margin: 0;
    background: white;
    font-family: "Microsoft YaHei", "Segoe UI", "Trebuchet MS", sans-serif;
}

[id] {
    scroll-margin-top: 110px;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-shell {
    width: var(--container);
    margin: 0 auto;
    padding: 24px 0 48px;
}

.site-header,
.site-footer,
.hero,
.section,
.page-hero,
.product-hero {
    backdrop-filter: blur(14px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    margin-bottom: 24px;
    padding: 16px 28px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(17, 32, 51, 0.08);
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(10, 32, 56, 0.08);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    display: block;
    height: 58px;
    width: auto;
    object-fit: contain;
}


.brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--brand), var(--brand-strong));
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.brand-copy {
    display: grid;
    gap: 4px;
}

.brand-copy strong {
    font-family: Bahnschrift, "Trebuchet MS", sans-serif;
    font-size: 1.05rem;
}

.brand-copy small,
.main-nav a,
.hero-text,
.section-heading p,
.summary,
.footer-contact span,
.product-subtitle,
.product-summary,
.detail-card p,
.category-card-body p,
.product-card-body p,
.product-card-body span {
    color: var(--muted);
}

.main-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.main-nav a {
    font-size: 0.95rem;
}

.menu-toggle {
    display: none;
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    background: var(--panel-soft);
    color: var(--brand-strong);
    font-weight: 600;
}

.hero,
.page-hero,
.product-hero,
.section,
.site-footer {
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    padding: 28px;
    margin-bottom: 28px;
}

.eyebrow,
.footer-tag {
    margin: 0 0 12px;
    color: var(--brand);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: Bahnschrift, "Arial Narrow", sans-serif;
    letter-spacing: 0.02em;
}

.hero h1,
.page-hero h1,
.product-info h1 {
    font-size: clamp(2.2rem, 4vw, 4.2rem);
    line-height: 1.02;
}

.hero-text,
.product-summary,
.detail-card p,
.section-heading p,
.page-hero p {
    font-size: 1rem;
    line-height: 1.75;
}

.hero-actions,
.stats-grid,
.feature-grid,
.category-grid,
.product-grid,
.detail-layout,
.thumb-grid,
.chip-row,
.highlight-list {
    display: grid;
}

.hero-actions {
    grid-template-columns: repeat(2, max-content);
    gap: 14px;
    margin: 28px 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 700;
}

.button-primary {
    background: linear-gradient(135deg, var(--brand), #1690da);
    color: #fff;
}

.button-secondary {
    background: var(--panel-soft);
    color: var(--brand-strong);
}

.stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.stat-card,
.feature-card,
.detail-card {
    padding: 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
}

.stat-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 2rem;
}

.hero-visual {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    border-radius: calc(var(--radius-lg) - 8px);
    background: linear-gradient(145deg, #dce9f5, #fefefe);
}

.hero-visual img,
.category-card img,
.product-image img,
.product-cover img,
.thumb-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-floating-card {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: min(280px, calc(100% - 36px));
    padding: 18px;
    border-radius: var(--radius-md);
    background: rgba(7, 29, 49, 0.88);
    color: #fff;
}

.hero-floating-card p,
.hero-floating-card span {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.hero-floating-card h3 {
    margin: 8px 0 6px;
    font-size: 1.3rem;
}

.section,
.page-hero,
.product-hero,
.site-footer {
    margin-bottom: 28px;
    padding: 28px;
}

.section-dark {
    background: linear-gradient(145deg, #0d223a, #14385d);
    color: #f6fbff;
}

.section-dark .eyebrow,
.section-dark .section-heading p,
.section-dark .feature-card p {
    color: rgba(246, 251, 255, 0.7);
}

.section-heading {
    display: grid;
    gap: 8px;
    margin-bottom: 22px;
}

.split-heading {
    grid-template-columns: 1fr auto;
    align-items: end;
}

.section-link,
.text-link {
    color: var(--brand);
    font-weight: 700;
}

.category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.category-card,
.product-card {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--panel);
    border: 1px solid var(--line);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-card:hover,
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(7, 29, 49, 0.12);
}

.category-card {
    display: grid;
    min-height: 310px;
}

.category-card img {
    object-fit: contain;
    height: 220px;
}

.category-card-body,
.product-card-body {
    padding: 18px;
}

.category-card-body h3,
.product-card-body h3 {
    margin: 6px 0 6px;
    font-size: 1.4rem;
}

.feature-grid,
.product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-card h3 {
    margin-bottom: 10px;
}

.product-image {
    display: block;
    aspect-ratio: 1 / 0.82;
    background: #edf3f8;
}

.summary {
    min-height: 68px;
}

.page-hero {
    background:
        radial-gradient(circle at right top, rgba(255, 138, 61, 0.16), transparent 20%),
        rgba(255, 255, 255, 0.86);
}

.compact-section {
    padding-top: 22px;
}

.chip-row {
    grid-template-columns: repeat(auto-fit, minmax(120px, max-content));
    gap: 10px;
    margin-bottom: 20px;
}

.chip {
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--panel-soft);
    color: var(--brand-strong);
    font-weight: 700;
}

.chip.active {
    background: var(--brand-strong);
    color: #fff;
}

.product-hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
}

.product-cover {
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 1 / 0.82;
    background: #edf3f8;
    margin-bottom: 12px;
}

.thumb-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.thumb-grid img {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm);
}

.product-subtitle {
    margin: 8px 0 14px;
}

.highlight-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 24px;
}

.highlight-list span {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--panel-soft);
    font-weight: 700;
    color: var(--brand-strong);
}

.detail-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.detail-layout > :only-child {
    grid-column: 1 / -1;
}

.site-footer {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    background: linear-gradient(145deg, #071d31, #13395c);
    color: #fff;
}

.footer-contact {
    display: grid;
    gap: 12px;
    align-content: start;
}

.footer-contact a {
    font-size: 1.1rem;
    font-weight: 700;
}


.home-template {
    display: grid;
    gap: 56px;
    padding: 18px 0 48px;
    background: white;
}

.home-template .section,
.home-template .hero,
.home-template .section-dark {
    background: transparent;
    border: 0;
    box-shadow: none;
    margin-bottom: 0;
    padding: 0;
    border-radius: 0;
}

.home-hero-block,
.home-intro-grid,
.home-cta-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.95fr);
    gap: 54px;
    align-items: start;
}

.home-hero-block {
    padding-top: 8px;
}

.home-hero-image,
.home-side-image,
.why-backdrop,
.value-card,
.template-category-card {
    position: relative;
}

.home-hero-image img,
.home-side-image img,
.why-backdrop > img,
.value-card > img,
.template-category-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.home-hero-image {
    min-height: 440px;
}

.home-copy-card {
    background: #ffffff;
    color: #151515;
    padding: 32px 36px;
    border: 1px solid rgba(17, 32, 51, 0.08);
    box-shadow: 0 12px 28px rgba(10, 32, 56, 0.06);
}

.home-copy-card h1,
.home-copy-card h2,
.section-label {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0;
    color: #111;
}

.home-copy-card h1 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.06;
    margin-bottom: 18px;
}

.home-copy-card h2 {
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    margin-bottom: 22px;
}

.home-copy-card p {
    margin: 0 0 18px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
}

.home-copy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.section-label {
    width: fit-content;
    margin: 0 auto 32px;
    padding: 12px 42px;
    background: white;
    font-size: clamp(1.7rem, 2.6vw, 2.3rem);
    font-weight: 700;
}

.home-intro-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
    align-items: start;
}

.home-side-image {
    min-height: 560px;
}

.home-cta-grid {
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 0.72fr);
    align-items: start;
}

.home-cta-grid .home-side-image {
    min-height: 345px;
}

.home-why-block,
.home-values-block,
.home-categories-block {
    display: grid;
    gap: 28px;
}

.why-backdrop {
    min-height: 620px;
    overflow: hidden;
}

.why-overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 14, 19, 0.42);
}

.why-grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: center;
    padding: 0 90px;
}

.why-grid article,
.value-overlay {
    color: #fff8ef;
}

.why-grid h3,
.value-overlay h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    line-height: 1.15;
    margin-bottom: 16px;
}

.why-grid p,
.value-overlay p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 245, 230, 0.92);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
}

.value-card {
    min-height: 610px;
    background: white;
    padding: 14px;

}

.value-card > img {
    min-height: 100%;
    border: 0;
}

.value-overlay {
    position: absolute;
    inset: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.42));
}

.home-categories-block {
    padding-bottom: 24px;
}

.template-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 44px;
    align-items: start;
}

.template-category-card {
    display: grid;
    gap: 18px;
}

.template-category-card img {
    aspect-ratio: 1 / 1.12;
    background: white;
    object-fit: contain;
    padding: 18px;
}

.template-category-card span {
    display: inline-block;
    width: fit-content;
    padding: 10px 18px;
    background: #ffffff;
    color: #111;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
}

.frame-corners::before,
.frame-corners::after {
    content: "";
    position: absolute;
    width: 42px;
    height: 42px;
    pointer-events: none;
}

.frame-left::before {
    top: -22px;
    left: -22px;
    border-top: 1px solid rgba(17, 32, 51, 0.28);
    border-left: 1px solid rgba(17, 32, 51, 0.28);
}

.frame-left::after {
    bottom: -22px;
    left: -22px;
    border-bottom: 1px solid rgba(17, 32, 51, 0.28);
    border-left: 1px solid rgba(17, 32, 51, 0.28);
}

.frame-right::before {
    top: -22px;
    right: -22px;
    border-top: 1px solid rgba(17, 32, 51, 0.28);
    border-right: 1px solid rgba(17, 32, 51, 0.28);
}

.frame-right::after {
    bottom: -22px;
    right: -22px;
    border-bottom: 1px solid rgba(17, 32, 51, 0.28);
    border-right: 1px solid rgba(17, 32, 51, 0.28);
}

.why-backdrop.frame-corners::before,
.why-backdrop.frame-corners::after,
.value-card.frame-corners::before,
.value-card.frame-corners::after,
.template-category-card.frame-corners::before,
.template-category-card.frame-corners::after {
    display: none;
}

@media (max-width: 980px) {
    .hero,
    .product-hero,
    .site-footer,
    .detail-layout,
    .category-grid,
    .feature-grid,
    .product-grid,
    .home-hero-block,
    .home-intro-grid,
    .home-cta-grid,
    .why-grid,
    .values-grid,
    .template-category-grid {
        grid-template-columns: 1fr;
    }

    .site-header {
        align-items: start;
        flex-wrap: wrap;
        padding: 14px 18px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .brand-logo {
        height: 48px;
    }

    .main-nav {
        display: none;
        width: 100%;
        padding-top: 8px;
        border-top: 1px solid var(--line);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .main-nav.is-open {
        display: grid;
    }

    .split-heading {
        grid-template-columns: 1fr;
    }

    .why-grid {
        padding: 42px 24px;
        align-items: start;
    }

    .home-side-image,
    .home-cta-grid .home-side-image,
    .home-hero-image,
    .why-backdrop,
    .value-card {
        min-height: 320px;
    }

    .section-label {
        padding: 12px 26px;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100vw - 12px, 100%);
        padding-top: 12px;
    }

    .hero,
    .section,
    .page-hero,
    .product-hero,
    .site-footer {
        padding: 20px;
    }

    .hero-actions,
    .stats-grid,
    .highlight-list {
        grid-template-columns: 1fr;
    }

    .thumb-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Blog pages */
.blog-hero {
    position: relative;
    border-radius: var(--radius-lg);
    min-height: 320px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background:
        linear-gradient(90deg, rgba(8, 22, 40, 0.74), rgba(8, 22, 40, 0.18)),
        var(--blog-hero);
    background-size: cover;
    background-position: center;
}

.blog-hero--detail {
    min-height: 260px;
}

.blog-hero-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: center;
    gap: 14px;
    padding: clamp(22px, 5vw, 64px);
    color: #fff;
}

.blog-hero-overlay h1 {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.05;
    margin: 0;
    max-width: 20ch;
}

.blog-hero-overlay p {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 58ch;
}

.blog-bar {
    margin-top: 18px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(17, 32, 51, 0.08);
    box-shadow: 0 10px 30px rgba(10, 32, 56, 0.08);
}

.blog-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 22px;
}

.blog-bar-inner h2 {
    font-size: 1.05rem;
    margin: 0;
}

.blog-crumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.95rem;
}

.blog-crumb a {
    color: inherit;
}

.blog-crumb-sep {
    opacity: 0.7;
}

.blog-list {
    margin-top: 22px;
}

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

.blog-card-wide {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(17, 32, 51, 0.1);
    overflow: hidden;
    min-height: 220px;
}

.blog-card-media {
    background: #0d223a;
}

.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-fallback {
    height: 100%;
    width: 100%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), transparent 60%),
        linear-gradient(135deg, rgba(14, 107, 168, 0.22), rgba(7, 59, 92, 0.65));
}

.blog-card-content {
    padding: 18px 18px 20px;
    display: grid;
    gap: 10px;
    align-content: start;
}

.blog-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.95rem;
}

.blog-card-title {
    font-size: 1.2rem;
    margin: 0;
    color: var(--text);
}

.blog-card-excerpt {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-button {
    width: fit-content;
    margin-top: 4px;
    padding: 0 22px;
}

.blog-empty {
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px dashed rgba(17, 32, 51, 0.22);
    color: var(--muted);
    grid-column: 1 / -1;
}

.blog-pager {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.blog-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(14, 107, 168, 0.08);
    color: var(--brand-strong);
    border: 1px solid rgba(17, 32, 51, 0.1);
    font-weight: 700;
}

.blog-page-link.is-disabled {
    opacity: 0.4;
}

.blog-page-current {
    color: var(--muted);
    font-weight: 600;
}

.blog-detail {
    margin-top: 22px;
}

.blog-article {
    padding: 26px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(17, 32, 51, 0.1);
}

.blog-article-cover {
    width: 100%;
    height: min(420px, 55vw);
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
}

.blog-article-lead {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.blog-article-body {
    color: var(--text);
    line-height: 1.85;
    font-size: 1rem;
}

.blog-article-actions {
    margin-top: 18px;
}

@media (max-width: 980px) {
    .blog-grid-wide {
        grid-template-columns: 1fr;
    }

    .blog-card-wide {
        grid-template-columns: 1fr;
    }
}
