/* 2026 Fun社群行銷 - V32 最終修復版 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;700;900&family=Orbitron:wght@900&display=swap');

:root {
    --primary: #0076ff;
    --bg-main: #f0f4f9;
    --footer-bg: #0f172a;
    --text-main: #1e293b;
    --danger: #ff4d4d;
    --success: #00c300;
    --warning: #f59e0b;
}

html, body { height: 100%; margin: 0; padding: 0; background: var(--bg-main); font-family: 'Noto Sans TC', sans-serif; overflow-x: hidden; scroll-behavior: smooth; cursor: auto; }

/* NEW 脈衝紅點特效 (關鍵) */
.new-tag-pulse { 
    background: var(--danger); color: #fff; font-size: 10px; padding: 2px 6px; 
    border-radius: 4px; margin-left: 8px; display: inline-block; vertical-align: middle; 
    animation: pulseRed 1.5s infinite; 
}
@keyframes pulseRed { 
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7); } 
    50% { transform: scale(1.1); box-shadow: 0 0 0 5px rgba(255, 77, 77, 0); } 
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); } 
}

/* 側邊欄 */
.sidebar-tech { position: fixed; left: 20px; top: 105px; width: 250px; background: #fff; border-radius: 30px; border: 1px solid #e2e8f0; padding: 20px; height: fit-content !important; min-height: auto !important; bottom: auto !important; max-height: calc(100vh - 150px); z-index: 900; overflow-y: auto; box-shadow: 0 10px 40px rgba(0,0,0,0.03); transition: width 0.3s ease; }
.sidebar-tech.collapsed { width: 80px; }
.sidebar-tech.collapsed .nav-text { display: none; }
.sidebar-tech.collapsed .nav-item-tech { justify-content: center; padding: 14px 0; }
.nav-item-tech { display: flex; align-items: center; gap: 12px; padding: 14px 15px; color: #64748b; text-decoration: none; border-radius: 15px; margin-bottom: 8px; font-weight: 700; transition: 0.2s; white-space: nowrap; }
.nav-item-tech:hover, .nav-item-tech.active { background: var(--primary); color: #fff !important; box-shadow: 0 8px 20px rgba(0, 118, 255, 0.25); transform: translateX(5px); }
.custom-menu-icon { width: 24px; height: 24px; object-fit: contain; display: inline-block; vertical-align: middle; }
.main-wrapper { transition: margin-left 0.3s ease, padding 0.3s; min-height: 85vh; display: flex; flex-direction: column; width: auto; }
.main-wrapper.has-sidebar { margin-left: 290px; padding-right: 20px; }
body.sidebar-collapsed .main-wrapper.has-sidebar { margin-left: 120px; }

/* 通用元件 */
.chrome-notice { font-size: 13px; color: #64748b; font-weight: 700; background: #fff; padding: 4px 15px; border-radius: 50px; border: 1px solid #e2e8f0; display: flex; align-items: center; gap: 6px; height: 32px; }
.chrome-gif { height: 20px !important; width: auto !important; vertical-align: middle; }
.status-active { font-size: 12px; color: var(--success); font-weight: 800; background: #fff; padding: 4px 15px; border-radius: 50px; border: 1px solid rgba(0, 195, 0, 0.2); display: flex; align-items: center; gap: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.status-dot-pulse { width: 8px; height: 8px; background-color: #00c300 !important; border-radius: 50%; animation: breathing 2s infinite; }
.balance-pill { background: #f0f9ff; color: #0284c7; padding: 8px 20px; border-radius: 50px; font-weight: 900; font-family: 'Orbitron'; display: flex; align-items: center; gap: 10px; border: 1px solid #bae6fd; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.spin-anim { animation: spin 1s linear infinite; } @keyframes spin { 100% { transform: rotate(360deg); } }

/* 平台技術架構卡片 */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; width: 100%; margin-bottom: 40px; }
.glass-tech-card { background: #fff; padding: 25px; border-radius: 20px; border: 1px solid #e2e8f0; text-align: center; transition: 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.02); }
.glass-tech-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-color: var(--primary); }
.tech-icon { font-size: 30px; color: var(--primary); margin-bottom: 15px; }
.tech-title { font-weight: 800; font-size: 16px; color: var(--text-main); margin-bottom: 5px; }
.tech-desc { font-size: 12px; color: #64748b; }

/* 新訂單玻璃數據卡片 */
.glass-stats-card { border-radius: 25px; padding: 25px; position: relative; overflow: hidden; background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(12px); border: 1px solid #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: 0.3s; min-height: 140px; display: flex; flex-direction: column; justify-content: center; }
.glass-stats-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0, 118, 255, 0.15); }
.card-blue { border-bottom: 5px solid #0076ff; } .card-green { border-bottom: 5px solid #00c300; } .card-yellow { border-bottom: 5px solid #f59e0b; } .card-purple { border-bottom: 5px solid #a855f7; }
.stats-value { font-family: 'Orbitron'; font-size: 28px; font-weight: 900; color: #0f172a; margin-bottom: 5px; z-index: 2; position: relative; }
.stats-label { font-size: 13px; font-weight: 700; color: #64748b; letter-spacing: 1px; z-index: 2; position: relative; }
.stats-icon { position: absolute; right: 25px; top: 50%; transform: translateY(-50%); font-size: 40px; opacity: 0.1; color: #000; z-index: 1; }
.clay-card { border-radius: 25px; padding: 25px; color: #fff; position: relative; box-shadow: 0 15px 35px rgba(0,0,0,0.1); transition: transform 0.3s; }
.clay-white { background: #fff !important; color: #333 !important; border: 1px solid #e2e8f0; box-shadow: 0 20px 50px rgba(0,0,0,0.05); }

/* 登入頁與服務列表 */
.login-container-box { width: 100%; display: flex; flex-direction: column; align-items: center; padding-top: 40px; padding-bottom: 80px; }
.login-card { width: 100%; max-width: 480px; padding: 45px !important; background: rgba(255, 255, 255, 0.95); border: 1px solid #fff; box-shadow: 0 20px 60px rgba(0, 118, 255, 0.1); border-radius: 35px; animation: floatCard 6s ease-in-out infinite; margin-bottom: 60px; position: relative; z-index: 5; }
.section-title { text-align: center; margin: 60px 0 30px 0; font-family: 'Noto Sans TC'; font-weight: 900; font-size: 26px; color: var(--text-main); display: flex; align-items: center; justify-content: center; gap: 15px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; width: 100%; }
.service-intro-card { background: #fff; padding: 25px; border-radius: 20px; border: 1px solid #e2e8f0; text-align: left; transition: 0.3s; display: flex; align-items: center; gap: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.02); }
.service-intro-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-color: var(--primary); }
.service-icon-box { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; flex-shrink: 0; }
.srv-fb { background: #1877f2; } .srv-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); } .srv-tk { background: #000; } .srv-yt { background: #ff0000; } .srv-line { background: #00c300; } .srv-threads { background: #000; } .srv-tg { background: #2481cc; } .srv-google { background: #4285F4; } .srv-shopee { background: #ee4d2d; }

/* 頁尾 & 吉祥物 */
.tech-footer { background: var(--footer-bg); color: #fff; padding: 80px 0 40px 0; margin-top: 80px; position: relative; width: 100%; z-index: 10; }
.social-group { display: flex; gap: 10px; margin-top: 20px; align-items: center; }
.social-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; transition: 0.3s; font-size: 18px; cursor: pointer; border: none; }
.social-btn:hover { transform: translateY(-3px); background: var(--primary); }
.footer-mascot { position: absolute; right: 5%; bottom: 0; width: 150px !important; max-width: 150px !important; height: auto; z-index: 10; animation: floatMascot 4s ease-in-out infinite; }
@keyframes floatMascot { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* 其他 */
.login-title { text-align: center; font-family: 'Orbitron'; font-weight: 900; font-size: 28px; color: var(--primary); margin-bottom: 30px; }
.input-icon-group { position: relative; width: 100%; margin-bottom: 20px; }
.input-icon-group i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: #94a3b8; z-index: 10; font-size: 16px; transition: 0.3s; pointer-events: none; }
.input-icon-group:focus-within i { color: var(--primary); }
.login-input { padding-left: 55px !important; height: 55px !important; border-radius: 15px !important; border: 1px solid #e2e8f0 !important; background: #f8fafc !important; font-weight: 600; width: 100%; font-size: 15px; }
.login-input:focus { background: #fff !important; border-color: var(--primary) !important; box-shadow: 0 0 0 4px rgba(0, 118, 255, 0.1) !important; }
.btn-login { width: 100%; height: 55px; background: linear-gradient(135deg, #0076ff 0%, #0056b3 100%); color: #fff; border: none; border-radius: 15px; font-weight: 900; font-size: 16px; margin-top: 10px; cursor: pointer; box-shadow: 0 10px 20px rgba(0, 118, 255, 0.3); transition: 0.3s; }
.btn-login:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0, 118, 255, 0.4); }
.g-btn-wrapper { margin-top: 20px; text-align: center; width: 100%; }
.login-links { text-align: center; margin-top: 20px; font-size: 14px; color: #64748b; }
.alert { border-radius: 15px; font-weight: 600; border: none; padding: 15px; margin-bottom: 20px; }
.alert-danger { background: #fee2e2; color: #ef4444; }
.alert-success { background: #dcfce7; color: #00c300; }
.fomo-container { position: fixed; left: 20px; bottom: 20px; z-index: 10000; display: flex; flex-direction: column; gap: 10px; }
.fomo-popup { background: #fff; border-left: 5px solid var(--warning); padding: 15px 20px; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); display: flex; align-items: center; gap: 15px; animation: slideInUp 0.5s ease-out; opacity: 0; animation-fill-mode: forwards; min-width: 300px; }
.fomo-icon { width: 40px; height: 40px; background: #fffbeb; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--warning); font-size: 20px; }
.fomo-content h5 { margin: 0; font-size: 13px; font-weight: 900; color: #0f172a; }
.fomo-content p { margin: 2px 0 0 0; font-size: 12px; color: #64748b; }
@keyframes slideInUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes floatCard { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
select.form-control { appearance: auto; -webkit-appearance: auto; background-color: #f8fafc; border: 1px solid #e2e8f0; border-radius: 15px; color: #0f172a; font-weight: 600; height: 55px; padding: 0 15px; }
.footer-link { color: #e2e8f0; text-decoration: none; display: block; font-size: 14px; transition: 0.3s; opacity: 0.8; margin-bottom: 8px; }
.footer-link:hover { color: #fff; opacity: 1; padding-left: 5px; }
.process-wrapper { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 20px; position: relative; }
@media (min-width: 992px) { .process-wrapper::before { content: ''; position: absolute; top: 50px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(to right, #cbd5e1 0, #cbd5e1 10px, transparent 10px, transparent 20px); z-index: 0; } }
.process-flow-card { flex: 1; min-width: 200px; background: #fff; padding: 30px 20px; border-radius: 25px; text-align: center; border: 1px solid #e2e8f0; position: relative; z-index: 1; transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 5px 15px rgba(0,0,0,0.02); }
.process-flow-card:hover { transform: translateY(-15px); box-shadow: 0 20px 40px rgba(0, 118, 255, 0.15); border-color: var(--primary); }
.process-flow-card:hover .process-icon { transform: rotate(360deg) scale(1.1); background: var(--primary); color: #fff; }
.process-icon { width: 70px; height: 70px; margin: 0 auto 20px auto; background: #f0f7ff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--primary); transition: 0.5s; }
.process-title { font-weight: 800; font-size: 18px; margin-bottom: 8px; color: var(--text-main); }
.process-desc { font-size: 13px; color: #64748b; }
.cta-masterpiece { width: 100%; max-width: 1100px; margin: 80px auto; background: linear-gradient(-45deg, #0076ff, #00c6ff, #0056b3, #0076ff); background-size: 400% 400%; animation: aurora 10s ease infinite; border-radius: 40px; padding: 70px 40px; text-align: center; color: #fff; box-shadow: 0 30px 80px rgba(0, 118, 255, 0.4); position: relative; overflow: hidden; display: block; }
@keyframes aurora { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.cta-title-large { font-size: 36px; font-weight: 900; margin-bottom: 15px; text-shadow: 0 5px 15px rgba(0,0,0,0.2); letter-spacing: 1px; color: #fff; }
.cta-desc-large { font-size: 18px; opacity: 0.95; margin-bottom: 40px; font-weight: 500; color: #fff; }
.cta-btn-group { display: flex; gap: 20px; justify-content: center; }
.btn-mega-primary { background: #fff; color: var(--primary); padding: 18px 50px; border-radius: 50px; font-weight: 900; font-size: 18px; text-decoration: none; transition: 0.3s; box-shadow: 0 10px 30px rgba(0,0,0,0.2); border: none; }
.btn-mega-primary:hover { transform: scale(1.05) translateY(-3px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); color: var(--primary); }
.btn-mega-outline { background: rgba(255,255,255,0.15); border: 2px solid rgba(255,255,255,0.8); color: #fff; padding: 16px 48px; border-radius: 50px; font-weight: 900; font-size: 18px; text-decoration: none; transition: 0.3s; }
.btn-mega-outline:hover { background: #fff; color: var(--primary); border-color: #fff; }
.about-card { background: #fff; border-radius: 30px; padding: 40px; border: 1px solid #e2e8f0; box-shadow: 0 10px 30px rgba(0,0,0,0.03); margin-bottom: 30px; position: relative; overflow: hidden; }
.about-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: linear-gradient(90deg, var(--primary), var(--success)); }
.about-header { font-size: 22px; font-weight: 900; color: var(--text-main); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.about-header i { color: var(--primary); }
.about-content { font-size: 15px; line-height: 1.8; color: #475569; }
.feature-list { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 20px; }
.feature-item { flex: 1 1 45%; background: #f8fafc; padding: 15px; border-radius: 12px; font-weight: 700; color: #334155; display: flex; align-items: center; gap: 10px; border: 1px solid #e2e8f0; }
.feature-item i.fa-check-circle { color: #00c300 !important; }
.feature-item i:not(.fa-check-circle) { color: var(--primary); }
[data-tooltip] { position: relative; cursor: pointer; }
[data-tooltip]::after { content: attr(data-tooltip); position: absolute; bottom: 120%; left: 50%; transform: translateX(-50%) translateY(10px); background: rgba(15, 23, 42, 0.9); color: #fff; padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; white-space: nowrap; opacity: 0; visibility: hidden; pointer-events: none; transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 9999; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
[data-tooltip]::before { content: ''; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%) translateY(10px); border-width: 6px; border-style: solid; border-color: rgba(15, 23, 42, 0.9) transparent transparent transparent; opacity: 0; visibility: hidden; transition: 0.3s; z-index: 9999; }
[data-tooltip]:hover::after, [data-tooltip]:hover::before { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }