/* General Body and Container Styles */
:root {
    --primary-color: #f77f00; /* Orange-red from logo */
    --secondary-color: #2e8b57; /* Deep green from logo */
    --text_highlight-color: #f3dd13;
    --text_highlight-color-blue: #13a4f3;
    --dark-bg-color: #1a1a1a;
    --darker-bg-color: #0d0d0d;
    --text-color: #e0e0e0;
    --light-text-color: #a0a0a0;
    --border-color: #333;
    --button-hover-bg: #e07000;
    --button-secondary-bg: #267a4b; /* A slightly darker green for hover */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--darker-bg-color);
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    background-color: var(--dark-bg-color);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

header .logo-link {
    display: inline-flex;
    text-decoration: none;
    line-height: 0;
}

header .logo {
    height: 50px;
    width: 50px; /* Ensure logo is circular or square for consistency */
    border-radius: 50%; /* If your logo is not perfectly round, this will make it so */
    margin-right: 15px;
    object-fit: cover; /* Ensures image fills the circle */
    transition: transform 0.25s ease;
}

header .logo-link:hover .logo {
    transform: scale(1.05);
}

header h1 {
    font-size: 1.8em;
    color: var(--text-color);
    margin: 0;
    flex-grow: 1; /* Allows h1 to take available space */
}

/* 「火狐資訊」在 h1 裡做成可點選的父品牌連結，點了回到 / landing */
header h1 .brand-parent {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

header h1 .brand-parent:hover {
    color: var(--primary-color);
}

header nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap; /* Allows nav items to wrap */
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: var(--primary-color);
}

/* 漢堡菜單按鈕樣式 - 桌面版預設隱藏 */
.hamburger-menu-toggle {
    display: none;
    /* 桌面版隱藏 */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    /* 為了漢堡圖標動畫 */
    z-index: 1003;
    /* 確保在菜單上方 */
}

.hamburger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    /* 漢堡圖標線條顏色 */
    margin: 5px 0;
    /* 漢堡圖標線條間距 */
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* 漢堡圖標動畫 (變成 X) */
.hamburger-menu-toggle.active .hamburger-icon:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu-toggle.active .hamburger-icon:nth-child(2) {
    opacity: 0;
}

.hamburger-menu-toggle.active .hamburger-icon:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), url('images/background.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.hero-section h2 {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-section p {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--light-text-color);
    text-align: left;
}

.button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    text-align: center;
}

.primary-button {
    background-color: var(--primary-color);
    color: #fff;
}

.primary-button:hover {
    background-color: var(--button-hover-bg);
    transform: translateY(-2px);
}

/* Section Common Styles */
section {
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

section:last-of-type {
    border-bottom: none;
}

section h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Features Section */
.features-section {
    background-color: var(--dark-bg-color);
}

/* Tutorials Section */
.tutorials-section {
		background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), url('images/background5.jpg') no-repeat center center/cover;
    /* background-color: var(--darker-bg-color); */
}

.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.tutorial-card {
    background-color: var(--dark-bg-color);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tutorial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
}

.tutorial-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    /* 保持比例並完整顯示 */
    background-color: #000;
    /* 背景填充，避免留白不好看 */
}

.tutorial-card h3 {
    font-size: 1.4em;
    margin: 15px 15px 10px;
    color: var(--primary-color);
}

.tutorial-card p {
    font-size: 0.95em;
    color: var(--light-text-color);
    margin: 0 15px 15px;
}

.more-tutorials {
    margin-top: 40px;
    font-style: italic;
    color: var(--light-text-color);
}

/* Download Section */
.download-section-new {
    background:
        radial-gradient(ellipse at top, rgba(247,127,0,0.10), transparent 60%),
        var(--dark-bg-color);
    padding: 90px 0 100px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.download-section-new::before {
    content: '';
    position: absolute;
    bottom: -120px;
    left: -120px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(46,139,87,0.10), transparent 70%);
    pointer-events: none;
}

.download-header {
    text-align: center;
    margin-bottom: 50px;
}

.download-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(247,127,0,0.12);
    color: var(--primary-color);
    border: 1px solid rgba(247,127,0,0.4);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.download-section-new h2 {
    color: #ffffff;
    font-size: 2.4em;
    display: block;
    margin-bottom: 16px;
}

.download-section-new h2::after {
    margin: 14px auto 0;
}

.download-header .section-lead {
    margin: 0 auto;
}

.download-cards {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto 40px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.download-card {
    background: linear-gradient(160deg, #1f1f1f, #161616);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 36px 36px 32px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
}

.download-card-primary {
    background: linear-gradient(160deg, rgba(247,127,0,0.16), rgba(247,127,0,0.03)), linear-gradient(160deg, #1f1f1f, #161616);
    border-color: rgba(247,127,0,0.4);
    position: relative;
    overflow: hidden;
}

.download-card-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #ffb155);
}

.download-card-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.download-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(247,127,0,0.18);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 1.7em;
    flex-shrink: 0;
}

.download-card-primary .download-icon-circle {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 12px 28px rgba(247,127,0,0.4);
}

.download-card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.download-version-pill {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 1px;
    width: fit-content;
}

.download-platform {
    color: var(--light-text-color);
    font-size: 0.95em;
    font-weight: 500;
}

.download-card h3 {
    color: #ffffff;
    font-size: 1.55em;
    margin-bottom: 18px;
    font-weight: 700;
}

.download-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
}

.download-specs li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    color: var(--text-color);
    font-size: 0.98em;
}

.download-specs li i {
    color: var(--secondary-color);
    font-size: 0.95em;
}

.download-cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.download-cta-primary {
    flex: 1;
    min-width: 200px;
    padding: 14px 22px;
    font-size: 1.02em;
    box-shadow: 0 10px 28px rgba(247,127,0,0.35);
}

.download-cta-primary i {
    margin-right: 8px;
}

.download-cta-secondary {
    padding: 14px 22px;
    font-size: 1em;
    color: #fff;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.18);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.download-cta-secondary i {
    margin-right: 8px;
}

.download-cta-secondary:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.35);
    transform: translateY(-2px);
}

.download-source {
    color: var(--light-text-color);
    font-size: 0.88em;
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.download-source i {
    color: var(--text-color);
    margin-right: 4px;
}

.download-source a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.download-source a:hover {
    color: var(--button-hover-bg);
    text-decoration: underline;
}

.download-card-mobile {
    text-align: center;
    align-items: center;
    justify-content: center;
}

.download-card-mobile .download-icon-circle {
    margin: 6px auto 16px;
    background: rgba(255,255,255,0.05);
    color: var(--light-text-color);
}

.download-card-mobile h3 {
    text-align: center;
    margin-bottom: 10px;
}

.download-card-mobile p {
    color: var(--light-text-color);
    text-align: center;
    margin: 0 0 18px;
    font-size: 0.95em;
}

.download-coming-soon-tag {
    display: inline-block;
    background: rgba(255,255,255,0.06);
    color: var(--light-text-color);
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px dashed rgba(255,255,255,0.18);
    font-size: 0.88em;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ----- 單卡多平台下載（v3.2.1 新版面） ----- */
.download-single {
    grid-column: 1 / -1;
    max-width: 720px;
    margin: 0 auto;
}

.download-single-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.download-single-head h3 {
    color: #ffffff;
    font-size: 1.55em;
    margin: 0;
}

.download-single-update-link {
    padding: 10px 16px;
    font-size: 0.9em;
}

.download-platforms {
    list-style: none;
    padding: 0;
    margin: 22px 0 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.download-platform-row {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: 14px;
    align-items: center;
}

.download-platform-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 1.4em;
    flex-shrink: 0;
}

/* 各平台 icon 用品牌色 */
.download-platform-row[data-platform="windows"] .download-platform-icon {
    background: rgba(0,120,215,0.18);
    color: #0078D7; /* Windows 藍 */
}

.download-platform-row[data-platform="mac"] .download-platform-icon {
    background: rgba(255,255,255,0.08);
    color: #ffffff; /* Apple 純白（深底上最清楚） */
}

.download-platform-mobile .download-platform-icon {
    background: rgba(255,255,255,0.05);
}

.download-platform-mobile .download-platform-icon .fa-apple {
    color: #ffffff;
}

.download-platform-mobile .download-platform-icon .fa-android {
    color: #A4C639; /* Android 綠 */
}

.download-platform-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1em;
    box-shadow: 0 8px 22px rgba(247,127,0,0.3);
    transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}

.download-platform-cta:hover {
    background: var(--button-hover-bg);
    transform: translateY(-2px);
    color: #fff;
}

.download-platform-cta.is-disabled {
    background: rgba(255,255,255,0.04);
    color: var(--light-text-color);
    cursor: not-allowed;
    pointer-events: none;
    border: 1px dashed rgba(255,255,255,0.16);
    box-shadow: none;
    font-weight: 600;
}

.download-platform-cta.is-disabled i {
    display: none;
}

/* 「推薦」小徽章（在按鈕內、標題右側） */
.download-platform-badge {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    color: #ffffff;
    font-size: 0.72em;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 1px;
    margin-left: 6px;
    vertical-align: middle;
}

/* 次要按鈕樣式（同一平台的替代下載，例如 Windows 免安裝版） */
.download-platform-cta.is-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
    box-shadow: none;
    font-weight: 700;
}

.download-platform-cta.is-secondary:hover {
    background: rgba(247,127,0,0.10);
    color: var(--primary-color);
}

.download-platform-cta.is-secondary.is-disabled {
    background: rgba(255,255,255,0.04);
    color: var(--light-text-color);
    border: 1px dashed rgba(255,255,255,0.16);
}

/* disabled 狀態下不顯示推薦徽章 */
.download-platform-cta.is-disabled .download-platform-badge {
    display: none;
}

.download-platform-mobile {
    grid-template-columns: 50px 1fr auto;
    opacity: 0.85;
}

.download-platform-text {
    color: var(--light-text-color);
    font-size: 0.95em;
    padding: 12px 0;
}

.download-platform-row .download-version-pill {
    justify-self: end;
    background: rgba(247,127,0,0.85);
    font-size: 0.88em;
    padding: 4px 12px;
}

@media (max-width: 900px) {
    .download-cards {
        grid-template-columns: 1fr;
    }
    .download-section-new h2 {
        font-size: 1.9em;
    }
    .download-card {
        padding: 28px 24px 26px;
    }
    .download-card h3 {
        font-size: 1.35em;
    }
    .download-cta-row {
        flex-direction: column;
    }
    .download-cta-primary,
    .download-cta-secondary {
        width: 100%;
        text-align: center;
    }
    .download-single-head {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .download-single-update-link {
        align-self: flex-start;
    }
    .download-platform-row {
        grid-template-columns: 44px 1fr;
        gap: 12px;
    }
    .download-platform-row .download-version-pill {
        display: none;
    }
    .download-platform-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2em;
    }
    .download-platform-cta {
        padding: 12px 18px;
        font-size: 0.95em;
    }
}

/* Contact Section */
.contact-section-new {
    background:
        radial-gradient(ellipse at bottom, rgba(46,139,87,0.10), transparent 60%),
        var(--darker-bg-color);
    padding: 90px 0 100px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.contact-section-new::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(247,127,0,0.10), transparent 70%);
    pointer-events: none;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(46,139,87,0.14);
    color: var(--secondary-color);
    border: 1px solid rgba(46,139,87,0.4);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.contact-section-new h2 {
    color: #ffffff;
    font-size: 2.4em;
    display: block;
    margin-bottom: 16px;
}

.contact-section-new h2::after {
    margin: 14px auto 0;
}

.contact-header .section-lead {
    margin: 0 auto;
}

