/* ============================================================
   Energy Yi - Modern Design System
   Premium dark gradient | Glassmorphism | Clean typography
   ============================================================ */

/* --- CSS Variables --- */
:root {
    --bg-primary: #0a0a0f;
    --bg-card: rgba(255,255,255,0.15);
    --bg-card-hover: rgba(255,255,255,0.22);
    --bg-surface: rgba(255,255,255,0.02);
    --text-primary: #f0ece4;
    --text-secondary: rgba(240,236,228,0.6);
    --text-muted: rgba(240,236,228,0.4);
    --cinnabar: #d4a850;
    --gold: #d4a850;
    --accent: #a78bfa;
    --accent-glow: rgba(167,139,250,0.15);
    --border-color: rgba(212,168,80,0.3);
    --border-hover: rgba(167,139,250,0.5);
    --glass-bg: rgba(15,15,25,0.6);
    --glass-border: rgba(212,168,80,0.1);
    --shadow-card: 0 1px 3px rgba(20,20,19,0.06);
    --shadow-elevated: 0 2px 8px rgba(20,20,19,0.08);
    --wood: #4CAF50;
    --fire: #cc785c;
    --earth: #e8a55a;
    --metal: #8e8b82;
    --water: #5db8a6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: linear-gradient(180deg, #0d2247 0%, #142c56 30%, #1a3360 60%, #10203f 100%) !important;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* --- 旋转八卦背景 --- */
.bagua-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(212,168,80,0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: baguaSpin 30s linear infinite;
    pointer-events: none;
    z-index: 0;
}
.bagua-bg::before {
    content: '☯';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 200px;
    color: #a78bfa;
    opacity: 0.06;
    text-shadow: 0 0 60px rgba(167,139,250,0.2),
                 0 0 120px rgba(212,168,80,0.1),
                 0 0 200px rgba(167,139,250,0.05);
}
@keyframes baguaSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes baguaPulse {
    0%, 100% { opacity: 0.08; }
    50% { opacity: 0.12; }
}

/* --- 金光粒子 --- */
.particle-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* --- 导航栏 --- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid rgba(212,168,80,0.1);
    z-index: 100;
    height: 64px;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 0.5rem; }
.logo { display: flex; align-items: center; gap: 0.5rem; }
.logo i { font-size: 1.5rem; color: var(--cinnabar); }
.logo span { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); }
.tagline { font-size: 0.75rem; color: var(--text-muted); }
.nav-menu { display: flex; gap: 0.5rem; }
.nav-toggle { display: none; }
.nav-overlay { display: none; }
.nav-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    transition: all 0.2s;
}
.nav-link:hover { color: #0a0a0f; background: #d4a850; border-color: #c49030; }
.nav-link.active { color: #0a0a0f; background: #d4a850; border-color: #c49030; }

.nav-account { position: relative; display: flex; align-items: center; }

/* --- 主内容 --- */
.main-content {
    max-width: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.page { display: none; }
.page.active { display: block; }

/* --- 首页 - Hero --- */
.hero-section {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 3rem 0;
    min-height: 60vh;
}
.hero-content { flex: 1; }
.hero-title {
    font-size: 0.6rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #c9d1d9, #a78bfa, #8b5cf6);
}
.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 1rem 0 2rem;
    line-height: 1.8;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual { flex: 0 0 300px; }

.section-title {
    text-align: center;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}
/* --- 太极与八卦轨道 --- */
.taiji-container {
    width: 280px; height: 280px;
    position: relative;
    margin: 0 auto;
}
.taiji {
    width: 200px; height: 200px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--gold) 0deg 180deg, rgba(255,255,255,0.1) 180deg 360deg);
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 40px rgba(167,139,250,0.15);
    animation: taijiSpin 12s linear infinite;
}
.taiji::before {
    content: '';
    position: absolute;
    top: 25%; left: 50%;
    width: 25px; height: 25px;
    background: var(--gold);
    border-radius: 50%;
    transform: translateX(-50%);
}
.taiji::after {
    content: '';
    position: absolute;
    bottom: 25%; left: 50%;
    width: 25px; height: 25px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    transform: translateX(-50%);
}
@keyframes taijiSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
.page-header {
    text-align: center;
    padding: 2rem 0;
}
.page-header h2 { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 400; color: var(--text-primary); letter-spacing: -0.01em; }
.page-header p { color: var(--text-secondary); font-size: 0.95rem; margin-top: 0.3rem; }
.reading-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem 1.8rem;
    margin-top: 0.8rem;
    backdrop-filter: blur(8px);
}
.reading-section h4 { color: var(--gold); font-size: 1rem; margin-bottom: 0.5rem; }
.orbit { position: absolute; width: 100%; height: 100%; }
.orbit-item {
    position: absolute;
    font-size: 1.5rem;
    animation: orbitSpin 20s linear infinite;
    animation-delay: calc(var(--i) * -2.5s);
    transform-origin: 140px 140px;
}
.orbit-item:nth-child(1) { transform: rotate(0deg) translateY(-100px); }
.orbit-item:nth-child(2) { transform: rotate(45deg) translateY(-100px); }
.orbit-item:nth-child(3) { transform: rotate(90deg) translateY(-100px); }
.orbit-item:nth-child(4) { transform: rotate(135deg) translateY(-100px); }
.orbit-item:nth-child(5) { transform: rotate(180deg) translateY(-100px); }
.orbit-item:nth-child(6) { transform: rotate(225deg) translateY(-100px); }
.orbit-item:nth-child(7) { transform: rotate(270deg) translateY(-100px); }
.orbit-item:nth-child(8) { transform: rotate(315deg) translateY(-100px); }

/* --- 功能卡片 --- */
.features-section { padding: 2rem 0; }
.feature-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.2s;
}
.feature-card:hover {
    background: #f5f0e8;
    border-color: var(--cinnabar);
}
.feature-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 500; color: var(--text-primary); margin: 0.8rem 0 0.5rem; }
/* ── Crystal Shop ── */
.shop-section {
    padding: 3rem 0 1rem;
}
.shop-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: -1rem 0 2rem;
}
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.2rem;
}
.shop-loading {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}
.shop-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
}
.shop-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-elevated);
    background: var(--bg-card-hover);
}
.shop-card-image {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.shop-card-image img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}
.shop-card-body {
    padding: 0.8rem 0.9rem 0.9rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.shop-card-body h4 {
    font-size: 0.82rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    line-height: 1.3;
    font-weight: 600;
}
.shop-card-body .shop-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--cinnabar);
}
.shop-card-body .shop-element {
    display: inline-block;
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
    margin: 0.3rem 0 0.4rem;
}
.shop-card-body .shop-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 0.6rem;
    flex: 1;
}
.shop-card-body .shop-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 0.6rem;
}
.shop-card-body .shop-benefits li {
    font-size: 0.68rem;
    color: var(--text-secondary);
    padding: 0.1rem 0;
}
.shop-card-body .shop-benefits li::before {
    content: "✦ ";
    color: var(--cinnabar);
    font-size: 0.6rem;
}
.shop-buy-btn {
    width: 100%;
    padding: 0.45rem;
    border: 1px solid var(--cinnabar);
    border-radius: 8px;
    background: transparent;
    color: var(--cinnabar);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.shop-buy-btn:hover {
    background: var(--cinnabar);
    color: #0a0a0f;
}
/* element badges */
.shop-element.fire { background: rgba(244,67,54,0.2); color: #ff7961; }
.shop-element.water { background: rgba(33,150,243,0.2); color: #64b5f6; }
.shop-element.wood { background: rgba(76,175,80,0.2); color: #81c784; }
.shop-element.metal { background: rgba(158,158,158,0.2); color: #e0e0e0; }
.shop-element.earth { background: rgba(255,152,0,0.2); color: #ffb74d; }
/* shop toast */
.shop-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--cinnabar);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    box-shadow: var(--shadow-elevated);
    backdrop-filter: blur(12px);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}
.shop-toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ── Shop Carousel ── */
.shop-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: rgba(0,0,0,0.15);
    border-radius: 8px 8px 0 0;
}
.shop-carousel-track {
    position: relative;
    width: 100%;
}
.shop-carousel-slide {
    display: none;
    width: 100%;
}
.shop-carousel-slide.active {
    display: block;
}
.shop-carousel-slide img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    display: block;
}
.shop-carousel-prev,
.shop-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
    z-index: 2;
}
.shop-carousel:hover .shop-carousel-prev,
.shop-carousel:hover .shop-carousel-next {
    opacity: 0.8;
}
.shop-carousel-prev { left: 6px; }
.shop-carousel-next { right: 6px; }
.shop-carousel-prev:hover,
.shop-carousel-next:hover {
    opacity: 1 !important;
    background: rgba(0,0,0,0.7);
}
.shop-carousel-dots {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 2;
}
.shop-carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: all 0.2s;
}
.shop-carousel-dot.active {
    background: var(--cinnabar, #D4A850);
    width: 18px;
    border-radius: 4px;
}
.shop-carousel-dot:hover {
    background: rgba(255,255,255,0.6);
}

/* ── Shop Video Button ── */
.shop-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.5rem 0.8rem;
    background: rgba(167,139,250,0.1);
    border: 1px solid rgba(167,139,250,0.3);
    border-radius: 8px;
    color: var(--cinnabar, #D4A850);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.shop-video-btn:hover {
    background: rgba(167,139,250,0.2);
    border-color: var(--cinnabar, #D4A850);
}
.shop-video-btn i {
    font-size: 1.1rem;
}

/* ── Shop Lightbox ── */
.shop-lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.shop-lightbox.active {
    display: flex;
}
.shop-lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    cursor: default;
}
.shop-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    z-index: 2;
    line-height: 1;
}
.shop-lightbox-close:hover { opacity: 1; }
.shop-lightbox-nav {
    position: absolute;
    left: 0; right: 0; top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 1;
}
.shop-lightbox-prev,
.shop-lightbox-next {
    pointer-events: auto;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    opacity: 0.7;
}
.shop-lightbox-prev:hover,
.shop-lightbox-next:hover {
    background: rgba(255,255,255,0.2);
    opacity: 1;
    transform: scale(1.1);
}

