/* ============================================================
   3D創想工坊 — 統一設計系統 main.css
   風格：鼠尾草綠 × 藏藍 × 珍珠白 · 夏季冷柔盤 · 全站淺色
   主色＝鼠尾草／薄荷綠，骨架＝藏藍，點綴＝薰衣草，避開暖大地色
   ============================================================ */

:root {
    /* 主色 — 鼠尾草綠（可用綠，已校正對比 AA） */
    --accent: #47826d;
    --accent-light: #7dab97;
    --accent-secondary: #5a9a83;
    --accent-deep: #3c6f5d;
    --accent-soft: rgba(71, 130, 109, 0.08);
    --accent-glow: rgba(71, 130, 109, 0.22);

    /* 夏季盤點綴色 */
    --sage: #9db6a8;
    --mint: #a9d7bc;
    --lavender: #bbadd8;
    --wisteria: #8981c2;
    --mist-blue: #aac9e8;
    --sea-blue: #6d93c8;
    --navy: #34435e;

    /* 背景 — 珍珠白 / 冷柔 */
    --bg-deep: #f1f4f2;
    --bg-primary: #ffffff;
    --bg-secondary: #eef3f0;
    --bg-card: #ffffff;

    /* 文字 — 藏藍為錨 */
    --text-primary: #2f3b52;
    --text-secondary: #5f6a7d;
    --text-muted: #97a1b0;

    /* 邊線 */
    --border: rgba(52, 67, 94, 0.1);
    --border-light: rgba(52, 67, 94, 0.08);

    /* 圓角 / 陰影 */
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow-card: 0 2px 16px rgba(52, 67, 94, 0.06), 0 1px 4px rgba(52, 67, 94, 0.04);
    --shadow-hover: 0 8px 32px rgba(71, 130, 109, 0.14), 0 2px 8px rgba(52, 67, 94, 0.06);

    /* 字型 */
    --font-heading: 'DM Sans', 'Noto Sans TC', sans-serif;
    --font-body: 'Noto Sans TC', 'DM Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --header-h: 70px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- 共用工具 ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 100px 0; }
.accent-text { color: var(--accent); }

/* ---------- Header / 導覽 ---------- */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border-bottom: 1px solid var(--border-light);
    height: var(--header-h); transition: background .3s;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 36px; height: 36px; border-radius: 8px; overflow: hidden; }
