/* ============================================================
   Tech 主题 — 首页专用 (.tx-home)
   ============================================================ */

.tx-home {
    padding-bottom: 4rem;
    overflow-x: hidden;
    background: #f6f6f6;
}

/* ---------- Hero ---------- */
.tx-hero {
    position: relative;
    padding: 2.5rem 0 2rem;
    min-height: 520px;
}

.tx-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.tx-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(6, 182, 212, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 85%);
}

.tx-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.tx-hero-orb--1 {
    width: 400px;
    height: 400px;
    top: -120px;
    left: -80px;
    background: rgba(0, 212, 255, 0.15);
}

.tx-hero-orb--2 {
    width: 320px;
    height: 320px;
    top: 20%;
    right: -60px;
    background: rgba(99, 102, 241, 0.12);
}

.tx-hero-scanline {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 212, 255, 0.015) 2px,
        rgba(0, 212, 255, 0.015) 4px
    );
    opacity: 0.6;
}

.tx-hero-copy {
    position: relative;
    z-index: 2;
}

.tx-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.tx-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--shop-text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 2px;
}

.tx-chip--live {
    color: #00d4ff;
    border-color: rgba(0, 212, 255, 0.35);
    background: rgba(0, 212, 255, 0.08);
}

.tx-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00d4ff;
    box-shadow: 0 0 8px #00d4ff;
    animation: tx-pulse 2s ease-in-out infinite;
}

@keyframes tx-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.tx-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--shop-text);
}

.tx-gradient-text {
    background: linear-gradient(135deg, #00d4ff 0%, #6366f1 50%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tx-hero-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--shop-text-secondary);
    max-width: 420px;
    margin-bottom: 1.5rem;
}

.tx-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.tx-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.25s ease;
}

.tx-btn--primary {
    background: linear-gradient(135deg, #00d4ff, #6366f1);
    color: #06080f;
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.3);
}

.tx-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 32px rgba(0, 212, 255, 0.45);
    color: #06080f;
}

.tx-btn--ghost {
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--tx-accent, #00d4ff);
    background: rgba(0, 212, 255, 0.05);
}

.tx-btn--ghost:hover {
    background: rgba(0, 212, 255, 0.12);
    border-color: rgba(0, 212, 255, 0.5);
    color: var(--tx-accent, #00d4ff);
}

.tx-hero-metrics {
    display: flex;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tx-metric strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--shop-text);
    letter-spacing: -0.02em;
}

.tx-metric span {
    font-size: 0.75rem;
    color: var(--shop-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Hero carousel frame */
.tx-hero-visual {
    position: relative;
    z-index: 2;
}

.tx-hero-frame {
    position: relative;
    border: 1px solid #e5e5e5;
    background: #fff;
    padding: 3px;
    border-radius: 8px;
    overflow: hidden;
}

.tx-frame-corner {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid #00d4ff;
    z-index: 5;
    pointer-events: none;
}

.tx-frame-corner--tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.tx-frame-corner--tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.tx-frame-corner--bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.tx-frame-corner--br { bottom: 0; right: 0; border-left: none; border-top: none; }

.tx-hero-frame .db-main-carousel,
.tx-hero-frame .db-main-banner {
    border-radius: 6px;
    min-height: 320px;
}

.tx-hero-frame .db-main-banner--fallback {
    min-height: 360px;
}

.tx-hero-frame .db-banner-bg {
    filter: saturate(1.1) brightness(0.85);
}

.tx-hero-frame .db-banner-content h2 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.tx-hero-frame .db-banner-btn {
    background: linear-gradient(135deg, #00d4ff, #6366f1);
    color: #06080f;
    border-radius: 4px;
    font-weight: 600;
}

.tx-hero-frame .db-carousel-control {
    background: rgba(6, 8, 15, 0.7);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: #00d4ff;
}

.tx-hero-frame .db-carousel-indicators button {
    background: rgba(255, 255, 255, 0.3);
}

.tx-hero-frame .db-carousel-indicators button.active {
    background: #00d4ff;
}

/* Quick panel */
.tx-quick-panel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.tx-quick-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

.tx-quick-item:hover {
    border-color: rgba(0, 212, 255, 0.35);
    background: rgba(0, 212, 255, 0.06);
    color: inherit;
    transform: translateY(-2px);
}

.tx-quick-item i {
    font-size: 1.35rem;
    color: #00d4ff;
}

.tx-quick-item strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--shop-text);
    letter-spacing: 0.04em;
}

.tx-quick-item span {
    font-size: 0.72rem;
    color: var(--shop-muted);
}

.tx-quick-item--hot i {
    color: #f59e0b;
}

.tx-quick-item--hot:hover {
    border-color: rgba(245, 158, 11, 0.35);
}

/* Category rail */
.tx-cat-rail-wrap {
    margin-top: 1.25rem;
    position: relative;
    z-index: 2;
}

.tx-cat-rail {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
}

.tx-cat-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
    color: var(--shop-text-secondary);
    text-decoration: none;
    border: 1px solid #e5e5e5;
    background: #fff;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tx-cat-pill:hover {
    color: #00d4ff;
    border-color: rgba(0, 212, 255, 0.35);
    background: rgba(0, 212, 255, 0.06);
}