.contact-body {
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-brand {
    text-align: center;
    padding: 24px 12px;
}

.contact-brand-logo {
    width: 100%;
    max-width: 240px;
    height: auto;
    margin-bottom: 18px;
    filter: drop-shadow(0 16px 36px rgba(247,127,0,0.35));
}

.contact-brand-name {
    color: #ffffff;
    font-size: 1.6em;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.contact-brand-tagline {
    color: var(--light-text-color);
    font-size: 0.92em;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-card {
    background: linear-gradient(160deg, #1f1f1f, #161616);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 32px 28px 28px;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-6px);
    border-color: rgba(247,127,0,0.4);
    box-shadow: 0 22px 50px rgba(0,0,0,0.5);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    margin-bottom: 18px;
}

.contact-icon-fb {
    background: rgba(24,119,242,0.18);
    color: #1877f2;
}

.contact-icon-mail {
    background: rgba(247,127,0,0.18);
    color: var(--primary-color);
}

.contact-icon-bug {
    background: rgba(217,83,79,0.18);
    color: #e07b78;
}

.contact-card h3 {
    color: #ffffff;
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: 700;
}

.contact-card p {
    color: var(--light-text-color);
    font-size: 0.95em;
    line-height: 1.7;
    margin: 0 0 18px;
    flex-grow: 1;
}

.contact-card-link {
    color: var(--primary-color);
    font-size: 0.95em;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.25s ease;
}

.contact-card:hover .contact-card-link {
    gap: 12px;
}

@media (max-width: 900px) {
    .contact-body {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .contact-brand {
        padding: 8px 12px 0;
    }
    .contact-brand-logo {
        max-width: 160px;
        margin-bottom: 12px;
    }
    .contact-brand-name {
        font-size: 1.35em;
    }
    .contact-section-new h2 {
        font-size: 1.9em;
    }
}

/* Footer Styles */
footer {
    background-color: var(--dark-bg-color);
    color: var(--light-text-color);
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
    border-top: 1px solid var(--border-color);
}

/* Tutorial Detail Page Specific Styles */
.tutorial-detail-section {
    background:
        radial-gradient(ellipse at top, rgba(247,127,0,0.08), transparent 60%),
        var(--darker-bg-color);
    text-align: center;
    padding: 70px 0 90px;
    position: relative;
    overflow: hidden;
}

.tutorial-detail-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at top, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at top, #000 30%, transparent 75%);
}

.tutorial-detail-section > .container {
    position: relative;
    z-index: 1;
}

.tutorial-detail-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.4em;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    display: block;
    padding-top: 24px;
}

.tutorial-detail-section h2::before {
    content: '教學';
    display: inline-block;
    background: rgba(247,127,0,0.12);
    color: var(--primary-color);
    border: 1px solid rgba(247,127,0,0.4);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.4em;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 18px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.tutorial-detail-section h2::after {
    content: '';
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 18px auto 0;
    border-radius: 2px;
    display: block;
}

.tutorial-detail-section h3 {
    text-align: left;
}

.tutorial-detail-section p {
    text-align: left;
}

.tutorial-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 44px 48px;
    background: linear-gradient(160deg, rgba(31,31,31,0.85), rgba(22,22,22,0.85));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.45);
    text-align: left;
}

.tutorial-content > p:first-of-type {
    font-size: 1.12em;
    line-height: 1.85;
    color: #ffffff;
    border-left: 4px solid var(--primary-color);
    padding: 4px 0 4px 18px;
    margin-bottom: 28px;
}

.tutorial-content h3 {
    color: #ffffff;
    font-size: 1.45em;
    margin-top: 42px;
    margin-bottom: 18px;
    padding-left: 14px;
    border-left: 4px solid var(--secondary-color);
    font-weight: 700;
    line-height: 1.4;
}

.tutorial-content > h3:first-child,
.tutorial-content > p:first-of-type + h3 {
    margin-top: 16px;
}

.tutorial-content p {
    margin-bottom: 16px;
    font-size: 1.02em;
    color: var(--text-color);
    line-height: 1.85;
}

.tutorial-content a:not(.button) {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed rgba(247,127,0,0.4);
    transition: color 0.25s ease, border-color 0.25s ease;
}

.tutorial-content a:not(.button):hover {
    color: var(--button-hover-bg);
    border-bottom-color: var(--button-hover-bg);
}

.tutorial-content a.button {
    color: #fff;
    border-bottom: none;
}

.tutorial-main-image {
    /* width: 100%; */
    height: auto;
    /* max-height: 400px; */
    object-fit: contain;
    background-color: #000; /* Dark background for images */
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.content-image {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    background-color: transparent;
    margin: 18px auto 24px;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.content-image:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.55), 0 0 0 1px rgba(247,127,0,0.25);
}

.back-to-tutorials {
    background-color: var(--primary-color);
    color: #fff;
    margin-top: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding: 14px 28px;
    font-size: 1.05em;
    box-shadow: 0 10px 24px rgba(247,127,0,0.3);
}

.tutorial-detail-section .back-to-tutorials {
    display: flex;
    margin-left: auto;
    margin-right: auto;
}

.back-to-tutorials:hover {
    background-color: var(--button-hover-bg);
    color: #fff;
    transform: translateY(-2px);
}

.highlight-field {
    color: var(--text_highlight-color);
    font-weight: 700;
    background: rgba(243,221,19,0.08);
    padding: 1px 6px;
    border-radius: 4px;
}

.highlight-field-blue {
    color: var(--text_highlight-color-blue);
    font-weight: 600;
    background: rgba(19,164,243,0.08);
    padding: 1px 6px;
    border-radius: 4px;
}

.image-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    /* 圖片間距 */
    margin: 20px 0;
    /* 與上下段落間距 */
    flex-wrap: wrap;
    /* 確保小螢幕會自動換行 */
}

.image-row .content-image {
    flex: 1;
    max-width: 48%;
    /* 讓兩張剛好並排 */
    height: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    header .logo {
        margin-bottom: 10px;
    }

    header h1 {
        font-size: 1.5em;
        margin-bottom: 15px;
    }

    .hamburger-menu-toggle {
        display: block;
        /* 在手機版顯示 */
        /*
            之前是 position: relative; 並且 z-index: 1003;
            現在我們讓它在菜單打開時，固定在視窗右上角
            */
        position: fixed;
        /* 改變為 fixed 定位 */
        top: 15px;
        /* 距離頂部 15px (可根據您的需求調整) */
        right: 15px;
        /* 距離右側 15px (可根據您的需求調整) */
        z-index: 1004;
        /* 稍微提高 z-index，確保它在菜單上層的絕對優勢 */
        padding: 10px;
        /* 保持按鈕周圍的點擊區域 */
        /* 確保動畫依然有效 */
    }

    header nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(13, 13, 13, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1002;
        /* 保持這個 z-index */
        overflow-y: auto;
        /* 新增：為菜單內容預留空間，避免被 X 按鈕遮擋 */
        padding-top: 60px;
        /* 根據您的 top 值和按鈕高度調整，確保菜單內容從下方開始 */
        padding-right: 20px;
        /* 確保右側也有足夠空間，避免內容太靠右 */
    }

    /* 菜單展開時的樣式 */
    header nav.active {
        transform: translateX(0);
        z-index: 1002;
        /* 展開菜單，移回原位 */
    }

    /* 導航連結樣式 (手機版) */
    header nav ul {
        flex-direction: column;
        /* 垂直堆疊 */
        text-align: center;
        gap: 25px;
        /* 增加連結間距 */
        padding: 20px;
        /* 菜單內部 padding */
        width: 100%;
        /* 佔滿菜單寬度 */
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    header nav ul li {
        margin: 5px 0;
    }

    .hero-section {
        padding: 80px 20px;
        min-height: 400px;
    }

    .hero-section h2 {
        font-size: 2.2em;
    }

    .hero-section p {
        font-size: 1em;
    }

    section {
        padding: 60px 0;
    }

    section h2 {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .tutorial-detail-section h2 {
        font-size: 1.85em;
    }
    .tutorial-content h3 {
        font-size: 1.25em;
    }
    .tutorial-content p {
        font-size: 0.98em;
    }
    .tutorial-content {
        padding: 28px 22px 34px;
    }

}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .hero-section h2 {
        font-size: 1.8em;
    }

    .hero-section p {
        font-size: 0.9em;
    }

    section h2 {
        font-size: 1.8em;
    }

    .tutorial-grid {
        grid-template-columns: 1fr;
    }

    .tutorial-detail-section {
        padding: 50px 0 70px;
    }
    .tutorial-content {
        padding: 22px 18px 28px;
        border-radius: 12px;
    }

}

/* ===== Release Index Page ===== */

.release-index a {
    color: var(--primary-color);
    /* 橘色主色 */
    text-decoration: none;
}

.release-index a:visited {
    color: var(--primary-color);
    /* 防止變紫 */
}

.release-index a:hover {
    color: var(--button-hover-bg);
    /* hover 稍深 */
    text-decoration: underline;
}

.bugfix-block {
    margin-top: 40px;
    padding: 25px 30px;
    background-color: var(--dark-bg-color);
    border-left: 5px solid var(--secondary-color);
    border-radius: 8px;
}

.bugfix-block h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.bugfix-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 1.05em;
    color: var(--text-color);
}

.bugfix-icon {
    color: var(--secondary-color);
    font-weight: bold;
    margin-top: 2px;
}

/* ===== Latest Release Section ===== */

.latest-release-section {
    background-color: var(--dark-bg-color);
    text-align: center;
}

.latest-release-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 35px 40px;
    background-color: var(--darker-bg-color);
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}