/* ── Shop Contact Modal ── */
.shop-contact-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
}
.shop-contact-modal.active {
    display: flex;
}
.shop-contact-content {
    background: #1a1a2e;
    border: 1px solid rgba(167,139,250,0.2);
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.shop-contact-close {
    position: absolute;
    top: 12px;
    right: 16px;
    color: #888;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}
.shop-contact-close:hover { color: #fff; }
.shop-contact-icon {
    font-size: 2.5rem;
    color: var(--cinnabar, #D4A850);
    margin-bottom: 0.5rem;
}
.shop-contact-content h3 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.2rem;
}
.shop-contact-btn {
    display: block;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    margin: 0.6rem 0;
    transition: all 0.2s;
}
.shop-contact-btn.whatsapp {
    background: #25D366;
    color: #fff;
}
.shop-contact-btn.whatsapp:hover {
    background: #1da851;
    transform: translateY(-1px);
}
.shop-contact-btn.email {
    background: rgba(167,139,250,0.15);
    color: var(--cinnabar, #D4A850);
    border: 1px solid rgba(167,139,250,0.3);
}
.shop-contact-btn.email:hover {
    background: rgba(167,139,250,0.25);
    transform: translateY(-1px);
}
.shop-contact-btn i {
    margin-right: 0.5rem;
}

/* ── Shop PayPal Modal ── */
.shop-paypal-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
}
.shop-paypal-modal.active {
    display: flex;
}
.shop-paypal-content {
    background: #1a1a2e;
    border: 1px solid rgba(167,139,250,0.2);
    border-radius: 16px;
    padding: 2rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.shop-paypal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    color: #888;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}
.shop-paypal-close:hover { color: #fff; }
.shop-paypal-icon {
    font-size: 2.5rem;
    color: var(--cinnabar, #D4A850);
    margin-bottom: 0.5rem;
}
.shop-paypal-success-icon {
    font-size: 3.5rem;
    color: #a78bfa;
    margin-bottom: 0.5rem;
}
.shop-paypal-content h3 {
    color: var(--text-primary);
    margin: 0 0 0.3rem 0;
    font-size: 1.2rem;
}
.shop-paypal-product {
    margin: 0.8rem 0;
}
.shop-paypal-product-name {
    color: var(--cinnabar, #D4A850);
    font-weight: 600;
    margin: 0.3rem 0;
    font-size: 0.95rem;
}
.shop-paypal-product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.2rem 0;
}
.shop-paypal-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1rem;
}
.shop-paypal-order-id {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.18);
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    margin: 0.3rem 0;
    font-family: monospace;
}

/* ── Two-Step Checkout Form ── */
.shop-checkout-form {
    text-align: left;
    margin-top: 0.8rem;
}
.shop-form-group {
    margin-bottom: 0.7rem;
}
.shop-form-group label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-weight: 500;
}
.shop-form-input {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    background: rgba(255,255,255,0.18);
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}
.shop-form-input:focus {
    border-color: var(--cinnabar, #a78bfa);
    box-shadow: 0 0 0 2px rgba(167,139,250,0.15);
}
.shop-form-input::placeholder {
    color: var(--text-muted);
    font-size: 0.78rem;
}
.shop-form-textarea {
    min-height: 60px;
    resize: vertical;
}
.shop-form-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    color: #ef4444;
    margin-bottom: 0.7rem;
}
.shop-paypal-customer-info {
    text-align: left;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    margin: 0.5rem 0;
}
.shop-paypal-customer-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0.2rem 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.shop-paypal-customer-info p i {
    width: 16px;
    color: var(--cinnabar, #a78bfa);
    font-size: 0.75rem;
}

/* PayPal button container responsive */
#paypal-button-container {
    min-height: 45px;
}
#paypal-button-container iframe {
    max-width: 100% !important;
}

/* ── Shop Specs ── */
.shop-specs {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin: 0.4rem 0;
}
.shop-spec {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.15);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}
.shop-spec i {
    font-size: 0.6rem;
    color: var(--cinnabar, #D4A850);
}

/* ── Trust Badges ── */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 0.8rem 0 1.5rem 0;
}
.trust-badges span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: nowrap;
}
.trust-badges i {
    color: #4CAF50;
    font-size: 0.85rem;
}

/* responsive */
@media (max-width: 640px) {
    .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
    .shop-card-body { padding: 0.6rem; }
    .shop-card-body h4 { font-size: 0.75rem; }
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}
.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-elevated);
    background: var(--bg-card-hover);
}
.feature-icon { font-size: 2.5rem; color: var(--gold); margin-bottom: 1.2rem; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--text-primary); }
.feature-card p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.7; }

/* --- 页面标题 --- */
.page-header {
    text-align: center;
    padding: 2rem 0;
}
.page-header h2 { font-size: 1.5rem; color: var(--cinnabar); }
.page-header p { color: var(--text-secondary); font-size: 0.9rem; margin-top: 0.3rem; }

/* --- 按钮 --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, #a78bfa, #b8912e);
    color: #0a0a0f;
    font-weight: 600;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(167,139,250,0.3); }
.btn-secondary {
    background: linear-gradient(135deg, rgba(212,168,80,0.8), rgba(99,102,241,0.6));
    color: #fff;
    border: 1px solid rgba(212,168,80,0.2);
}
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(212,168,80,0.3); }
.btn-outline {
    background: transparent;
    border: 1px solid rgba(167,139,250,0.3);
    color: var(--gold);
}
.btn-outline:hover { background: rgba(167,139,250,0.08); border-color: var(--gold); }
.btn-large { padding: 0.8rem 1.8rem; font-size: 1rem; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.75rem; }
.btn-test {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}
.btn-test:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.glow-btn {
    box-shadow: 0 2px 10px rgba(167,139,250,0.15);
}
.glow-btn:hover {
    box-shadow: 0 4px 25px rgba(167,139,250,0.25);
}
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- 表单 --- */
.bazi-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
}
.bazi-input-section, .bazi-result-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(8px);
}
.bazi-input-section h3, .bazi-result-section h3 {
    font-size: 1rem;
    color: var(--gold);
    margin-bottom: 1rem;
}
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255,255,255,0.15);
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    transition: all 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(167,139,250,0.1);
}
.radio-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.radio-group { display: flex; gap: 1rem; }
.radio-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    font-size: 0.85rem;
}
.form-actions { display: flex; gap: 0.5rem; margin-top: 1rem; }

