/* 祖宏数码回收 — 风格对齐 demoui（大梦一件代发网） */
:root {
    --text-color: #333;
    --bg-color: #fff;
    --border-color: #ddd;
    --primary-color: #3f8cff;
    --primary-hover: #2e7ae6;
    --price-color: #f65160;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: 88px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    direction: ltr;
    background: var(--bg-color);
    overflow-x: hidden;
    -webkit-tap-highlight-color: rgba(63, 140, 255, 0.15);
    width: 100%;
    max-width: 100%;
}

body.nav-drawer-open {
    overflow: hidden;
    touch-action: none;
}

.container {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 30px;
    padding-left: max(30px, var(--safe-left));
    padding-right: max(30px, var(--safe-right));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-color);
    border-bottom: 1px solid #eee;
    padding-top: var(--safe-top);
}

.site-header.nav-open {
    z-index: 2000;
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    min-height: 56px;
    padding-top: 4px;
    padding-bottom: 4px;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    flex: 0 1 auto;
    min-width: 0;
    margin-right: auto;
}

.logo:hover {
    color: var(--primary-color);
}

.hero-cta,
.nav-links a {
    touch-action: manipulation;
}

.nav-links {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-shrink: 0;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
}

.nav-links a:hover {
    color: #666;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: #333;
    cursor: pointer;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover {
    background: #f5f5f5;
}

.nav-toggle-icon {
    font-size: 20px;
    line-height: 1;
}

.nav-toggle-close {
    display: none !important;
}

.site-header.nav-open .nav-toggle-bars {
    display: none !important;
}

.site-header.nav-open .nav-toggle-close {
    display: block !important;
}

.page-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    text-align: left;
}

.hero-banner {
    padding: 24px 0 8px;
}

.hero-banner-inner {
    max-width: 100%;
}

.hero-section--static {
    position: relative;
    width: 100%;
    min-height: 200px;
    overflow: hidden;
    border-radius: 15px;
    background: transparent;
}

.hero-panel {
    position: relative;
    padding: 36px 40px 40px;
    color: #fff;
    background-color: var(--primary-color);
    border-radius: 15px;
    min-height: 200px;
}

.hero-title {
    font-size: clamp(1.35rem, 4vw, 2rem);
    font-weight: bold;
    line-height: 1.3;
    margin: 0 0 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.hero-lead {
    font-size: clamp(0.9rem, 2.2vw, 1.05rem);
    margin: 0 0 10px;
    opacity: 0.95;
    line-height: 1.5;
}

.hero-note {
    font-size: 13px;
    margin: 0 0 22px;
    opacity: 0.85;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hero-cta--primary {
    background: #fff;
    color: var(--primary-color);
    border: 2px solid #fff;
}

.hero-cta--primary:hover {
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-hover);
}

.hero-cta--ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.hero-cta--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
}

/* 首页 · 关于工作室 */
.about-section {
    padding: 36px 0 28px;
    background: #fafbfc;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.about-section__title {
    margin-bottom: 16px;
    font-size: 20px;
}

.about-section__body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
}

.about-section__copy {
    min-width: 0;
}

.about-section__intro {
    max-width: 720px;
    margin-bottom: 16px;
}

.about-section__copy .about-section__intro {
    margin-bottom: 16px;
}

.about-section__p {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

.about-section__p:last-child {
    margin-bottom: 0;
}

.about-section__bullets {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    max-width: 720px;
}

.about-section__copy .about-section__bullets {
    margin-bottom: 0;
}

.about-section__bullets li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.about-section__bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
}

.about-section__media {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 0;
    min-width: 0;
}

.about-section__video-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    width: 100%;
}

.about-section__video-wrap {
    margin: 0;
    max-width: 800px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    background: #000;
}

.about-section__video {
    display: block;
    width: 100%;
    max-height: min(70vh, 480px);
    vertical-align: middle;
}

.about-section__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.about-section__gallery:empty {
    display: none;
}

.about-section__gallery--placeholder {
    display: block;
    max-width: 720px;
}

.about-section__media-hint {
    margin: 0;
    padding: 16px 18px;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-muted, #666);
    background: #f5f7fb;
    border: 1px dashed #cfd6e4;
    border-radius: 10px;
}

.about-section__media-hint code {
    font-size: 0.85em;
}

.about-section__gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
    background: #eef2f8;
    aspect-ratio: 4 / 3;
}

.about-section__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.layout-home-main {
    padding-bottom: 40px;
    min-width: 0;
}

.layout-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 32px;
    align-items: start;
    padding-bottom: 40px;
}

.layout-primary {
    min-width: 0;
}

.layout-aside {
    min-width: 0;
}

.contact-card {
    width: 100%;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #eee;
}

.contact-card--sticky {
    position: sticky;
    top: 72px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    margin-bottom: 16px;
    color: #333;
}

