/* ============================================
   騎翼機電 CHYEM 官網樣式
   =============================================
   設計依據：100% 參考 chyem.com (WordPress + Soledad + Elementor)
   - 字體：Raleway (標題) + PT Serif (內文) — Google Fonts
   - 主色：綠色 #7cb342 / #6eb48c
   - 風格：白底極簡、襯線內文、專業工業風
   ============================================ */

/* ---------- 1. 全域變數（要改全站顏色只改這裡） ---------- */
:root {
    --c-bg:         #ffffff;
    --c-bg-alt:     #f5f5f5;
    --c-text:       #313131;
    --c-heading:    #313131;
    --c-meta:       #888888;
    --c-border:     #dedede;
    --c-accent:     #7cb342;
    --c-accent-2:   #6eb48c;
    --c-accent-dk:  #5a8a2d;
    --c-dark:       #111111;

    /* 與原站 chyem.com 完全相同：英文走 Roboto，中文 fallback 系統黑體 */
    --font-body:    'Roboto', 'PingFang TC', 'Microsoft JhengHei', 'Helvetica Neue', Arial, sans-serif;
    --font-head:    'Roboto', 'PingFang TC', 'Microsoft JhengHei', 'Helvetica Neue', Arial, sans-serif;
    --font-accent:  'Oswald', 'Roboto', 'PingFang TC', 'Microsoft JhengHei', sans-serif;

    --container:    1140px;
    --header-h:     80px;

    --radius-sm:    4px;
    --radius-md:    8px;

    --shadow-sm:    0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md:    0 4px 16px rgba(0, 0, 0, 0.08);
}

/* ---------- 2. Reset & 基礎 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.9;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.02em;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-accent-dk); }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--c-heading);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 .5em;
    letter-spacing: 0.02em;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- 3. 按鈕 ---------- */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .25s ease;
    text-align: center;
    text-transform: uppercase;
}
.btn-primary {
    background: var(--c-accent);
    color: #fff;
    border-color: var(--c-accent);
}
.btn-primary:hover {
    background: var(--c-accent-dk);
    border-color: var(--c-accent-dk);
    color: #fff;
}
.btn-outline {
    background: transparent;
    color: #fff;
    border-color: #fff;
}
.btn-outline:hover {
    background: #fff;
    color: var(--c-text);
}
.btn-lg { padding: 16px 44px; font-size: 16px; }

/* ---------- 4. 頁頭 Header（透明覆蓋 Hero，捲動後變白） ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: transparent;
    z-index: 1000;
    transition: background .3s, box-shadow .3s, border-color .3s;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--c-border);
}
.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo img {
    height: 56px;
    width: auto;
}
.logo .logo-scroll { display: none; }
.logo .logo-hero  { display: block; }
.site-header.scrolled .logo .logo-hero  { display: none; }
.site-header.scrolled .logo .logo-scroll { display: block; }

.header-right { display: flex; align-items: center; }
.nav-social {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-left: 14px;
    border-left: 1px solid rgba(255,255,255,.35);
    margin-left: 8px;
}
.site-header.scrolled .nav-social { border-left-color: var(--c-border); }
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: opacity .2s, background .2s;
    text-decoration: none;
    padding: 0;
}
.social-icon:hover { opacity: .75; }
.social-fb   { color: #1877f2; }
.social-yt   { color: #ff0000; }
.social-line { color: #06c755; }
.social-search { color: #fff; }
.site-header.scrolled .social-search { color: #333; }

.main-nav > ul {
    display: flex;
    gap: 4px;
    align-items: center;
}
.main-nav a {
    display: block;
    padding: 12px 14px;
    font-family: var(--font-accent);
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1.5px;
    position: relative;
    transition: color .2s;
}
.main-nav a:hover { color: var(--c-accent); }
.main-nav a.nav-contact { font-size: 18px; }
.main-nav a.active { color: #ffffff; font-weight: 700; }
.site-header.scrolled .main-nav a { color: var(--c-text); }
.site-header.scrolled .main-nav a:hover { color: var(--c-accent); }
.site-header.scrolled .main-nav a.active { color: var(--c-accent); font-weight: 700; }
.main-nav a::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 6px;
    height: 2px;
    background: var(--c-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s;
}
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav .nav-cta {
    background: var(--c-accent);
    color: #fff;
    border-radius: var(--radius-sm);
    margin-left: 8px;
    padding: 10px 20px;
}
.main-nav .nav-cta:hover { background: var(--c-accent-dk); color: #fff; }
.main-nav .nav-cta::after { display: none; }

/* 子選單 */
.has-submenu { position: relative; }
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-top: 3px solid var(--c-accent);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .2s;
}
.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.submenu a {
    white-space: nowrap;
    padding: 10px 20px;
    text-transform: none;
    letter-spacing: 0;
    font-size: 14px;
    color: #111 !important;
}
.submenu a::after { display: none; }
.submenu a:hover { background: var(--c-bg-alt); }