.quick-test {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}
.quick-test h4 { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.test-buttons { display: flex; gap: 0.4rem; flex-wrap: wrap; }

/* --- 结果占位 --- */
.result-placeholder {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}
.placeholder-content i { font-size: 3rem; opacity: 0.3; margin-bottom: 1rem; }
.placeholder-content p { font-size: 0.85rem; }

/* --- 四柱八字（旧，保留兼容） --- */
.four-pillars h4 { font-size: 0.9rem; margin-bottom: 0.5rem; }
.pillars-grid { margin-bottom: 1rem; }
.pillar-card {
    padding: 1rem 0.8rem;
    border-radius: 12px;
    text-align: center;
    min-width: 70px;
    flex: 1;
}
.pillar-title { font-size: 0.7rem; color: rgba(255,255,255,0.8); margin-bottom: 0.3rem; }
.pillar-gan, .pillar-zhi { font-size: 1.5rem; font-weight: 900; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.pillar-nayin { font-size: 0.65rem; color: rgba(255,255,255,0.7); }

/* --- 解读区 --- */
.reading-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin-top: 0.8rem;
}
.reading-section h4 { color: var(--cinnabar); font-size: 1rem; margin-bottom: 0.5rem; }
.reading-section h5 { font-size: 0.9rem; margin: 0.5rem 0; }

/* --- 页脚 --- */
.footer {
    background: #1A1A1A;
    color: #ccc;
    padding: 2rem 1.5rem;
    margin-top: 3rem;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.footer-section h4 { color: var(--gold); font-size: 0.9rem; margin-bottom: 0.5rem; }
.footer-section p, .footer-section li { font-size: 0.8rem; color: #999; }
.footer-section ul { list-style: none; }
.footer-section a { color: #999; text-decoration: none; }
.footer-section a:hover { color: var(--gold); }
.social-links { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.social-links a { font-size: 1.2rem; color: #666; }
.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid #333;
    font-size: 0.75rem;
    color: #666;
}

/* --- Toast通知 --- */
.notification {
    position: fixed;
    top: 4rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 0.85rem;
    z-index: 999;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateX(-50%) translateY(-10px); } to { opacity: 1; } }

/* --- 响应式 --- */
@media (max-width: 768px) {
    .bazi-container { grid-template-columns: 1fr; }
    .hero-section { flex-direction: column; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-visual { flex: none; }
    .nav-menu { gap: 0; }
    .nav-link { font-size: 0.75rem; padding: 0.4rem 0.5rem; }
    .footer-content { grid-template-columns: 1fr; }
}

/* 命格分析加载动画 */
@keyframes loadingBar {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(200%); }
    100% { transform: translateX(400%); }
}

/* --- 命格分析全文展示优化 --- */
.reading-section {
    padding: 1rem 1.8rem;
}
.reading-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(195,39,43,0.12);
    padding-bottom: 0.4rem;
    margin-bottom: 0.6rem;
}
.reading-section h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0.6rem 0 0.2rem;
}
.reading-section p, .reading-section div[style], .reading-section strong + br + span, .reading-section {
    font-size: 0.9rem;
    line-height: 1.9;
}
.reading-section strong {
    font-weight: 600;
}

/* 排盘后结果区全宽 */
.bazi-result-section {
    grid-column: 1;
}

/* --- 合盘展示优化：全宽+字体 --- */
#hepan .bazi-container {
    max-width: 100%;
}
#hepan .bazi-input-section {
    max-width: 100%;
    margin: 0 auto;
}
/* 合盘输入表单横排 */
#hepan .hepan-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
#hepan .hepan-person {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem 1.2rem;
}
#hepan .bazi-result-section {
    grid-column: 1;
    max-width: 100%;
    margin: 1rem auto 0;
}
#hepan .reading-section {
    max-width: 100%;
    padding: 1.2rem 2rem;
}
#hepan .reading-section h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--cinnabar);
    border-bottom: 1px solid rgba(195,39,43,0.12);
    padding-bottom: 0.5rem;
    margin-bottom: 0.6rem;
}
#hepan .reading-section h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.7rem 0 0.3rem;
    color: var(--text-primary);
}
#hepan .reading-section p, #hepan .reading-section div:not(.reading-section) {
    font-size: 0.92rem;
    line-height: 2;
    color: var(--text-primary);
}
#hepan .reading-section strong {
    color: var(--cinnabar);
    font-weight: 600;
}

/* 全局字体优化 */
.reading-section {
    font-size: 0.92rem;
    line-height: 2;
}
.reading-section p {
    margin-bottom: 0.4rem;
}
.reading-section br {
    content: '';
    display: block;
    margin: 0.2rem 0;
}

/* ═══════════════════════════════════════════
   Product Detail Page
   ═══════════════════════════════════════════ */
.product-detail-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 1rem 1.5rem 3rem;
}

.back-to-shop {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--cinnabar, #a78bfa);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(167,139,250,0.25);
    border-radius: 8px;
    transition: all 0.2s;
}
.back-to-shop:hover {
    background: rgba(167,139,250,0.08);
    border-color: rgba(212,168,80,0.5);
}

/* Hero image area */
.product-detail-hero {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card, rgba(255,255,255,0.15));
    margin-bottom: 1.5rem;
}
.product-detail-hero .shop-carousel {
    width: 100%;
    max-height: 480px;
}
.product-detail-hero .shop-carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}
.product-detail-hero .shop-carousel-prev,
.product-detail-hero .shop-carousel-next {
    opacity: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* Info section */
.product-detail-info {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    margin-bottom: 2rem;
}
@media (max-width: 700px) {
    .product-detail-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.product-detail-main h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}
.product-detail-main .product-detail-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--cinnabar, #a78bfa);
    margin-bottom: 0.5rem;
}
.product-detail-main .product-detail-element {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
}
.product-detail-main .product-detail-element.metal { background: rgba(167,139,250,0.15); color: #a78bfa; }
.product-detail-main .product-detail-element.fire  { background: rgba(239,68,68,0.15); color: #ef4444; }
.product-detail-main .product-detail-element.water { background: rgba(59,130,246,0.15); color: #3b82f6; }
.product-detail-main .product-detail-element.wood  { background: rgba(34,197,94,0.15); color: #22c55e; }
.product-detail-main .product-detail-element.earth { background: rgba(168,85,247,0.15); color: #a855f7; }

.product-detail-main .product-detail-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}

/* Sidebar / sidebar-like info card */
.product-detail-sidebar {
    background: var(--bg-card, rgba(255,255,255,0.15));
    border: 1px solid var(--glass-border, rgba(255,255,255,0.20));
    border-radius: 12px;
    padding: 1.2rem;
}

.product-detail-specs h3,
.product-detail-benefits h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-detail-specs {
    margin-bottom: 1.2rem;
}
.product-detail-specs table {
    width: 100%;
    font-size: 0.82rem;
    border-collapse: collapse;
}
.product-detail-specs td {
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.product-detail-specs td:first-child {
    color: var(--text-muted);
    width: 40%;
}
.product-detail-specs td:last-child {
    color: var(--text-primary);
}

.product-detail-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.product-detail-benefits li {
    padding: 0.3rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.product-detail-benefits li::before {
    content: '\\2713';
    color: #22c55e;
    font-weight: bold;
    font-size: 0.8rem;
}

/* Video section */
.product-detail-video {
    margin-bottom: 1.5rem;
}
.product-detail-video h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.6rem;
}
.product-detail-video video {
    width: 100%;
    border-radius: 10px;
    background: #000;
}

/* Buy section */
.product-detail-buy {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(167,139,250,0.08), rgba(167,139,250,0.02));
    border: 1px solid rgba(167,139,250,0.15);
    border-radius: 12px;
    margin-bottom: 2rem;
}
.product-detail-buy .buy-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--cinnabar, #a78bfa);
    margin-bottom: 0.3rem;
}
.product-detail-buy .buy-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.product-detail-buy .buy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    background: linear-gradient(135deg, #a78bfa, #b8912e);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.product-detail-buy .buy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(167,139,250,0.3);
}

/* Related products */
.product-detail-related {
    margin-top: 2rem;
    border-top: 1px solid var(--glass-border, rgba(255,255,255,0.20));
    padding-top: 1.5rem;
}
.product-detail-related h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem;
}
.product-detail-related .related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.product-detail-related .related-card {
    background: var(--bg-card, rgba(255,255,255,0.15));
    border: 1px solid var(--glass-border, rgba(255,255,255,0.20));
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}
.product-detail-related .related-card:hover {
    border-color: rgba(212,168,80,0.3);
    transform: translateY(-2px);
}
.product-detail-related .related-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}
.product-detail-related .related-card .related-card-body {
    padding: 0.6rem;
}
.product-detail-related .related-card .related-card-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-detail-related .related-card .related-card-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cinnabar, #a78bfa);
    margin-top: 0.2rem;
}

/* Loading spinner */
.product-detail-loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

/* Clickable card cursor */
.shop-card {
    cursor: pointer;
}
.shop-card .shop-buy-btn,
.shop-card .shop-video-btn,
.shop-card .shop-carousel-prev,
.shop-card .shop-carousel-next,
.shop-card .shop-carousel-dot {
    cursor: pointer;
}
.related-card {
    cursor: pointer;
}

/* =========================================================================
   4 NEW FEATURES CSS
   ========================================================================= */

/* --- Daily Fortune Section --- */
.daily-fortune-section {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.fortune-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}
.fortune-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}
.fortune-placeholder {
    text-align: center;
    padding: 2rem;
}
.fortune-result {
    display: block;
}
.fortune-date {
    text-align: center;
    font-size: 0.9rem;
    color: var(--cinnabar);
    margin-bottom: 1rem;
    font-weight: 600;
}
.fortune-score {
    text-align: center;
    margin-bottom: 1rem;
}
.fortune-score-ring {
    position: relative;
    display: inline-block;
}
.fortune-score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}
.fortune-level {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0.3rem;
}
.fortune-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}
.fortune-good, .fortune-bad {
    flex: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
}
.fortune-good h4, .fortune-bad h4 {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}
.fortune-good ul, .fortune-bad ul {
    list-style: none;
    padding: 0;
}
.fortune-good li, .fortune-bad li {
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding: 0.2rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.fortune-lucky-grid {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.lucky-item {
    background: rgba(167,139,250,0.08);
    border: 1px solid rgba(167,139,250,0.15);
    border-radius: 10px;
    padding: 0.6rem 1rem;
    text-align: center;
    min-width: 100px;
}
.lucky-icon {
    display: block;
    font-size: 1.2rem;
    color: var(--cinnabar);
    margin-bottom: 0.2rem;
}
.lucky-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.lucky-value {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
}
.fortune-advice-card {
    background: linear-gradient(135deg, rgba(167,139,250,0.1), rgba(167,139,250,0.04));
    border: 1px solid rgba(167,139,250,0.2);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-style: italic;
    line-height: 1.6;
}
.fortune-advice-card i {
    color: var(--cinnabar);
    margin-right: 0.3rem;
    opacity: 0.6;
}

/* --- AI Chat Widget --- */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.chat-toggle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cinnabar), #b8943e);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(167,139,250,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    color: #1a1a1a;
    font-size: 1.3rem;
}
.chat-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 25px rgba(167,139,250,0.5);
}
.chat-panel {
    position: absolute;
    bottom: 65px;
    right: 0;
    width: 340px;
    height: 460px;
    background: #0a0a0f;
    border: 1px solid rgba(167,139,250,0.25);
    border-radius: 16px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, rgba(167,139,250,0.15), rgba(212,168,80,0.1));
    border-bottom: 1px solid rgba(167,139,250,0.15);
    font-size: 0.9rem;
    font-weight: 600;
}
.chat-header i {
    color: var(--cinnabar);
    margin-right: 0.4rem;
}
.chat-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0 0.3rem;
}
.chat-close:hover {
    color: var(--text-primary);
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.chat-msg {
    max-width: 85%;
    display: flex;
}
.chat-msg-bot {
    align-self: flex-start;
}
.chat-msg-user {
    align-self: flex-end;
}
.chat-msg-content {
    padding: 0.6rem 0.9rem;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
    word-wrap: break-word;
}
.chat-msg-bot .chat-msg-content {
    background: rgba(255,255,255,0.20);
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}
.chat-msg-user .chat-msg-content {
    background: rgba(167,139,250,0.15);
    border: 1px solid rgba(167,139,250,0.2);
    color: var(--text-primary);
    border-bottom-right-radius: 4px;
}
.chat-input-area {
    display: flex;
    gap: 0.5rem;
    padding: 0.7rem;
    border-top: 1px solid rgba(255,255,255,0.20);
    background: var(--bg-surface);
}
.chat-input {
    flex: 1;
    padding: 0.6rem 0.8rem;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
}
.chat-input:focus {
    border-color: var(--cinnabar);
}
.chat-send {
    padding: 0.6rem 0.9rem;
    background: var(--cinnabar);
    border: none;
    border-radius: 8px;
    color: #1a1a1a;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.chat-send:hover {
    background: #c49a3e;
}

/* --- Auth Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.modal-content {
    background: #0a0a0f;
    border: 1px solid rgba(167,139,250,0.25);
    border-radius: 16px;
    padding: 1.5rem;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(167,139,250,0.15);
}
.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}
.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.3rem;
    line-height: 1;
}
.modal-close:hover {
    color: var(--text-primary);
}
.modal-body .form-group {
    margin-bottom: 0.8rem;
}
.modal-body .form-group label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}
.modal-body .script-input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
}
.modal-body .script-input:focus {
    border-color: var(--cinnabar);
}
.dropdown-item:hover {
    background: rgba(255,255,255,0.20);
}

/* --- History Modal Scrollbar --- */
#historyBody::-webkit-scrollbar {
    width: 6px;
}
#historyBody::-webkit-scrollbar-thumb {
    background: rgba(167,139,250,0.3);
    border-radius: 3px;
}