.latest-release-info {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.95em;
    color: var(--light-text-color);
}

.release-version {
    font-weight: bold;
    color: var(--primary-color);
}

.release-date {
    opacity: 0.8;
}

.latest-release-section {
    /* background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), url('images/background4.jpg') no-repeat center center/cover; */
    background-color: var(--darker-bg-color);
}

.latest-release-card h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.latest-release-card p {
    margin-bottom: 25px;
    font-size: 1.05em;
    color: var(--text-color);
}

.latest-release-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ===== Release Index Page - Card List ===== */

.release-index {
    padding: 60px 0 80px;
}

.release-index .container {
    max-width: 900px;
}

.release-index > section {
    text-align: center;
    padding: 0;
    border-bottom: none;
}

.release-index h2 {
    font-size: 2.4em;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.release-index h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.release-index-intro {
    color: var(--light-text-color);
    font-size: 1.05em;
    max-width: 640px;
    margin: 0 auto 50px;
    line-height: 1.7;
}

.release-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 50px;
    text-align: left;
}

.release-list .release-list-card {
    display: block;
    background-color: var(--dark-bg-color);
    border-left: 5px solid var(--primary-color);
    border-radius: 8px;
    padding: 26px 32px;
    color: var(--text-color);
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-left-color 0.25s ease;
    position: relative;
}

.release-list .release-list-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.55);
    text-decoration: none;
    color: var(--text-color);
}

.release-list .release-list-card.is-latest {
    border-left-color: var(--secondary-color);
}

.release-list-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.release-version-pill {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 14px;
    font-size: 0.95em;
    letter-spacing: 0.5px;
}

.release-list .release-date {
    color: var(--light-text-color);
    font-size: 0.9em;
    opacity: 0.9;
}

.release-tag {
    background-color: var(--secondary-color);
    color: #fff;
    font-size: 0.78em;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.release-list-card h3 {
    color: var(--secondary-color);
    font-size: 1.45em;
    margin-bottom: 12px;
}

.release-list-card p {
    color: var(--light-text-color);
    margin-bottom: 16px;
    line-height: 1.7;
    font-size: 1em;
}

.release-list-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.98em;
    transition: color 0.25s ease;
}

.release-list .release-list-card:hover .release-list-link {
    color: var(--button-hover-bg);
    text-decoration: underline;
}

@media (max-width: 600px) {
    .release-list .release-list-card {
        padding: 22px 22px;
    }
    .release-index h2 {
        font-size: 1.9em;
    }
    .release-list-card h3 {
        font-size: 1.2em;
    }
}

