* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft JhengHei', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #0f172a;
    color: white;
}

code {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    padding: 2px 7px;
    border-radius: 6px;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.92em;
}

/* 導覽列 */

header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.logo:hover {
    color: #38bdf8;
}

nav a {
    color: #e2e8f0;
    text-decoration: none;
    margin-left: 26px;
    transition: 0.3s;
    font-size: 17px;
    padding-bottom: 4px;
}

nav a:hover,
nav a.active {
    color: #38bdf8;
}

nav a.active {
    font-weight: bold;
    border-bottom: 2px solid #38bdf8;
}

/* 漢堡選單按鈕 */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 1001;
}

/* 回到頂部按鈕 */

.back-to-top {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #38bdf8;
    color: #0f172a;
    border: none;
    font-size: 22px;
    font-weight: bold;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 999;
    transition: 0.3s;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    background: #0ea5e9;
    transform: translateY(-6px);
}

/* 首頁 Hero */

.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?q=80&w=1400&auto=format&fit=crop') center/cover;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content p {
    color: #38bdf8;
    letter-spacing: 5px;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 72px;
    margin-bottom: 20px;
}

.hero-content h2 {
    color: #d1d5db;
    margin-bottom: 40px;
    font-weight: normal;
}

.info {
    color: white;
    font-size: 20px;
    line-height: 1.8;
    margin-top: 20px;
    margin-bottom: 30px;
    font-weight: bold;
}

.btn {
    display: block;
    width: 200px;
    margin: 30px auto 0;
    padding: 15px 0;
    background-color: #38bdf8;
    color: #0f172a;
    text-decoration: none;
    border-radius: 15px;
    font-weight: bold;
    font-size: 20px;
    text-align: center;
    transition: 0.3s;
}

.btn:hover {
    background-color: #0ea5e9;
    transform: translateY(-3px);
}

/* 區塊 */

.section {
    padding: 100px 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.section-title {
    font-size: 46px;
    margin-bottom: 30px;
}

.section-text {
    font-size: 20px;
    line-height: 2;
    color: #d1d5db;
}

/* 卡片 */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card-link {
    text-decoration: none;
    display: block;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 35px;
    height: 100%;
    min-height: 220px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    border: 1px solid #38bdf8;
}

.card h3 {
    color: #38bdf8;
    margin-bottom: 18px;
    font-size: 26px;
}

.card p {
    color: #d1d5db;
    line-height: 1.8;
    font-size: 18px;
}

/* 內頁 Banner */

.page-banner {
    height: 60vh;
    position: relative;
    background: url('https://images.unsplash.com/photo-1642790106117-e829e14a795f?q=80&w=1400&auto=format&fit=crop') center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 60px;
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.banner-content p {
    color: #38bdf8;
    letter-spacing: 5px;
    margin-bottom: 20px;
}

.banner-content h1 {
    font-size: 68px;
    margin-bottom: 20px;
}

.banner-content h2 {
    color: #d1d5db;
    font-weight: normal;
}

/* 深色區塊 */

.dark-section {
    background: #111827;
}

/* 條件與重點卡片 */

.condition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.condition-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 28px;
    padding: 36px;
}

.condition-card h3 {
    font-size: 28px;
    color: #38bdf8;
    margin-bottom: 8px;
    line-height: 1.35;
}

.condition-card span {
    color: #94a3b8;
    font-size: 17px;
    display: inline-block;
}

.condition-card p {
    margin-top: 18px;
    line-height: 1.8;
    color: #d1d5db;
    font-size: 18px;
}

.example-box {
    margin-top: 25px;
    background: #0f172a;
    border-radius: 18px;
    padding: 22px;
}

.example-box h4 {
    margin-bottom: 10px;
    color: #38bdf8;
    font-size: 17px;
}

.example-box p {
    margin-top: 0;
    font-size: 17px;
}

/* 比較表 */

.compare-table-wrapper {
    margin-top: 50px;
    overflow-x: auto;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.compare-table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
}

.compare-table th,
.compare-table td {
    padding: 18px 22px;
    text-align: left;
    font-size: 16px;
    line-height: 1.6;
    color: #d1d5db;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.compare-table th {
    background: #0f172a;
    color: #38bdf8;
    font-size: 15px;
}

.compare-table tbody tr:last-child td {
    border-bottom: none;
}

.compare-table tbody tr:hover {
    background: rgba(56, 189, 248, 0.08);
}

.compare-table td:first-child,
.compare-table th:first-child {
    font-weight: bold;
    color: white;
}

/* 常見 Q&A 手風琴 */

.faq-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: #1e293b;
    border-radius: 20px;
    padding: 25px 30px;
}