/* 漢堡鈕 */
.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 40px;
    height: 40px;
    cursor: pointer;
    padding: 0;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    margin: 6px auto;
    transition: all .3s;
}
.site-header.scrolled .menu-toggle span { background: var(--c-text); }
.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 5. Hero 主視覺（左對齊，深色鍵盤背景） ---------- */
.hero {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 3;
    padding: 90px 20px 90px;
    text-align: left;
}
.hero-content .hero-title,
.hero-content .hero-subtitle,
.hero-content .hero-cta {
    max-width: 680px;
}
.hero-title {
    font-family: var(--font-head);
    font-size: clamp(3.0rem, 3.2vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.2;
    color: #fff;
    letter-spacing: 0.04em;
}
.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(2.0rem, 2.2vw, 1.8rem);
    font-weight: 700;
    max-width: 680px;
    margin-bottom: 32px;
    color: #f0f0f0;
    line-height: 1.8;
    letter-spacing: 0em;
}
.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-cta .btn {
    padding: 8px 36px;
    font-size: 24px;
    border-radius: 3px;
}

/* Hero 斜切下邊（模擬原站 shape_divider_bottom: tilt） */
.hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 80px;
    background: #fff;
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
    z-index: 4;
}

/* ---------- 6. 區塊通用 ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--c-bg-alt); }

.section-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 60px;
}
.section-kicker {
    font-family: var(--font-head);
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--c-accent);
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.section-title {
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--c-heading);
    margin-bottom: 16px;
    font-weight: 700;
}
.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--c-accent);
    margin: 16px auto 0;
}
.section-desc {
    color: var(--c-meta);
    font-size: 18px;
    line-height: 1.8;
}

/* ---------- 7. 技術核心（標題 → 敘述 → 縮圖自由排列，無邊框） ---------- */
.core-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 40px;
    row-gap: 60px;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}
.core-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: block;
    overflow: visible;
    transition: none;
}
.core-card:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}
.core-card h3 {
    font-size: 22px;
    padding: 0;
    margin: 0 0 16px;
    color: var(--c-heading);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: left;
}
.core-card > p {
    padding: 0;
    margin: 0 0 22px;
    color: var(--c-text);
    font-size: 18px;
    line-height: 1.9;
    letter-spacing: 0.02em;
    max-width: 90%;
}
.core-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
}
.core-gallery img {
    width: 100%;
    height: 130px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--c-border);
    padding: 4px;
    transition: transform .25s, box-shadow .25s;
}
.core-gallery img:first-child {
    grid-column: 1 / -1;
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    padding: 4px;
}
.core-gallery img:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* 響應式：手機改為單欄 */
@media (max-width: 767px) {
    .core-grid { grid-template-columns: 1fr; row-gap: 48px; column-gap: 0; }
    .core-card { max-width: 100% !important; margin-left: 0 !important; }
    .core-gallery { grid-template-columns: 1fr !important; margin-left: auto !important; margin-right: auto !important; justify-items: center !important; }
    .core-gallery img { max-width: 100% !important; height: auto !important; }
    .core-gallery img:first-child { grid-column: auto !important; }
}

/* ---------- 8. PC Base 分屏 ---------- */
.split-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}
.split-block:last-child { margin-bottom: 0; }
.split-block.reverse .split-text { order: 2; }
.split-text h3 {
    font-family: var(--font-head);
    font-size: 28px;
    color: var(--c-heading);
    margin-bottom: 20px;
    font-weight: 700;
}
.split-text .lead {
    font-family: var(--font-head);
    font-size: 18px;
    color: var(--c-accent);
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.check-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    font-size: 18px;
    color: var(--c-text);
}
.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 1px;
    width: 18px;
    height: 18px;
    background: var(--c-accent);
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    display: grid;
    place-items: center;
    font-weight: 700;
}
.split-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.split-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid var(--c-border);
    aspect-ratio: 4/3;
}
.split-gallery img:first-child {
    grid-column: span 2;
    aspect-ratio: 16/7;
}
.split-image img {
    border: 1px solid var(--c-border);
    width: 100%;
}

