/* ==========================================
   CSS 設計系統與全域變數定義 (未來科技黑/霓虹毛玻璃版)
   ========================================== */
:root {
    /* 核心色彩定義 - 經典科技寶藍美學 */
    --bg-dark: #030308;                  /* 全域深邃黑夜背景，專業電競感 */
    --bg-card: rgba(10, 11, 22, 0.65);    /* 半透明黑曜石毛玻璃卡片背景 */
    --border-color: rgba(255, 255, 255, 0.08); /* 極細精緻白透光邊框 */
    
    /* 科技感漸層配色 (經典寶藍 #104AD1 到電氣藍 #3b82f6) */
    --primary-gradient: linear-gradient(135deg, #104AD1 0%, #3b82f6 100%); 
    --accent-gradient: linear-gradient(135deg, #104AD1 0%, #60a5fa 100%);  
    --hover-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);   
    
    /* 純色定義 */
    --text-white: #f8fafc;               /* 標題與重要文字改為銀河白 */
    --text-gray: #94a3b8;                /* 說明文字星雲灰 */
    --cyan: #3b82f6;                     /* 改為電氣藍作為核心高亮色 */
    --purple: #6366f1;                   /* 靛藍色作為核心高貴色 */
    --green: #10b981;                    /* 螢光綠 (收益與成功) */
    --orange: #f97316;                   /* 電漿橘 (警告與高亮) */
    
    /* 陰影與濾鏡 (科技霓虹發光效果) */
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --glow-shadow: 0 0 20px rgba(59, 130, 246, 0.25);
    
    /* 字型家族 */
    --font-main: 'Noto Sans TC', sans-serif;
    --font-heading: 'Outfit', 'Noto Sans TC', sans-serif; /* 英文 Outfit 中文思源黑體，完美兼顧 */
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace; /* 代碼專用字型 */
}

/* ==========================================
   基礎與重設樣式 (Reset Styles)
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* 平滑滾動 */
    font-size: 15px; /* 縮小全站字型基底，使頁面更緊湊 */
}

body {
    background-color: var(--bg-dark);
    /* 科技感背景：融入頂部寶藍光、底部亮藍光，以及科幻細密網格 */
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(16, 74, 209, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 100% 60%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(16, 74, 209, 0.08) 0%, transparent 50%),
        linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    color: var(--text-gray);
    line-height: 1.75; /* 提升行高至 1.75，大幅增加繁體中文閱讀舒適度 */
    letter-spacing: 0.03em; /* 調整中文字間距，使其排版精緻大氣 */
    overflow-x: hidden;
    position: relative;
}

/* 程式碼與代碼區塊專用字型 */
code, pre, kbd, samp {
    font-family: var(--font-mono);
}

/* 全域發光背景裝飾 - 科技藍色光暈 */
body::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
    top: 5%;
    left: -100px;
    z-index: -1;
    filter: blur(50px);
}

.container {
    width: 100%;
    max-width: 1120px; /* 將容器寬度收縮，使排版更緊湊不鬆散 */
    margin: 0 auto;
    padding: 0 20px;
}

/* 標題與段落的基礎樣式 */
h1, h2, h3, h4 {
    color: var(--text-white);
    font-family: var(--font-heading);
    font-weight: 700;
}

/* ==========================================
   通用元件與微動畫 (Components & Utility)
   ========================================== */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* 毛玻璃效果卡片基礎 (黑曜石科技質感 - 緊湊版) */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px; /* 圓角由 16px 縮至 12px，更顯細緻 */
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.glass-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-5px) scale(1.005); /* 懸停高度縮小，更穩重 */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(59, 130, 246, 0.15);
}

/* 按鈕樣式 - 科技科幻風緊湊版 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px; /* 縮減按鈕大小 */
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    font-family: var(--font-heading);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #030308 !important; /* 暗色底中，科技主色配黑色字最搶眼 */
    border: none;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.65), 0 0 10px rgba(16, 74, 209, 0.4);
    opacity: 0.95;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: var(--cyan);
    color: var(--cyan);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

/* 緊湊分區 Padding - 大幅縮小全站高度佔比，擺脫大頁面感 */
.section {
    padding: 48px 0; /* padding 緊湊不空曠 */
}

