﻿/* ===== PANLAI Lighting Global Styles ===== */
:root {
    --bg: #0a0a0a;
    --bg-soft: #111111;
    --bg-card: #151515;
    --bg-placeholder: #1c1c1c;
    --text: #eee;
    --text-muted: #aaa;
    --text-dim: #888;
    --accent: #E3C08D;
    --accent-dark: #b8945c;
    --border: #222;
    --glow: rgba(227, 192, 141, 0.18);
    --shadow: rgba(0, 0, 0, 0.8);
}

/* Light mode (homepage lamp-on toggle) */
body.light-mode {
    --bg: #faf7f1;
    --bg-soft: #ffffff;
    --bg-card: #ffffff;
    --bg-placeholder: #f0ebe2;
    --text: #1c1a17;
    --text-muted: #6b645a;
    --text-dim: #9a9288;
    --accent: #b8945c;
    --accent-dark: #8a6a3c;
    --border: #ece4d6;
    --glow: rgba(184, 148, 92, 0.22);
    --shadow: rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}
html {
    scroll-behavior: smooth;
}
body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.6s ease, color 0.6s ease;
}
a {
    text-decoration: none;
    color: var(--text);
}
img {
    max-width: 100%;
    display: block;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== Header ===== */
header {
    background: var(--bg-soft);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 99;
    border-bottom: 1px solid var(--border);
    transition: background 0.5s ease, box-shadow 0.3s ease;
}
header.scrolled {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.45);
}
body.light-mode header.scrolled {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
}
.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: var(--accent);
    letter-spacing: 1px;
    transition: color 0.4s ease;
}
.logo img {
    height: 42px;
    width: auto;
    border-radius: 8px;
    content: url('../images/panlai-logo-white.png');
}
body.light-mode .logo img {
    content: url('../images/panlai-logo.png');
}
.nav a {
    margin-left: 25px;
    transition: 0.3s;
    font-size: 15px;
    color: var(--text);
}
.nav a:hover,
.nav a.active {
    color: var(--accent);
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
/* Lamp toggle button (with label) */
.light-toggle {
    height: 40px;
    padding: 0 18px;
    border-radius: 30px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.4s ease;
    white-space: nowrap;
}
.light-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 0 18px var(--glow);
    border-color: var(--accent);
}
/* Language switch */
.lang-switch {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 30px;
    overflow: hidden;
    background: var(--bg-card);
}
.lang-btn {
    padding: 8px 14px;
    font-size: 13px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}
.lang-btn:hover {
    color: var(--accent);
}
.lang-btn.lang-active {
    background: var(--accent);
    color: #1a1a1a;
}

/* ===== Hero ===== */
.hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 70% 20%, rgba(227,192,141,0.14), transparent 55%),
        radial-gradient(ellipse at 20% 80%, rgba(227,192,141,0.08), transparent 50%),
        linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
        url('../images/hero-bg.jpg') center/cover no-repeat;
    transition: background 0.8s ease;
}
body.light-mode .hero {
    background:
        radial-gradient(ellipse at 70% 20%, rgba(184,148,92,0.16), transparent 55%),
        radial-gradient(ellipse at 20% 80%, rgba(184,148,92,0.10), transparent 50%),
        linear-gradient(rgba(250,247,241,0.82), rgba(250,247,241,0.86)),
        url('../images/hero-bg.jpg') center/cover no-repeat;
}
.hero-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,235,200,0.16) 0%, transparent 65%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    left: -200px;
    top: -200px;
    transition: opacity 0.4s ease;
    z-index: 1;
}
.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 0;
}
.hero-brand {
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 14px;
    text-shadow: 0 0 30px var(--glow);
}
.hero-tag {
    display: inline-block;
    letter-spacing: 3px;
    font-size: 13px;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 28px;
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(4px);
}
body.light-mode .hero-tag {
    background: rgba(255,255,255,0.5);
}
.hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 22px;
    color: var(--text);
    min-height: 1.3em;
}
.type-cursor {
    color: var(--accent);
    animation: blink 0.8s step-end infinite;
}
@keyframes blink {
    50% { opacity: 0; }
}
.hero-sub {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 36px;
}
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-scroll {
    margin-top: 70px;
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--text-dim);
    animation: float 2.4s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    background: var(--accent);
    color: #1a1a1a;
    padding: 13px 32px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 15px;
    letter-spacing: 0.5px;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--glow);
    color: #000;
}
.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--accent);
}
.btn-ghost:hover {
    background: var(--accent);
    color: #1a1a1a;
}