/* ---------- PC Base 軟體開發 ---------- */
.pcbase-grid {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 48px;
    align-items: start;
}
.pcbase-heading {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    color: var(--c-heading);
    margin-bottom: 16px;
}
.pcbase-imgs {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
}
.pcbase-imgs img,
.pcbase-equip img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--c-border);
}

/* ---------- 9. PLC 三卡（含 video） ---------- */
.plc-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
}
.plc-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
}
.plc-body {
    flex: 0 0 38%;
    padding: 8px 0;
}
.plc-body h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--c-heading);
    margin-bottom: 12px;
}
.plc-body p { color: var(--c-meta); margin-bottom: 12px; line-height: 1.8; }
.plc-media {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    overflow: hidden;
}
.plc-media img,
.plc-media video {
    max-width: 150%;
    height: auto;
    display: block;
    object-fit: contain;
}
.tag-line {
    font-family: var(--font-head);
    font-size: 12px;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px dashed var(--c-border);
    color: var(--c-accent-dk);
    letter-spacing: 0.5px;
}

/* ---------- 10. 設備改造 ---------- */
.retrofit-grid { display: none; }
.retrofit-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.retrofit-imgs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.retrofit-imgs img {
    width: 100%;
    height: auto;
    display: block;
}
.retrofit-texts {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.retrofit-text-block h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--c-heading);
    margin-bottom: 10px;
}
.retrofit-text-block p {
    color: var(--c-meta);
    font-size: 18px;
    line-height: 1.8;
}

/* ---------- 11. 關於我們 ---------- */
.about-inner {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 70px;
    align-items: center;
}
.about-text .section-kicker { text-align: left; }
.about-text .section-title { text-align: left; }
.about-text .section-title::after { margin-left: 0; }
.about-text p {
    color: var(--c-text);
    font-size: 18px;
    line-height: 1.9;
    margin-bottom: 18px;
}
.about-text strong { color: var(--c-accent-dk); font-weight: 700; }
.about-subtitle {
    font-family: var(--font-head);
    font-size: 22px;
    color: var(--c-heading);
    margin-top: 32px;
    margin-bottom: 16px;
}
.biz-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 40px;
    list-style: none;
    padding: 0;
}
.biz-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--c-text);
    font-size: 16px;
    padding: 3px 0;
}
.biz-list li::before {
    content: '';
    flex-shrink: 0;
    display: inline-block;
    width: 30px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='16'%3E%3Crect width='30' height='16' rx='8' fill='%234a9fd5'/%3E%3Ccircle cx='22' cy='8' r='6' fill='white'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}
.about-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.about-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid var(--c-border);
}
.about-gallery img:first-child {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

/* ---------- 12. 實機經驗 tag ---------- */
.exp-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.exp-tag {
    font-family: var(--font-head);
    padding: 8px 18px;
    background: #fff;
    border: 1.5px solid var(--c-border);
    border-radius: 2px;
    font-size: 14px;
    font-weight: 500;
    color: var(--c-text);
    transition: all .2s;
    cursor: default;
}
.exp-tag:hover {
    border-color: var(--c-accent);
    background: var(--c-accent);
    color: #fff;
}

/* 實機經驗 詳細清單 */
.exp-text { max-width: 860px; }
.exp-detail-list {
    list-style: none;
    padding: 0;
    margin-top: 0;
}
.exp-detail-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--c-text);
    font-size: 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--c-border);
}
.exp-detail-list li:first-child { border-top: 1px solid var(--c-border); }
.exp-detail-list li::before {
    content: '';
    flex-shrink: 0;
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='4' r='2.5' fill='%234a9fd5'/%3E%3Ccircle cx='4' cy='16' r='2.5' fill='%234a9fd5'/%3E%3Ccircle cx='16' cy='16' r='2.5' fill='%234a9fd5'/%3E%3Cline x1='10' y1='6.5' x2='4' y2='13.5' stroke='%234a9fd5' stroke-width='1.5'/%3E%3Cline x1='10' y1='6.5' x2='16' y2='13.5' stroke='%234a9fd5' stroke-width='1.5'/%3E%3Cline x1='4' y1='16' x2='16' y2='16' stroke='%234a9fd5' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}
.about-footer-line {
    font-size: 15px;
    color: var(--c-text);
    margin-top: 10px;
    line-height: 1.7;
}