.contact-row {
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.5;
}

.contact-row strong {
    color: #333;
    display: block;
    margin-bottom: 4px;
}

.notice-box {
    margin-top: 16px;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.section-head {
    margin-bottom: 20px;
}

.section-title--left {
    text-align: left;
    margin-bottom: 6px;
}

.section-lead {
    font-size: 14px;
    color: #888;
    margin: 0;
}

.products-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px 20px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-size: 14px;
    color: #666;
}

.result-hint {
    font-size: 13px;
    color: #999;
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.series-select {
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    min-width: 180px;
    background: #fff;
    cursor: pointer;
}

.series-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.products-section {
    padding: 28px 0 0;
}

.section-title {
    font-size: 20px;
    margin-bottom: 24px;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(63, 140, 255, 0.12);
}

.product-image-wrap {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(145deg, #f0f4ff 0%, #e8eef8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 48px;
}

.product-info {
    padding: 12px;
}

.product-series {
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
}

.product-title {
    font-size: 14px;
    margin-bottom: 8px;
    min-height: 42px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    font-size: 15px;
    font-weight: bold;
    color: var(--price-color);
}

.product-price span {
    font-size: 12px;
    font-weight: normal;
    color: #999;
}

.empty-hint {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #888;
}

footer {
    padding: 40px 0;
    padding-bottom: calc(40px + var(--safe-bottom));
    background-color: #f5f5f5;
    text-align: center;
    margin-top: auto;
}

footer p {
    font-size: 14px;
    color: #666;
}

footer .footer-icp {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 13px;
}

footer .footer-icp a {
    color: #666;
    text-decoration: none;
}

footer .footer-icp a:hover {
    color: var(--primary-color);
}

/* 机型详情页（单栏信息流） */
/* 勿写 padding 简写左右为 0：会与同元素的 .container 左右 padding 冲突 */
.pd-page {
    padding-top: 20px;
    padding-bottom: 48px;
    flex: 1;
    width: 100%;
    min-width: 0;
}

.pd-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-left: 10px;
    padding-right: 10px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(63, 140, 255, 0.12);
}

.pd-back:hover {
    text-decoration: underline;
}

.pd-state {
    padding: 48px 20px;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 15px;
    color: #888;
}

.pd-state--error {
    color: #c62828;
}

.pd {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
}

.pd-head {
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.pd-figure {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    border-radius: 16px;
    background: #eef2f8;
    border: 1px solid #e8ecf2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: var(--primary-color);
}

.pd-series {
    margin: 0 0 6px;
    font-size: 13px;
    color: #888;
}

.pd-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    color: #222;
    word-break: break-word;
}

.pd-panel {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 12px;
}

.pd-panel--price {
    background: #fff8f8;
    border-color: #ffd6dc;
}

.pd-panel--contact {
    background: #f8f9fa;
    border-color: #e8e8e8;
    margin-bottom: 0;
}

.pd-label {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    letter-spacing: 0.02em;
}

.pd-price {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--price-color);
    word-break: break-all;
}

.pd-chips,
.pd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pd-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    background: #fafafa;
    color: #333;
}

.pd-tag {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    background: #f0f4ff;
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 13px;
}

.pd-note {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: #555;
}

.pd-lead {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
}

.pd-dl {
    margin: 0;
}

.pd-dl-row {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 4px 12px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px solid #eaeaea;
    font-size: 14px;
}

.pd-dl-row:last-of-type {
    border-bottom: none;
}

.pd-dl dt {
    margin: 0;
    color: #999;
    font-weight: 400;
}

.pd-dl dd {
    margin: 0;
    color: #333;
    word-break: break-word;
    line-height: 1.5;
}

.pd-notice {
    margin: 14px 0 0;
    padding: 12px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.55;
    color: #666;
}

