/* Generic Product Detail Pages - generated from mall.html layout */
:root {
    --product-primary: #1c6247;
    --product-secondary: #155239;
    --product-accent: #34d399;
    --product-light: #6ee7b7;
    --product-dark: #0a1a14;
    --product-bg: #0d1f18;
    --product-card: rgba(255, 255, 255, 0.05);
    --product-gradient: linear-gradient(135deg, var(--product-secondary) 0%, var(--product-primary) 52%, var(--product-accent) 100%);
}

.product-brand-logo {
    max-height: 45px;
    margin-right: 8px;
}

.product-hero-section {
    background: linear-gradient(135deg, var(--product-dark) 0%, var(--product-bg) 52%, var(--product-dark) 100%);
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.product-hero-section::before {
    content: '';
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, color-mix(in srgb, var(--product-primary) 20%, transparent) 0%, transparent 45%),
        radial-gradient(circle at 72% 50%, color-mix(in srgb, var(--product-accent) 14%, transparent) 0%, transparent 48%);
    animation: product-bg-float 25s ease-in-out infinite;
}

@keyframes product-bg-float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-20px, -20px);
    }
}

.product-gradient-text {
    background: linear-gradient(135deg, var(--product-accent) 0%, var(--product-light) 55%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: color-mix(in srgb, var(--product-primary) 22%, transparent);
    color: var(--product-light);
}

.product-feature-card {
    background: color-mix(in srgb, var(--product-primary) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--product-primary) 18%, transparent);
    border-radius: 16px;
    padding: 35px 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--product-gradient);
    opacity: 0;
    transition: opacity 0.4s;
}

.product-feature-card:hover {
    background: color-mix(in srgb, var(--product-primary) 14%, transparent);
    border-color: color-mix(in srgb, var(--product-primary) 42%, transparent);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px color-mix(in srgb, var(--product-primary) 24%, transparent);
}

.product-feature-card:hover::before {
    opacity: 1;
}

.product-feature-card .feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 28px;
    background: color-mix(in srgb, var(--product-primary) 18%, transparent);
    color: var(--product-accent);
}

.product-section {
    background: var(--product-bg);
}

.product-section-alt {
    background: linear-gradient(180deg, var(--product-bg) 0%, var(--product-dark) 100%);
}

.product-stats-section {
    background: linear-gradient(135deg, var(--product-bg) 0%, var(--product-dark) 100%);
}

.product-stat-item {
    text-align: center;
    padding: 30px 20px;
}

.product-stat-item .stat-number {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--product-accent) 0%, var(--product-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-feature-list li {
    padding: 6px 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-feature-list li::before {
    content: '✓';
    color: var(--product-accent);
    font-weight: 700;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--product-accent) 14%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-module-card {
    background: linear-gradient(145deg, color-mix(in srgb, var(--product-primary) 11%, transparent), color-mix(in srgb, var(--product-accent) 5%, transparent));
    border: 1px solid color-mix(in srgb, var(--product-primary) 18%, transparent);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s;
    height: 100%;
}

.product-module-card:hover {
    border-color: color-mix(in srgb, var(--product-primary) 36%, transparent);
    box-shadow: 0 15px 50px color-mix(in srgb, var(--product-primary) 18%, transparent);
}

.product-module-card .card-img {
    height: 220px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.18);
}

.product-module-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.product-module-card:hover .card-img img {
    transform: scale(1.05);
}

.product-module-visual {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--product-accent) 24%, transparent), transparent 42%),
        linear-gradient(135deg, color-mix(in srgb, var(--product-primary) 30%, #111827), color-mix(in srgb, var(--product-secondary) 28%, #020617));
}

.product-module-visual i {
    font-size: 64px;
    color: rgba(255, 255, 255, 0.82);
}

.product-module-visual::after {
    content: '';
    position: absolute;
    right: -50px;
    bottom: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 28px solid rgba(255, 255, 255, 0.06);
}

.product-module-card .card-body {
    padding: 28px;
}

.product-arch-item {
    text-align: center;
    padding: 25px 15px;
    background: color-mix(in srgb, var(--product-primary) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--product-primary) 16%, transparent);
    border-radius: 12px;
    transition: all 0.3s;
    height: 100%;
}

.product-arch-item:hover {
    background: color-mix(in srgb, var(--product-primary) 14%, transparent);
    border-color: color-mix(in srgb, var(--product-primary) 30%, transparent);
    transform: translateY(-4px);
}

.product-arch-item .arch-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 22px;
    background: color-mix(in srgb, var(--product-primary) 18%, transparent);
    color: var(--product-accent);
}

.product-cta-section {
    background: var(--product-gradient);
    position: relative;
    padding: 80px 0;
}

.product-mockup {
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 26px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
    box-shadow: 0 30px 80px color-mix(in srgb, var(--product-primary) 35%, transparent);
    min-height: 360px;
    position: relative;
    overflow: hidden;
}

.product-image-mockup {
    padding: 10px;
    min-height: auto;
}