.logo-icon img { width: 100%; height: 100%; object-fit: contain; }
.nav-desktop { display: flex; align-items: center; gap: 32px; }
.nav-desktop a { font-size: .92rem; font-weight: 500; color: var(--text-secondary); transition: color .25s; position: relative; }
.nav-desktop a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width .3s; }
.nav-desktop a:hover { color: var(--text-primary); }
.nav-desktop a:hover::after { width: 100%; }
.nav-cta { background: linear-gradient(135deg, var(--accent), var(--accent-secondary)); color: #fff !important; padding: 8px 20px; border-radius: 50px; font-weight: 700; font-size: .88rem; transition: all .25s; }
.nav-cta::after { display: none !important; }
.nav-cta:hover { box-shadow: 0 4px 20px var(--accent-glow); transform: translateY(-1px); }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; width: 40px; height: 40px; justify-content: center; }
.hamburger span { display: block; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all .3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.nav-mobile { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(24px); padding: 24px; border-bottom: 1px solid var(--border-light); flex-direction: column; gap: 4px; }
.nav-mobile.open { display: flex; }
.nav-mobile a { display: block; padding: 14px 16px; color: var(--text-secondary); font-size: 1.05rem; font-weight: 500; border-radius: var(--radius-sm); transition: all .2s; }
.nav-mobile a:hover { color: var(--text-primary); background: var(--bg-secondary); }
@media (max-width: 768px) { .nav-desktop { display: none; } .hamburger { display: flex; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; background: linear-gradient(160deg, #f5f8f6 0%, #eaf2ec 45%, #e0eee6 75%, #d8ebe1 100%); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 50% at 75% 30%, rgba(169, 215, 188, .28) 0%, transparent 60%), radial-gradient(ellipse 50% 40% at 20% 70%, rgba(187, 173, 216, .16) 0%, transparent 60%); }
.hero-grid-pattern { position: absolute; inset: 0; opacity: .05; background-image: linear-gradient(rgba(52, 67, 94, .35) 1px, transparent 1px), linear-gradient(90deg, rgba(52, 67, 94, .35) 1px, transparent 1px); background-size: 60px 60px; }
.hero-content { position: relative; z-index: 2; width: 100%; padding-top: var(--header-h); }
.hero-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; min-height: calc(100vh - var(--header-h)); padding: 60px 0; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-soft); border: 1px solid rgba(71, 130, 109, .2); padding: 6px 16px; border-radius: 50px; font-size: .82rem; font-weight: 600; color: var(--accent-deep); margin-bottom: 24px; }
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.hero-title { font-family: var(--font-heading); font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; line-height: 1.15; margin-bottom: 20px; letter-spacing: -.02em; color: var(--text-primary); }
.hero-subtitle { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 36px; max-width: 500px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card { background: rgba(255, 255, 255, .72); backdrop-filter: blur(12px); border: 1px solid rgba(71, 130, 109, .12); border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden; transition: all .3s; }
.stat-card:hover { border-color: rgba(71, 130, 109, .24); transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.stat-number { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 900; color: var(--accent); line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: .88rem; color: var(--text-secondary); font-weight: 500; }
.stat-card::before { content: ''; position: absolute; top: 0; right: 0; width: 80px; height: 80px; background: radial-gradient(circle at top right, var(--accent-soft), transparent 70%); }
@media (max-width: 768px) { .hero-layout { grid-template-columns: 1fr; gap: 40px; text-align: center; padding: 40px 0; } .hero-subtitle { margin-left: auto; margin-right: auto; } .hero-actions { justify-content: center; } .hero-stats { grid-template-columns: 1fr 1fr; gap: 12px; } .stat-card { padding: 20px; } .stat-number { font-size: 1.6rem; } }

/* ---------- 按鈕 ---------- */
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-secondary)); color: #fff; padding: 14px 32px; border-radius: 50px; font-weight: 700; font-size: 1rem; transition: all .3s; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 4px 16px var(--accent-glow); }
.btn-primary:hover { box-shadow: 0 6px 28px rgba(71, 130, 109, .35); transform: translateY(-2px); }
.btn-outline { border: 1.5px solid rgba(71, 130, 109, .28); color: var(--accent-deep); padding: 14px 32px; border-radius: 50px; font-weight: 600; font-size: 1rem; transition: all .3s; display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .6); }
.btn-outline:hover { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- 區塊標題 ---------- */
.section-header { text-align: center; margin-bottom: 60px; }
.section-label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .82rem; font-weight: 500; color: var(--accent-deep); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.section-label::before, .section-label::after { content: ''; width: 24px; height: 1px; background: var(--accent); opacity: .35; }
.section-heading { font-family: var(--font-heading); font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; margin-bottom: 12px; letter-spacing: -.01em; color: var(--text-primary); }
.section-desc { color: var(--text-secondary); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ---------- 作品集 ---------- */
.portfolio { background: var(--bg-primary); }
.filter-bar { display: flex; justify-content: center; gap: 8px; margin-bottom: 48px; flex-wrap: wrap; }
.filter-btn { padding: 9px 22px; border-radius: 50px; font-size: .88rem; font-weight: 600; color: var(--text-secondary); background: var(--bg-secondary); border: 1px solid var(--border-light); transition: all .25s; }
.filter-btn:hover { color: var(--text-primary); border-color: rgba(71, 130, 109, .22); }
.filter-btn.active { background: linear-gradient(135deg, var(--accent), var(--accent-secondary)); color: #fff; border-color: transparent; box-shadow: 0 4px 16px var(--accent-glow); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.p-card { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: all .35s; box-shadow: var(--shadow-card); }
.p-card:hover { transform: translateY(-6px); border-color: rgba(71, 130, 109, .18); box-shadow: var(--shadow-hover); }
.p-image-wrap { width: 100%; height: 220px; position: relative; overflow: hidden; }
.p-placeholder { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(135deg, #e6f0ea, #d4e7dc); transition: opacity .4s; }
.p-placeholder-icon { font-size: 3rem; opacity: .6; }
.p-placeholder-name { font-size: .85rem; color: var(--text-muted); font-weight: 500; text-align: center; padding: 0 16px; }
.p-placeholder.hidden { opacity: 0; pointer-events: none; }
.p-real-image { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.p-real-image.loaded { opacity: 1; }
.p-image-overlay { position: absolute; bottom: 0; left: 0; right: 0; z-index: 5; padding: 8px 12px; background: linear-gradient(transparent, rgba(47, 59, 82, .42)); display: flex; justify-content: flex-end; }
.p-watermark { font-size: .68rem; color: rgba(255, 255, 255, .7); font-weight: 600; font-family: var(--font-mono); }
.p-body { padding: 20px; }
.p-tag { display: inline-block; padding: 3px 12px; border-radius: 50px; font-size: .75rem; font-weight: 700; margin-bottom: 10px; }
.p-tag-production { background: rgba(52, 67, 94, .1); color: var(--navy); }
.p-tag-functional { background: rgba(109, 147, 200, .14); color: #3f6aa8; }
.p-tag-decorative { background: rgba(71, 130, 109, .13); color: var(--accent-deep); }
.p-tag-creative { background: rgba(137, 129, 194, .14); color: #6b62a6; }
.p-title { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; color: var(--text-primary); }
.p-desc { font-size: .88rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 14px; }
.p-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.p-spec { font-size: .76rem; padding: 3px 10px; border-radius: 6px; background: var(--bg-secondary); color: var(--text-muted); border: 1px solid var(--border-light); font-weight: 500; }
@media (max-width: 768px) { .portfolio-grid { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- 作品 Modal ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(47, 59, 82, .5); backdrop-filter: blur(12px); display: none; justify-content: center; align-items: center; padding: 24px; }
.modal-overlay.open { display: flex; }
.modal-box { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); max-width: 560px; width: 100%; max-height: 85vh; overflow-y: auto; animation: modalIn .3s ease; position: relative; box-shadow: 0 24px 60px rgba(47, 59, 82, .18); }
@keyframes modalIn { from { opacity: 0; transform: scale(.92) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 10; width: 36px; height: 36px; border-radius: 50%; background: rgba(47, 59, 82, .06); color: var(--text-secondary); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: all .2s; }
.modal-close:hover { background: rgba(47, 59, 82, .12); color: var(--text-primary); }
.modal-image { width: 100%; height: 240px; position: relative; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.modal-image-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, #e6f0ea, #d4e7dc); }
.modal-image-placeholder .icon { font-size: 4rem; opacity: .5; }
.modal-image img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: 28px; }
.modal-tag { margin-bottom: 12px; }
.modal-title { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; margin-bottom: 16px; color: var(--text-primary); }
.modal-section-label { font-size: .8rem; font-weight: 700; color: var(--accent-deep); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.modal-desc { color: var(--text-secondary); line-height: 1.75; margin-bottom: 24px; }
.modal-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.modal-spec { padding: 6px 14px; border-radius: var(--radius-sm); background: var(--bg-secondary); border: 1px solid var(--border-light); font-size: .85rem; color: var(--text-secondary); font-weight: 500; }
.modal-cta { display: block; width: 100%; text-align: center; background: linear-gradient(135deg, var(--accent), var(--accent-secondary)); color: #fff; padding: 14px; border-radius: 12px; font-weight: 700; font-size: 1rem; transition: all .3s; }
.modal-cta:hover { box-shadow: 0 6px 24px var(--accent-glow); }

/* ---------- 服務流程 ---------- */
.process { background: var(--bg-secondary); }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.process-steps::before { content: ''; position: absolute; top: 48px; left: 15%; right: 15%; height: 2px; background: linear-gradient(90deg, transparent, var(--accent-light), var(--accent-light), transparent); opacity: .3; }
.process-step { text-align: center; position: relative; }
.step-number { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px; background: #fff; border: 1px solid var(--border-light); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 900; font-size: 1.3rem; color: var(--accent); transition: all .3s; box-shadow: var(--shadow-card); }
.process-step:hover .step-number { background: var(--accent-soft); border-color: rgba(71, 130, 109, .22); box-shadow: 0 4px 20px var(--accent-glow); }
.step-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; color: var(--text-primary); }
.step-desc { font-size: .88rem; color: var(--text-secondary); line-height: 1.5; }
@media (max-width: 768px) { .process-steps { grid-template-columns: 1fr 1fr; } .process-steps::before { display: none; } }
@media (max-width: 480px) { .process-steps { grid-template-columns: 1fr; } }

/* ---------- 材質卡（流程區延伸） ---------- */
.materials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-top: 48px; }
.material-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 20px; text-align: center; transition: all .3s; box-shadow: var(--shadow-card); }
.material-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.material-card h4 { font-family: var(--font-heading); color: var(--accent-deep); margin-bottom: 6px; font-size: 1.05rem; }
.material-card p { color: var(--text-secondary); font-size: .85rem; line-height: 1.5; }

/* ---------- 優勢 ---------- */
.features { background: var(--bg-primary); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 32px; transition: all .35s; box-shadow: var(--shadow-card); }
.feature-card:hover { transform: translateY(-4px); border-color: rgba(71, 130, 109, .18); box-shadow: var(--shadow-hover); }
.feature-icon-wrap { width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(135deg, #e6f0ea, #d4e7dc); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 18px; }
.feature-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.08rem; margin-bottom: 8px; color: var(--text-primary); }
.feature-desc { font-size: .9rem; color: var(--text-secondary); line-height: 1.6; }
@media (max-width: 768px) { .features-grid { grid-template-columns: 1fr; } }

/* ---------- 聯絡 ---------- */
.contact { background: linear-gradient(170deg, #f5f8f6 0%, #eaf2ec 50%, #e0eee6 100%); position: relative; overflow: hidden; }
.contact-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(71, 130, 109, .07) 0%, transparent 60%); }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; position: relative; z-index: 2; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-card { background: rgba(255, 255, 255, .82); backdrop-filter: blur(8px); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 20px 24px; display: flex; align-items: center; gap: 16px; transition: all .3s; cursor: pointer; box-shadow: 0 1px 4px rgba(47, 59, 82, .04); }
.contact-card:hover { border-color: rgba(71, 130, 109, .22); transform: translateX(4px); box-shadow: var(--shadow-card); }
.contact-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.contact-icon-line { background: rgba(6, 199, 85, .12); }
.contact-icon-phone { background: rgba(109, 147, 200, .14); }
.contact-icon-email { background: rgba(187, 173, 216, .2); }
.contact-label { font-size: .82rem; color: var(--text-muted); font-weight: 500; }
.contact-value { font-weight: 700; font-size: 1.05rem; color: var(--text-primary); }
.contact-hint { font-size: .78rem; color: var(--accent-deep); font-weight: 600; margin-top: 2px; }
.file-note { background: var(--accent-soft); border: 1px solid rgba(71, 130, 109, .15); border-radius: var(--radius); padding: 20px; text-align: center; }
.contact-form-wrap { background: rgba(255, 255, 255, .88); backdrop-filter: blur(8px); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-card); }
.form-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; margin-bottom: 24px; color: var(--text-primary); }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: .85rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 12px 16px; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-sm); color: var(--text-primary); font-size: .95rem; font-family: var(--font-body); transition: border-color .25s; }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-submit { width: 100%; padding: 14px; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--accent), var(--accent-secondary)); color: #fff; font-weight: 700; font-size: 1rem; transition: all .3s; margin-top: 6px; box-shadow: 0 4px 16px var(--accent-glow); }
.form-submit:hover { box-shadow: 0 6px 24px rgba(71, 130, 109, .35); transform: translateY(-1px); }
.form-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.form-success { display: none; background: var(--accent-soft); border: 1px solid rgba(71, 130, 109, .25); color: var(--accent-deep); padding: 14px; border-radius: var(--radius-sm); text-align: center; font-weight: 600; font-size: .92rem; margin-top: 14px; }
.form-success.show { display: block; }
@media (max-width: 768px) { .contact-layout { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--navy); padding: 40px 0 24px; text-align: center; color: #c8d3e0; }
.footer-brand { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; color: #eef3f0; }
.footer-info { font-size: .85rem; color: #9aa6b7; line-height: 1.8; }
.footer-copy { margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .78rem; color: #7a8699; }

/* ---------- 浮動 LINE 按鈕 ---------- */
.float-line { position: fixed; bottom: 28px; right: 28px; z-index: 900; width: 56px; height: 56px; border-radius: 50%; background: #06C755; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(6, 199, 85, .35); font-size: 1.6rem; transition: all .3s; }
.float-line:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(6, 199, 85, .45); }
.float-line-pulse { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(6, 199, 85, .35); animation: linePulse 2s infinite; }
@keyframes linePulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- Reveal 動畫 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   知識庫（列表）— 淺色
   ============================================================ */
.blog-section { padding: calc(var(--header-h) + 60px) 0 80px; }
.blog-header { text-align: center; margin-bottom: 56px; }
.blog-header-tag { font-family: var(--font-mono); font-size: .8rem; color: var(--accent-deep); text-transform: uppercase; letter-spacing: .18em; margin-bottom: 14px; display: block; }
.blog-header h1 { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 2.6rem); color: var(--text-primary); margin-bottom: 14px; font-weight: 900; }
.blog-header p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.8; }
.blog-list { display: flex; flex-direction: column; gap: 20px; max-width: 820px; margin: 0 auto; }
.blog-item { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 28px; transition: all .3s; color: inherit; display: block; box-shadow: var(--shadow-card); }
.blog-item:hover { border-color: rgba(71, 130, 109, .2); transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.blog-item-meta { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.blog-item-tag { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--accent-deep); background: var(--accent-soft); padding: 4px 12px; border-radius: 50px; }
.blog-item-date { font-size: .82rem; color: var(--text-muted); font-family: var(--font-mono); }
.blog-item-reading { font-size: .82rem; color: var(--text-muted); }
.blog-item h2 { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 800; color: var(--text-primary); margin-bottom: 10px; line-height: 1.4; }
.blog-item p { color: var(--text-secondary); font-size: .95rem; line-height: 1.7; margin-bottom: 14px; }
.blog-item-read { color: var(--accent-deep); font-size: .9rem; font-weight: 700; }
.blog-empty { text-align: center; padding: 4rem 2rem; color: var(--text-muted); }
@media (max-width: 768px) { .blog-item { padding: 20px; } .blog-item h2 { font-size: 1.15rem; } }

/* ============================================================
   文章頁（post）— 淺色
   ============================================================ */
.article-header { max-width: 800px; margin: 0 auto; padding: calc(var(--header-h) + 40px) 24px 24px; }
.article-back { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: .9rem; margin-bottom: 28px; transition: color .2s; }
.article-back:hover { color: var(--accent); }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; align-items: center; }
.article-tag { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--accent-deep); background: var(--accent-soft); padding: 4px 12px; border-radius: 50px; }
.article-date { font-size: .85rem; color: var(--text-muted); font-family: var(--font-mono); }
.article-reading { font-size: .85rem; color: var(--text-muted); }
.article-header h1 { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; line-height: 1.3; margin-bottom: 20px; letter-spacing: -.01em; color: var(--text-primary); }
.article-excerpt { font-size: 1.15rem; color: var(--text-secondary); line-height: 1.8; padding-bottom: 28px; border-bottom: 1px solid var(--border-light); }
.article-body { max-width: 800px; margin: 0 auto; padding: 32px 24px 64px; }
.article-body h2 { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; margin: 48px 0 18px; color: var(--text-primary); padding-top: 24px; border-top: 1px solid var(--border-light); }
.article-body h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.article-body h3 { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; margin: 32px 0 12px; color: var(--text-primary); }
.article-body p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.9; margin-bottom: 18px; }
.article-body ul, .article-body ol { color: var(--text-secondary); margin: 16px 0 24px 24px; font-size: 1.05rem; line-height: 1.9; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--text-primary); font-weight: 700; }
.article-body em { color: var(--accent-deep); font-style: normal; font-weight: 600; }
.article-body blockquote { border-left: 3px solid var(--accent); padding: 16px 24px; margin: 24px 0; background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.article-body blockquote p { color: var(--text-primary); margin-bottom: 0; }
.article-body code { font-family: var(--font-mono); background: var(--bg-secondary); padding: 2px 6px; border-radius: 4px; font-size: .9em; color: var(--accent-deep); }
.info-box { background: var(--bg-secondary); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 28px; margin: 28px 0; }
.info-box h4 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 12px; color: var(--accent-deep); }
.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .95rem; }
.article-body th { background: var(--bg-secondary); color: var(--accent-deep); font-weight: 700; padding: 12px 16px; text-align: left; border-bottom: 2px solid var(--accent); }
.article-body td { padding: 12px 16px; border-bottom: 1px solid var(--border-light); color: var(--text-secondary); }
.article-body tr:hover td { background: var(--bg-secondary); }
.article-cta { background: linear-gradient(135deg, var(--accent-soft), rgba(169, 215, 188, .12)); border: 1px solid rgba(71, 130, 109, .16); border-radius: var(--radius-lg); padding: 48px; text-align: center; margin-top: 48px; }
.article-cta h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 12px; color: var(--text-primary); }
.article-cta p { color: var(--text-secondary) !important; margin-bottom: 24px !important; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: 12px; font-weight: 700; font-size: 1rem; transition: all .25s; }
.btn-line { background: #06C755; color: #fff; }
.btn-line:hover { background: #08d760; transform: translateY(-2px); }
.related-posts { max-width: 800px; margin: 0 auto; padding: 0 24px 64px; }
.related-posts h2 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 24px; padding-top: 32px; border-top: 1px solid var(--border-light); color: var(--text-primary); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.related-card { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 24px; color: var(--text-primary); transition: all .3s; box-shadow: var(--shadow-card); }

/* ===== 2026-11 優化補充 ===== */
.p-card[hidden] { display: none; }
.p-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.p-image-wrap picture { display: contents; }
.materials-note { margin-top: 24px; text-align: center; font-size: .92rem; color: var(--text-secondary); }
.materials-note a { color: var(--accent-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.form-error { display: none; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(192, 72, 72, .08); border: 1px solid rgba(192, 72, 72, .25); color: #a33a3a; font-size: .9rem; font-weight: 600; text-align: center; }
.form-error:not(:empty) { display: block; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 3000; background: var(--accent-deep); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-badge-dot, .float-line-pulse { animation: none; }
    html { scroll-behavior: auto; }
}