/* ===== Section ===== */
section {
    padding: 80px 0;
}
.bg-soft {
    background: var(--bg-soft);
    transition: background 0.5s ease;
}
.title {
    text-align: center;
    margin-bottom: 50px;
}
.title h2 {
    font-size: 36px;
    color: var(--accent);
    margin-bottom: 10px;
}
.title p {
    color: var(--text-muted);
}

/* ===== Product Grid ===== */
.category-block {
    margin-bottom: 60px;
}
.category-title {
    font-size: 26px;
    color: var(--accent);
    border-left: 4px solid var(--accent);
    padding-left: 15px;
    margin-bottom: 10px;
}
.category-sub {
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 25px;
    padding-left: 19px;
}
.sub-category-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    margin: 30px 0 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.sub-category-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}
.sub-category-title span {
    color: var(--accent);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1px;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.product-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.5s ease;
    transform-style: preserve-3d;
    will-change: transform;
    border: 1px solid transparent;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 40px var(--shadow), 0 0 24px var(--glow);
    border-color: rgba(227,192,141,0.35);
}
.product-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.product-card:hover img {
    transform: scale(1.05);
}
.product-info {
    padding: 20px;
}
.product-info h3 {
    margin-bottom: 10px;
    color: var(--text);
}
.product-info p {
    color: var(--text-muted);
    font-size: 14px;
}
.img-placeholder {
    height: 260px;
    background: var(--bg-placeholder);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}
.category-icon {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 76px;
    background: var(--bg-placeholder);
    border-bottom: 1px solid var(--border);
    transition: transform 0.4s ease;
}

.category-img { width: 100%; height: 200px; object-fit: cover; display: block; border-radius: 12px 12px 0 0; }

.product-card:hover .category-icon {
    transform: scale(1.1);
}

.category-img { width: 100%; height: 200px; object-fit: cover; display: block; border-radius: 12px 12px 0 0; }

.category-card h3 {
    font-size: 20px;
}
.category-count {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 3px 12px;
    border-radius: 20px;
}

/* ===== Stats ===== */
.stats {
    padding: 60px 0;
    background: var(--bg-soft);
    transition: background 0.5s ease;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}
.stat-num {
    font-size: 52px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
}
.stat-label {
    color: var(--text-muted);
    margin-top: 8px;
    font-size: 15px;
    letter-spacing: 1px;
}

/* ===== Feature / Advantage Cards ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}
.feature-item {
    padding: 30px 20px;
    border-radius: 12px;
    transition: all 0.4s ease;
    border: 1px solid transparent;
}
.feature-item:hover {
    background: var(--bg-card);
    border-color: rgba(227,192,141,0.3);
    transform: translateY(-6px);
    box-shadow: 0 12px 32px var(--shadow);
}
.feature-icon {
    font-size: 34px;
    margin-bottom: 15px;
    display: block;
}
.feature-item h3 {
    color: var(--accent);
    margin-bottom: 12px;
}
.feature-item p {
    color: var(--text-muted);
}
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.advantage-item {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.advantage-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px var(--shadow);
}
.advantage-item h3 {
    color: var(--accent);
    margin-bottom: 15px;
}
.advantage-item p {
    color: var(--text-muted);
}

/* ===== Product Detail ===== */
.detail-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.detail-wrap img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 12px;
}
.detail-info h2 {
    color: var(--accent);
    margin-bottom: 20px;
}
.detail-info p {
    color: var(--text-muted);
    margin-bottom: 20px;
}
.spec-list {
    color: var(--text-muted);
    line-height: 2;
    list-style: none;
}
.spec-list strong {
    color: var(--text);
}

