:root {
    --ink: #18212f;
    --muted: #647184;
    --line: #e4e9ef;
    --soft: #f5f8fb;
    --panel: #ffffff;
    --brand: #0f766e;
    --brand-dark: #0b4f4a;
    --gold: #b78b42;
    --shadow: 0 18px 45px rgba(20, 35, 56, 0.08);
}

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

body {
    background: #fff;
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.7;
}

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

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(228, 233, 239, 0.9);
    backdrop-filter: blur(12px);
}

.header-content {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 8px;
    background: var(--brand-dark);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.brand-logo {
    width: auto;
    height: 75px;
    max-height: 75px;
    max-width: 180px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
}

.brand-text {
    display: grid;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 20px;
    letter-spacing: 0;
}

.brand-text small {
    color: var(--muted);
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    color: #3d4858;
    font-size: 15px;
}

.main-nav a {
    position: relative;
    padding: 26px 0;
}

.main-nav a::after {
    position: absolute;
    right: 0;
    bottom: 18px;
    left: 0;
    height: 2px;
    background: var(--brand);
    content: "";
    opacity: 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--brand-dark);
}

.main-nav a.active::after {
    opacity: 1;
}

.hero {
    background:
        linear-gradient(90deg, rgba(12, 48, 58, 0.92), rgba(15, 118, 110, 0.82)),
        url("https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=1800&q=80") center/cover;
    color: #fff;
    min-height: 620px;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 430px;
    gap: 70px;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 760px;
    font-size: 54px;
    font-weight: 650;
    line-height: 1.16;
    letter-spacing: 0;
    margin-bottom: 24px;
}

.hero p {
    max-width: 700px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
}

.btn-primary,
.btn-ghost {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 600;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
}

.btn-primary:hover {
    background: var(--brand-dark);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.42);
    color: #fff;
}

.hero-panel {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(16px);
    padding: 30px;
}

.panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding-bottom: 18px;
    margin-bottom: 24px;
}

.panel-top span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.panel-top strong {
    color: #fff;
    font-size: 20px;
}

.metric-row {
    display: grid;
    gap: 14px;
}

.metric-row div {
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    padding: 16px;
}

.metric-row b {
    color: var(--gold);
    font-size: 24px;
}

.metric-row span {
    color: rgba(255, 255, 255, 0.86);
}

.pulse-card {
    display: flex;
    gap: 14px;
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: 22px;
}

.pulse-card span {
    width: 10px;
    height: 10px;
    margin-top: 9px;
    border-radius: 50%;
    background: #53d6c8;
    box-shadow: 0 0 0 8px rgba(83, 214, 200, 0.12);
    flex: 0 0 auto;
}

.pulse-card p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.section {
    padding: 92px 0;
}

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

.section-heading {
    max-width: 720px;
    margin: 0 auto 44px;
    text-align: center;
}

.section-heading.left {
    margin-left: 0;
    text-align: left;
}

.section-heading h2 {
    font-size: 36px;
    line-height: 1.3;
    font-weight: 650;
}

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