.section-header {
    text-align: center;
    margin-bottom: 30px; /* 由 60px 縮小至 30px */
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cyan);
    background: rgba(59, 130, 246, 0.08);
    padding: 3px 12px;
    border-radius: 30px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    display: inline-block;
    margin-bottom: 8px;
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.section-header h2 {
    font-size: 1.8rem; /* 標題由 2.5rem 降至 1.8rem */
    margin-bottom: 8px;
    color: var(--text-white);
}

.section-header p {
    font-size: 0.95rem; /* 由 1.1rem 降至 0.95rem */
    max-width: 550px;
    margin: 0 auto;
    color: var(--text-gray);
}

/* ==========================================
   頂部導覽列 (Navbar - 科技黑曜石毛玻璃)
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(3, 3, 8, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 0; /* padding 縮小 */
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 8px 0;
    background: rgba(3, 3, 8, 0.92);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem; /* 字型微調 */
    font-weight: 800;
    color: var(--text-white);
    text-decoration: none;
    font-family: var(--font-heading);
}

.logo span span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-icon {
    color: var(--cyan);
    font-size: 1.3rem;
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(59, 130, 246, 0.4)); }
    100% { transform: scale(1.08); filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.8)); }
}

.nav-menu {
    display: flex;
    gap: 24px; /* 由 32px 縮至 24px */
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 4px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--cyan);
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.3rem;
    cursor: pointer;
}

/* ==========================================
   Hero 視覺宣傳區 (未來科技感展現 - 快速切入主題)
   ========================================== */
.hero-section {
    position: relative;
    padding: 110px 0 40px 0; /* 頂部 Padding 從 180px 縮小至 110px，迅速展現網頁內容 */
    min-height: auto; /* 取消 min-height: 100vh，不佔用一整頁，高度自適應更精緻 */
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 80% 20%, rgba(16, 74, 209, 0.1) 0%, transparent 60%);
}

.hero-bg-glow-1 {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
    top: 15%;
    right: 10%;
    z-index: -1;
    filter: blur(40px);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 40px; /* 減小 gap */
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge {
    background: rgba(16, 74, 209, 0.08);
    border: 1px solid rgba(16, 74, 209, 0.2);
    color: #c084fc;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    box-shadow: 0 0 10px rgba(16, 74, 209, 0.1);
}

.hero-content h1 {
    font-size: 2.2rem; /* h1 由 3.5rem 降至 2.2rem，精細好看 */
    line-height: 1.25;
    margin-bottom: 16px;
    color: var(--text-white);
}

.hero-desc {
    font-size: 1rem; /* 由 1.15rem 降至 1rem */
    color: var(--text-gray);
    margin-bottom: 24px; /* 由 40px 縮小 */
    max-width: 530px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
}

/* 互動式科技展示卡片 (3D懸浮黑曜石質感) */
.hero-image-card {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.hero-interactive-card {
    width: 100%;
    max-width: 330px; /* 寬度微調收縮 */
    padding: 18px; /* padding 由 24px 降至 18px */
    background: rgba(10, 11, 25, 0.85);
    border: 1px solid rgba(59, 130, 246, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 15px rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    transform: rotateY(-8deg) rotateX(8deg);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s ease, box-shadow 0.5s ease;
}

.hero-interactive-card:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 25px rgba(59, 130, 246, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.red { background-color: #ef4444; box-shadow: 0 0 6px #ef4444; }
.dot.yellow { background-color: #eab308; box-shadow: 0 0 6px #eab308; }
.dot.green { background-color: #22c55e; box-shadow: 0 0 6px #22c55e; }

.card-title {
    font-size: 0.8rem;
    color: var(--text-gray);
    font-weight: 600;
    margin-left: 4px;
}

.stat-row {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.stat-value {
    font-size: 1.8rem; /* 由 2.2rem 降至 1.8rem */
    font-weight: 800;
    font-family: var(--font-heading);
}

.text-green {
    color: var(--green) !important;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.text-cyan {
    color: var(--cyan) !important;
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.progress-bar-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-item {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-white);
}

.feature-item strong {
    color: var(--cyan);
}

/* ==========================================
   AI 工具分類與搜尋區 (Tools Section - 霓虹未來版)
   ========================================== */
.filter-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    margin-bottom: 30px; /* 由 48px 縮小至 30px */
}

.search-box {
    width: 100%;
    max-width: 440px; /* 最大寬度微微縮小 */
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 18px 12px 42px; /* 緊縮 Input 的內距 */
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    color: var(--text-white);
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.25);
    background: rgba(255, 255, 255, 0.06);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--text-gray);
    pointer-events: none;
}

/* 五大功能分類標籤 (暗色霓虹版) */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px; /* 縮減間距 */
}

.tag-btn {
    padding: 6px 14px; /* padding 縮小 */
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-gray);
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.tag-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    transform: translateY(-1px);
}

.tag-btn.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(16, 74, 209, 0.12) 100%);
    color: var(--cyan);
    border-color: var(--cyan);
    font-weight: 600;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
    text-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
}

/* 工具卡片網格 (間距收窄) */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); /* 精細的卡片寬度 */
    gap: 18px; /* 間距縮減 */
}

/* 單個工具卡片 (緊湊精美) */
.tool-card {
    padding: 20px; /* padding 降至 20px */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tool-icon-wrapper {
    width: 40px; /* 圖示框微縮 */
    height: 40px;
    border-radius: 10px;
    background: #0f1021; /* 暗色背景融合 Logo */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08); /* 輕盈框線 */
    transition: all 0.3s ease;
    overflow: hidden; /* 防止 Logo 溢出圓角 */
}

.tool-card:hover .tool-icon-wrapper {
    border-color: var(--cyan);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
    transform: rotate(5deg) scale(1.05);
}

.tool-icon-wrapper i {
    font-size: 1.2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 品牌官方 Logo 圖片樣式 */
.tool-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 保持 Logo 原始長寬比，不擠壓變形 */
    border-radius: 6px;
    padding: 3px; /* 呼吸空間 */
    transition: transform 0.3s ease;
}

/* 品牌 Logo 載入失敗時的 Fallback 容器 */
.tool-logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 繽紛多彩的五大功能分類 Badge 樣式 (科技暗底高對比) */
.tool-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 30px;
}

/* 聊天對話 - 湛藍 */
.tool-tag.chat {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
}

/* 繪圖設計 - 魅紫 */
.tool-tag.draw {
    color: #c084fc;
    background: rgba(192, 132, 252, 0.08);
    border: 1px solid rgba(192, 132, 252, 0.25);
}

/* 影音製作 - 玫紅 */
.tool-tag.video {
    color: #f472b6;
    background: rgba(244, 114, 182, 0.08);
    border: 1px solid rgba(244, 114, 182, 0.25);
}

/* 程式開發 - 翠綠 */
.tool-tag.code {
    color: #34d399;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.25);
}

/* 自動化 - 暖橘 */
.tool-tag.auto {
    color: #fb923c;
    background: rgba(251, 146, 60, 0.08);
    border: 1px solid rgba(251, 146, 60, 0.25);
}

.tool-card h3 {
    font-size: 1.15rem; /* 由 1.25rem 降至 1.15rem */
    margin-bottom: 6px;
    color: var(--text-white);
}

.tool-desc {
    font-size: 0.85rem; /* 字型稍微變小更精緻 */
    color: var(--text-gray);
    margin-bottom: 14px;
    line-height: 1.6;
    flex-grow: 1;
}