/* 宽屏：关于工作室 — 左文案 / 右视频图集，与下方报价双栏视觉一致 */
@media (min-width: 901px) {
    .about-section {
        padding: 44px 0 40px;
    }

    .about-section__title {
        margin-bottom: 22px;
        font-size: clamp(22px, 2.1vw, 26px);
    }

    .about-section__body {
        grid-template-columns: minmax(280px, 520px) minmax(0, 1fr);
        gap: 32px 48px;
        align-items: start;
    }

    .about-section__copy .about-section__intro,
    .about-section__copy .about-section__bullets {
        max-width: none;
    }

    .about-section__p {
        font-size: 16px;
        line-height: 1.75;
    }

    .about-section__bullets li {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .about-section__video-stack,
    .about-section__video-wrap {
        max-width: none;
    }

    .about-section__video {
        max-height: min(68vh, 560px);
    }

    .about-section__gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .about-section__gallery--placeholder {
        max-width: none;
    }
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    html {
        scroll-padding-top: 88px;
    }

    .layout-split {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-bottom: 28px;
    }

    .layout-home-main {
        padding-bottom: 28px;
    }

    .contact-card--sticky {
        position: static;
    }

    /* 手机/平板单列：报价在上，联系卡片在下，便于先浏览价格 */
}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding-left: max(16px, var(--safe-left));
        padding-right: max(16px, var(--safe-right));
    }

    .header-bar {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 48px;
        position: relative;
        z-index: 2001;
    }

    .logo {
        font-size: 17px;
        flex: 0 1 auto;
        min-width: 0;
        max-width: none;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        margin-right: auto;
    }

    .nav-toggle {
        display: inline-flex;
        order: 2;
        position: relative;
        z-index: 2002;
        margin-left: 0;
    }

    .header-bar .nav-links {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 1999;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        padding: calc(52px + var(--safe-top)) max(16px, var(--safe-right)) 24px max(16px, var(--safe-left));
        background: #fff;
        box-shadow: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .header-bar .nav-links a {
        font-size: 17px;
        padding: 16px 12px;
        min-height: 52px;
        display: flex;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
        border-bottom: 1px solid #f0f0f0;
        color: #333;
    }

    .site-header.nav-open .header-bar .nav-links {
        display: flex;
    }

    .about-section {
        padding: 28px 0 22px;
    }

    .about-section__video {
        max-height: 56vw;
    }

    .hero-banner {
        padding: 12px 0 4px;
    }

    .hero-section--static {
        border-radius: 12px;
    }

    .hero-panel {
        padding: 24px 20px 28px;
    }

    .hero-note {
        margin-bottom: 18px;
    }

    .hero-actions {
        gap: 10px;
    }

    .products-section {
        padding-top: 16px;
    }

    .section-head {
        margin-bottom: 14px;
    }

    .section-title--left {
        font-size: 18px;
    }

    .section-lead {
        font-size: 13px;
    }

    .products-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding-bottom: 12px;
    }

    .filter-group {
        width: 100%;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .series-select {
        flex: 1;
        min-width: 0;
        min-height: 44px;
        font-size: 16px;
        max-width: 100%;
    }

    .result-hint {
        text-align: left;
        width: 100%;
        flex: none;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-info {
        padding: 10px;
    }

    .product-title {
        font-size: 13px;
        min-height: 38px;
    }

    .product-image-wrap {
        font-size: 40px;
    }

    .pd-page {
        padding-top: 12px;
        padding-bottom: 36px;
    }

    .pd-back {
        min-height: 44px;
        margin-bottom: 12px;
        padding: 6px 10px;
    }

    .pd-state {
        padding: 40px 16px;
        min-height: 120px;
    }

    .pd-title {
        font-size: 20px;
    }

    .pd-price {
        font-size: 22px;
    }

    .pd-panel {
        padding: 14px 16px;
    }

    .pd-dl-row {
        grid-template-columns: 48px 1fr;
        font-size: 13px;
    }

}

@media (max-width: 480px) {
    html {
        scroll-padding-top: 88px;
    }

    .about-section__gallery {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .about-section__title {
        font-size: 18px;
    }

    .about-section__p {
        font-size: 14px;
    }

    .hero-panel {
        padding: 20px 16px 24px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta {
        width: 100%;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .product-card {
        display: flex;
        flex-direction: row;
        align-items: stretch;
    }

    .product-image-wrap {
        width: 100px;
        min-width: 100px;
        aspect-ratio: auto;
        height: auto;
        min-height: 100px;
        font-size: 36px;
    }

    .product-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 0;
    }

    .product-title {
        min-height: 0;
        -webkit-line-clamp: 3;
    }

    .contact-card {
        padding: 18px 16px;
    }

    .card-title {
        font-size: 16px;
    }

    .pd-page {
        padding-top: 8px;
        padding-bottom: 28px;
    }

    .pd-back {
        font-size: 15px;
        width: 100%;
    }

    .pd {
        max-width: none;
    }

    .pd-head {
        padding-bottom: 16px;
        margin-bottom: 12px;
    }

    .pd-figure {
        width: 64px;
        height: 64px;
        font-size: 30px;
        border-radius: 14px;
    }

    .pd-series {
        font-size: 12px;
    }

    .pd-title {
        font-size: 18px;
    }

    .pd-price {
        font-size: 20px;
    }

    .pd-dl-row {
        grid-template-columns: 1fr;
        gap: 2px;
        padding: 12px 0;
    }

    .pd-dl dt {
        font-size: 12px;
    }

    footer {
        padding: 28px 0;
        padding-bottom: calc(28px + var(--safe-bottom));
    }
}

@media (hover: none) and (pointer: coarse) {
    .product-card:hover {
        transform: none;
        box-shadow: none;
    }

    .product-card:active {
        transform: scale(0.99);
        opacity: 0.96;
    }
}
