/* --- 核心變數與全域設定 --- */
:root {
    --primary-blue: #3b82f6;
    --accent-cyan: #0ea5e9;
    --success-green: #10b981;
    --warning-gold: #f59e0b;
    --bg-dark: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #a7b7cf;
    --glass-bg: rgba(30, 41, 59, 0.4);
    --border-light: rgba(255, 255, 255, 0.08);
}

body {
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    overflow-x: hidden;
    line-height: 1.65;
    letter-spacing: 0.015em;
    -webkit-tap-highlight-color: transparent;
}

/* --- 背景特效 --- */
.particles-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1; pointer-events: none;
}
.particle {
    position: absolute;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}
@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(15px, 30px) rotate(180deg); }
}
.glow-effect {
    position: absolute;
    top: 30%; left: 50%; transform: translate(-50%, -50%);
    width: 80vw; height: 80vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    z-index: 0; pointer-events: none;
}

/* --- Navbar --- */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    padding: 0.8rem 0;
    transition: all 0.4s ease;
    z-index: 1000;
}
.navbar-logo {
    height: 48px;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
}

/* --- Hero Section --- */
.hero-section {
    padding: 160px 0 80px;
    position: relative;
    z-index: 2;
    min-height: 95vh;
    display: flex;
    align-items: center;
}
.hero-badge {
    display: inline-block;
    padding: 8px 22px;
    border-radius: 50px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 2.5rem;
    letter-spacing: 1px;
}
.hero-title {
    font-size: 4.2rem;
    font-weight: 900;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
}
.text-gradient {
    background: linear-gradient(135deg, #60a5fa, #22d3ee, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.8rem;
    font-weight: 800;
    display: block;
    margin-top: 10px;
}
.hero-subtitle {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 300;
}


.cta-wrapper {
    display: flex;
    gap: 24px; /* ★ 增加按鈕之間的左右間距 (原本 24px) */
    justify-content: center;
    margin-top: 3rem; /* ★ 增加與上方文字的距離 (原本 3rem) */
    position: relative;
    z-index: 100;
}

/* --- 邏輯標籤 --- */
.logic-tags-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 1.5rem 0 2rem;
    flex-wrap: wrap;
}
.logic-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}
.logic-tag.smc { border-color: rgba(59, 130, 246, 0.4); color: #60a5fa; }
.logic-tag.pa  { border-color: rgba(16, 185, 129, 0.4); color: #34d399; }
.logic-tag.snr { border-color: rgba(168, 85, 247, 0.4); color: #a78bfa; }
.logic-tag.fvg { border-color: rgba(245, 158, 11, 0.4); color: #fbbf24; }

/* --- 數據看板 --- */
.stats-container { display: flex; justify-content: center; gap: 20px; margin-top: 5rem; }
.stat-item {
    background: var(--glass-bg);
    border: 1px solid var(--border-light);
    padding: 25px 40px; border-radius: 20px; text-align: center; min-width: 180px;
}
.stat-value { font-size: 2.4rem; font-weight: 800; color: #fff; margin-bottom: 5px; }

/* --- 特點區塊 --- */
.feature-card {
    background: linear-gradient(145deg, rgba(30,41,59,0.4), rgba(15,23,42,0.6));
    border: 1px solid rgba(59,130,246,0.1);
    padding: 3.5rem 2.5rem;
    border-radius: 2rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}
.feature-card:hover { transform: translateY(-10px); border-color: rgba(59,130,246,0.4); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.icon-box {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(14,165,233,0.2));
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem; color: #60a5fa; margin-bottom: 2rem;
}
.feature-title {
    font-size: 1.5rem; font-weight: 800; margin-top: 1.8rem; color: #f8fafc;
}
.feature-title::after {
    content: ''; position: absolute; bottom: -8px; left: 0; width: 40px; height: 3px;
    background: linear-gradient(90deg, #3b82f6, transparent); border-radius: 2px;
}

/* --- ★核心修正：按鈕高對比亮化設定 --- */

/* 主按鈕：創始席位 (高亮度漸層 + 發光陰影) */
.btn-cta-primary {
    background: linear-gradient(135deg, #3b82f6, #06b6d4) !important;
    border: none;
    color: #ffffff !important;
    padding: 20px 52px; /* 稍微加大按鈕尺寸 */
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    /* 強力發光 */
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.6), 0 0 15px rgba(6, 182, 212, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    z-index: 100;
}

.btn-cta-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.8), 0 0 25px rgba(6, 182, 212, 0.6);
    filter: brightness(1.1);
}

/* 外框按鈕：申請合作 (增加背景厚度與邊框亮度) */
.btn-cta-outline {
    border: 2px solid rgba(255, 255, 255, 0.6) !important; /* 加強邊框顯眼度 */
    background: rgba(255, 255, 255, 0.12) !important; /* 增加底色避免隱形成背景 */
    color: #ffffff !important;
    padding: 18px 48px;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-cta-outline:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: #ffffff !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* --- 價格區塊 --- */
.pricing-section { padding: 100px 0; }
.price-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2.5rem;
    padding: 4rem 2.5rem;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    backdrop-filter: blur(15px);
}
.price-card.featured {
    border: 2px solid var(--primary-blue);
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.1), rgba(15, 23, 42, 0.8));
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.25);
    z-index: 10;
}
.price-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff; padding: 6px 20px; border-radius: 50px; font-size: 0.85rem; font-weight: 800;
    position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    white-space: nowrap;
}
.price-amount { font-size: 4.8rem; font-weight: 900; color: #fff; line-height: 1; letter-spacing: -3px; }
.feature-list { list-style: none; padding: 0; margin: 2.5rem 0; text-align: left; display: inline-block; }
.feature-list li { margin-bottom: 12px; font-size: 1rem; color: #e2e8f0; display: flex; align-items: flex-start; }
.check-icon { color: var(--success-green); margin-right: 12px; margin-top: 5px; }

/* --- 招募區塊 --- */
.recruitment-card {
    background: rgba(30, 41, 59, 0.4); border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 2.5rem; padding: 4rem; position: relative; border-left: 6px solid var(--primary-blue);
}

/* --- 頁尾 Footer --- */
footer {
    padding: 100px 0 60px;
    background: #070b14;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}
.footer-logo { height: 42px; margin-bottom: 2rem; opacity: 0.9; }
.footer-disclaimer {
    max-width: 960px; margin: 3rem auto 0; padding: 2.5rem;
    background: rgba(255,255,255,0.02); border-radius: 20px;
    color: #64748b; font-size: 0.85rem; line-height: 1.9; text-align: justify;
    text-justify: inter-ideograph;
}

/* --- 手機版適配 --- */
@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .text-gradient { font-size: 1.7rem !important; }
    .logic-tag { width: calc(50% - 10px); font-size: 0.8rem; justify-content: center; }
    .stats-container { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 0 20px; }
    .cta-wrapper { flex-direction: column; padding: 0 30px; }
    .btn-cta-primary, .btn-cta-outline { width: 100%; padding: 16px; }
    .price-card.featured { transform: scale(1); margin-top: 40px; }
}

.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.animate-on-scroll.animated { opacity: 1; transform: translateY(0); }

/* 風險聲明區樣式 */
.risk-disclaimer {
    margin-top: 60px;
    padding: 40px 20px;
    background: rgba(15, 23, 42, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}
.risk-text {
    max-width: 1000px;
    margin: 0 auto;
    color: #c8cfdb;
    font-size: 0.8rem;
    line-height: 1.8;
    text-align: justify; /* 讓文字兩端對齊，更專業 */
    text-justify: inter-ideograph;
}
.risk-title {
    color: #94a3b8;
    font-weight: 700;
    display: block;
    margin-bottom: 15px;
    font-size: 0.95rem;
}
.copyright {
    margin-top: 30px;
    font-size: 0.7rem;
    color: #657995;
    letter-spacing: 1px;
}

/* 手機版微調 */
@media (max-width: 768px) {
    .risk-disclaimer { padding: 30px 15px; }
    .risk-text { text-align: left; font-size: 0.75rem; }
}

.goog-te-banner-frame.skiptranslate { display: none !important; }
body { top: 0px !important; }

#google_translate_element {
    display: inline-block;
    vertical-align: middle;
}


.goog-te-gadget-simple {
    background-color: rgba(30, 41, 59, 0.5) !important; /* 半透明深藍 */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 4px 8px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: all 0.3s ease;
}

.goog-te-gadget-simple:hover {
    background-color: rgba(59, 130, 246, 0.2) !important;
    border-color: #3b82f6 !important;
}


.goog-te-gadget-simple span {
    color: #cbd5e1 !important; /* 淺灰色文字 */
}


.goog-te-gadget-icon,
.goog-te-menu-value img,
.goog-te-menu-value span:nth-child(3) {
    display: none !important;
}

.goog-te-menu-frame {
    box-shadow: 0 10px 25px rgba(0,0,0,0.5) !important;
}


/* 懸浮工具欄容器 */
.floating-widgets {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

/* 通用按鈕樣式 */
.widget-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.4rem;
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.widget-btn:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
    color: #60a5fa;
    box-shadow: 0 12px 20px rgba(59, 130, 246, 0.2);
}

/* 客服信箱顏色 */
.email-btn {
    background: rgba(59, 130, 246, 0.2);
}

/* 回到頂部按鈕狀態控制 */
.scroll-top-btn {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(14, 165, 233, 0.8));
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* 手機版縮小一點避免遮擋內容 */
@media (max-width: 768px) {
    .floating-widgets {
        right: 20px;
        bottom: 25px;
        gap: 12px;
    }
    .widget-btn {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
}

.bg-dark-soft {
    background-color: #0b0f17; /* 比全黑稍微淺一點點的深藍黑 */
}

.benefit-item {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3) !important;
}

.font-monospace {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace !important;
}

.api-monitor-card {
    transition: all 0.4s ease;
}

.api-monitor-card:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4) !important;
}

/* 步驟數字樣式 */
.step-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-blue);
    opacity: 0.5;
    font-family: 'JetBrains Mono', monospace;
    min-width: 40px;
}

.step-item {
    padding: 20px;
    border-radius: 12px;
    transition: background 0.3s;
}

.step-item:hover {
    background: rgba(59, 130, 246, 0.05);
}

/* 對比表樣式 */
.comparison-card table td {
    padding: 15px 10px;
    vertical-align: middle;
}

/* FAQ 樣式優化 */
.accordion-button::after {
    filter: invert(1); /* 讓箭頭變白色 */
}
.accordion-item {
    border-color: rgba(255,255,255,0.05) !important;
}

/* Telegram 預覽區塊樣式 */
.tg-preview-card {
    position: relative;
    transform: rotate(-2deg); /* 微微傾斜更有設計感 */
}

.tg-msg-bubble {
    background: #242d3d;
    padding: 12px 15px;
    border-radius: 12px 12px 12px 0;
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,0.05);
}

.tg-msg-bubble.result {
    border-left: 3px solid #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.hover-white:hover {
    color: white !important;
}

/* 按鈕顏色微調 */
.btn-info {
    background: #229ED9 !important; /* Telegram 官方藍 */
    border: none;
}