 * { box-sizing: border-box; }
    body{ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", sans-serif; overflow-x: hidden; }
        .text-gold { color: #d4af37; }
        .border-gold { border-color: #d4af37; }
        .bg-gold { background: #d4af37; }
        .line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
        .line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

        /* ===== Header (sticky，下滑時固定在頂部) ===== */
        .site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid #f0f0f0; background: white; transition: box-shadow 0.3s; }
        .site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
        .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; max-width: 1440px; margin: 0 auto; padding: 0.75rem 1.5rem; gap: 1rem; }
        .header-left { display: flex; align-items: center; gap: 0.75rem; }
        .header-right { display: flex; align-items: center; gap: 0.75rem; justify-content: flex-end; }
        .header-center { display: flex; justify-content: center; }
        .header-logo { font-family: "Times New Roman", Times, serif; font-size: 1.5rem; font-weight: 700; color: #d4af37; letter-spacing: 0.15em; text-decoration: none; }
        .header-icon-btn { background: none; border: none; cursor: pointer; padding: 0.4rem; color: #4b5563; display: flex; align-items: center; border-radius: 9999px; transition: all 0.2s; }
        .header-icon-btn:hover { background: #f3f4f6; color: #d4af37; }

         /* ===== Hero Banner (純黑背景，超簡潔高級) ===== */
        .hero-section { background: #000000; min-height: 30vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 3rem 1.5rem; }

        /* ===== Section ===== */
        .section-title { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: #d4af37; margin-bottom: 0.5rem; }
        .section-heading { font-size: 1.5rem; font-weight: 300; color: #111827; margin-bottom: 2rem; }

        /* ===== Product Card (參考 market.php) ===== */
        .product-card { background: white; border-radius: 12px; overflow: hidden; cursor: pointer; transition: box-shadow 0.3s; }
        .product-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
        .product-card .img-wrap { position: relative; aspect-ratio: 3/4; background: #f9f9f9; overflow: hidden; border-radius: 12px; }
        .product-card img { width: 100%; height: 100%; object-fit: cover; }
        .product-card .card-body { padding: 0.5rem 0; }
        .product-card .brand { font-size: 0.6rem; font-weight: 700; color: #d4af37; text-transform: uppercase; letter-spacing: 0.1em; }
        .product-card .title { font-size: 0.8rem; color: #111827; font-weight: 500; }
        .product-card .price { font-size: 0.9rem; font-weight: 600; color: #111827; }


        /* ===== Grid ===== */
        .grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
        @media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
        @media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }

        /* ===== Mobile Menu (超輕量，無動畫) ===== */
        .mobile-menu-overlay { position: fixed; inset: 0; background: white; z-index: 200; display: none; flex-direction: column; padding: 1.5rem; }
        .mobile-menu-overlay.visible { display: flex; }
        .mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
        .mobile-nav-list { flex: 1; overflow-y: auto; }
        .mobile-nav-item { display: block; padding: 1rem 0; border-bottom: 1px solid #f3f4f6; font-size: 1rem; font-weight: 500; cursor: pointer; color: #374151; text-decoration: none; }
        .mobile-nav-item:hover { color: #d4af37; }
        .mobile-nav-item:last-child { border-bottom: none; }


        /* ===== Auth (參考 market.php 動畫效果) ===== */
        #auth-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(8px); z-index: 1000; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
        #auth-overlay.active { opacity: 1; visibility: visible; }
        #auth-popup { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(0.92); background: white; width: 90%; max-width: 450px; border-radius: 20px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); z-index: 1001; opacity: 0; visibility: hidden; overflow: hidden; transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.16,1,0.3,1), visibility 0.3s ease; }
        #auth-popup.active { opacity: 1; visibility: visible; transform: translate(-50%,-50%) scale(1); }
        .auth-container { padding: 2.5rem; position: relative; }
        .form-wrapper { display: none; }
        .form-wrapper.active { display: block; }
        .auth-input { width: 100%; padding: 1rem; border: 1px solid #e5e7eb; border-radius: 12px; font-size: 0.95rem; margin-bottom: 1rem; color: #000; }
        .auth-input:focus { outline: none; border-color: #d4af37; box-shadow: 0 0 0 3px rgba(212,175,55,0.1); }
        .btn-primary { width: 100%; background: #111827; color: white; padding: 1rem; border-radius: 12px; font-weight: 600; border: none; cursor: pointer; }
        .btn-primary:hover { background: #374151; }
        .btn-ghost { background: none; border: none; color: #111827; font-weight: 600; cursor: pointer; text-decoration: underline; }


        /* ===== Toast ===== */
        #toast-container { position: fixed; top: 20px; right: 20px; z-index: 10000; display: flex; flex-direction: column; gap: 10px; max-width: 400px; }
        .custom-toast { background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border: 1px solid rgba(0,0,0,0.1); border-radius: 12px; padding: 16px; display: flex; align-items: flex-start; gap: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.1); transform: translateX(120%); transition: transform 0.4s cubic-bezier(0.16,1,0.3,1); }
        .custom-toast.show { transform: translateX(0); }
        .custom-toast.success { border-left: 4px solid #10b981; }
        .custom-toast.error { border-left: 4px solid #ef4444; }
        .custom-toast.info { border-left: 4px solid #3b82f6; }