/* --- Solar Time Indicator --- */
#solarTimeIndicator {
    font-size: 0.75rem;
    color: var(--bronze, #cd7f32);
    margin-top: 0.25rem;
}
#solarTimeIndicator i {
    margin-right: 0.3rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .fortune-details {
        flex-direction: column;
    }
    .chat-panel {
        width: 300px;
        height: 400px;
        right: -10px;
    }
    .nav-account {
        margin-top: 0.5rem;
    }
}
/* ============================================================
   Report Content Styling — Structured reading display
   ============================================================ */
.report-container {
    max-width: 800px;
    margin: 0 auto;
}

.report-section {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.2rem;
    box-shadow: var(--shadow-card);
}

.report-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cinnabar);
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(167,139,250,0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.report-section h3 .section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(167,139,250,0.15);
    color: var(--cinnabar);
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.report-section h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1rem 0 0.5rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--cinnabar);
}

.report-section p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
}

.report-section strong {
    color: var(--cinnabar);
    font-weight: 600;
}

.report-section ul, .report-section ol {
    margin: 0.5rem 0 0.5rem 1.2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.report-section li {
    margin-bottom: 0.3rem;
}

/* Element balance bar chart */
.element-balance {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
}

.element-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.element-label {
    width: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: right;
    flex-shrink: 0;
}

.element-bar-track {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.20);
    border-radius: 4px;
    overflow: hidden;
}

.element-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.element-value {
    width: 36px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: left;
    flex-shrink: 0;
}

/* Pillar cards (Year/Month/Day/Hour) */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    margin: 1rem 0;
}

.pillar-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.7rem;
    text-align: center;
}

.pillar-card .pillar-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
}

.pillar-card .pillar-ganzhi {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cinnabar);
}

.pillar-card .pillar-detail {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

/* Day Master badge */
.day-master-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(167,139,250,0.12);
    border: 1px solid rgba(167,139,250,0.25);
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cinnabar);
    margin-bottom: 0.8rem;
}

/* Strengths/Challenges pills */
.pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.pill-strength {
    background: rgba(76,175,80,0.12);
    border: 1px solid rgba(76,175,80,0.25);
    color: #4CAF50;
}

.pill-challenge {
    background: rgba(244,67,54,0.12);
    border: 1px solid rgba(244,67,54,0.25);
    color: #F44336;
}

.pill-crystal {
    background: rgba(212,168,80,0.12);
    border: 1px solid rgba(212,168,80,0.25);
    color: var(--accent);
}

/* Divider for report */
.report-divider {
    border: none;
    border-top: 1px solid rgba(167,139,250,0.15);
    margin: 1.2rem 0;
}

/* Score ring for compatibility */
.score-ring-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
}

/* Life stage timeline */
.life-stage {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
    align-items: flex-start;
}

.life-stage .stage-age {
    width: 80px;
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cinnabar);
    text-align: right;
    padding-top: 0.15rem;
}