.tx-cat-pill--all {
    border-color: rgba(0, 212, 255, 0.25);
    color: #00d4ff;
}

/* Trust bar */
.tx-trust-bar {
    padding: 1rem 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
}

.tx-trust-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2.5rem;
}

.tx-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    color: var(--shop-text-secondary);
}

.tx-trust-item i {
    color: #00d4ff;
    font-size: 0.95rem;
}

/* Announcement */
.tx-announcement {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 1.5rem 0;
    padding: 0.85rem 1.1rem;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-left: 3px solid #00d4ff;
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--shop-text-secondary);
}

.tx-announcement i {
    color: #00d4ff;
    flex-shrink: 0;
}

/* ---------- Sections common ---------- */
.tx-section {
    padding: 3rem 0;
    position: relative;
}

.tx-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.tx-section-head--center {
    justify-content: center;
    text-align: center;
}

.tx-eyebrow {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #00d4ff;
    margin-bottom: 0.35rem;
}

.tx-eyebrow--hot {
    color: #f59e0b;
}

.tx-section-title {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--shop-text);
}

.tx-section-sub {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: var(--shop-muted);
}

.tx-link-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--shop-text-secondary);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.2s;
}

.tx-link-more:hover {
    color: #00d4ff;
}

/* ---------- Featured bento ---------- */
.tx-bento {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 1rem;
}

.tx-bento-main {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.tx-bento-main:hover {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 12px 48px rgba(0, 212, 255, 0.1);
    color: inherit;
}

.tx-bento-glow {
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15), transparent 70%);
    pointer-events: none;
}

.tx-bento-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.tx-bento-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tx-bento-main:hover .tx-bento-img img {
    transform: scale(1.04);
}

.tx-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.2rem 0.55rem;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, #00d4ff, #6366f1);
    color: #06080f;
    border-radius: 2px;
}

.tx-badge--new {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.tx-bento-info {
    padding: 1.25rem;
}

.tx-bento-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--shop-text);
}

.tx-bento-info p {
    font-size: 0.8rem;
    color: var(--shop-muted);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.tx-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0F2D6B;
}

.tx-price-currency {
    font-size: 0.85rem;
    margin-right: 0.1rem;
}

.tx-price--sm {
    font-size: 1rem;
}

.tx-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.tx-product-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.tx-product-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
    color: inherit;
}

.tx-product-img {
    aspect-ratio: 1;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.tx-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tx-product-card:hover .tx-product-img img {
    transform: scale(1.05);
}

.tx-product-body {
    padding: 0.75rem;
}

.tx-product-body h4 {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--shop-text);
    line-height: 1.35;
}