.product-hero-art {
    display: block;
    width: 100%;
    aspect-ratio: 1586 / 992;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.product-mockup .mock-window {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 18px;
    padding: 22px;
    min-height: 260px;
}

.mock-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.mock-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--product-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.mock-line {
    height: 10px;
    border-radius: 100px;
    background: #e5e7eb;
    margin: 7px 0;
}

.mock-line.long {
    width: 180px;
}

.mock-line.short {
    width: 115px;
}

.mock-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 100px;
    background: color-mix(in srgb, var(--product-primary) 12%, #fff);
    color: var(--product-primary);
    font-weight: 700;
    font-size: 12px;
    margin: 8px 8px 0 0;
}

.detail-visual-title {
    color: #0f172a;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 16px;
}

.detail-visual-sub {
    color: #64748b;
    font-size: 13px;
    margin-top: -8px;
    margin-bottom: 18px;
}

.visual-panel {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 18px;
    padding: 22px;
    min-height: 260px;
    position: relative;
    overflow: hidden;
}

.visual-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--product-primary) 10%, #fff);
    color: var(--product-primary);
    font-size: 12px;
    font-weight: 700;
}

.visual-grid {
    display: grid;
    gap: 12px;
}

.visual-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.visual-kpi {
    font-size: 26px;
    line-height: 1;
    font-weight: 800;
    color: var(--product-primary);
}

.points-visual .coin-grid {
    grid-template-columns: repeat(3, 1fr);
}

.points-visual .coin {
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff 0 18%, var(--product-accent) 19% 58%, var(--product-primary) 59% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    box-shadow: 0 14px 28px color-mix(in srgb, var(--product-primary) 25%, transparent);
}

.points-visual .redeem-bar {
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--product-primary), var(--product-accent));
    margin-top: 16px;
}

.distribution-visual .network {
    position: relative;
    height: 210px;
}

.distribution-visual .node {
    position: absolute;
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: var(--product-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: 0 16px 30px color-mix(in srgb, var(--product-primary) 28%, transparent);
}

.distribution-visual .node.main {
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.distribution-visual .node.left {
    left: 12%;
    bottom: 0;
}

.distribution-visual .node.right {
    right: 12%;
    bottom: 0;
}

.distribution-visual .network::before,
.distribution-visual .network::after {
    content: '';
    position: absolute;
    top: 76px;
    width: 34%;
    height: 2px;
    background: color-mix(in srgb, var(--product-primary) 35%, #cbd5e1);
}

.distribution-visual .network::before {
    left: 23%;
    transform: rotate(30deg);
}

.distribution-visual .network::after {
    right: 23%;
    transform: rotate(-30deg);
}

.hr-visual .org-top {
    width: 120px;
    margin: 0 auto 18px;
    text-align: center;
}

.hr-visual .org-grid {
    grid-template-columns: repeat(3, 1fr);
    position: relative;
}

.hr-visual .person {
    border-radius: 16px;
    padding: 14px 8px;
    background: color-mix(in srgb, var(--product-primary) 10%, #fff);
    text-align: center;
    color: #0f172a;
    font-weight: 700;
}

.hr-visual .avatar-dot {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    margin: 0 auto 8px;
    background: var(--product-gradient);
}

.oa-visual .workflow {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.oa-visual .flow-step {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 14px;
    padding: 13px;
    border-left: 4px solid var(--product-primary);
}

.oa-visual .step-index {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--product-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.wms-visual .warehouse {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.wms-visual .shelf {
    height: 74px;
    border-radius: 12px;
    background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--product-primary) 18%, #fff) 0 18px, #fff 18px 36px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    position: relative;
}

.wms-visual .shelf::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 12px;
    height: 7px;
    border-radius: 10px;
    background: var(--product-primary);
    opacity: .25;
}

.trace-visual .qr-wrap {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    align-items: center;
}

.trace-visual .qr {
    width: 140px;
    height: 140px;
    border-radius: 16px;
    padding: 12px;
    background: #fff;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    border: 2px solid color-mix(in srgb, var(--product-primary) 20%, #e5e7eb);
}

.trace-visual .qr span {
    border-radius: 4px;
    background: var(--product-primary);
    opacity: .9;
}

.trace-visual .shield-badge {
    width: 80px;
    height: 92px;
    background: var(--product-gradient);
    clip-path: polygon(50% 0, 88% 16%, 82% 72%, 50% 100%, 18% 72%, 12% 16%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    margin-bottom: 12px;
}

.location-visual .map-canvas {
    height: 230px;
    border-radius: 18px;
    background: linear-gradient(135deg, #e0f2fe, #f8fafc);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.location-visual .map-road {
    position: absolute;
    height: 6px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--product-primary) 30%, #94a3b8);
    transform-origin: left center;
}

.location-visual .pin {
    position: absolute;
    width: 34px;
    height: 34px;
    border-radius: 50% 50% 50% 0;
    background: var(--product-primary);
    transform: rotate(-45deg);
    box-shadow: 0 10px 20px color-mix(in srgb, var(--product-primary) 30%, transparent);
}

.location-visual .pin::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    left: 11px;
    top: 11px;
}

.hairstyle-visual .before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.hairstyle-visual .portrait {
    height: 170px;
    border-radius: 18px;
    background: radial-gradient(circle at 50% 35%, #f8fafc 0 18%, color-mix(in srgb, var(--product-primary) 28%, #bae6fd) 19% 42%, #0f172a 43% 100%);
    position: relative;
    overflow: hidden;
}

.hairstyle-visual .portrait.after {
    background: radial-gradient(circle at 50% 34%, #f8fafc 0 18%, color-mix(in srgb, var(--product-accent) 36%, #7dd3fc) 19% 43%, #082f49 44% 100%);
}

.hairstyle-visual .portrait::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 20px;
    width: 54px;
    height: 70px;
    border-radius: 50% 50% 20px 20px;
    transform: translateX(-50%);
    background: #f8fafc;
    opacity: .9;
}

.skin-visual .scan-face {
    width: 170px;
    height: 170px;
    margin: 0 auto 18px;
    border-radius: 50%;
    position: relative;
    background: radial-gradient(circle at 50% 45%, #fff 0 38%, color-mix(in srgb, var(--product-primary) 18%, #e0f2fe) 39% 100%);
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--product-primary) 12%, transparent), 0 0 0 18px color-mix(in srgb, var(--product-secondary) 10%, transparent);
}

.skin-visual .scan-face::before {
    content: '';
    position: absolute;
    left: 22%;
    right: 22%;
    top: 48%;
    height: 2px;
    background: var(--product-primary);
    box-shadow: 0 -35px 0 color-mix(in srgb, var(--product-primary) 55%, transparent), 0 35px 0 color-mix(in srgb, var(--product-primary) 35%, transparent);
}

.skin-visual .report-grid {
    grid-template-columns: repeat(3, 1fr);
}

.skin-visual .report-grid .visual-card {
    text-align: center;
    padding: 10px;
}

.product-points .product-module-card {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 96, 0, 0.075)),
        color-mix(in srgb, var(--product-dark) 82%, #1c6247);
    border-color: rgba(255, 209, 102, 0.18);
    box-shadow: 0 18px 55px rgba(9, 5, 2, 0.24);
}

.product-points .product-module-card:hover {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 96, 0, 0.105)),
        color-mix(in srgb, var(--product-dark) 78%, #1c6247);
    border-color: rgba(255, 209, 102, 0.38);
    box-shadow: 0 24px 70px rgba(255, 96, 0, 0.16);
}

.product-points .product-module-visual {
    height: 170px;
    background:
        linear-gradient(90deg, rgba(255, 209, 102, 0.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 209, 102, 0.08) 1px, transparent 1px),
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 96, 0, 0.18));
    background-size: 34px 34px, 34px 34px, auto;
    border-bottom: 1px solid rgba(255, 209, 102, 0.14);
}

.product-points .product-module-visual::after {
    display: none;
}

.product-points .product-module-visual i {
    width: 74px;
    height: 74px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(255, 209, 102, 0.95), rgba(255, 96, 0, 0.9));
    box-shadow: 0 18px 42px rgba(255, 96, 0, 0.22);
}