.tool-footer {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.monetize-hint {
    font-size: 0.75rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 4px;
}

.monetize-hint i {
    color: var(--green);
}

.visit-link {
    font-size: 0.8rem;
    color: var(--cyan);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s ease;
    font-weight: 600;
}

.visit-link:hover {
    color: var(--text-white);
    text-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
}

/* ==========================================
   AI 變現黃金路徑區 (Strategies Section - 緊湊)
   ========================================== */
.strategies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.strategy-card {
    padding: 24px 20px; /* padding 收細 */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.strategy-icon-box {
    width: 48px; /* 由 60px 縮小 */
    height: 48px;
    border-radius: 12px;
    background: rgba(16, 74, 209, 0.1);
    border: 1px solid rgba(16, 74, 209, 0.2);
    color: var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.strategy-card:hover .strategy-icon-box {
    transform: scale(1.08);
    box-shadow: 0 0 15px rgba(16, 74, 209, 0.3);
}

.strategy-icon-box i {
    font-size: 1.4rem;
}

.strategy-icon-box.cyan {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--cyan);
}
.strategy-card:hover .strategy-icon-box.cyan {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.strategy-icon-box.purple {
    background: rgba(16, 74, 209, 0.1);
    border: 1px solid rgba(16, 74, 209, 0.2);
    color: var(--purple);
}

.strategy-icon-box.orange {
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    color: var(--orange);
}
.strategy-card:hover .strategy-icon-box.orange {
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
}

.strategy-target-badge {
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 30px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.strategy-target-badge.no-code {
    color: var(--cyan);
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.strategy-target-badge.pro-code {
    color: var(--purple);
    background: rgba(16, 74, 209, 0.08);
    border: 1px solid rgba(16, 74, 209, 0.2);
}

.strategy-card h3 {
    font-size: 1.2rem; /* 由 1.4rem 降至 1.2rem */
    margin-bottom: 10px;
    color: var(--text-white);
}

.strategy-desc {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 16px;
    line-height: 1.6;
}

.strategy-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
    flex-grow: 1;
}

.strategy-steps li {
    font-size: 0.85rem;
    color: var(--text-white);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.step-num {
    width: 18px;
    height: 18px;
    min-width: 18px;
    background: var(--primary-gradient);
    border-radius: 50%;
    color: #030308;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.7rem;
    margin-top: 2px;
}

.difficulty-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

.difficulty-rating span {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.stars {
    display: flex;
    gap: 2px;
    color: #fbbf24; /* 金黃色 */
}

.difficulty-text {
    font-size: 0.75rem;
    color: var(--text-gray);
}

/* ==========================================
   收益計算器區 (Calculator Section - 科技未來感)
   ========================================== */
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px; /* 由 40px 縮小至 24px */
}

.calc-controls {
    padding: 24px; /* padding 縮減 */
}

.calc-controls h3, .calc-results h3 {
    font-size: 1.25rem;
    color: var(--text-white);
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.range-group {
    margin-bottom: 20px; /* 間距縮減 */
}

.range-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.range-label-row label {
    font-size: 0.85rem;
    color: var(--text-white);
    font-weight: 600;
}

.range-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cyan);
    text-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
}

/* 科技風自訂滑動桿樣式 */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    outline: none;
    transition: background 0.3s;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
    cursor: pointer;
    transition: transform 0.1s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.range-min-max {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-top: 6px;
}

/* 計算結果展示卡 (緊湊霓虹發光) */
.calc-results {
    padding: 24px;
}

.result-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.result-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary-gradient);
}

.result-title {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-gray);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.result-number-container {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 8px;
}

.currency {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--cyan);
}

.amount {
    font-size: 2.6rem; /* 數字縮減，防止溢出，更精緻 */
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--cyan);
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

.result-explanation {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.badge-row {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

/* 動態收益等級 Badge (發光版) */
.income-badge {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--green);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
    transition: all 0.3s ease;
}

.income-badge.silver {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: var(--cyan);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
}

.income-badge.gold {
    background: rgba(16, 74, 209, 0.08);
    border: 1px solid rgba(16, 74, 209, 0.25);
    color: #d8b4fe;
    box-shadow: 0 0 15px rgba(16, 74, 209, 0.2);
}

.calc-tips {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 14px;
}

.calc-tips h4 {
    font-size: 0.85rem;
    color: var(--text-white);
    margin-bottom: 6px;
}

.calc-tips p {
    font-size: 0.8rem;
    color: var(--text-gray);
    line-height: 1.5;
}

/* ==========================================
   接案管道與案源看板區 (Jobs Section - 緊湊)
   ========================================== */
.jobs-layout-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr; /* 微調比例 */
    gap: 24px;
    margin-top: 15px;
}

.column-title {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.column-desc-text {
    margin-top: -10px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* 左側：平台管道 */
.platform-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.platform-item-card {
    padding: 16px; /* padding 縮減 */
}

.platform-logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.platform-badge-tag {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.platform-badge-tag.local {
    background: rgba(59, 130, 246, 0.1);
    color: var(--cyan);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.platform-badge-tag.global {
    background: rgba(16, 74, 209, 0.1);
    color: #c084fc;
    border: 1px solid rgba(16, 74, 209, 0.2);
}

.platform-item-card h4 {
    font-size: 1rem;
    color: var(--text-white);
}

.platform-text {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 10px;
    line-height: 1.5;
}

.platform-recommend-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.platform-recommend-tools span {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.mini-tool-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: var(--font-heading);
}

/* 右側：動態最新案源看板 */
.jobs-board-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.job-board-card {
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.job-board-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.job-card-summary {
    padding: 16px; /* 由 24px 降至 16px */
    position: relative;
}

.job-card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.job-badge-status {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.job-badge-status.urgent {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.15);
}

.job-badge-status.hot {
    background: rgba(249, 115, 22, 0.1);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

/* 預設招募中 */
.job-badge-status {
    background: rgba(59, 130, 246, 0.08);
    color: var(--cyan);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.job-source-tag {
    font-size: 0.75rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 4px;
}

.job-title-text {
    font-size: 1.05rem; /* 由 1.2rem 降至 1.05rem */
    color: var(--text-white);
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.4;
}

.job-meta-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 10px;
    font-size: 0.8rem;
}

.job-meta-item {
    display: flex;
    align-items: center;
}

.meta-label {
    color: var(--text-gray);
}

.meta-value {
    font-weight: 700;
}

.stars-mini {
    color: #fbbf24;
    display: flex;
    gap: 1px;
}

.job-tools-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 0.8rem;
}

.tools-label {
    color: var(--text-gray);
}

.tools-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.job-mini-tool {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.15);
    color: var(--cyan);
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: 4px;
    font-family: var(--font-heading);
}

.job-accordion-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 10px;
    color: var(--cyan);
    font-size: 0.8rem;
    font-weight: 700;
}

.accordion-arrow-icon {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 手風琴折疊區域 - 高度過渡 */
.job-details-accordion {
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.job-details-content {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.strategy-tips-box {
    background: rgba(16, 74, 209, 0.03);
    border: 1px solid rgba(16, 74, 209, 0.12);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    gap: 10px;
}

.strategy-bulb-icon {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-top: 2px;
    animation: beacon 2s infinite alternate;
}

@keyframes beacon {
    0% { filter: drop-shadow(0 0 1px rgba(251, 191, 36, 0.3)); }
    100% { filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.8)); }
}

.strategy-text-content {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.strategy-text-content ol {
    padding-left: 15px;
}

.strategy-text-content li {
    margin-bottom: 8px;
    color: var(--text-white);
}

.strategy-text-content strong {
    color: var(--cyan);
}

.live-indicator {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--green);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.live-dot {
    width: 6px;
    height: 6px;
    background-color: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--green);
    animation: flash 1s infinite alternate;
}

@keyframes flash {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

.job-apply-btn {
    font-size: 0.75rem !important;
    padding: 6px 14px !important;
}

/* ==========================================
   回到頂部按鈕與頁尾 (Footer - 緊湊科技風)
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    background: var(--primary-gradient);
    color: #030308 !important;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99;
}

.back-to-top.show {
    opacity: 0.85;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.7);
}

.footer {
    background: rgba(5, 5, 10, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0 0 0; /* padding 減半 */
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 74, 209, 0.04) 0%, transparent 70%);
    z-index: -1;
    filter: blur(40px);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 30px;
}

.footer-left {
    max-width: 400px;
}

.footer-tagline {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--cyan);
    text-shadow: 0 0 5px rgba(59, 130, 246, 0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--text-gray);
}

/* ==========================================
   RWD 響應式佈局調整 (Responsive Media Queries)
   ========================================== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image-card {
        max-width: 100%;
    }
    
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .jobs-layout-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .section {
        padding: 36px 0;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    /* 手機版導覽選單 (黑曜石科技質感) */
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(3, 3, 8, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.15rem;
    }
    
    .mobile-toggle {
        display: block;
    }
}