.service-card,
.article-card,
.empty-state,
.category-panel,
.list-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.service-card {
    min-height: 250px;
    padding: 34px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover,
.article-card:hover,
.list-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.service-index {
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
}

.service-card h3 {
    margin: 26px 0 14px;
    font-size: 22px;
}

.service-card p,
.lead,
.article-card p,
.list-item p,
.empty-state p {
    color: var(--muted);
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    gap: 70px;
    align-items: start;
}

.lead {
    font-size: 17px;
    line-height: 1.95;
}

.check-list {
    display: grid;
    gap: 14px;
}

.check-list div {
    display: grid;
    gap: 6px;
    border-left: 3px solid var(--brand);
    background: #fff;
    padding: 20px 24px;
}

.check-list b {
    font-size: 18px;
}

.check-list span {
    color: var(--muted);
}

.article-card {
    overflow: hidden;
}

.article-thumb {
    display: flex;
    height: 170px;
    align-items: flex-end;
    background:
        linear-gradient(145deg, rgba(11, 79, 74, 0.92), rgba(22, 48, 71, 0.72)),
        url("https://images.unsplash.com/photo-1584982751601-97dcc096659c?auto=format&fit=crop&w=900&q=80") center/cover;
    color: #fff;
    padding: 20px;
}

.article-thumb span,
.list-thumb span {
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    padding: 6px 10px;
    font-size: 13px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.article-body {
    padding: 24px;
}

.article-meta {
    color: var(--gold);
    font-size: 13px;
    margin-bottom: 10px;
}

.article-body h3,
.list-item h2 {
    line-height: 1.45;
    margin-bottom: 12px;
}

.article-body h3 a:hover,
.list-item h2 a:hover {
    color: var(--brand);
}

.page-hero {
    background: linear-gradient(120deg, #f3f8f8, #ffffff);
    border-bottom: 1px solid var(--line);
    padding: 86px 0;
}

.page-hero.compact {
    padding: 64px 0;
}

.page-hero h1 {
    max-width: 900px;
    font-size: 42px;
    line-height: 1.25;
}

.page-hero p {
    max-width: 720px;
    color: var(--muted);
    margin-top: 16px;
    font-size: 17px;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.category-panel {
    position: sticky;
    top: 100px;
    padding: 22px;
}

.category-panel h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.category-panel a {
    display: block;
    border-radius: 6px;
    color: var(--muted);
    padding: 11px 12px;
}

.category-panel a:hover,
.category-panel a.active {
    background: #eef7f6;
    color: var(--brand-dark);
}

.article-list {
    display: grid;
    gap: 18px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.product-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
    display: grid;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.product-thumb {
    position: relative;
    display: flex;
    height: 170px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}

.product-thumb--empty {
    background: var(--soft);
}

.product-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-empty {
    color: var(--muted);
    font-size: 14px;
}

.product-tag {
    position: absolute;
    left: 14px;
    bottom: 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    color: #fff;
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.product-body {
    padding: 18px 18px 20px;
}

.product-meta {
    color: var(--gold);
    font-size: 12px;
    margin-bottom: 10px;
}

.product-title {
    font-size: 16px;
    line-height: 1.45;
    margin-bottom: 10px;
}

.product-desc {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.list-item {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 26px;
    padding: 20px;
}

.list-thumb {
    display: flex;
    min-height: 150px;
    align-items: flex-end;
    border-radius: 6px;
    background:
        linear-gradient(145deg, rgba(11, 79, 74, 0.9), rgba(24, 33, 47, 0.68)),
        url("https://images.unsplash.com/photo-1584982751601-97dcc096659c?auto=format&fit=crop&w=900&q=80") center/cover;
    color: #fff;
    padding: 16px;
}

.read-more,
.back-link {
    display: inline-block;
    color: var(--brand);
    font-weight: 600;
    margin-top: 14px;
}

.article-detail {
    max-width: 850px;
    margin: 0 auto;
}

.article-content {
    margin-top: 28px;
    color: #354155;
    font-size: 17px;
    line-height: 2;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2,
.article-content h3 {
    margin: 30px 0 14px;
    color: var(--ink);
}

.article-content ul,
.article-content ol {
    margin: 16px 0 22px 22px;
}

.text-content {
    max-width: 900px;
    margin: 0 auto;
    color: #354155;
    font-size: 17px;
    line-height: 2;
}

.text-content h3 {
    color: var(--ink);
    font-size: 24px;
    margin: 32px 0 12px;
}

.text-content p,
.text-content li {
    margin-bottom: 12px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px;
}

.contact-item h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.contact-item p {
    color: var(--muted);
}

.empty-state {
    grid-column: 1 / -1;
    padding: 42px;
    text-align: center;
}

.site-footer {
    background: #111c26;
    color: rgba(255, 255, 255, 0.74);
    padding: 56px 0 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 1fr;
    gap: 50px;
}

.footer-brand {
    color: #fff;
    font-size: 22px;
    font-weight: 650;
    margin-bottom: 14px;
}

.site-footer h4 {
    color: #fff;
    margin-bottom: 14px;
}

.site-footer a,
.site-footer p {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    margin-bottom: 8px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 36px;
    padding-top: 22px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 13px;
}

@media (max-width: 900px) {
    .header-content,
    .main-nav,
    .hero-actions,
    .footer-bottom {
        align-items: flex-start;
    }

    .header-content {
        flex-direction: column;
        padding: 14px 0;
    }

    .main-nav {
        width: 100%;
        flex-wrap: wrap;
        gap: 18px;
    }

    .main-nav a {
        padding: 0 0 8px;
    }

    .main-nav a::after {
        bottom: 0;
    }

    .hero {
        min-height: auto;
        padding: 70px 0;
    }

    .hero-grid,
    .two-column,
    .layout-with-sidebar,
    .footer-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 34px;
    }

    .hero-panel {
        max-width: 520px;
    }

    .service-grid,
    .article-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-panel {
        position: static;
    }

    .list-item {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .brand-text strong {
        font-size: 18px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 30px;
    }

    .section {
        padding: 64px 0;
    }

    .section-heading h2 {
        font-size: 28px;
    }
}

body {
    overflow-x: hidden;
}

.main-nav {
    white-space: nowrap;
}

.section-heading h2,
.article-body h3,
.list-item h2,
.site-footer p,
.contact-item p {
    overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 42px;
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero h1 {
        font-size: 46px;
    }

    .service-card {
        padding: 28px;
    }
}

@media (max-width: 900px) {
    .main-nav {
        flex-wrap: nowrap;
        gap: 24px;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .hero {
        padding: 64px 0;
    }

    .hero-panel {
        max-width: none;
    }

    .page-hero {
        padding: 64px 0;
    }

    .section-heading {
        margin-bottom: 32px;
        text-align: left;
    }
}

@media (max-width: 520px) {
    .brand-mark,
    .brand-logo {
        width: 40px;
        height: 40px;
        max-height: 40px;
    }

    .main-nav {
        gap: 18px;
        font-size: 14px;
    }

    .hero p,
    .page-hero p,
    .lead,
    .text-content,
    .article-content {
        font-size: 15px;
        line-height: 1.85;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 28px;
        width: 100%;
    }

    .btn-primary,
    .btn-ghost {
        width: 100%;
    }

    .hero-panel {
        padding: 22px;
    }

    .panel-top {
        display: grid;
        gap: 6px;
    }

    .metric-row div {
        padding: 14px;
    }

    .service-card,
    .article-body,
    .contact-item,
    .empty-state,
    .category-panel,
    .list-item {
        padding: 20px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-thumb {
        height: 140px;
    }

    .article-thumb {
        height: 140px;
    }

    .list-thumb {
        min-height: 132px;
    }

    .footer-grid {
        gap: 26px;
    }
}

@media (max-width: 380px) {
    .brand-text small {
        display: none;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 27px;
    }

    .section-heading h2 {
        font-size: 25px;
    }
}