/* ============================================================
   Hero — Split Layout (v3.0.0 renovation)
   ============================================================ */
.hero-section.hero-split {
    background: radial-gradient(ellipse at top right, rgba(247,127,0,0.18), transparent 55%),
                radial-gradient(ellipse at bottom left, rgba(46,139,87,0.16), transparent 55%),
                linear-gradient(180deg, #0d0d0d 0%, #161616 100%);
    color: #fff;
    text-align: left;
    padding: 90px 20px 110px;
    min-height: auto;
    display: block;
    position: relative;
    overflow: hidden;
}

.hero-section.hero-split::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}

.hero-section.hero-split .container {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 60px;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero-slogan {
    font-size: 1.1em;
    font-weight: 500;
    color: var(--light-text-color);
    letter-spacing: 1px;
    margin: 0 0 18px;
    line-height: 1.5;
}

.hero-slogan-accent {
    color: var(--primary-color);
    font-weight: 700;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(247,127,0,0.12);
    color: var(--primary-color);
    border: 1px solid rgba(247,127,0,0.4);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 22px;
    letter-spacing: 0.5px;
}

.hero-section.hero-split h2 {
    font-size: 3.4em;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: none;
    margin-bottom: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero-accent {
    color: var(--primary-color);
    background: linear-gradient(120deg, var(--primary-color), #ffb155);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.15em;
    color: var(--text-color);
    max-width: 560px;
    margin: 0 0 26px;
    line-height: 1.7;
}

.hero-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}

.hero-bullets li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 0;
    color: var(--text-color);
    font-size: 1.02em;
}

.hero-bullets li i {
    color: var(--secondary-color);
    background: rgba(46,139,87,0.15);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85em;
    flex-shrink: 0;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.hero-cta-primary {
    padding: 15px 30px;
    font-size: 1.05em;
    box-shadow: 0 10px 30px rgba(247,127,0,0.35);
}

.hero-cta-primary i,
.hero-cta-secondary i {
    margin-right: 8px;
}

.hero-cta-secondary {
    padding: 15px 28px;
    font-size: 1.05em;
    background: rgba(255,255,255,0.06);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.hero-cta-secondary:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.35);
    transform: translateY(-2px);
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    color: var(--light-text-color);
    font-size: 0.92em;
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-trust i {
    color: var(--primary-color);
}

.hero-visual {
    position: relative;
}

.hero-mockup {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 30px 80px rgba(0,0,0,0.6),
        0 0 0 1px rgba(255,255,255,0.08);
    transform: perspective(1500px) rotateY(-4deg) rotateX(2deg);
    transition: transform 0.6s ease;
    position: relative;
    z-index: 2;
}

.hero-mockup:hover {
    transform: perspective(1500px) rotateY(0deg) rotateX(0deg);
}

.hero-mockup-bar {
    background: #2a2a2a;
    height: 28px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 6px;
    border-bottom: 1px solid #1a1a1a;
}

.hero-mockup-bar span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #555;
}

.hero-mockup-bar span:nth-child(1) { background: #ff5f57; }
.hero-mockup-bar span:nth-child(2) { background: #febc2e; }
.hero-mockup-bar span:nth-child(3) { background: #28c840; }

.hero-screenshot {
    display: block;
    width: 100%;
    height: auto;
}

.hero-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(ellipse at center, rgba(247,127,0,0.25), transparent 65%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
}

/* ============================================================
   Features — Icon Grid (replacing carousel)
   ============================================================ */
.features-grid-section {
    background: linear-gradient(180deg, var(--darker-bg-color) 0%, var(--dark-bg-color) 100%);
}

.section-lead {
    color: var(--light-text-color);
    font-size: 1.08em;
    max-width: 720px;
    margin: -30px auto 50px;
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    text-align: left;
}

.feature-card {
    background: linear-gradient(160deg, #1f1f1f, #161616);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 28px 24px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(247,127,0,0.4);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(247,127,0,0.12);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4em;
    margin-bottom: 18px;
}

.feature-card h3 {
    color: #ffffff;
    font-size: 1.15em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-card p {
    color: var(--light-text-color);
    font-size: 0.95em;
    line-height: 1.65;
    margin: 0;
}

.feature-card-highlight {
    background: linear-gradient(160deg, rgba(247,127,0,0.18), rgba(247,127,0,0.04));
    border-color: rgba(247,127,0,0.45);
}

.feature-card-highlight .feature-icon {
    background: var(--primary-color);
    color: #fff;
}

.feature-badge {
    background: var(--primary-color);
    color: #fff;
    font-size: 0.65em;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 1px;
    font-weight: 700;
}

/* ============================================================
   v3.0.0 Showcase — alternating image / text rows
   ============================================================ */
.v3-showcase-section {
    background: var(--darker-bg-color);
    text-align: left;
    padding: 100px 0 110px;
    position: relative;
    overflow: hidden;
}

.v3-showcase-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(247,127,0,0.12), transparent 70%);
    pointer-events: none;
}

.v3-header {
    text-align: center;
    margin-bottom: 70px;
}

.v3-pill {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.95em;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(247,127,0,0.4);
}

.v3-showcase-section h2 {
    color: #ffffff;
    font-size: 2.4em;
    display: block;
    margin-bottom: 18px;
}

.v3-showcase-section h2::after {
    margin: 14px auto 0;
}

.v3-header .section-lead {
    margin: 0 auto;
}

.showcase-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
    margin-bottom: 80px;
}

.showcase-row:last-child {
    margin-bottom: 0;
}

.showcase-row.reverse .showcase-text {
    order: 2;
}

.showcase-row.reverse .showcase-visual {
    order: 1;
}

.showcase-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(46,139,87,0.15);
    color: var(--secondary-color);
    border: 1px solid rgba(46,139,87,0.4);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.88em;
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.showcase-text h3 {
    color: #ffffff;
    font-size: 1.95em;
    line-height: 1.3;
    margin-bottom: 16px;
    font-weight: 700;
}

.showcase-text p {
    color: var(--text-color);
    font-size: 1.05em;
    line-height: 1.75;
    margin-bottom: 18px;
}

.showcase-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
}

.showcase-bullets li {
    color: var(--light-text-color);
    padding: 6px 0 6px 26px;
    position: relative;
    font-size: 0.98em;
}

.showcase-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 14px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

.showcase-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.02em;
    transition: gap 0.25s ease, color 0.25s ease;
}

.showcase-link:hover {
    color: var(--button-hover-bg);
    gap: 12px;
}

.showcase-visual img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.5),
        0 0 0 1px rgba(255,255,255,0.06);
    transition: transform 0.4s ease;
}