/* ---------- 我們能提供的服務 ---------- */
.services-detail { background: linear-gradient(to bottom, #ffffff 0%, #e8f7f5 60%, #c8e8ee 100%) !important; }
.services-text { max-width: 860px; }
.services-text .section-title::after { margin-left: 0; }
.service-cat-list { margin-top: 28px; }
.service-cat { margin-bottom: 18px; }
.service-cat-title {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 700;
    color: var(--c-heading);
    margin-bottom: 4px;
}
.service-cat-desc {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 16px;
    color: var(--c-text);
    line-height: 1.75;
    padding-left: 4px;
}
.service-cat-desc::before {
    content: '♦';
    color: var(--c-accent);
    flex-shrink: 0;
    font-size: 12px;
    margin-top: 4px;
}

/* ---------- 13. CTA ---------- */
.cta-section {
    background: linear-gradient(135deg, var(--c-dark) 0%, #2a2a2a 100%);
    color: #fff;
    text-align: center;
    padding: 80px 0;
}
.cta-inner h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 16px;
    color: #fff;
}
.cta-inner p {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 32px;
}

/* ---------- Footer CTA ---------- */
.footer-cta {
    text-align: center;
    padding: 60px 0 48px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    margin-bottom: 48px;
}
.footer-cta h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: #fff;
    margin-bottom: 14px;
}
.footer-cta p {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 28px;
}

/* ---------- 14. 頁尾 ---------- */
.site-footer {
    position: relative;
    overflow: hidden;
    color: #ccc;
    padding-top: 90px;
    font-size: 14px;
    clip-path: polygon(0 52px, 100% 0, 100% 100%, 0 100%);
}
.site-footer::before {
    content: '';
    position: absolute;
    inset: -40px;
    background: url('../img/4.jpg') center / 150% auto no-repeat;
    filter: blur(7px);
    transform: scale(1.05);
    z-index: 0;
}
.site-footer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(8, 18, 28, 0.74);
    z-index: 1;
}
.site-footer .container,
.site-footer .footer-bottom { position: relative; z-index: 2; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 36px;
    padding-bottom: 40px;
}
.footer-logo {
    height: 46px;
    margin-bottom: 14px;
    background: #fff;
    padding: 4px 8px;
    border-radius: 3px;
    display: inline-block;
    width: auto;
}
.footer-col h4 {
    font-family: var(--font-head);
    color: #fff;
    font-size: 15px;
    margin-bottom: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col a {
    color: #999;
    font-size: 14px;
}
.footer-col a:hover { color: var(--c-accent); }
.contact-list li {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.7;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #666;
}

/* ---------- 15. 進場動畫 ---------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s ease-out, transform .7s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- 16. 響應式 RWD ---------- */
@media (max-width: 1024px) {
    :root { --container: 1024px; }
}

@media (max-width: 960px) {
    .split-block,
    .split-block.reverse { grid-template-columns: 1fr; gap: 40px; }
    .split-block.reverse .split-text { order: 0; }
    .about-inner { grid-template-columns: 1fr; gap: 48px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .pcbase-grid { grid-template-columns: 1fr 1fr; }
    .pcbase-equip { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
    .pcbase-grid { grid-template-columns: 1fr; }
    .pcbase-equip { grid-column: auto; }
}

@media (max-width: 767px) {
    .section { padding: 64px 0; }
    .section-header { margin-bottom: 40px; }
    .hero { min-height: 520px; }
    .hero::after { height: 40px; }

    .menu-toggle { display: block; }
    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: #fff;
        padding: 10px 20px 20px;
        border-bottom: 1px solid var(--c-border);
        transform: translateY(-120%);
        transition: transform .3s;
        box-shadow: var(--shadow-md);
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }
    .main-nav.open { transform: translateY(0); }
    .main-nav > ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }
    .main-nav a { padding: 14px 0; }
    .main-nav a::after { display: none; }
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        border-left: 2px solid var(--c-accent);
        padding: 0 0 0 16px;
        margin-bottom: 8px;
    }
    .main-nav .nav-cta {
        margin-left: 0;
        margin-top: 8px;
        text-align: center;
    }

    .footer-grid { grid-template-columns: 1fr; }
    .biz-list { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }

    .plc-card { flex-direction: column !important; margin-left: 0 !important; max-width: 100% !important; }
    .plc-body { flex: unset !important; width: 100%; }
    .plc-media { flex: unset !important; width: 100%; flex-wrap: wrap; }
    .plc-img-shrink { max-width: 100% !important; }

    .retrofit-layout { grid-template-columns: 1fr !important; margin-left: 0 !important; }
    .retrofit-texts { order: -1; }
    .retrofit-imgs { order: 1; }

    .about-text { margin-left: 0 !important; max-width: 100% !important; }
    .exp-text { margin-left: 0 !important; max-width: 100% !important; }
    .services-text { margin-left: 0 !important; max-width: 100% !important; }
    .biz-list { grid-template-columns: 1fr !important; }
}
