/* ==========================================================
   AaBore 安博力 — Industry Subsite Styles
   /css/industry.css
   Deep Navy 配色：#1A2744 / #4A6FA5 / #E8B931 / #06C755
   ========================================================== */

/* ── Industry Hero ── */
.industry-hero {
    color: #fff;
    padding: 80px 20px 60px;
    text-align: center;
}
.industry-hero,
.industry-hero h1,
.industry-hero p,
.industry-hero .hero-desc,
.industry-hero .industry-badge,
.industry-hero .industry-hero-inner { color: #fff !important; }
/* Default fallback */
.industry-hero { background: linear-gradient(135deg, #1A2744 0%, #2A3F6A 60%, #3A5A8A 100%); }

/* Per-industry hero gradients */
.industry-hero--medical      { background: linear-gradient(135deg, #1B4D5C 0%, #2A7A8A 50%, #3DA5A0 100%); }
.industry-hero--restaurant   { background: linear-gradient(135deg, #5C2018 0%, #8B3A2F 50%, #C25E45 100%); }
.industry-hero--ecommerce    { background: linear-gradient(135deg, #2D1B4E 0%, #5A3D8A 50%, #7E5BBE 100%); }
.industry-hero--professional { background: linear-gradient(135deg, #1A2744 0%, #2A3F6A 50%, #4A6FA5 100%); }
.industry-hero--education    { background: linear-gradient(135deg, #1A4028 0%, #2D6B3F 50%, #48A463 100%); }
.industry-hero--b2b-saas     { background: linear-gradient(135deg, #2C2C3A 0%, #44445E 50%, #6A6A90 100%); }

/* Per-industry accent colors */
.industry-hero--medical .hero-accent      { color: #7EDCD2 !important; }
.industry-hero--restaurant .hero-accent   { color: #F9A825 !important; }
.industry-hero--ecommerce .hero-accent    { color: #CE93D8 !important; }
.industry-hero--professional .hero-accent { color: #E8B931 !important; }
.industry-hero--education .hero-accent    { color: #A5D6A7 !important; }
.industry-hero--b2b-saas .hero-accent     { color: #90CAF9 !important; }

/* Per-industry badge colors */
.industry-hero--medical .industry-badge      { background: rgba(126,220,210,0.2); border-color: rgba(126,220,210,0.4); color: #7EDCD2 !important; }
.industry-hero--restaurant .industry-badge   { background: rgba(249,168,37,0.2); border-color: rgba(249,168,37,0.4); color: #F9A825 !important; }
.industry-hero--ecommerce .industry-badge    { background: rgba(206,147,216,0.2); border-color: rgba(206,147,216,0.4); color: #CE93D8 !important; }
.industry-hero--professional .industry-badge { background: rgba(232,185,49,0.2); border-color: rgba(232,185,49,0.4); color: #E8B931 !important; }
.industry-hero--education .industry-badge    { background: rgba(165,214,167,0.2); border-color: rgba(165,214,167,0.4); color: #A5D6A7 !important; }
.industry-hero--b2b-saas .industry-badge     { background: rgba(144,202,249,0.2); border-color: rgba(144,202,249,0.4); color: #90CAF9 !important; }
.industry-hero-inner {
    max-width: 800px;
    margin: 0 auto;
}
.industry-badge {
    display: inline-block;
    background: rgba(232, 185, 49, 0.2);
    border: 1px solid rgba(232, 185, 49, 0.4);
    color: #E8B931;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 24px;
    margin-bottom: 20px;
}
.industry-hero h1 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
    color: #fff !important;
}
.hero-accent {
    color: #E8B931;
}
.hero-desc {
    font-size: 17px;
    color: rgba(255,255,255,0.8) !important;
    line-height: 1.7;
    margin-bottom: 28px;
}
.hero-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-btns .btn-line {
    background: #06C755;
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: opacity 0.2s;
}
.hero-btns .btn-line:hover { opacity: 0.9; }
.hero-btns .btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
}
.hero-btns .btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* ── Stats Grid ── */
.industry-stats {
    max-width: 1100px;
    margin: -40px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 12px;
}
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.stat-icon { font-size: 28px; }
.stat-number { font-size: 28px; font-weight: 800; color: #1A2744; }
.stat-label { font-size: 13px; color: #5A6270; line-height: 1.4; }
.stats-source {
    font-size: 11px;
    color: #999;
    text-align: center;
    margin-top: 8px;
}

/* ── General Section ── */
.industry-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}
/* alt 只是換底色，版面必須與非 alt 完全相同。
   舊寫法用 max-width:100% 做滿版灰底，再靠白名單（> h2, > p, > .tool-grid,
   > .pillar-grid）把四種子元素抓回 1100 置中——**任何不在名單裡的子元素就
   攤到整個視窗寬**：評論矩陣的表格、.case-grid、.faq（有 max-width:800 但
   沒有 auto margin，被釘在左邊）全部出界。2026-09-10 改為：區塊本身留在
   1100 網格，滿版灰底改用 box-shadow 往左右噴出、clip-path 限制垂直範圍。
   不用 100vw，所以不會因為捲軸寬度產生水平捲動。
   ⚠️ 不要再加白名單，加了就是把同一個坑挖回來。 */
.industry-section--alt {
    background: #F5F6F8;
    box-shadow: 0 0 0 100vmax #F5F6F8;
    clip-path: inset(0 -100vmax);
}
.industry-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1A2744;
    margin-bottom: 12px;
}
.section-desc {
    font-size: 16px;
    color: #5A6270;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ── Pain Points ── */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.pain-card {
    background: #fff;
    border: 1px solid #E0E4EB;
    border-radius: 12px;
    padding: 28px;
    position: relative;
}
.pain-number {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 36px;
    font-weight: 800;
    color: rgba(74, 111, 165, 0.1);
}
.pain-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1A2744;
    margin-bottom: 8px;
}
.pain-card p {
    font-size: 14px;
    color: #5A6270;
    line-height: 1.6;
}

/* ── Service Cards ── */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}
.service-card {
    background: #fff;
    border: 1px solid #E0E4EB;
    border-radius: 12px;
    padding: 28px;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
    box-shadow: 0 4px 20px rgba(26,39,68,0.1);
    transform: translateY(-2px);
}
.service-tag {
    display: inline-block;
    background: #E8B931;
    color: #1A2744;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}
.service-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1A2744;
    margin-bottom: 8px;
}
.service-card p {
    font-size: 14px;
    color: #5A6270;
    line-height: 1.6;
    margin-bottom: 12px;
}
.service-card a {
    font-size: 14px;
    font-weight: 600;
    color: #4A6FA5;
    text-decoration: none;
}
.service-card a:hover { color: #1A2744; }
.service-combo-cta {
    text-align: center;
    margin-top: 16px;
}
.service-combo-cta p {
    font-size: 15px;
    color: #5A6270;
    margin-bottom: 12px;
}

/* ── Tool Cards ── */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.tool-card {
    display: block;
    background: #fff;
    border: 1px solid #E0E4EB;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
}
.tool-card:hover {
    box-shadow: 0 4px 20px rgba(26,39,68,0.1);
    transform: translateY(-2px);
}
.tool-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1A2744;
    margin-bottom: 6px;
}
.tool-card p {
    font-size: 13px;
    color: #5A6270;
    line-height: 1.5;
    margin-bottom: 8px;
}
.tool-link {
    font-size: 13px;
    font-weight: 600;
    color: #4A6FA5;
}

/* ── Case Studies ── */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: 20px;
    margin-bottom: 24px;
}
.case-card {
    background: #fff;
    border: 1px solid #E0E4EB;
    border-radius: 12px;
    padding: 28px;
}
.case-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1A2744;
    margin-bottom: 10px;
}
.case-card p {
    font-size: 14px;
    color: #5A6270;
    line-height: 1.6;
    margin-bottom: 16px;
}
.case-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.metric-badge {
    display: inline-block;
    background: #E8F5E9;
    color: #2E7D32;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}
.case-card > a {
    font-size: 14px;
    font-weight: 600;
    color: #4A6FA5;
    text-decoration: none;
}
.case-more { text-align: center; }

/* ── Pillar Cards ── */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.pillar-card {
    display: block;
    background: #fff;
    border: 1px solid #E0E4EB;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    transition: box-shadow 0.2s;
}
.pillar-card:hover { box-shadow: 0 4px 20px rgba(26,39,68,0.1); }
.pillar-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1A2744;
    margin-bottom: 8px;
}
.pillar-link {
    font-size: 13px;
    font-weight: 600;
    color: #4A6FA5;
}

/* ── FAQ ── */
.industry-section .faq {
    max-width: 800px;
}
.industry-section .faq details {
    border: 1px solid #E0E4EB;
    border-radius: 10px;
    margin-bottom: 12px;
    background: #fff;
}
.industry-section .faq summary {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #1A2744;
    cursor: pointer;
    list-style: none;
}
.industry-section .faq summary::before {
    content: '＋';
    display: inline-block;
    width: 24px;
    color: #4A6FA5;
    font-weight: 700;
}
.industry-section .faq details[open] summary::before { content: '－'; }
.industry-section .faq summary::-webkit-details-marker { display: none; }
.faq-answer {
    padding: 0 20px 16px 44px;
    font-size: 14px;
    color: #5A6270;
    line-height: 1.7;
}
.faq-answer a { color: #4A6FA5; font-weight: 600; }

/* ── Buttons ── */
.btn-gold {
    display: inline-block;
    background: #E8B931;
    color: #1A2744;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: opacity 0.2s;
}
.btn-gold:hover { opacity: 0.9; color: #1A2744; }
.btn-outline {
    display: inline-block;
    border: 1px solid #4A6FA5;
    color: #4A6FA5;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-outline:hover { background: #4A6FA5; color: #fff; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .industry-hero h1 { font-size: 28px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .pain-grid { grid-template-columns: 1fr; }
    .service-grid { grid-template-columns: 1fr; }
    .tool-grid { grid-template-columns: repeat(2, 1fr); }
    .pillar-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { padding: 16px 10px; }
    .stat-number { font-size: 22px; }
    .tool-grid { grid-template-columns: 1fr; }
    .pillar-grid { grid-template-columns: 1fr; }
    .industry-hero { padding: 60px 16px 40px; }
}

/* =====================================================
   2026-09-10 版面調整（產業頁捲軸體檢）
   ===================================================== */

/* ── L-1 手機版：hero 下留白不足，數字卡的 -40px 會頂到 CTA 按鈕 ── */
@media (max-width: 640px) {
    .industry-stats { margin-top: -14px; }
}

/* ── L-4 區塊錨點導覽（整頁約 12 屏，沒有目錄讀者只能盲滑）── */
.industry-toc {
    position: sticky;
    top: 72px;                      /* = .site-main 的 padding-top，固定頁首高度 */
    z-index: 20;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #E3E6EC;
    margin-top: 10px;
}
.industry-toc__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
}
.industry-toc__inner::-webkit-scrollbar { display: none; }
.industry-toc a {
    flex: 0 0 auto;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #5A6270;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
}
.industry-toc a:hover { color: #1A2744; border-bottom-color: #E8B931; }
.industry-toc a:focus-visible { outline: 2px solid #4A6FA5; outline-offset: -2px; }

/* 錨點跳轉時不被固定頁首 + TOC 蓋住 */
.industry-section[id] { scroll-margin-top: 130px; }

/* ── L-2 文中 CTA（.cta-mid 是 analytics.php 的 cta_mid_click 掛勾）── */
.cta-mid--industry {
    max-width: 100%;
    margin: 0;
    padding: 36px 20px;
    border-left: 0;
    border-radius: 0;
    background: linear-gradient(135deg, #1A2744 0%, #2A3F6A 100%);
}
.cta-mid--industry .cta-mid__inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}
.cta-mid--industry .cta-mid__lead {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.7;
}
.cta-mid--industry .cta-mid__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: center;
}
.cta-mid--industry .cta-mid__line {
    background: #06C755;
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: opacity .2s;
}
.cta-mid--industry .cta-mid__line:hover { opacity: .9; color: #fff; }
.cta-mid--industry .cta-mid__alt {
    color: #E8B931;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
.cta-mid--industry .cta-mid__alt:hover { text-decoration: underline; color: #E8B931; }
.cta-mid--industry a:focus-visible { outline: 2px solid #E8B931; outline-offset: 3px; }

/* ── C-5 延伸資源區的分組標題（原本是兩個獨立區塊，都叫「延伸閱讀」）── */
.resource-group {
    font-size: 15px;
    font-weight: 700;
    color: #1A2744;
    letter-spacing: .02em;
    margin: 32px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #E3E6EC;
}
.resource-group:first-of-type { margin-top: 10px; }

@media (max-width: 768px) {
    .industry-toc { top: 56px; }            /* 手機版頁首高度 */
    .industry-section[id] { scroll-margin-top: 112px; }
    .cta-mid--industry { padding: 28px 16px; }
    .cta-mid--industry .cta-mid__lead { font-size: 16px; }
}
@media (max-width: 500px) {
    .industry-hero { padding-bottom: 56px; }  /* 讓數字卡壓上來時不擠到 CTA 按鈕 */
}
