/* ===== 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('https://images.unsplash.com/photo-1581337524873-1a90e9878251?auto=format&fit=crop&w=1920&q=80') 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('https://images.unsplash.com/photo-1581337524873-1a90e9878251?auto=format&fit=crop&w=1920&q=80') 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-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;
}
.product-card:hover .category-icon {
    transform: scale(1.1);
}
.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; }
}
