.hardware-page {
    background: #050403;
    color: #efe4d2;
}

/* Typeface hierarchy: display titles use Songti; controls and product details use Heiti. */
.hardware-sidebar .eyebrow,
.hardware-sidebar h1,
.hardware-heading h2 {
    font-family: SimSun, "宋体", "Songti SC", serif;
}

.hardware-nav,
.hardware-nav *,
.hardware-tabs,
.hardware-tabs *,
.hardware-card h3,
.hardware-card__model,
.hardware-card__spec {
    font-family: SimHei, "Microsoft YaHei", "Heiti SC", sans-serif;
}

.hardware-card h3 {
    font-weight: 900;
}

.hardware-card__model {
    font-weight: 600;
}

.hardware-card__spec {
    font-weight: 500;
}

.hardware-main,
.hardware-sheet,
.hardware-sidebar {
    font-family: SimSun, "宋体", "Songti SC", serif;
    font-weight: 700;
}

.hardware-main {
    width: min(1800px, calc(100% - 120px));
    margin: 150px auto 110px;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 42px;
}

.hardware-sidebar {
    border: 1px solid rgba(195, 171, 132, 0.28);
    padding: 38px 34px;
    align-self: start;
    position: sticky;
    top: 115px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    background: rgba(12, 10, 8, 0.82);
    scrollbar-color: rgba(195, 171, 132, 0.58) rgba(255, 255, 255, 0.05);
    scrollbar-width: thin;
}

.hardware-sidebar::-webkit-scrollbar {
    width: 6px;
}

.hardware-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.hardware-sidebar::-webkit-scrollbar-thumb {
    background: rgba(195, 171, 132, 0.58);
    border-radius: 999px;
}

.hardware-sidebar .eyebrow {
    color: #c7a97b;
    font: 700 13px/1.2 Arial, sans-serif;
    letter-spacing: 0;
    margin: 0 0 22px;
}

.hardware-sidebar h1 {
    margin: 0 0 36px;
    font: 700 48px/1.05 SimSun, "宋体", "Songti SC", serif;
    color: #efe4d2;
}

.hardware-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hardware-nav__group {
    display: grid;
    gap: 6px;
}

.hardware-nav__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    align-items: stretch;
}

.hardware-nav a {
    color: rgba(239, 228, 210, 0.68);
    text-decoration: none;
    font-size: 15px;
    line-height: 1.5;
    padding: 10px 14px;
    border: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hardware-nav a:hover,
.hardware-nav a.is-active {
    color: #efe4d2;
    border-color: rgba(195, 171, 132, 0.45);
    background: rgba(195, 171, 132, 0.08);
}

.hardware-nav__toggle {
    width: 34px;
    min-height: 42px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.hardware-nav__toggle::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(239, 228, 210, 0.72);
    border-bottom: 2px solid rgba(239, 228, 210, 0.72);
    transform: translate(-50%, -65%) rotate(45deg);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.hardware-nav__group.is-open .hardware-nav__toggle::before {
    transform: translate(-50%, -35%) rotate(225deg);
}

.hardware-nav__toggle:hover::before {
    border-color: #efe4d2;
}

.hardware-nav__children {
    display: none;
    padding-left: 18px;
    margin-bottom: 8px;
}

.hardware-nav__group.is-open .hardware-nav__children {
    display: flex;
    flex-direction: column;
}

.hardware-nav__children a {
    font-size: 15px;
    padding: 7px 12px;
}

.hardware-sheet {
    min-height: 900px;
    background: #f5f1e8;
    color: #15120e;
    padding: 80px 78px 90px;
}

.hardware-heading {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: flex-start;
    border-bottom: 1px solid rgba(23, 18, 14, 0.14);
    padding-bottom: 38px;
    margin-bottom: 42px;
}

.hardware-heading__line {
    display: block;
    width: 86px;
    height: 5px;
    background: #15120e;
    margin-bottom: 18px;
}

.hardware-heading p {
    margin: 0 0 8px;
    font: 700 28px/1.1 Arial, sans-serif;
}

.hardware-heading h2 {
    margin: 0;
    font: 700 48px/1.15 SimSun, "宋体", "Songti SC", serif;
    letter-spacing: 0;
}

.hardware-heading > span {
    margin-top: 26px;
    font: 700 18px/1.2 Arial, sans-serif;
}

.hardware-tabs-wrap {
    position: relative;
    display: block;
    margin: -14px 0 38px;
}

.hardware-tabs {
    min-width: 0;
    display: flex;
    gap: 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scrollbar-width: none;
    margin: 0;
    padding: 2px 0 8px;
}

.hardware-tabs::-webkit-scrollbar {
    display: none;
}

.hardware-tabs-arrow {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(90, 75, 55, 0.28);
    background: rgba(255, 255, 255, 0.36);
    cursor: pointer;
    position: absolute;
    top: 2px;
    z-index: 2;
    transition: border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.hardware-tabs-arrow--prev {
    left: -54px;
}

.hardware-tabs-arrow--next {
    right: -54px;
}

.hardware-tabs-arrow::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid #5a4b37;
    border-left: 2px solid #5a4b37;
}

.hardware-tabs-arrow--prev::before {
    transform: translate(-35%, -50%) rotate(-45deg);
}

.hardware-tabs-arrow--next::before {
    transform: translate(-65%, -50%) rotate(135deg);
}

.hardware-tabs-arrow:hover {
    border-color: #c7ad82;
    background: rgba(199, 173, 130, 0.18);
}

.hardware-tabs-arrow:disabled {
    opacity: 0.34;
    cursor: default;
}

.hardware-tabs-wrap:not(.is-scrollable) .hardware-tabs-arrow {
    opacity: 0;
    pointer-events: none;
}

.hardware-tabs a {
    flex: 0 0 auto;
    white-space: nowrap;
    color: #5a4b37;
    text-decoration: none;
    border: 1px solid rgba(90, 75, 55, 0.28);
    padding: 9px 18px;
    font-weight: 700;
}

.hardware-tabs a.is-active,
.hardware-tabs a:hover {
    color: #15120e;
    background: #c7ad82;
    border-color: #c7ad82;
}

.hardware-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px clamp(26px, 4vw, 52px);
    border: 0;
}

.hardware-card {
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    container-type: inline-size;
}

.hardware-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 6px;
    margin-bottom: 18px;
    transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.hardware-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.36s ease, filter 0.24s ease;
}