.product-distribution .product-module-visual {
    background: radial-gradient(circle at 25% 35%, rgba(255, 255, 255, .22), transparent 18%), linear-gradient(135deg, #064e3b, #10b981);
}

.product-hr .product-module-visual {
    background: linear-gradient(135deg, #172554, #3b82f6);
}

.product-oa .product-module-visual {
    background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .08) 0 10px, transparent 10px 20px), linear-gradient(135deg, #064e3b, #10b981);
}

.product-wms .product-module-visual {
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .12) 0 20px, transparent 20px 40px), linear-gradient(135deg, #1e3a8a, #409EFF);
}

.product-erp .product-module-visual {
    background: linear-gradient(135deg, rgba(255, 255, 255, .08) 0 10px, transparent 10px 20px), linear-gradient(135deg, #1e3a5f, #2563eb);
}

.product-trace .product-module-visual {
    background: radial-gradient(circle, rgba(255, 255, 255, .18) 0 5px, transparent 6px), linear-gradient(135deg, #0f46a3, #1890ff);
    background-size: 24px 24px, auto;
}

.product-location .product-module-visual {
    background: linear-gradient(135deg, #082BA6, #60a5fa);
}

.product-hairstyle .product-module-visual {
    background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, .25), transparent 18%), linear-gradient(135deg, #0083b0, #00b4db);
}

.product-skin .product-module-visual {
    background: radial-gradient(circle at 50% 50%, rgba(0, 229, 255, .28), transparent 32%), linear-gradient(135deg, #0B0C15, #7000FF);
}

/* Mega menu styles are defined in kunyue.css — no overrides here */

@media (max-width: 991px) {
    .product-hero-section {
        min-height: 500px;
    }

    .product-stat-item .stat-number {
        font-size: 34px;
    }
}

@media (max-width: 767px) {
    .product-hero-section {
        min-height: auto;
        padding-top: 100px;
    }

    .product-feature-card {
        padding: 22px 18px;
    }

    .product-mockup {
        min-height: auto;
    }
}