.showcase-visual img:hover {
    transform: translateY(-4px) scale(1.02);
}

/* ============================================================
   Responsive — renovation sections
   ============================================================ */
@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .hero-section.hero-split h2 {
        font-size: 2.6em;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .showcase-row,
    .showcase-row.reverse {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 60px;
    }
    .showcase-row.reverse .showcase-text { order: 0; }
    .showcase-row.reverse .showcase-visual { order: 0; }
    .v3-showcase-section h2 {
        font-size: 1.9em;
    }
}

@media (max-width: 600px) {
    .hero-section.hero-split {
        padding: 60px 20px 80px;
    }
    .hero-section.hero-split h2 {
        font-size: 2em;
    }
    .hero-lead {
        font-size: 1em;
    }
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-cta-primary,
    .hero-cta-secondary {
        text-align: center;
    }
    .hero-trust {
        gap: 12px;
        font-size: 0.85em;
    }
    .hero-mockup {
        transform: none;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .section-lead {
        font-size: 0.98em;
        margin-top: -20px;
        margin-bottom: 36px;
    }
    .showcase-text h3 {
        font-size: 1.5em;
    }
    .v3-pill {
        font-size: 0.85em;
    }
}

/* ============================================================
   Automation emphasis additions
   ============================================================ */
.hero-inline-accent {
    color: var(--primary-color);
    font-weight: 700;
}

.features-subtitle {
    text-align: left;
    color: #ffffff;
    font-size: 1.25em;
    font-weight: 700;
    margin: 50px 0 22px;
    padding-left: 14px;
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-subtitle:first-of-type {
    margin-top: 10px;
}

.features-subtitle i {
    color: var(--primary-color);
    font-size: 0.95em;
}

.features-grid + .features-subtitle {
    margin-top: 60px;
}

.features-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.feature-card .feature-badge {
    background: var(--primary-color);
    color: #fff;
    font-size: 0.6em;
    padding: 3px 9px;
    border-radius: 999px;
    letter-spacing: 1px;
    font-weight: 700;
    margin-left: 4px;
    vertical-align: middle;
}

.v3-footnote {
    text-align: center;
    color: var(--light-text-color);
    font-size: 0.95em;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.v3-footnote a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-left: 6px;
}

.v3-footnote a:hover {
    color: var(--button-hover-bg);
    text-decoration: underline;
}

@media (max-width: 960px) {
    .features-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .features-subtitle {
        font-size: 1.1em;
        margin: 36px 0 18px;
    }
    .features-grid-2 {
        grid-template-columns: 1fr;
    }
    .v3-footnote {
        font-size: 0.88em;
    }
}

/* ============================================================
   vs Excel comparison table
   ============================================================ */
.vs-excel-section {
    background: linear-gradient(180deg, var(--dark-bg-color) 0%, var(--darker-bg-color) 100%);
    text-align: center;
    padding: 100px 0 110px;
    position: relative;
    overflow: hidden;
}

.vs-excel-section::before {
    content: '';
    position: absolute;
    top: -120px;
    left: -120px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(46,139,87,0.10), transparent 70%);
    pointer-events: none;
}

.vs-header {
    margin-bottom: 50px;
}

.vs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(247,127,0,0.12);
    color: var(--primary-color);
    border: 1px solid rgba(247,127,0,0.4);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.vs-excel-section h2 {
    color: #ffffff;
    font-size: 2.4em;
    margin-bottom: 18px;
    display: block;
}

.vs-excel-section h2::after {
    margin: 14px auto 0;
}

.vs-header .section-lead {
    margin: 0 auto;
}

.vs-table {
    max-width: 1100px;
    margin: 0 auto;
    background: linear-gradient(160deg, #1f1f1f, #161616);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0,0,0,0.45);
    text-align: left;
    position: relative;
    z-index: 1;
}

.vs-table-head {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr 1.4fr;
    background: rgba(0,0,0,0.35);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.vs-th {
    padding: 22px 24px;
    font-size: 1.05em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vs-th-task {
    color: var(--light-text-color);
    font-size: 0.95em;
    letter-spacing: 0.5px;
}

.vs-th-excel {
    color: #c5c5c5;
    border-left: 1px solid rgba(255,255,255,0.06);
}

.vs-th-excel i {
    color: #1d6f42;
    font-size: 1.2em;
}

.vs-th-sk {
    color: #ffffff;
    background: linear-gradient(120deg, rgba(247,127,0,0.18), rgba(247,127,0,0.05));
    border-left: 1px solid rgba(247,127,0,0.25);
}

.vs-th-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.vs-row {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr 1.4fr;
    border-top: 1px solid rgba(255,255,255,0.05);
    transition: background 0.25s ease;
}

.vs-row:first-of-type {
    border-top: none;
}

.vs-row:hover {
    background: rgba(255,255,255,0.02);
}

.vs-cell {
    padding: 20px 24px;
    color: var(--text-color);
    font-size: 0.98em;
    line-height: 1.55;
    display: flex;
    align-items: center;
    gap: 12px;
}

.vs-cell-task {
    color: #ffffff;
    font-weight: 600;
    background: rgba(0,0,0,0.18);
    flex-wrap: wrap;
}

.vs-cell-task > i {
    color: var(--primary-color);
    font-size: 1.05em;
    width: 22px;
    text-align: center;
}

.vs-cell-bad,
.vs-cell-good {
    border-left: 1px solid rgba(255,255,255,0.05);
}

.vs-cell-bad {
    color: #b8b8b8;
}

.vs-cell-bad > i {
    color: #d9534f;
    font-size: 1em;
    background: rgba(217,83,79,0.15);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vs-cell-good {
    color: var(--text-color);
    font-weight: 500;
    background: linear-gradient(120deg, rgba(247,127,0,0.06), transparent 70%);
    border-left-color: rgba(247,127,0,0.18);
}

.vs-cell-good > i {
    color: var(--secondary-color);
    background: rgba(46,139,87,0.18);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    flex-shrink: 0;
}

.vs-row-exclusive .vs-cell-task {
    background: rgba(247,127,0,0.08);
    color: var(--primary-color);
}

.vs-row-exclusive .vs-cell-task > i {
    color: var(--primary-color);
}

.vs-row-exclusive .vs-cell-bad > i {
    color: #999;
    background: rgba(255,255,255,0.06);
}

.vs-exclusive-tag {
    background: var(--primary-color);
    color: #fff;
    font-size: 0.65em;
    padding: 2px 9px;
    border-radius: 999px;
    letter-spacing: 1px;
    font-weight: 700;
    margin-left: auto;
}

.vs-footnote {
    margin: 36px auto 0;
    font-size: 1.05em;
    color: var(--light-text-color);
    max-width: 720px;
}

@media (max-width: 900px) {
    .vs-excel-section {
        padding: 70px 0 80px;
    }
    .vs-excel-section h2 {
        font-size: 1.8em;
    }
    .vs-table-head {
        display: none;
    }
    .vs-row {
        grid-template-columns: 1fr;
        padding: 14px 0 18px;
        border-top: 1px solid rgba(255,255,255,0.08);
    }
    .vs-row:first-of-type {
        border-top: 1px solid rgba(255,255,255,0.08);
    }
    .vs-cell {
        border-left: none !important;
        padding: 12px 22px;
        font-size: 0.95em;
    }
    .vs-cell-task {
        background: rgba(0,0,0,0.3);
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding-top: 14px;
        padding-bottom: 14px;
        font-size: 1em;
    }
    .vs-cell-bad::before {
        content: 'Excel／其他';
        color: #888;
        font-size: 0.78em;
        font-weight: 600;
        letter-spacing: 0.5px;
        margin-right: 6px;
    }
    .vs-cell-good {
        background: linear-gradient(120deg, rgba(247,127,0,0.10), transparent 80%);
    }
    .vs-cell-good::before {
        content: 'StockKeeper';
        color: var(--primary-color);
        font-size: 0.78em;
        font-weight: 700;
        letter-spacing: 0.5px;
        margin-right: 6px;
    }
    .vs-exclusive-tag {
        margin-left: 8px;
    }
}

/* ============================================================
   Changelog (single-page consolidated release notes)
   ============================================================ */

html {
    scroll-behavior: smooth;
}

.changelog-main {
    background:
        radial-gradient(ellipse at top, rgba(247,127,0,0.06), transparent 60%),
        var(--darker-bg-color);
    padding: 70px 0 90px;
    position: relative;
    /* 不使用 overflow: hidden，會讓子層 position: sticky 失效 */
}

.changelog-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at top, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at top, #000 30%, transparent 80%);
}

.changelog-main > .container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
}

.changelog-header {
    text-align: center;
    margin-bottom: 50px;
}

.changelog-header h2 {
    font-size: 2.4em;
    color: #ffffff;
    font-weight: 800;
    display: block;
    margin-bottom: 14px;
}

.changelog-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 14px auto 0;
    border-radius: 2px;
}

.changelog-intro {
    color: var(--light-text-color);
    font-size: 1.05em;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

.changelog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 48px;
    /* 不設 align-items: start，讓 .changelog-toc 撐到與內容同高，
       裡面的 .toc-sticky 才有足夠空間黏住整個捲動範圍 */
}

/* ----- Main column ----- */
.changelog-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.version-section {
    background: linear-gradient(160deg, rgba(31,31,31,0.85), rgba(22,22,22,0.85));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 36px 40px 30px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.35);
    scroll-margin-top: 110px;  /* offset for sticky header */
    position: relative;
    text-align: left;  /* 推翻通用 section { text-align: center } 的繼承 */
}

.version-section:first-child {
    border-color: rgba(247,127,0,0.4);
    box-shadow: 0 24px 60px rgba(247,127,0,0.08), 0 18px 50px rgba(0,0,0,0.35);
}

.version-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.version-pill {
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.95em;
    letter-spacing: 0.5px;
}

.version-section .version-date {
    color: var(--light-text-color);
    font-size: 0.92em;
}

.version-tag {
    background: var(--secondary-color);
    color: #fff;
    font-size: 0.78em;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.version-tag.is-latest {
    background: var(--secondary-color);
}

.version-title {
    color: #ffffff;
    font-size: 1.7em;
    font-weight: 800;
    margin: 0 0 16px;
    line-height: 1.35;
}

.version-section > p {
    color: var(--text-color);
    font-size: 1.02em;
    line-height: 1.85;
    margin-bottom: 16px;
}

.version-section > p:first-of-type {
    color: #ffffff;
    border-left: 4px solid var(--primary-color);
    padding: 4px 0 4px 18px;
    margin-bottom: 24px;
    font-size: 1.05em;
}

.version-section h4 {
    color: #ffffff;
    font-size: 1.2em;
    font-weight: 700;
    margin: 32px 0 14px;
    padding-left: 12px;
    border-left: 4px solid var(--secondary-color);
    line-height: 1.4;
}

/* 大標題強調色（黃）── 用在 h4 內部想突出的部分文字（例如標題名稱） */
.version-section h4 .h4-hl {
    color: var(--text_highlight-color);
}

.version-section .content-image {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    margin: 14px auto 18px;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.05);
}

.version-section a:not(.button) {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed rgba(247,127,0,0.4);
    transition: color 0.25s ease, border-color 0.25s ease;
}

.version-section a:not(.button):hover {
    color: var(--button-hover-bg);
    border-bottom-color: var(--button-hover-bg);
}

.version-section .bugfix-block {
    margin-top: 32px;
}

.version-section .bugfix-block h4 {
    margin: 0 0 16px;
    padding-left: 0;
    border-left: none;
    color: var(--secondary-color);
    font-size: 1.15em;
}

/* ----- TOC (right sidebar) ----- */
.changelog-toc {
    position: relative;
}

.toc-sticky {
    position: sticky;
    top: 150px;
    background: linear-gradient(160deg, rgba(31,31,31,0.9), rgba(22,22,22,0.9));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 18px 16px 14px;
}

.toc-title {
    color: var(--light-text-color);
    font-size: 0.78em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 12px;
    padding-left: 10px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toc-list a {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--light-text-color);
    text-decoration: none;
    font-size: 0.95em;
    border-left: 2px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.toc-list a:hover {
    background: rgba(255,255,255,0.04);
    color: #ffffff;
}

.toc-list a.active {
    background: rgba(247,127,0,0.10);
    color: #ffffff;
    border-left-color: var(--primary-color);
}

.toc-version {
    font-weight: 700;
}

.toc-date {
    font-size: 0.78em;
    color: var(--light-text-color);
    opacity: 0.7;
}

.toc-list a.active .toc-date {
    opacity: 0.9;
}

.changelog-content .back-to-tutorials {
    margin-top: 40px;
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
    .changelog-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .changelog-toc {
        order: -1;
    }
    .toc-sticky {
        position: relative;
        top: auto;
        padding: 14px 14px 10px;
    }
    .toc-title {
        display: none;
    }
    .toc-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }
    .toc-list a {
        padding: 8px 12px;
        border-left: none;
        border-bottom: 2px solid transparent;
        gap: 6px;
    }
    .toc-list a.active {
        border-left-color: transparent;
        border-bottom-color: var(--primary-color);
    }
    .toc-date {
        display: none;
    }
    .version-section {
        padding: 28px 24px 24px;
    }
    .version-title {
        font-size: 1.4em;
    }
    .version-section h4 {
        font-size: 1.05em;
    }
    .changelog-header h2 {
        font-size: 1.9em;
    }
}

/* ============================================================
   Hero credential 小字（開發者背景一句話，位於 eyebrow 下方）
   ============================================================ */
.hero-credential {
    margin: 12px 0 22px;
    padding-left: 12px;
    border-left: 3px solid rgba(46,139,87,0.5);
    color: var(--light-text-color);
    font-size: 0.9em;
    line-height: 1.7;
}

.hero-credential strong {
    color: var(--text-color);
    font-weight: 700;
}

/* ============================================================
   關於開發者 section
   ============================================================ */
.about-dev-section {
    background:
        radial-gradient(ellipse at top, rgba(46,139,87,0.08), transparent 60%),
        var(--dark-bg-color);
    padding: 80px 0 90px;
    position: relative;
    overflow: hidden;
}

.about-dev-section::before {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(247,127,0,0.08), transparent 70%);
    pointer-events: none;
}