.hardware-card:hover .hardware-card__media {
    border-color: #c7a77d;
    box-shadow: 0 18px 36px rgba(122, 88, 48, 0.22);
    transform: translateY(-4px);
}

.hardware-card:hover .hardware-card__media img {
    transform: scale(1.08);
    filter: saturate(1.04) contrast(1.03);
}

.hardware-card h3 {
    margin: 0 0 8px;
    color: #15120e;
    font-size: clamp(12px, 5.8cqw, 20px);
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
}

.hardware-card__model {
    margin: 0 0 6px;
    color: #51473c;
    font-size: 13px;
    line-height: 1.55;
}

.hardware-card__spec {
    margin: 0 0 6px;
    color: #221d18;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.48;
}

.hardware-rich-text {
    overflow-wrap: anywhere;
}

.hardware-rich-text p,
.hardware-rich-text ul,
.hardware-rich-text ol,
.hardware-rich-text blockquote {
    margin: 0 0 6px;
}

.hardware-rich-text p:last-child,
.hardware-rich-text ul:last-child,
.hardware-rich-text ol:last-child,
.hardware-rich-text blockquote:last-child {
    margin-bottom: 0;
}

.hardware-rich-text ul,
.hardware-rich-text ol {
    padding-left: 18px;
}

.hardware-rich-text img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.hardware-rich-text a {
    color: #a9793e;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 1100px) {
    .hardware-main {
        width: min(100% - 32px, 980px);
        margin-top: 110px;
        grid-template-columns: 1fr;
    }

    .hardware-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
        padding: 24px 18px;
    }

    .hardware-sidebar h1 {
        font-size: 34px;
        margin-bottom: 18px;
    }

    .hardware-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .hardware-nav__group {
        flex: 0 0 auto;
    }

    .hardware-nav__row {
        display: block;
    }

    .hardware-nav__toggle {
        display: none;
    }

    .hardware-nav__children {
        display: none !important;
    }

    .hardware-nav a {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 15px;
    }

    .hardware-sheet {
        padding: 34px 22px 48px;
    }

    .hardware-heading {
        align-items: flex-end;
        margin-bottom: 26px;
        padding-bottom: 24px;
    }

    .hardware-heading h2 {
        font-size: 30px;
    }

    .hardware-heading p,
    .hardware-heading > span {
        font-size: 15px;
    }

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

    .hardware-card {
        min-height: 230px;
        padding: 0;
    }
}

