/*
 * 桃園智慧產業學院 TIIAI
 * 執行成效頁面專屬樣式
 */

/* ========== Hero Banner ========== */
.hero-banner {
    margin-top: clamp(64px, 6.25vw, 120px);
    position: relative;
    overflow: hidden;
    background: #004a89;
    padding: 0 8%;
    display: flex;
    align-items: center;
    height: 200px;
}
.hero-banner-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-banner-deco {
    position: absolute;
    right: 0; top: 0;
    width: 50%; height: 100%;
    object-fit: contain;
    object-position: right center;
    z-index: 1;
    opacity: 0.12;
}
.hero-banner-content { position: relative; z-index: 2; }
.hero-banner-title {
    font-size: clamp(32px, 3vw, 56px);
    font-weight: 700;
    color: #fff;
    letter-spacing: 6px;
}

/* ========== Common section helpers ========== */
.results-highlights,
.results-development,
.results-cases,
.results-analytics {
    padding: clamp(48px, 5vw, 96px) 0;
}
.results-intro {
    padding: clamp(48px, 5vw, 96px) 0 0;
}
.results-highlights {
    padding-top: clamp(24px, 2.5vw, 48px);
}
.results-cta {
    padding: clamp(20px, 2vw, 40px) 0 clamp(48px, 5vw, 96px);
}
.results-intro .container,
.results-highlights .container,
.results-development .container,
.results-cases .container,
.results-analytics .container,
.results-cta .container {
    padding: 0 8%;
}
.section-title {
    text-align: center;
    font-size: clamp(30px, 3.2vw, 52px);
    font-weight: 700;
    color: #004a89;
    letter-spacing: 6px;
    margin-bottom: 16px;
}
.section-title.light { color: #fff; }
.section-sub {
    text-align: center;
    font-size: clamp(18px, 1.4vw, 22px);
    color: #000;
    line-height: 1.8;
    margin-bottom: clamp(32px, 3vw, 56px);
}
.section-sub.light { color: #cfd8e3; }

/* ========== Intro 智慧轉型・人才共榮 ========== */
.results-intro {
    text-align: center;
}
.intro-title {
    font-size: clamp(30px, 3.2vw, 52px);
    font-weight: 700;
    color: #004a89;
    letter-spacing: 6px;
    margin-bottom: 32px;
}
.intro-desc {
    margin: 0 auto;
    text-align: left;
}
.intro-desc p {
    font-size: clamp(18px, 1.4vw, 22px);
    color: #000;
    line-height: 2;
    margin: 4px 0;
}

/* ========== 成果亮點 ========== */
.results-highlights { background: #fff; }
.results-highlights .container::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: #000;
    margin-bottom: clamp(40px, 4vw, 72px);
}
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}
.highlight-card {
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    padding: clamp(28px, 2.5vw, 44px) 32px;
    box-shadow: 0 4px 14px rgba(0, 74, 137, 0.06);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.highlight-icon { margin-bottom: 12px; }
.highlight-number { margin-bottom: clamp(20px, 1.8vw, 28px); }
.highlight-label { margin-bottom: 4px; }
.highlight-icon {
    width: clamp(60px, 5vw, 80px);
    height: clamp(60px, 5vw, 80px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.highlight-icon svg,
.highlight-icon img { width: 100%; height: 100%; object-fit: contain; }
.highlight-number {
    font-size: clamp(48px, 5vw, 80px);
    font-weight: 800;
    color: #004a89;
    line-height: 1;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}
.highlight-number .plus {
    font-size: 0.5em;
    color: inherit;
    font-weight: 700;
    margin-left: 2px;
}

/* 每張卡片的主色 (數字 + + 號 + 單位字) */
.highlight-card--blue .highlight-number,
.highlight-card--blue .highlight-number .plus { color: #1f7ed8; }
.highlight-card--orange .highlight-number,
.highlight-card--orange .highlight-number .plus { color: #f08a2a; }
.highlight-card--green .highlight-number,
.highlight-card--green .highlight-number .plus,
.highlight-card--green .highlight-number .slash,
.highlight-card--green .highlight-number .unit-cn { color: #2d7a40; }
.highlight-card--lightgreen .highlight-number,
.highlight-card--lightgreen .highlight-number .plus,
.highlight-card--lightgreen .highlight-number .slash,
.highlight-card--lightgreen .highlight-number .unit-cn { color: #6abf4b; }
.highlight-number .num-fraction {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
}
.highlight-number .num-fraction--stack {
    align-items: stretch;
    gap: 0;
    line-height: 1;
}
.highlight-number .num-fraction--stack .num-top { align-self: flex-start; }
.highlight-number .num-fraction--stack .num-bot { align-self: flex-end; margin-top: 0.25em; }
.highlight-number .num-fraction--stack .slash {
    font-size: 1.4em;
    margin: 0 -0.05em;
    align-self: center;
    color: #cfd8e3;
    font-weight: 400;
}
.highlight-card--lightgreen .highlight-number {
    font-size: clamp(32px, 3.4vw, 56px);
}
.highlight-number .slash {
    color: #cfd8e3;
    margin: 0 4px;
    font-weight: 400;
}
.highlight-number .unit-cn {
    font-size: 0.42em;
    color: #3a9b54;
    margin-left: 2px;
    font-weight: 700;
}
.highlight-label {
    font-size: clamp(17px, 1.25vw, 20px);
    color: #1c2a3a;
    font-weight: 600;
}
.highlight-sub {
    font-size: clamp(14px, 1vw, 16px);
    color: #6c7a8a;
}

/* ========== 人才培育成果 ========== */
.results-development {
    background: #00305c;
    color: #fff;
}
.dev-table-wrap {
    max-width: 960px;
    margin: 0 auto clamp(28px, 3vw, 48px);
}
.dev-table-title {
    padding: 16px 26px;
    margin-bottom: 1px;
    font-weight: 600;
    font-size: clamp(16px, 1.3vw, 20px);
    color: #fff;
    background: #2f7dc4;
    border-radius: 10px;
}
.dev-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 4px;
}
.dev-table th,
.dev-table td {
    padding: 16px 26px;
    text-align: left;
    font-size: clamp(16px, 1.2vw, 19px);
    border: none;
    background: #fff;
}
.dev-table th:first-child,
.dev-table td:first-child {
    border-radius: 10px 0 0 10px;
}
.dev-table th:last-child,
.dev-table td:last-child {
    border-radius: 0 10px 10px 0;
}
.dev-table th {
    color: #004a89;
    font-weight: 600;
}
.dev-table tbody td {
    color: #004a89;
    font-weight: 600;
}
.dev-table .total-row td {
    color: #f08a2a;
    font-weight: 700;
}

.dev-photo {
    position: relative;
    margin: 0 auto clamp(56px, 5vw, 88px);
    max-width: 960px;
}
.dev-photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}
.dev-photo figcaption {
    position: absolute;
    left: 24px;
    bottom: -28px;
    padding: 16px 28px;
    background: #004a89;
    color: #fff;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}
.dev-photo figcaption h3 {
    font-size: clamp(18px, 1.4vw, 22px);
    font-weight: 700;
    margin: 0 0 4px;
    color: #fff;
}
.dev-photo figcaption p {
    font-size: clamp(13px, 0.9vw, 15px);
    margin: 0;
    color: #cfd8e3;
}

.dev-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 960px;
    margin: 0 auto;
}
.dev-stat {
    text-align: center;
    padding: clamp(36px, 3.5vw, 56px) 20px;
    border-radius: 10px;
    background: #004a89;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.dev-stat-num {
    display: block;
    font-size: clamp(56px, 5.5vw, 88px);
    font-weight: 800;
    color: #b6ff4b;
    line-height: 1;
    margin-bottom: 14px;
    padding-bottom: 12px;
    position: relative;
}
.dev-stat-num::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: #b6ff4b;
    border-radius: 1px;
}
.dev-stat-num .unit {
    font-size: 0.4em;
    color: #b6ff4b;
    margin-left: 6px;
    font-weight: 600;
}
.dev-stat-label {
    font-size: clamp(16px, 1.2vw, 20px);
    color: #fff;
}

/* ========== 產業服務案例 ========== */
.results-cases { background: #fff; }
.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(20px, 1.6vw, 28px);
    max-width: 1080px;
    margin: 0 auto;
}
.case-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 4px rgba(20, 30, 50, 0.10), 0 12px 28px rgba(20, 30, 50, 0.14);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.case-header {
    position: relative;
    padding: clamp(20px, 1.8vw, 30px) clamp(22px, 2vw, 32px) clamp(22px, 2vw, 32px);
    color: #fff;
    min-height: clamp(140px, 12vw, 180px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.case-blue .case-header   { background: #1f7ed8; }
.case-orange .case-header { background: #ec894a; }
.case-green .case-header  { background: #5fbb74; }
.case-teal .case-header   { background: #4ea69d; }
.case-tag {
    align-self: flex-start;
    padding: 5px 16px;
    border-radius: 999px;
    font-size: clamp(13px, 0.95vw, 15px);
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
}
.case-blue .case-tag   { background: #15589a; }
.case-orange .case-tag { background: #b35a1c; }
.case-green .case-tag  { background: #237a36; }
.case-teal .case-tag   { background: #226962; }
.case-title {
    margin: clamp(14px, 1.4vw, 22px) 0 0;
    font-size: clamp(22px, 1.8vw, 28px);
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}
.case-icon {
    position: absolute;
    top: clamp(20px, 1.8vw, 30px);
    right: clamp(22px, 2vw, 32px);
    width: clamp(32px, 2.6vw, 40px);
    height: clamp(32px, 2.6vw, 40px);
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
}
.case-icon svg,
.case-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.case-body {
    padding: clamp(20px, 2vw, 28px) clamp(22px, 2vw, 32px) clamp(24px, 2.2vw, 32px);
    flex: 1;
}
.case-sub {
    font-size: clamp(16px, 1.15vw, 19px);
    margin: 0 0 12px;
    font-weight: 600;
    color: #1a1a1a;
}
.case-desc {
    font-size: clamp(14px, 1vw, 16px);
    color: #5b6878;
    line-height: 1.85;
    margin: 0;
}

/* ========== 成果統計分析 ========== */
.results-analytics { background: #fff; }
.analytics-wrap {
    background: #f3f5f8;
    border-radius: 16px;
    padding: clamp(24px, 2.4vw, 40px);
    max-width: 1080px;
    margin: 0 auto;
}
.analytics-charts {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(20px, 1.6vw, 28px);
    margin-bottom: clamp(20px, 1.8vw, 32px);
}
.chart-card {
    background: #fff;
    border-radius: 12px;
    padding: clamp(20px, 1.8vw, 32px);
    box-shadow: 0 2px 8px rgba(0, 48, 92, 0.04);
}
.chart-title {
    font-size: clamp(16px, 1.2vw, 20px);
    font-weight: 700;
    color: #0e2a4f;
    margin: 0 0 4px;
}
.chart-sub {
    font-size: clamp(12px, 0.85vw, 14px);
    color: #6c7a8a;
    margin: 0 0 20px;
}
.chart-canvas-wrap {
    position: relative;
    height: 300px;
}

/* 圖表改上傳圖片時的容器 */
.chart-img-wrap {
    width: 100%;
}
.chart-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.gauges-panel {
    background: linear-gradient(180deg, #0a3a72 0%, #00305c 60%, #002648 100%);
    border-radius: 12px;
    padding: clamp(28px, 2.6vw, 44px) clamp(20px, 2vw, 40px);
}
.gauges-title {
    text-align: center;
    color: #fff;
    font-size: clamp(18px, 1.4vw, 22px);
    font-weight: 700;
    margin: 0 0 28px;
    letter-spacing: 2px;
}
.gauges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    justify-items: center;
}
.gauge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.gauge-canvas-wrap {
    position: relative;
    width: clamp(110px, 9vw, 140px);
    height: clamp(110px, 9vw, 140px);
}
.gauge-canvas {
    width: 100% !important;
    height: 100% !important;
}
.gauge-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(26px, 2.2vw, 36px);
    font-weight: 800;
    color: #f5a01a;
}
.gauge-label {
    font-size: clamp(13px, 0.95vw, 15px);
    color: #cfe1ff;
    letter-spacing: 1px;
}

/* ========== CTA ========== */
.results-cta { background: #fff; }
.cta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(20px, 1.8vw, 32px);
    max-width: 1080px;
    margin: 0 auto;
}
.cta-card {
    border-radius: 14px;
    padding: clamp(20px, 1.6vw, 28px) clamp(20px, 1.6vw, 28px) clamp(24px, 2vw, 32px);
    text-align: left;
    box-shadow: 0 6px 18px rgba(0, 48, 92, 0.12);
    display: flex;
    flex-direction: column;
    min-height: clamp(200px, 16vw, 240px);
}
.cta-card h3 {
    font-size: clamp(24px, 2vw, 34px);
    font-weight: 700;
    margin: 0 0 14px;
    color: #fff;
    letter-spacing: 2px;
}
.cta-card p {
    font-size: clamp(14px, 1vw, 17px);
    line-height: 1.9;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
}
.cta-card .cta-btn {
    margin-top: 5em;
}
.cta-blue {
    background: #004A89;
}
.cta-lightblue {
    background: #3387cf;
}
.cta-btn {
    align-self: center;
    display: inline-block;
    padding: 14px 44px;
    border-radius: 999px;
    font-size: clamp(15px, 1.1vw, 18px);
    font-weight: 700;
    text-decoration: none;
    background: #fff;
    color: #0e2a4f;
    border: 2px solid #f5c343;
    letter-spacing: 4px;
    transition: all 0.2s ease;
}
.cta-btn:hover {
    background: #f5c343;
    color: #0e2a4f;
}

/* ========== Tablet (≤1024) ========== */
@media (max-width: 1024px) {
    .chart-canvas-wrap { height: 280px; }
    .gauges-grid { gap: 16px; }
    .gauge-canvas-wrap { width: clamp(90px, 12vw, 120px); height: clamp(90px, 12vw, 120px); }
}

/* ========== Mobile (<768) ========== */
@media (max-width: 767px) {
    .hero-banner { height: 140px; padding: 0 6%; }
    .results-intro .container,
    .results-highlights .container,
    .results-development .container,
    .results-cases .container,
    .results-analytics .container,
    .results-cta .container {
        padding: 0 6%;
    }
    .highlight-grid {
        gap: 12px;
    }
    .highlight-card {
        padding: 20px 12px;
        gap: 8px;
    }
    .highlight-number { font-size: 28px; }
    .highlight-card--lightgreen .highlight-number { font-size: clamp(18px, 5vw, 24px); white-space: nowrap; }
    .highlight-label { font-size: 15px; }
    .highlight-sub { font-size: 11px; }
    .cases-grid {
        grid-template-columns: 1fr;
    }
    .dev-stats {
        grid-template-columns: 1fr 1fr;
    }
    .dev-stat {
        aspect-ratio: 1 / 1;
        padding: 18px 12px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .dev-stats .dev-stat:last-child {
        grid-column: 1 / -1;
        width: calc(50% - 6px);
        justify-self: center;
    }
    .dev-table th,
    .dev-table td {
        padding: 12px 10px;
        font-size: 13px;
    }
    .cta-grid {
        grid-template-columns: 1fr;
    }
    .analytics-wrap { padding: 16px 10px; }
    .chart-card { padding: 16px 10px; }
    .chart-canvas-wrap { height: 240px; }
    .gauges-grid { gap: 8px; }
    .gauges-panel { padding: 24px 10px; }
    .gauge-canvas-wrap { width: clamp(58px, 17vw, 100px); height: clamp(58px, 17vw, 100px); }
    .gauge-value { font-size: clamp(18px, 5vw, 28px); }
    .gauge-label { font-size: clamp(11px, 3vw, 14px); }
    .gauges-title { font-size: clamp(16px, 4.4vw, 20px); margin-bottom: 20px; }
}

/* ========== Small mobile (≤480) ========== */
@media (max-width: 480px) {
    .highlight-number { font-size: 28px; }
    .dev-stat-num { font-size: 36px; }
}