.life-stage .stage-desc {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 640px) {
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .score-ring-wrap {
        flex-direction: column;
        gap: 1rem;
    }
    .report-section {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .chat-panel {
        width: calc(100vw - 30px);
        height: 50vh;
        right: -5px;
    }
}

/* ── Content Paywall Overlay ── */
.report-paywall {
    position: relative;
}
.report-paywall-blur {
    filter: blur(6px);
    user-select: none;
    pointer-events: none;
    transition: filter 0.3s ease;
}
.report-paywall-overlay {
    position: relative;
    padding: 2.5rem 1rem 2rem;
    margin-top: -4rem;
    text-align: center;
    background: linear-gradient(to top, rgba(10,10,15,0.98) 50%, rgba(10,10,15,0.3) 100%);
    z-index: 20;
    border-top: 1px solid rgba(167,139,250,0.15);
}
.report-paywall-overlay .paywall-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #a78bfa;
    margin-bottom: 0.5rem;
}
.report-paywall-overlay .paywall-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
.report-paywall-overlay .paywall-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    background: linear-gradient(135deg,#a78bfa,#8b5cf6);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(167,139,250,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}
.report-paywall-overlay .paywall-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(167,139,250,0.5);
}
.report-paywall-overlay .paywall-hint {
    margin-top: 0.8rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ── Sample Report Link ── */
.sample-report-link {
    display: inline-block;
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: #8b5cf6;
    text-decoration: none;
    border-bottom: 1px dashed rgba(212,168,80,0.4);
    transition: color 0.2s, border-color 0.2s;
    cursor: pointer;
}
.sample-report-link:hover {
    color: #a78bfa;
    border-color: rgba(212,168,80,0.6);
}

/* ── Sample Report Modal ── */
.sample-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sample-modal-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    cursor: pointer;
}
.sample-modal-content {
    position: relative;
    width: 95%;
    max-width: 900px;
    max-height: 95vh;
    background: #0a0a0f;
    border: 1px solid rgba(167,139,250,0.2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    z-index: 1;
}
.sample-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg,#ffffff,#0a0a0f);
    border-bottom: 1px solid rgba(167,139,250,0.15);
}
.sample-modal-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #a78bfa;
}
.sample-modal-close {
    background: none;
    border: none;
    color: #8a8070;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}
.sample-modal-close:hover {
    color: #fff;
}

/* ── Paywall Email Option ── */
.paywall-email-link {
    display: inline-block;
    font-size: 0.8rem;
    color: #8b5cf6;
    text-decoration: none;
    border-bottom: 1px dashed rgba(212,168,80,0.35);
    transition: color 0.2s, border-color 0.2s;
    cursor: pointer;
}
.paywall-email-link:hover {
    color: #a78bfa;
    border-color: rgba(212,168,80,0.6);
}
.paywall-email-btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg,#7c3aed,#6d28d9);
    border: 1px solid rgba(212,168,80,0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.paywall-email-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(212,168,80,0.3);
}

/* ═══ Hero Hub — Chat Center + Assessment Ring ═══ */
.hero-hub{position:relative;width:380px;height:380px;margin:2rem auto}
.hub-btn{position:absolute;display:flex;flex-direction:column;align-items:center;gap:0.3rem;width:72px;cursor:pointer;transition:all 0.2s;z-index:2}
.hub-btn:hover{transform:scale(1.1)}
.hb-icon{font-size:1.6rem;width:52px;height:52px;display:flex;align-items:center;justify-content:center;background:rgba(212,168,80,0.06);border:1.5px solid rgba(167,139,250,0.2);border-radius:50%;transition:all 0.2s}
.hub-btn:hover .hb-icon{background:rgba(212,168,80,0.15);border-color:rgba(167,139,250,0.5);box-shadow:0 0 20px rgba(167,139,250,0.15)}
.hb-label{font-size:0.65rem;color:var(--text-muted);text-align:center;white-space:nowrap}
/* 6 positions — hexagonal */
.hub-top-l{top:0;left:50%;transform:translateX(-50%)}
.hub-top-r{top:20%;right:5%}
.hub-mid-r{top:50%;right:-10px;transform:translateY(-50%)}
.hub-bot-r{bottom:20%;right:5%}
.hub-bot-l{bottom:0;left:50%;transform:translateX(-50%)}
.hub-mid-l{top:50%;left:-10px;transform:translateY(-50%)}
/* Center Chat */
.hub-center{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;cursor:pointer;z-index:5}
.hc-ring{position:absolute;width:100px;height:100px;border-radius:50%;border:1.5px solid rgba(167,139,250,0.2);animation:hcPulse 3s ease-in-out infinite}
@keyframes hcPulse{0%,100%{transform:scale(1);opacity:.4}50%{transform:scale(1.15);opacity:.8}}
.hc-inner{width:78px;height:78px;border-radius:50%;background:radial-gradient(circle,#a78bfa 30%,#8b5cf6 100%);display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:1.5rem;color:#fff;box-shadow:0 0 30px rgba(167,139,250,0.3);position:relative;z-index:1}
.hc-inner span{font-size:0.5rem;opacity:.8;margin-top:-2px}
.hc-label{font-size:0.7rem;color:#d4a850;margin-top:0.4rem;font-weight:600}

@media(max-width:768px){.hero-hub{width:300px;height:300px}.hub-btn{width:60px}.hb-icon{font-size:1.3rem;width:44px;height:44px}.hc-ring{width:80px;height:80px}.hc-inner{width:64px;height:64px;font-size:1.2rem}.hub-mid-r{right:-5px}.hub-mid-l{left:-5px}}

/* ═══ Left Sidebar Buttons ═══ */
.ey-sidebar{display:flex;flex-direction:column;gap:0.5rem;max-width:160px}

.ey-sb-item{display:flex;flex-wrap:wrap;align-items:center;gap:0.4rem 0.6rem;padding:0.55rem 0.8rem;background:rgba(212,168,80,0.06);border:1px solid rgba(212,168,80,0.12);border-radius:10px;cursor:pointer;transition:all 0.2s;max-width:280px}
.ey-sb-item:hover{background:rgba(212,168,80,0.14);border-color:rgba(167,139,250,0.4);transform:translateX(2px)}
.ey-sb-icon{font-size:1rem;min-width:22px;text-align:center}
.ey-sb-label{font-size:0.82rem;font-weight:700;color:#f0ece4;min-width:50px}
.ey-sb-desc{font-size:0.68rem;color:rgba(240,236,228,0.6);width:100%;padding-left:24px}

.ey-sb-sample{font-size:0.6rem;color:#d4a850;text-decoration:none;margin-top:0.2rem;display:inline-block;opacity:0.7}
.ey-sb-sample:hover{opacity:1;text-decoration:underline}
.ey-sb-item{background:rgba(212,168,80,0.1);border:1px solid rgba(212,168,80,0.2)}
.ey-sb-item:hover{background:rgba(212,168,80,0.1);border-color:rgba(212,168,80,0.3)}
.ey-sb-label{color:#d4a850}

/* ═══ Button Contrast Boost ═══ */
.ey-sb-item{background:rgba(212,168,80,0.08)!important;border:1px solid rgba(212,168,80,0.2)!important;transition:all 0.2s}
.ey-sb-item:hover{background:rgba(212,168,80,0.18)!important;border-color:rgba(212,168,80,0.4)!important;box-shadow:0 0 15px rgba(212,168,80,0.1)}
.ey-sb-icon{font-size:1.1rem!important}
.ey-sb-label{font-size:0.82rem;font-weight:700;color:#f0ece4;min-width:50px}
.ey-sb-desc{font-size:0.68rem;color:rgba(240,236,228,0.6);width:100%;padding-left:24px}
.nav-link{font-size:0.85rem!important;font-weight:600!important}
.nav-link.active{background:#d4a850!important;color:#0a0a0f!important;box-shadow:0 0 12px rgba(212,168,80,0.3)}
.nav-link:not(.active):hover{background:rgba(212,168,80,0.15)!important}
.glow-btn,.btn-primary{background:linear-gradient(135deg,#d4a850,#e5b858)!important;color:#0a0a0f!important;font-weight:700!important;box-shadow:0 0 20px rgba(212,168,80,0.2)!important;border:none!important}
.btn-secondary{background:rgba(212,168,80,0.1)!important;border:1.5px solid rgba(212,168,80,0.3)!important;color:#d4a850!important;font-weight:600!important}
.btn-account{font-weight:600!important}

/* ═══ Mobile Optimization ═══ */
@media (max-width: 768px) {
    /* Stack layout vertically */
    body { padding: 0 0.5rem; }
    
    /* Tagline */
    .hero-content p { font-size: 0.7rem !important; }
    
    /* Flex container → column */
    .hero-content > div:last-child {
        flex-direction: column !important;
        gap: 0.8rem !important;
        margin: 0.5rem auto !important;
    }
    
    /* Hide right sidebar */
    .ey-sidebar:last-of-type { display: none; }
    
    /* Left sidebar → horizontal scroll */
    .ey-sidebar:first-of-type {
        flex-direction: row !important;
        overflow-x: auto;
        gap: 0.4rem;
        padding: 0 0.5rem;
        position: static !important;
    }
    .ey-sb-item {
        min-width: 100px;
        padding: 0.4rem 0.6rem !important;
    }
    .ey-sb-label { font-size: 0.65rem !important; }
    .ey-sb-desc { display: none; }
    .ey-sb-sample { font-size: 0.55rem !important; }
    
    /* Chat dialog — full width */
    .hero-content > div:nth-child(3),
    div[style*="width:740px"] {
        width: 100% !important;
        min-width: unset !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 420px;
        padding: 0.8rem !important;
    }
    
    /* Messages area */
    #eyHomeMsgs {
        min-height: 220px !important;
        max-height: 300px !important;
    }
    
    /* Input */
    #eyHomeInput { font-size: 0.75rem !important; padding: 0.5rem !important; }
    button[onclick*="eyHomeSend"] { padding: 0.5rem 0.8rem !important; font-size: 0.7rem !important; }
    
    /* Nav */
    .nav-menu { gap: 0.2rem; }
    .nav-link { font-size: 0.65rem !important; padding: 0.3rem 0.5rem !important; }
    
    /* Modals */
    .modal-content { max-width: 95% !important; margin: 1rem; }
    
    /* Legal */
    div[style*="text-align:center;padding:0.8rem;font-size:0.5rem"] { font-size: 0.4rem !important; }
    
    /* Home section */
    #home.active { height: auto !important; overflow: visible !important; min-height: 100vh; }
}

/* ═══ Bottom Dock ═══ */
.ey-dock { user-select: none; }
.dock-item {
    display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
    color: rgba(255,255,255,0.84); cursor: pointer; transition: all 0.25s ease;
    padding: 0.4rem 0.6rem; border-radius: 10px; min-width: 60px;
    position: relative;
}
.dock-item:hover { color: #d4a850; transform: translateY(-3px); background: rgba(212,168,80,0.1); }
.dock-icon { font-size: 1.4rem; transition: transform 0.25s ease; }
.dock-item:hover .dock-icon { transform: scale(1.15); }
.dock-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; color: rgba(255,255,255,0.4); }
.dock-item:hover .dock-label { color: #d4a850; }

/* ═══ Star Background ═══ */
body::before {
    content: '';
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image: 
        radial-gradient(1px 1px at 8% 12%, rgba(255,255,255,0.22), transparent),
        radial-gradient(1px 1px at 22% 55%, rgba(255,255,255,0.18), transparent),
        radial-gradient(1.5px 1.5px at 38% 8%, rgba(255,255,255,0.25), transparent),
        radial-gradient(1px 1px at 52% 38%, rgba(255,255,255,0.15), transparent),
        radial-gradient(1px 1px at 68% 75%, rgba(255,255,255,0.20), transparent),
        radial-gradient(1.5px 1.5px at 82% 22%, rgba(255,255,255,0.22), transparent),
        radial-gradient(1px 1px at 12% 88%, rgba(255,255,255,0.18), transparent),
        radial-gradient(1px 1px at 58% 12%, rgba(255,255,255,0.15), transparent),
        radial-gradient(1.5px 1.5px at 90% 52%, rgba(255,255,255,0.20), transparent),
        radial-gradient(1px 1px at 30% 72%, rgba(255,255,255,0.18), transparent),
        radial-gradient(2px 2px at 18% 42%, rgba(212,168,80,0.18), transparent),
        radial-gradient(2px 2px at 72% 22%, rgba(212,168,80,0.15), transparent);
}

/* ═══ Floating Chat Butterfly ═══ */
.fixed-butterfly {
    position: fixed; right: 18px; top: 50%; transform: translateY(-50%);
    width: 69px; height: 69px; background: linear-gradient(135deg, #34d399, #059669); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 100; box-shadow: 0 4px 20px rgba(52,211,153,0.4);
    transition: transform 0.3s; text-decoration: none;
}
.fixed-butterfly:hover { transform: translateY(-50%) scale(1.1); }
.fixed-butterfly span { font-size: 0.55rem; color: #fff; font-weight: 700; animation: butterflySpin 3s ease-in-out infinite; line-height: 1.1; text-align: center; }
@keyframes butterflySpin {
    0%{transform:rotate(0deg)} 25%{transform:rotate(8deg)} 50%{transform:rotate(0deg)} 75%{transform:rotate(-8deg)} 100%{transform:rotate(0deg)}
}
}
/* Dock click feedback */
.dock-item:active::before {
    content: '↓'; position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%);
    font-size: 0.8rem; color: #d4a850; animation: bounceDown 0.6s ease-out;
}
@keyframes bounceDown {
    0%{opacity:1;transform:translateX(-50%) translateY(0)} 100%{opacity:0;transform:translateX(-50%) translateY(10px)}
}

.fixed-butterfly{position:fixed;right:18px;top:50%;transform:translateY(-50%);width:60px;height:60px;background:linear-gradient(135deg,#34d399,#059669);border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:100;box-shadow:0 4px 20px rgba(52,211,153,0.4);transition:transform 0.3s;text-decoration:none}
.fixed-butterfly:hover{transform:translateY(-50%) scale(1.1)}
.fixed-butterfly span{font-size:0.55rem;color:#fff;font-weight:700;animation:butterflySpin 3s ease-in-out infinite;line-height:1.1;text-align:center}
@keyframes butterflySpin{0%{transform:rotate(0deg)}25%{transform:rotate(8deg)}50%{transform:rotate(0deg)}75%{transform:rotate(-8deg)}100%{transform:rotate(0deg)}}
