/* 鄂州沙霖商贸门户 — 计算机配件 · 通讯设备 · 日用百货（等见详情页） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scrollbar-gutter: stable;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: #070d0b;
    background-image:
        linear-gradient(180deg, rgba(7, 13, 11, 0.92) 0%, rgba(7, 13, 11, 0.97) 100%),
        url("../image/bg-page.jpg");
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    color: #e4ebe8;
    line-height: 1.6;
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }
}

a {
    color: #8ae8c0;
}

a:hover {
    color: #b8f5d8;
}

main {
    background: linear-gradient(180deg, rgba(8, 17, 14, 0.35), rgba(8, 17, 14, 0.55));
}

.container-global-wide {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 22px;
}

/* Header */
.header-navigation-premium {
    background: rgba(10, 15, 13, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(46, 125, 90, 0.28);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-flex-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    flex-wrap: wrap;
    gap: 12px;
}

.logo-text-premium h1 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #e8f5ee;
    letter-spacing: -0.02em;
}

.logo-sub {
    font-size: 0.78rem;
    color: #7ab89a;
    font-weight: 500;
    margin-top: 2px;
}

.navigation-links-ultra ul {
    display: flex;
    gap: 26px;
    list-style: none;
    flex-wrap: wrap;
}

.navigation-links-ultra a {
    text-decoration: none;
    font-weight: 600;
    color: #c8dfd4;
    font-size: 0.95rem;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.navigation-links-ultra a:hover,
.navigation-links-ultra a.active-link-bold {
    color: #8ae8c0;
    border-bottom-color: #3bb585;
}

.mobile-menu-trigger-dark {
    display: none;
    align-items: center;
    gap: 8px;
    background: rgba(30, 40, 35, 0.85);
    border: 1px solid #2b684b;
    color: #c0dfd0;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.95rem;
}

@media (max-width: 880px) {
    .navigation-links-ultra {
        display: none;
        width: 100%;
        margin-top: 12px;
        padding-top: 14px;
        border-top: 1px solid #1e4f3a;
    }
    .navigation-links-ultra.mobile-visible {
        display: block;
    }
    .navigation-links-ultra ul {
        flex-direction: column;
        gap: 14px;
        align-items: flex-start;
    }
    .mobile-menu-trigger-dark {
        display: inline-flex;
    }
}

/* Sections */
.section-block-massive {
    padding: 64px 0;
    scroll-margin-top: 72px;
}

.section-title-glow {
    font-size: 1.85rem;
    font-weight: 700;
    color: #f0fff8;
    text-align: center;
    margin-bottom: 10px;
}

.section-subhead-premium {
    text-align: center;
    color: #9ec4b4;
    font-size: 1rem;
    margin-bottom: 36px;
}

/* Hero（背景图：本地 static/image/bg-hero.jpg，来源见 SOURCES.txt） */
.hero-section-first {
    background-image:
        linear-gradient(135deg, rgba(6, 24, 18, 0.88), rgba(6, 18, 14, 0.9)),
        url("../image/bg-hero.jpg");
    background-size: cover;
    background-position: center;
    min-height: clamp(280px, 42vh, 520px);
}

.hero-main-title {
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    color: #fff;
    line-height: 1.25;
    font-weight: 700;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.hero-main-desc {
    font-size: 1.05rem;
    margin: 18px 0;
    color: #d4ebe0;
    max-width: 640px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0 22px;
}

.button-primary-glow {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2d8f5f, #1e6b45);
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #4abf88;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.button-primary-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.button-outline-dark {
    background: transparent;
    border-color: #3d9d6f;
    color: #b8f0d4 !important;
}

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.metric-chip {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #2e7f5a;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 0.9rem;
    color: #c8ebd9;
}

/* 首页首屏：单列介绍（证照见关于我们页） */
.hero-intro-single {
    max-width: 920px;
}

/* Product grid */
.product-grid-luxury {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.product-card-darkness {
    background: rgba(16, 26, 22, 0.88);
    border: 1px solid #2a5d47;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, border-color 0.2s;
    min-height: 100%;
}

.product-card-darkness:hover {
    transform: translateY(-4px);
    border-color: #48c78e;
}

.product-image-wide {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-bottom: 1px solid #255a42;
    background: #0c1612;
}

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

.category-hero-img-wrap {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #2f6b50;
    max-width: 720px;
    margin: 0 auto 24px;
}

.category-hero-photo {
    width: 100%;
    height: auto;
    display: block;
}

.contact-page-hero {
    background-image: linear-gradient(180deg, rgba(8, 17, 14, 0.92), rgba(8, 17, 14, 0.98));
    border-bottom: 1px solid #1e4f3a;
    padding-bottom: 32px;
}

/* 联系页：标题区与表单区间距收紧（避免双段留白） */
section.contact-section-tight-top.section-block-massive {
    padding-top: 0;
}

.contact-form-box {
    background: rgba(12, 22, 18, 0.92);
    border: 1px solid #2f6b50;
    border-radius: 16px;
    padding: 24px 22px 28px;
    max-width: 520px;
}

.contact-form-box h3 {
    font-size: 1.15rem;
    color: #e8fff2;
    margin-bottom: 16px;
}

.contact-form-box label {
    display: block;
    font-size: 0.88rem;
    color: #a8d4bc;
    margin-bottom: 6px;
    margin-top: 14px;
}

.contact-form-box label:first-of-type {
    margin-top: 0;
}

.contact-form-box input[type="text"],
.contact-form-box input[type="tel"],
.contact-form-box input[type="email"],
.contact-form-box select,
.contact-form-box textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #2f6b50;
    background: rgba(5, 12, 10, 0.9);
    color: #e4ebe8;
    font-size: 0.95rem;
    font-family: inherit;
}

.contact-form-box textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form-box .form-row-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    font-size: 0.86rem;
    color: #9ec4b4;
}

.contact-form-box .form-row-check input {
    margin-top: 3px;
}

.contact-form-box button[type="submit"] {
    margin-top: 20px;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form-note {
    font-size: 0.82rem;
    color: #7a9e8c;
    margin-top: 12px;
    line-height: 1.5;
}

/* Netlify 反垃圾：蜜罐字段对视觉隐藏，勿删 */
.hidden-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.product-info-bottom {
    padding: 18px 18px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-info-bottom h3 {
    font-size: 1.2rem;
    color: #f2fff8;
}

.product-description-text {
    color: #b8d4c8;
    font-size: 0.92rem;
}

.product-price-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(45, 120, 85, 0.35);
    border: 1px solid #3a8f65;
    color: #a8f0cc !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    align-self: flex-start;
}

/* Service grid */
.service-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.service-item-glossy {
    background: rgba(14, 28, 22, 0.75);
    border: 1px solid #2a5d47;
    border-radius: 16px;
    padding: 20px;
}

.service-item-glossy h3 {
    font-size: 1.05rem;
    color: #d8f5e8;
    margin: 10px 0 8px;
}

.service-item-glossy p {
    color: #a8c9b8;
    font-size: 0.9rem;
}

.svc-icon {
    width: 36px;
    height: 36px;
    color: #6ed4a4;
}

/* News */
.news-grid-dark {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.news-card-solid {
    background: rgba(14, 28, 22, 0.8);
    border: 1px solid #2f6b50;
    border-radius: 16px;
    padding: 20px;
    height: 100%;
    transition: border-color 0.2s;
}

a:hover .news-card-solid {
    border-color: #52c797;
}

.news-title-head {
    font-weight: 700;
    color: #e8fff2;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

/* Contact */
.contact-split-luxury {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
}

.contact-split-luxury > .contact-info-side,
.contact-split-luxury > .contact-form-box {
    min-width: 0;
}

.contact-info-side {
    flex: 1 1 300px;
}

/* 首页「联系我们」单列居中（无右侧提示框时使用） */
.contact-block-centered {
    max-width: 720px;
    margin: 0 auto;
}

.contact-block-centered .contact-info-side {
    flex: none;
    width: 100%;
}

.contact-info-side h3 {
    font-size: 1.35rem;
    color: #e8fff2;
}

.contact-line-detail {
    margin: 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #c5e5d6;
    font-size: 0.95rem;
}

.contact-line-detail svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: #6ed4a4;
}

/* Legal / prose */
.prose-legal {
    max-width: 820px;
    margin: 0 auto;
}

.prose-legal h2 {
    font-size: 1.35rem;
    color: #e8fff2;
    margin: 28px 0 12px;
}

.prose-legal h3 {
    font-size: 1.1rem;
    color: #c8f0dc;
    margin: 22px 0 10px;
}

.prose-legal p,
.prose-legal li {
    color: #c0d8cc;
    margin-bottom: 12px;
    font-size: 0.96rem;
}

.prose-legal ul {
    margin: 8px 0 16px 1.2rem;
}

.license-frame {
    margin: 24px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2f6b50;
    background: #050a08;
}

.license-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    margin: 16px 0;
}

.info-table th,
.info-table td {
    border: 1px solid #2f5a45;
    padding: 10px 12px;
    text-align: left;
}

.info-table th {
    background: rgba(30, 70, 52, 0.5);
    color: #c8f0dc;
    width: 32%;
}

.info-table td {
    color: #b8d4c8;
}

/* Footer */
.footer-deep {
    background: #0b1510;
    border-top: 2px solid #1d4d37;
    padding: 32px 0 24px;
    margin-top: 0;
}

.footer-flex-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.copyright-text-light {
    color: #8eb9a8;
    font-size: 0.88rem;
}

.legal-links-group a {
    color: #aad7c5;
    margin-right: 18px;
    text-decoration: none;
    font-size: 0.9rem;
}

.legal-links-group a:hover {
    text-decoration: underline;
}

.disclaimer-wide {
    margin-top: 18px;
    font-size: 0.78rem;
    color: #6d9a86;
    line-height: 1.55;
}

.disclaimer-wide p + p {
    margin-top: 8px;
}

/* 窄屏：压缩留白、联系页表单全宽、避免横向溢出 */
@media (max-width: 640px) {
    .section-block-massive {
        padding: 40px 0;
        scroll-margin-top: 64px;
    }

    section.contact-section-tight-top.section-block-massive {
        padding-top: 0;
    }

    .container-global-wide {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section-title-glow {
        font-size: 1.45rem;
        line-height: 1.3;
    }

    .section-subhead-premium {
        font-size: 0.92rem;
        margin-bottom: 28px;
    }

    .contact-form-box {
        max-width: none;
        width: 100%;
    }

    .contact-split-luxury {
        gap: 24px;
    }

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

    .legal-links-group a {
        margin-right: 14px;
    }

    .info-table {
        font-size: 0.85rem;
    }

    .info-table th,
    .info-table td {
        padding: 8px 8px;
        word-break: break-word;
    }
}