/* ---------- Flash sale ---------- */
.tx-flash {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.04) 0%, transparent 100%);
}

.tx-countdown {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.tx-cd-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #f59e0b;
    margin-right: 0.35rem;
}

.tx-cd-block {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.25rem 0.4rem;
    font-size: 0.9rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
    border-radius: 4px;
}

.tx-cd-sep {
    color: #f59e0b;
    font-weight: 700;
}

.tx-flash-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.tx-flash-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #fde68a;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.tx-flash-card:hover {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.08);
    color: inherit;
}

.tx-flash-img {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.tx-flash-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tx-flash-off {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.15rem 0.45rem;
    font-size: 0.65rem;
    font-weight: 700;
    background: #ef4444;
    color: #fff;
    border-radius: 2px;
}

.tx-flash-body {
    padding: 0.75rem;
}

.tx-flash-body h4 {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--shop-text);
}

.tx-flash-price span {
    font-size: 1rem;
    font-weight: 800;
    color: #fbbf24;
}

.tx-flash-price del {
    font-size: 0.75rem;
    color: var(--shop-muted);
    margin-left: 0.35rem;
}

/* ---------- Category zones ---------- */
.tx-zone-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1rem;
}

.tx-zone-banner {
    position: relative;
    display: block;
    min-height: 320px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.25s;
}

.tx-zone-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), transparent 60%);
    pointer-events: none;
}

.tx-zone-banner:hover {
    border-color: rgba(0, 212, 255, 0.4);
    color: inherit;
}

.tx-zone-banner-inner {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
}

.tx-zone-tag {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--tx-zone-accent, #00d4ff);
    margin-bottom: 0.5rem;
}

.tx-zone-banner h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--shop-text);
}

.tx-zone-banner p {
    font-size: 0.8rem;
    color: var(--shop-muted);
    margin-bottom: 1rem;
}

.tx-zone-cta {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--tx-zone-accent, #00d4ff);
}

.tx-zone-banner-img {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    opacity: 0.85;
}

.tx-zone-banner-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.tx-zone-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

/* ---------- New arrivals scroll ---------- */
.tx-scroll-row {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
}

.tx-scroll-card {
    flex: 0 0 200px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.tx-scroll-card:hover {
    border-color: rgba(16, 185, 129, 0.35);
    transform: translateY(-2px);
    color: inherit;
}

.tx-scroll-img {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.tx-scroll-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tx-scroll-body {
    padding: 0.75rem;
}

.tx-scroll-body h4 {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--shop-text);
}

/* ---------- Reviews ---------- */
.tx-reviews {
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.04));
}

.tx-review-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.tx-review-card {
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    transition: border-color 0.25s;
}

.tx-review-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
}

.tx-review-stars {
    color: #fbbf24;
    font-size: 0.75rem;
    margin-bottom: 0.65rem;
}

.tx-review-text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--shop-text-secondary);
    margin-bottom: 1rem;
    font-style: italic;
}

.tx-review-author {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.tx-review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background: linear-gradient(135deg, #00d4ff, #6366f1);
    color: #06080f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.tx-review-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--shop-text);
}

.tx-review-date {
    font-size: 0.7rem;
    color: var(--shop-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .tx-hero {
        padding: 1.5rem 0 1rem;
        min-height: auto;
    }

    .tx-hero-metrics {
        gap: 1.25rem;
    }

    .tx-quick-panel {
        grid-template-columns: repeat(2, 1fr);
    }

    .tx-bento {
        grid-template-columns: 1fr;
    }

    .tx-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tx-flash-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tx-zone-layout {
        grid-template-columns: 1fr;
    }

    .tx-zone-products {
        grid-template-columns: repeat(2, 1fr);
    }

    .tx-review-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .tx-quick-panel {
        grid-template-columns: 1fr;
    }

    .tx-bento-grid,
    .tx-zone-products,
    .tx-review-grid {
        grid-template-columns: 1fr;
    }

    .tx-hero-title {
        font-size: 1.75rem;
    }
}