.faq-item summary {
    cursor: pointer;
    font-size: 20px;
    color: #38bdf8;
    font-weight: bold;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    float: right;
    font-size: 24px;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    margin-top: 15px;
    color: #d1d5db;
    line-height: 1.8;
    font-size: 17px;
}

/* 效率比較長條圖 */

.bar-chart {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.bar-group h4 {
    color: #38bdf8;
    margin-bottom: 15px;
    font-size: 18px;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.bar-name {
    width: 110px;
    flex-shrink: 0;
    color: #d1d5db;
    font-size: 15px;
}

.bar-track {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    height: 28px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s ease;
}

.bar-manual {
    background: #64748b;
}

.bar-auto {
    background: #38bdf8;
}

.chart-note {
    margin-top: 20px;
    color: #94a3b8;
    font-size: 14px;
}

/* Timeline */

.timeline {
    margin-top: 40px;
    border-left: 3px solid #38bdf8;
    padding-left: 40px;
}

.timeline-item {
    position: relative;
    margin-bottom: 45px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: #38bdf8;
    border-radius: 50%;
    position: absolute;
    left: -51px;
    top: 6px;
}

.timeline-content h3 {
    margin-bottom: 12px;
    font-size: 26px;
}

.timeline-content p {
    color: #d1d5db;
    line-height: 1.8;
    font-size: 18px;
}

/* 系統標籤群組 */

.system-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 25px;
    margin-bottom: 10px;
}

.system-tag {
    background: #1e293b;
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 17px;
    font-weight: bold;
}

/* 圖片樣式 */

.img {
    background-color: white;
    padding: 10px 22px;
    border-radius: 14px;
    max-height: 75px;
    margin-bottom: 14px;
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 18px;
    margin-top: 20px;
}

/* 執行過程影片區塊 */

.video-wrapper {
    margin-top: 40px;
    background: #111827;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

.video-player {
    width: 100%;
    max-height: 620px;
    display: block;
    background: #000;
}

.video-caption {
    padding: 22px 30px;
    background: #1e293b;
    color: #d1d5db;
    font-size: 17px;
    line-height: 1.7;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.video-caption strong {
    color: #38bdf8;
}

/* 輪播圖 */

.carousel {
    width: 100%;
    max-width: 1000px;
    margin: 40px auto 0;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #0b1120;
}

.slide img {
    width: 100%;
    height: 500px;
    object-fit: contain;
    background: #0b1120;
}

.caption {
    width: 100%;
    background: #1e293b;
    color: #e2e8f0;
    padding: 16px 20px;
    font-size: 16px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.carousel-btn {
    position: absolute;
    top: 44%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.75);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    transition: 0.3s;
    z-index: 5;
}

.carousel-btn:hover {
    background: #38bdf8;
    color: #0f172a;
}

.carousel-btn.prev {
    left: 16px;
}

.carousel-btn.next {
    right: 16px;
}

.dots {
    text-align: center;
    position: absolute;
    bottom: 66px;
    width: 100%;
    z-index: 5;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: #38bdf8;
    transform: scale(1.2);
}

/* 頁尾 */

.site-footer {
    background: #090e1a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 32px 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.8;
}

/* RWD */

@media (max-width: 960px) {
    header {
        padding: 18px 25px;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 68px;
        left: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    nav.nav-open {
        max-height: 450px;
        padding: 20px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav a {
        margin: 12px 0;
        font-size: 19px;
    }
}

@media (max-width: 768px) {
    .hero-content h1,
    .banner-content h1 {
        font-size: 42px;
    }

    .section-title {
        font-size: 34px;
    }

    .slide img {
        height: 320px;
    }

    .dots {
        bottom: 76px;
    }

    .back-to-top {
        right: 20px;
        bottom: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}
