*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: #070a0f;
    color: #f7f7f7;
}

body {
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(16px);
    background: linear-gradient(120deg, rgba(18, 24, 38, 0.96), rgba(10, 14, 22, 0.96));
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.brand-sub {
    font-size: 11px;
    color: #9fa7b8;
}

.contact-short .phone-link {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2ad6ff, #28ffa6);
    color: #04101b;
    font-weight: 600;
}

.filter-bar {
    padding: 8px 12px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: radial-gradient(circle at top left, rgba(36, 203, 255, 0.1), transparent 60%);
}

.categories-scroll {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 8px;
}

.cat-pill {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 12px;
    color: #c3c9d6;
}

.cat-pill.active {
    background: linear-gradient(135deg, #2ad6ff, #28ffa6);
    border-color: transparent;
    color: #04101b;
}

.order-tabs {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    font-size: 12px;
}

.order-tabs a {
    padding: 4px 0;
    color: #9fa7b8;
}

.order-tabs a.active {
    color: #ffffff;
    border-bottom: 2px solid #2ad6ff;
}

.product-grid {
    flex: 1;
    padding: 10px 10px 80px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: 960px;
        margin: 0 auto;
    }
}

.product-card {
    background: radial-gradient(circle at top, #182033, #080b13);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:active {
    transform: translateY(2px) scale(0.985);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.7);
}

.media-box {
    position: relative;
    padding-top: 70%;
    overflow: hidden;
}

.media-box img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.media-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #7c8494;
    background: radial-gradient(circle at top, rgba(63, 79, 120, 0.6), rgba(10, 14, 24, 0.9));
}

.badge-video {
    position: absolute;
    right: 8px;
    top: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(42, 214, 255, 0.7);
    color: #2ad6ff;
}

