:root {
    --accent: #a82d2f;
    --accent-soft: #f8ecec;
    --ink: #292929;
    --muted: #6e7378;
    --line: #e5e7e9;
    --surface: #ffffff;
    --page: #f6f7f8;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--page);
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--page);
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: 14px;
    letter-spacing: 0;
    overflow-x: hidden;
}

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

.tel-link,
.consult-link,
.contact-phone-link,
.footer-phone-link {
    text-decoration: none;
    touch-action: manipulation;
}

.tel-link,
.consult-link {
    color: var(--accent);
    font-weight: 800;
}

.tel-link:hover,
.consult-link:hover,
.contact-phone-link:hover,
.footer-phone-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-phone-link,
.footer-phone-link {
    display: inline-block;
}

.contact-phone-link {
    color: var(--accent);
}

img {
    max-width: 100%;
}

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

.topbar {
    min-height: 36px;
    display: flex;
    align-items: center;
    color: #686868;
    background: #fff;
    border-bottom: 1px solid #ededed;
    font-size: 12px;
}

.topbar-inner {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.topbar-right,
.topbar-account,
.topbar-policy {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
}

.topbar-right {
    gap: 18px;
    margin-left: auto;
}

.topbar-account a {
    padding: 0 10px;
    color: var(--accent);
    font-weight: 600;
}

.topbar-account a:first-child {
    padding-left: 0;
}

.topbar-account a + a {
    border-left: 1px solid #e4e5e6;
}

.topbar-policy a {
    padding: 0 12px;
    border-left: 1px solid #e4e5e6;
}

.topbar-policy a:first-child {
    border-left: 0;
}

.topbar-policy a:last-child {
    padding-right: 0;
}

.topbar-policy a:hover {
    color: var(--accent);
}

.topbar-account a:hover {
    color: var(--accent-2);
}

.site-header {
    background: #fff;
    border-bottom: 3px solid var(--accent);
}

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

.brand img {
    display: block;
    height: 58px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.header-search {
    min-width: min(100%, 360px);
    flex: 1 1 360px;
}

.header-search-box {
    display: flex;
    min-height: 42px;
    overflow: hidden;
    border: 2px solid var(--accent);
    border-radius: 999px;
    background: #fff;
}

.header-search-box input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 0 16px;
    color: var(--ink);
    background: transparent;
    font: inherit;
}

.header-search-box button {
    width: 92px;
    border: 0;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.header-search-hot {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.header-search-hot a:hover {
    color: var(--accent);
}

.site-header nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
    font-size: 16px;
    font-weight: 600;
}

.site-header nav a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    white-space: nowrap;
}

.home-hero > *,
.product-grid > *,
.footer-main > *,
.detail-layout > * {
    min-width: 0;
}

.site-header nav a:hover {
    color: var(--accent);
}

.breadcrumb {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 9px;
    overflow: hidden;
    color: var(--muted);
    white-space: nowrap;
}

.breadcrumb a {
    color: var(--accent);
}

.detail-hero {
    min-height: 390px;
    display: grid;
    grid-template-columns: minmax(360px, 44%) minmax(0, 1fr);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 4px solid var(--accent);
    border-radius: 8px;
}

.hero-media {
    min-height: 386px;
    background: #e9ecee;
}

.hero-media img {
    width: 100%;
    height: 100%;
    min-height: 386px;
    display: block;
    object-fit: cover;
}

.hero-info {
    min-width: 0;
    padding: 38px 42px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-badges span,
.hero-badges b {
    padding: 5px 9px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.2;
}

.hero-badges span {
    color: var(--accent);
    background: var(--accent-soft);
}

.hero-badges b {
    color: #6a4a00;
    background: #fff3cf;
    font-weight: 600;
}

h1 {
    margin: 20px 0 26px;
    font-size: 30px;
    line-height: 1.45;
    font-weight: 700;
    word-break: break-word;
}

.hero-info dl {
    margin: 0;
    border-top: 1px solid var(--line);
}

.hero-info dl div {
    min-height: 48px;
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.hero-info dt {
    color: var(--muted);
}

.hero-info dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
    padding-top: 28px;
    padding-bottom: 48px;
}

.detail-content,
.contact-panel,
.related-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.detail-content {
    min-width: 0;
    padding: 30px 34px 40px;
}

.section-heading {
    margin-bottom: 26px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.section-heading span,
.contact-panel > span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
}

.section-heading h2,
.related-panel h2 {
    margin: 5px 0 0;
    font-size: 22px;
    line-height: 1.3;
}

.rich-content {
    overflow: hidden;
    font-size: 15px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.rich-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 18px auto;
}

.rich-content table {
    max-width: 100%;
    border-collapse: collapse;
}

.rich-content p,
.rich-content div {
    max-width: 100%;
}

.empty-content {
    color: var(--muted);
}

aside {
    display: grid;
    gap: 18px;
}

.contact-panel,
.related-panel {
    padding: 22px;
}

.contact-panel strong {
    display: block;
    margin-top: 8px;
    color: var(--accent);
    font-size: 24px;
    line-height: 1.3;
}

.contact-panel p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.related-panel h2 {
    margin: 0 0 12px;
}

.related-panel > a {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    font-size: 13px;
    line-height: 1.45;
}

.related-panel > a:hover {
    color: var(--accent);
}

.related-panel img {
    width: 72px;
    height: 56px;
    display: block;
    border-radius: 5px;
    object-fit: cover;
}

.related-panel small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.site-footer {
    padding: 28px 0 0;
    color: #4e5357;
    background: #f0f2f5;
}

.footer-shell {
    background: #fff;
}

.footer-main {
    min-height: 270px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 42px;
    align-items: center;
    padding: 42px 48px;
}

.footer-groups {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(90px, 1fr));
    gap: 32px;
    align-self: start;
    padding-top: 8px;
}

.footer-group {
    min-width: 0;
}

.footer-group h2 {
    margin: 0 0 18px;
    color: var(--accent);
    font-size: 17px;
    line-height: 1.3;
}

.footer-group a {
    display: block;
    margin-top: 12px;
    color: #3f4346;
    font-size: 14px;
    line-height: 1.5;
}

.footer-group a:hover,
.footer-bottom a:hover {
    color: var(--accent);
}

.footer-contact {
    min-height: 190px;
    padding-left: 40px;
    border-left: 1px solid var(--line);
}

.footer-contact strong {
    display: block;
    margin-bottom: 28px;
    color: #414548;
    font-size: 30px;
    line-height: 1.2;
}

.footer-contact p {
    margin: 0 0 22px;
    color: #4e5357;
    font-size: 14px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.footer-bottom {
    min-height: 128px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    border-top: 1px solid var(--line);
    color: #707579;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
}

.not-found {
    min-height: 100vh;
    display: grid;
    place-content: center;
    justify-items: center;
    text-align: center;
}

.not-found strong {
    color: var(--accent);
    font-size: 72px;
}

.not-found h1 {
    margin: 10px 0 20px;
    font-size: 24px;
}

.not-found a {
    padding: 10px 18px;
    color: #fff;
    background: var(--accent);
    border-radius: 5px;
}

@media (max-width: 900px) {
    .header-inner {
        min-height: 88px;
        justify-content: center;
    }

    .site-header nav {
        display: none;
    }

    .detail-hero,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-media,
    .hero-media img {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .detail-layout {
        gap: 18px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 38px;
        padding: 46px 40px;
    }

    .footer-contact {
        min-height: 0;
        padding: 30px 0 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }
}

@media (max-width: 600px) {
    .page-width {
        width: min(100% - 24px, 1200px);
    }

    .topbar {
        min-height: 32px;
    }

    .topbar-inner {
        min-height: 0;
        display: grid;
        gap: 0;
        padding: 9px 0 0;
    }

    .topbar-inner > span {
        padding-bottom: 9px;
    }

    .topbar-right {
        width: 100%;
        display: grid;
        gap: 0;
        margin-left: 0;
    }

    .topbar-account {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-top: 1px solid #ededed;
    }

    .topbar-account a {
        min-height: 34px;
        display: grid;
        place-items: center;
        padding: 0 5px;
        border-left: 0;
        font-size: 12px;
    }

    .topbar-policy {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        border-top: 1px solid #ededed;
    }

    .topbar-policy a {
        min-height: 34px;
        display: grid;
        place-items: center;
        padding: 0 5px;
        overflow: hidden;
        border-left: 0;
        font-size: 11px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .brand img {
        height: 54px;
        width: auto;
        max-width: none;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .header-search {
        order: 3;
        flex-basis: 100%;
        min-width: 0;
        width: 100%;
    }

    .header-search-box {
        min-height: 40px;
    }

    .header-search-hot {
        gap: 10px;
    }

    .breadcrumb {
        min-height: 52px;
    }

    .hero-info {
        padding: 24px 20px;
    }

    h1 {
        margin: 16px 0 20px;
        font-size: 23px;
    }

    .hero-info dl div {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .detail-content {
        padding: 24px 18px 30px;
    }

    .site-footer {
        padding-top: 16px;
    }

    .footer-main {
        gap: 32px;
        padding: 34px 20px;
    }

    .footer-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 20px;
    }

    .footer-group h2 {
        margin-bottom: 14px;
        font-size: 16px;
    }

    .footer-group a {
        margin-top: 9px;
        font-size: 13px;
    }

    .footer-contact strong {
        margin-bottom: 22px;
        font-size: 25px;
    }

    .footer-contact p {
        margin-bottom: 14px;
        font-size: 13px;
    }

    .footer-bottom {
        min-height: 112px;
        padding: 22px 16px;
        font-size: 12px;
    }
}