.about-dev-section > .container {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.about-dev-header {
    text-align: center;
    margin-bottom: 42px;
}

.about-dev-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(46,139,87,0.14);
    color: var(--secondary-color);
    border: 1px solid rgba(46,139,87,0.4);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.about-dev-section h2 {
    color: #ffffff;
    font-size: 2.1em;
    display: block;
    margin-bottom: 0;
}

.about-dev-section h2::after {
    margin: 14px auto 0;
}

.about-dev-card {
    background: linear-gradient(160deg, #1f1f1f, #161616);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 40px 44px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

.about-dev-intro {
    color: var(--text-color);
    font-size: 1.05em;
    line-height: 1.75;
    margin: 0 0 22px;
}

.about-dev-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-dev-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.about-dev-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(247,127,0,0.15);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15em;
    flex-shrink: 0;
}

.about-dev-icon-cert {
    background: rgba(46,139,87,0.18);
    color: var(--secondary-color);
}

.about-dev-icon-invest {
    background: rgba(19,164,243,0.15);
    color: var(--text_highlight-color-blue);
}

.about-dev-item-body {
    flex: 1;
    color: var(--text-color);
    line-height: 1.65;
    padding-top: 8px;
    font-size: 1.02em;
}

.about-dev-item-body strong {
    color: #ffffff;
    font-weight: 700;
}

.about-dev-item-note {
    display: block;
    color: var(--light-text-color);
    font-size: 0.92em;
    margin-top: 4px;
    line-height: 1.6;
}

.about-dev-quote {
    color: var(--text-color);
    background: rgba(255,255,255,0.03);
    border-left: 4px solid var(--secondary-color);
    padding: 16px 20px;
    margin: 0 0 20px;
    font-size: 1em;
    line-height: 1.85;
    border-radius: 0 8px 8px 0;
}

.about-dev-cta {
    color: var(--light-text-color);
    font-size: 0.95em;
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.about-dev-cta a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.about-dev-cta a:hover {
    color: var(--button-hover-bg);
    text-decoration: underline;
}

@media (max-width: 700px) {
    .about-dev-section h2 {
        font-size: 1.7em;
    }
    .about-dev-card {
        padding: 28px 22px;
    }
    .about-dev-list li {
        gap: 12px;
    }
    .about-dev-icon {
        width: 38px;
        height: 38px;
        font-size: 1em;
    }
}
/* ============================================================
   工期計算工具（ScheduleCalculator）教學頁補充
   ============================================================ */
.rule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 24px;
    font-size: 0.98em;
}
.rule-table th,
.rule-table td {
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}
.rule-table th {
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}
.table-scroll {
    overflow-x: auto;
}
.note-box {
    margin: 18px 0 24px;
    padding: 14px 18px;
    border-left: 4px solid var(--text_highlight-color-blue);
    background: rgba(19,164,243,0.08);
    border-radius: 6px;
}
.note-box p:last-child {
    margin-bottom: 0;
}