.card-body {
    padding: 8px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-body .title {
    font-size: 14px;
    font-weight: 600;
}

.card-body .subtitle {
    font-size: 11px;
    color: #9fa7b8;
}

.card-body .desc {
    font-size: 11px;
    color: #7c8494;
    max-height: 3.3em;
    overflow: hidden;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.price {
    color: #28ffa6;
    font-weight: 600;
    font-size: 13px;
}

.stats {
    display: flex;
    gap: 6px;
    font-size: 10px;
    color: #7c8494;
}

.list-end-tip {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 12px;
    color: #7c8494;
    padding: 14px 0 4px;
}

.empty-tip {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
    color: #7c8494;
}

.site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 10px 10px;
    background: radial-gradient(circle at top, rgba(16, 34, 54, 0.9), rgba(2, 6, 10, 0.98));
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-main {
    font-size: 11px;
    color: #9fa7b8;
}

.footer-brand {
    font-size: 13px;
    color: #ffffff;
    font-weight: 500;
}

.footer-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.footer-btn {
    font-size: 13px;
    padding: 7px 0;
    border-radius: 999px;
    border: none;
    outline: none;
    text-align: center;
}

.footer-btn:nth-child(1) {
    background: linear-gradient(135deg, #2ad6ff, #28ffa6);
    color: #04101b;
    font-weight: 600;
}

.footer-btn:nth-child(2) {
    background: rgba(255, 255, 255, 0.06);
    color: #e4e7f0;
}

.footer-btn:nth-child(3) {
    background: rgba(42, 214, 255, 0.12);
    color: #2ad6ff;
}

.footer-btn:active {
    transform: translateY(1px);
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

.modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.modal-panel {
    position: relative;
    z-index: 51;
    background: #05070c;
    width: 100%;
    max-width: 640px;
    margin: 0;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .modal-panel {
        margin: 24px 16px 32px;
        border-radius: 16px;
        overflow: hidden;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: radial-gradient(circle at top, rgba(36, 203, 255, 0.15), rgba(5, 8, 14, 0.95));
}

.back-btn {
    border: none;
    outline: none;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 12px;
}

.modal-title {
    margin-left: 10px;
    font-size: 15px;
    font-weight: 600;
    flex: 1;
}

.share-btn {
    border: none;
    outline: none;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 12px;
}

.modal-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#modal-media {
    position: relative;
    width: 100%;
    background: #05070c;
}

.modal-desc {
    padding: 12px 14px 4px;
    font-size: 13px;
    color: #c3c9d6;
}

.modal-extra {
    padding: 4px 14px 14px;
    font-size: 12px;
    color: #7c8494;
}

.modal-specs {
    padding: 6px 14px 2px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.spec-pill {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 11px;
    color: #e5e7f0;
    background: rgba(15, 23, 42, 0.7);
}

.spec-pill.active {
    border-color: #2ad6ff;
    background: rgba(42, 214, 255, 0.12);
    color: #2ad6ff;
}

::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

/* ========= 主题：现代极简（大众 / 中端） ========= */

body.theme-modern {
    background-color: #f5f5f5;
    color: #111827;
}

body.theme-modern .site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

body.theme-modern .filter-bar {
    background: #ffffff;
    border-bottom-color: #e5e7eb;
}

body.theme-modern .contact-short .phone-link {
    background: #111827;
    color: #f9fafb;
}

body.theme-modern .cat-pill {
    border-color: #e5e7eb;
    color: #4b5563;
}

body.theme-modern .cat-pill.active {
    background: #111827;
    color: #f9fafb;
}

body.theme-modern .brand-name {
    color: #111827;
}

body.theme-modern .brand-sub {
    color: #6b7280;
}

body.theme-modern .product-card {
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

body.theme-modern .media-placeholder {
    background: #e5e7eb;
    color: #6b7280;
}

body.theme-modern .price {
    color: #111827;
}

body.theme-modern .site-footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

body.theme-modern .footer-main {
    color: #6b7280;
}

body.theme-modern .footer-brand {
    color: #111827;
}

body.theme-modern .footer-btn:nth-child(1) {
    background: #111827;
    color: #f9fafb;
}

body.theme-modern .footer-btn:nth-child(2) {
    background: #f3f4f6;
    color: #111827;
}

body.theme-modern .footer-btn:nth-child(3) {
    background: #111827;
    color: #f9fafb;
}

body.theme-modern .modal-panel {
    background: #ffffff;
}

body.theme-modern .modal-header {
    background: #f9fafb;
    border-bottom-color: #e5e7eb;
}

body.theme-modern #modal-media {
    background: #000000;
}

body.theme-modern .modal-desc {
    color: #374151;
}

body.theme-modern .modal-extra {
    color: #6b7280;
}

body.theme-modern .spec-pill {
    border-color: #e5e7eb;
    background: #ffffff;
    color: #374151;
}

body.theme-modern .spec-pill.active {
    border-color: #111827;
    background: #111827;
    color: #f9fafb;
}

/* ========= 主题：轻奢高端（当前默认深色方案） ========= */

body.theme-luxury {
    background-color: #070a0f;
    color: #f7f7f7;
}

/* 现有深色配色即为轻奢高端风，保持默认样式 */

/* ========= 主题：自然 / 侘寂 / 新中式 ========= */

body.theme-natural {
    background-color: #f3eee6;
    color: #3f3a34;
}

body.theme-natural .site-header {
    background: linear-gradient(120deg, #f9f4eb, #f3eee6);
    border-bottom: 1px solid #e3d8c7;
}

body.theme-natural .filter-bar {
    background: linear-gradient(90deg, #f9f4eb, #f3eee6);
    border-bottom-color: #e3d8c7;
}

body.theme-natural .brand-sub {
    color: #8d8374;
}

body.theme-natural .product-card {
    background: #fdfaf5;
    box-shadow: 0 8px 20px rgba(63, 58, 52, 0.08);
}

body.theme-natural .media-placeholder {
    background: #e6ddcf;
    color: #7c7365;
}

body.theme-natural .price {
    color: #927556;
}

body.theme-natural .stats {
    color: #8d8374;
}

body.theme-natural .site-footer {
    background: #f9f4eb;
    border-top: 1px solid #e3d8c7;
}

body.theme-natural .footer-main {
    color: #8d8374;
}

body.theme-natural .footer-brand {
    color: #3f3a34;
}

body.theme-natural .footer-btn:nth-child(1) {
    background: #927556;
    color: #fdfaf5;
}

body.theme-natural .footer-btn:nth-child(2) {
    background: #f3eee6;
    color: #3f3a34;
}

body.theme-natural .footer-btn:nth-child(3) {
    background: #e6ddcf;
    color: #3f3a34;
}

body.theme-natural .modal-panel {
    background: #fdfaf5;
}

body.theme-natural .modal-header {
    background: #f3eee6;
    border-bottom-color: #e3d8c7;
}

body.theme-natural #modal-media {
    background: #000000;
}

body.theme-natural .modal-desc {
    color: #4b453d;
}

body.theme-natural .modal-extra {
    color: #8d8374;
}

body.theme-natural .contact-short .phone-link {
    background: #927556;
    color: #fdfaf5;
}

body.theme-natural .cat-pill {
    border-color: #e3d8c7;
    color: #7c7365;
}

body.theme-natural .cat-pill.active {
    background: #927556;
    color: #fdfaf5;
}

/* ========= 主题：岩板石纹 ========= */

body.theme-stone {
    background-color: #111827;
    color: #e5e7f0;
}

body.theme-stone .site-header {
    background: linear-gradient(120deg, #020617, #0f172a);
    border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

body.theme-stone .filter-bar {
    background: radial-gradient(circle at top left, rgba(30, 64, 175, 0.3), rgba(15, 23, 42, 1));
    border-bottom-color: rgba(30, 64, 175, 0.3);
}

body.theme-stone .product-card {
    background: radial-gradient(circle at top, #020617, #020617);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.9);
}

body.theme-stone .cat-pill {
    border-color: rgba(148, 163, 184, 0.6);
    color: #e5e7eb;
}

body.theme-stone .cat-pill.active {
    background: linear-gradient(135deg, #38bdf8, #facc15);
    border-color: transparent;
    color: #020617;
}

body.theme-stone .order-tabs a {
    color: #9ca3af;
}

body.theme-stone .order-tabs a.active {
    color: #e5e7eb;
    border-bottom-color: #38bdf8;
}

/* ========= 主题：奶油白通透 ========= */

body.theme-cream {
    background-color: #fdf7f0;
    color: #3f3a34;
}

body.theme-cream .site-header {
    background: linear-gradient(120deg, #fffaf4, #fdf3e6);
    border-bottom: 1px solid #f3e2cf;
}

body.theme-cream .filter-bar {
    background: #fffaf4;
    border-bottom-color: #f3e2cf;
}

body.theme-cream .product-card {
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(133, 77, 30, 0.08);
}

body.theme-cream .cat-pill {
    border-color: #f3e2cf;
    color: #7b6a59;
}

body.theme-cream .cat-pill.active {
    background: #f1c29c;
    color: #3f3a34;
}

body.theme-cream .order-tabs a {
    color: #a38c77;
}

body.theme-cream .order-tabs a.active {
    color: #3f3a34;
    border-bottom-color: #f1c29c;
}

/* 首页轮播图 */

.hero-slider {
    position: relative;
    margin: 8px auto 4px;
    border-radius: 18px;
    overflow: hidden;
    background: #05070c;
    max-width: 960px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.hero-track {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
}

.hero-slide {
    position: relative;
    min-width: 100%;
}

.hero-slide::before {
    content: "";
    display: block;
    padding-top: 48%;
}

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.hero-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.4);
}

.hero-dot.active {
    width: 14px;
    background: #2ad6ff;
}

/* 详情轮播图（弹层内） */

.detail-slider {
    position: relative;
    margin: 0;
}

.detail-track {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
}

.detail-slide {
    position: relative;
    min-width: 100%;
}

.detail-slide::before {
    content: "";
    display: block;
    padding-top: 56%;
}

.detail-slide img,
.detail-slide video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #000;
}

.detail-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 6px 0 4px;
}

.detail-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.3);
}

.detail-dot.active {
    width: 14px;
    background: #2ad6ff;
}