@media (max-width: 560px) {
    .hardware-main {
        width: 100%;
        margin: 92px 0 70px;
        gap: 0;
    }

    .hardware-sidebar {
        border-left: 0;
        border-right: 0;
    }

    .hardware-sheet {
        padding: 26px 14px 42px;
    }

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

    .hardware-card h3 {
        font-size: clamp(11px, 5.8cqw, 18px);
    }

    .hardware-card__model {
        font-size: 12px;
    }

    .hardware-card__spec {
        font-size: 13px;
    }
}

@media (max-width: 760px) and (pointer: coarse) {
    .hardware-page {
        background: #f4f7ef;
        color: #15120e;
    }

    .hardware-main {
        width: 100%;
        max-width: none;
        margin: 54px 0 0;
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hardware-sidebar {
        position: sticky;
        top: 48px;
        z-index: 8;
        max-height: none;
        overflow: visible;
        padding: 0;
        border: 0;
        background: #f7faef;
        box-shadow: 0 1px 0 rgba(17, 17, 17, 0.08);
    }

    .hardware-sidebar .eyebrow,
    .hardware-sidebar h1 {
        display: none;
    }

    .hardware-nav {
        width: 100vw;
        max-width: 100vw;
        display: flex;
        flex-direction: row;
        gap: 0;
        padding: 11px 0;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        touch-action: pan-x;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        background: #f7faef;
    }

    .hardware-nav__group {
        flex: 0 0 auto;
    }

    .hardware-nav__row {
        display: block;
    }

    .hardware-nav__toggle {
        display: none;
    }

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

    .hardware-nav__children {
        display: none !important;
    }

    .hardware-nav a {
        flex: 0 0 auto;
        min-height: 32px;
        padding: 0 15px;
        display: inline-flex;
        align-items: center;
        border: 0;
        color: #203129;
        font-size: 13px;
        font-weight: 800;
        line-height: 1;
        white-space: nowrap;
    }

    .hardware-nav a + a,
    .hardware-nav__children + .hardware-nav__top {
        border-left: 1px solid rgba(32, 49, 41, 0.12);
    }

    .hardware-nav a:hover,
    .hardware-nav a.is-active {
        color: #8a6b43;
        background: transparent;
        border-color: transparent;
    }

    .hardware-sheet {
        width: 100%;
        min-height: auto;
        padding: 18px 12px 36px;
        background: #f7faef;
    }

    .hardware-heading {
        display: block;
        margin: 0 0 16px;
        padding: 10px 0 14px;
        border-bottom: 1px solid rgba(17, 17, 17, 0.1);
    }

    .hardware-heading__line,
    .hardware-heading p,
    .hardware-heading > span {
        display: none;
    }

    .hardware-heading h2 {
        font-size: 24px;
        line-height: 1.12;
        white-space: nowrap;
    }

    .hardware-tabs-wrap {
        width: 100vw;
        max-width: 100vw;
        margin: -4px 0 18px -12px;
        padding: 0 12px;
    }

    .hardware-tabs {
        gap: 8px;
        padding: 0 0 10px;
    }

    .hardware-tabs-arrow {
        width: 32px;
        height: 32px;
        border: 0;
        background: transparent;
        top: 0;
    }

    .hardware-tabs-arrow--prev {
        left: 0;
    }

    .hardware-tabs-arrow--next {
        right: 0;
    }

    .hardware-tabs a {
        flex: 0 0 auto;
        min-height: 32px;
        padding: 0 14px;
        display: inline-flex;
        align-items: center;
        border: 1px solid rgba(138, 107, 67, 0.24);
        color: #5f4b31;
        background: rgba(255, 255, 255, 0.35);
        font-size: 12px;
        white-space: nowrap;
    }

    .hardware-tabs a.is-active,
    .hardware-tabs a:hover {
        color: #15120e;
        background: #c7ad82;
        border-color: #c7ad82;
    }

    .hardware-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-top-color: rgba(23, 18, 14, 0.18);
        border-left-color: rgba(23, 18, 14, 0.18);
    }

    .hardware-card {
        min-height: 0;
        padding: 0;
        border-right-color: rgba(23, 18, 14, 0.18);
        border-bottom-color: rgba(23, 18, 14, 0.18);
    }

    .hardware-card__media {
        aspect-ratio: 1 / 1;
        margin-bottom: 10px;
    }

    .hardware-card h3 {
        margin-bottom: 5px;
        font-size: clamp(10px, 6.2cqw, 16px);
        line-height: 1.32;
    }

    .hardware-card__model {
        margin-bottom: 3px;
        font-size: 11px;
        line-height: 1.4;
    }

    .hardware-card__spec {
        margin-bottom: 3px;
        font-size: 12px;
        line-height: 1.42;
    }
}