/* ===== Contact ===== */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.contact-info h3 {
    color: var(--accent);
    margin-bottom: 20px;
}
.contact-info p {
    color: var(--text-muted);
    line-height: 2;
}
.contact-info strong {
    color: var(--text);
}
form input,
form textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 15px;
    margin-bottom: 20px;
    color: var(--text);
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}
form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--accent);
}
form input[type="file"] {
    padding: 10px;
}
form .btn {
    border: none;
    width: 100%;
    text-align: center;
}

/* ===== About ===== */
.about-text {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 17px;
    line-height: 2;
}
.about-text p {
    margin-bottom: 20px;
}

/* ===== CTA Section ===== */
.cta-section {
    text-align: center;
}
.cta-section h2 {
    margin-bottom: 20px;
    color: var(--text);
    font-size: 34px;
}
.cta-section p {
    margin-bottom: 30px;
    color: var(--text-muted);
}

/* ===== Footer ===== */
footer {
    background: var(--bg-soft);
    text-align: center;
    padding: 30px 0;
    color: var(--text-dim);
    font-size: 14px;
    border-top: 1px solid var(--border);
    transition: background 0.5s ease;
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===== Tilt Card ===== */
.tilt-wrap {
    perspective: 900px;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .nav { display: none; }
    .hero { min-height: 78vh; }
    .hero-title { font-size: 34px; }
    .hero-sub { font-size: 16px; }
    .product-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .advantage-grid { grid-template-columns: 1fr; }
    .detail-wrap { grid-template-columns: 1fr; }
    .contact-wrap { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    section { padding: 50px 0; }
    .title h2 { font-size: 28px; }
    .stat-num { font-size: 40px; }
}

/* ===== Quote Cart ===== */
.quote-link { position: relative; display: inline-flex; align-items: center; gap: 2px; margin-left: 14px; font-size: 19px; color: #E3C08D; text-decoration: none; }
.quote-link:hover { opacity: .85; }
.quote-badge { position: absolute; top: -8px; right: -13px; min-width: 17px; height: 17px; border-radius: 9px; background: #C0392B; color: #fff; font-size: 10.5px; line-height: 17px; text-align: center; padding: 0 4px; font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.btn-quote { margin-top: 24px; margin-right: 10px; background: transparent; border: 1px solid #E3C08D; color: #E3C08D; cursor: pointer; }
.btn-quote:hover { background: #E3C08D; color: #0a0a0a; }
body.light-mode .quote-link { color: #8a6a3c; }
/* quote page */
.q-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px; }
.q-row { display: flex; align-items: center; gap: 16px; background: #131313; border: 1px solid rgba(227,192,141,.18); border-radius: 14px; padding: 12px 16px; }
.q-row img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.q-row .q-name { flex: 1; color: #fff; font-size: 15px; }
.q-row .q-qty { display: flex; align-items: center; gap: 10px; color: #9a9a9a; }
.q-row .q-qty button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(227,192,141,.4); background: transparent; color: #E3C08D; cursor: pointer; font-size: 15px; line-height: 1; }
.q-row .q-qty button:hover { background: #E3C08D; color: #0a0a0a; }
.q-row .q-del { background: none; border: none; color: #c0392b; cursor: pointer; font-size: 15px; }
.q-form label { display: block; font-size: 13px; color: #9a9a9a; margin: 14px 0 6px; }
.q-form input, .q-form textarea { width: 100%; background: #131313; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 11px 14px; color: #eee; font-size: 14px; outline: none; box-sizing: border-box; }
.q-form input:focus, .q-form textarea:focus { border-color: #E3C08D; }
.q-send { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.q-send .btn { margin-top: 0; }
.q-send .btn-wa { background: #25D366; border-color: #25D366; color: #fff; }
.q-send .btn-wa:hover { opacity: .9; }
.q-send .btn-mail { background: transparent; border: 1px solid #E3C08D; color: #E3C08D; }
.q-send .btn-mail:hover { background: #E3C08D; color: #0a0a0a; }
.q-hint { margin-top: 16px; font-size: 12px; color: #777; }
.q-empty { color: #9a9a9a; text-align: center; padding: 40px 0; }
body.light-mode .q-row { background: #fff; border-color: rgba(184,148,92,.25); }
body.light-mode .q-row .q-name { color: #1c1a17; }
body.light-mode .q-form input, body.light-mode .q-form textarea { background: #fff; border-color: rgba(0,0,0,.14); color: #222; }
body.light-mode .q-empty { color: #777; }
/* toast */
.q-toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); background: #E3C08D; color: #0a0a0a; padding: 12px 22px; border-radius: 30px; font-size: 14px; z-index: 10000; opacity: 0; transition: opacity .3s; pointer-events: none; white-space: nowrap; max-width: 90vw; overflow: hidden; text-overflow: ellipsis; }
.q-toast.show { opacity: 1; }

/* ===== Social icons ===== */
.social-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 26px; padding-top: 22px; border-top: 1px dashed rgba(255,255,255,.12); }
.soc { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; width: 62px; }
.soc-ic { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; transition: transform .2s; box-shadow: 0 3px 10px rgba(0,0,0,.3); }
.soc:hover .soc-ic { transform: scale(1.12); }
.soc-t { font-size: 11px; color: #9a9a9a; }
.soc.wa .soc-ic { background: #25D366; }
.soc.wechat .soc-ic { background: #07C160; }
.soc.xhs .soc-ic { background: #FF2442; font-weight: 700; font-style: normal; font-size: 17px; }
.soc.ig .soc-ic { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.soc.tt .soc-ic { background: #010101; }
.soc.fb .soc-ic { background: #1877F2; font-family: Georgia, serif; font-weight: 700; font-size: 25px; }
.soc.x .soc-ic { background: #000; font-size: 21px; }
body.light-mode .soc-t { color: #777; }
.soc-label { width: 100%; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #E3C08D; margin-bottom: 4px; }

.soc-ic { color: #fff; }
.soc-ic svg { width: 22px; height: 22px; fill: currentColor; display: block; }

/* ===== WeChat QR modal ===== */
.qr-modal { position: fixed; inset: 0; background: rgba(0,0,0,.72); display: none; align-items: center; justify-content: center; z-index: 20000; }
.qr-box { position: relative; background: #fff; border-radius: 16px; padding: 26px 30px 22px; text-align: center; max-width: 320px; width: 84%; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.qr-close { position: absolute; top: 10px; right: 12px; background: none; border: none; font-size: 18px; color: #999; cursor: pointer; }
.qr-img { width: 220px; height: 220px; object-fit: contain; border-radius: 8px; }
.qr-text { margin: 12px 0 2px; font-size: 14px; color: #222; }
.qr-text b { color: #07C160; }
.qr-hint { margin: 0; font-size: 12px; color: #777; }

.qr-copy { margin-top: 12px; background: #07C160; color: #fff; border: none; border-radius: 22px; padding: 9px 20px; font-size: 13px; cursor: pointer; }
.qr-copy:hover { opacity: .9; }

/* ===== Catalog ===== */
.catalog-wrap { display: grid; grid-template-columns: 380px 1fr; gap: 50px; align-items: center; }
.catalog-cover { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.catalog-cover img { width: 100%; display: block; aspect-ratio: 3/4; object-fit: cover; }
.catalog-badge { position: absolute; top: 14px; left: 14px; background: var(--accent, #b8945c); color: #000; font-size: 12px; letter-spacing: 2px; padding: 5px 12px; border-radius: 20px; font-weight: 700; }
.catalog-info h2 { margin-bottom: 16px; }
.catalog-info p { color: var(--text-muted); line-height: 1.8; margin-bottom: 24px; }
.catalog-actions { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 768px) { .catalog-wrap { grid-template-columns: 1fr; } .catalog-cover { max-width: 320px; margin: 0 auto; } }