:root {
    --main-container-bg: #EEF5FB;
    --sidebar-bg-dark-blue: #3F4D67;
    --sidebar-bg-selected-dark-blue: #2B3342;
    --search-bg: #EFEFEF;
    --warning-red: #DC3545;
    --main-green: #19ACAE;
    --main-yellow: #F1B80E;
    --main-light-blue: #11A6EC;
    --main-dull-blue: #1E8FC1;
    --main-navy: #2858AF;
    --main-blue-gray: #20688C;
    --table-border-dark: #6B7280;
    --table-border-light: #D1D5DB;
    --table-tr-hover-bg: #E0FFFF;
    --table-tr-hover-txt: #4169E1;
    --table-grid-bg: #EAF0FF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    --text-main: var(--sidebar-bg-dark-blue);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
}

/* =========================================
   2. 全域設定 (Reset & Typography)
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    background-color: var(--main-container-bg);
    color: var(--gray-700);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--sidebar-bg-dark-blue);
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   3. 按鈕元件
   ========================================= */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    border: none;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    user-select: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background-color: var(--main-light-blue);
    color: white;
}
.btn-primary:hover {
    background-color: var(--main-dull-blue);
}

.btn-secondary {
    background-color: var(--main-yellow);
    color: var(--sidebar-bg-dark-blue);
}
.btn-secondary:hover {
    filter: brightness(0.95);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}
.btn-outline:hover {
    background-color: white;
    color: var(--main-navy);
}

.btn-outline-dark {
    background-color: white;
    border: 2px solid var(--sidebar-bg-dark-blue);
    color: var(--sidebar-bg-dark-blue);
}
.btn-outline-dark:hover {
    background-color: var(--sidebar-bg-dark-blue);
    color: white;
}

.btn-block {
    display: block;
    width: 100%;
}

/* =========================================
   4. 導覽列 (Navbar)
   ========================================= */
header {
    background-color: var(--sidebar-bg-dark-blue);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

#logo {
    height: 46px;
}

.nav-links {
    display: flex;
    gap: 15px;
}

/* =========================================
   5. Hero Section (主視覺)
   ========================================= */
.hero {
    background: linear-gradient(135deg, var(--sidebar-bg-dark-blue) 0%, var(--main-navy) 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    /* 裝飾性圓圈 */
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-image {
    flex: 1;
    position: relative;
}

/* 模擬軟體介面圖 */
.mockup-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.mockup-monitor {
    background: white;
    border-radius: 10px;
    padding: 10px 10px 0 10px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-300);
}

.mockup-screen {
    background: var(--main-container-bg);
    border-radius: 5px 5px 0 0;
    /* 改用 aspect-ratio 避免手機版變形 */
    aspect-ratio: 16/10;
    /* 舊版瀏覽器備案 */
    min-height: 200px; 
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mockup-window-controls {
    background: #e0e0e0;
    padding: 5px 10px;
    display: flex;
    gap: 5px;
    border-bottom: 1px solid #ccc;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-300); }
.dot.red { background: var(--warning-red); }
.dot.yellow { background: var(--main-yellow); }
.dot.green { background: var(--main-green); }

.dash-nav {
    background-color: var(--sidebar-bg-dark-blue);
    height: 25px;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 10px;
}
.dash-nav-item {
    width: 40px;
    height: 6px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 2px;
}
.dash-nav-logo {
    width: 20px;
    height: 12px;
    background-color: white;
    border-radius: 2px;
    margin-right: 10px;
    display: none;
}

.dash-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dash-row-cards {
    display: flex;
    gap: 8px;
}
.dash-card {
    background: white;
    border-radius: 3px;
    padding: 8px;
    flex: 1;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 60px;
}
.dash-card-title {
    height: 4px;
    width: 70%;
    background: var(--gray-300);
    margin-bottom: 5px;
    border-radius: 2px;
}
.dash-card-num {
    height: 12px;
    width: 30%;
    background: var(--main-light-blue);
    border-radius: 2px;
    margin-bottom: 5px;
}
.dash-card-btn {
    height: 8px;
    width: 50%;
    background: var(--main-green); /* 模擬 View Details 按鈕顏色 */
    border-radius: 2px;
    margin-top: auto;
}

.dash-row-panels {
    display: flex;
    gap: 8px;
    flex: 1;
}
.dash-panel {
    background: white;
    border-radius: 3px;
    flex: 1;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    padding: 8px;
}
.dash-panel-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.dash-panel-title { width: 40%; height: 6px; background: var(--gray-700); border-radius: 2px; }
.dash-panel-action { width: 20%; height: 6px; background: var(--main-light-blue); border-radius: 2px; }

.dash-table-row {
    height: 4px;
    background: var(--gray-100);
    margin-bottom: 4px;
    width: 100%;
    border-radius: 1px;
}

.mockup-phone {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 180px;
    background: var(--gray-900);
    border-radius: 15px;
    border: 3px solid var(--gray-800);
    padding: 5px;
    box-shadow: var(--shadow-lg);
}
.phone-screen {
    background: white;
    height: 100%;
    border-radius: 10px;
    padding: 8px;
    font-size: 4px;
}

/* =========================================
   5.5 SaaS Intro Section
   ========================================= */
.saas-section {
    background-color: var(--gray-50);
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

.saas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.saas-item {
    padding: 20px;
}

.saas-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
}

.saas-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--sidebar-bg-dark-blue);
}

.saas-item p {
    color: var(--gray-600);
    line-height: 1.6;
}

.color-cloud { color: var(--main-light-blue); }
.color-bolt { color: var(--main-yellow); }
.color-shield { color: var(--main-green); }


/* =========================================
   6. Workflow/Features Section
   ========================================= */
.workflow-section {
    padding: 80px 0;
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--sidebar-bg-dark-blue);
}

.section-title p {
    color: var(--gray-500);
}

.workflow-grid {
    display: grid;
    /* 調整 minmax 讓卡片在寬螢幕下有機會一列排 3 個 */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

/* 讓最後一行的項目置中 (如果數量不滿一行) */
.workflow-grid {
    justify-items: center; 
}

.workflow-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    background-color: white;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.workflow-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: var(--main-light-blue);
}

.wf-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
    color: white;
    background-color: var(--main-blue-gray);
    flex-shrink: 0;
}

/* 繽紛色彩分配 for Workflow */
.workflow-item:nth-child(1) .wf-icon-box { background-color: var(--main-light-blue); box-shadow: 0 10px 20px -5px rgba(17, 166, 236, 0.4); }
.workflow-item:nth-child(2) .wf-icon-box { background-color: var(--main-yellow); box-shadow: 0 10px 20px -5px rgba(241, 184, 14, 0.4); }
.workflow-item:nth-child(3) .wf-icon-box { background-color: var(--main-navy); box-shadow: 0 10px 20px -5px rgba(40, 88, 175, 0.4); }
.workflow-item:nth-child(4) .wf-icon-box { background-color: var(--main-green); box-shadow: 0 10px 20px -5px rgba(25, 172, 174, 0.4); }
.workflow-item:nth-child(5) .wf-icon-box { background-color: var(--warning-red); box-shadow: 0 10px 20px -5px rgba(220, 53, 69, 0.4); }
.workflow-item:nth-child(6) .wf-icon-box { background-color: var(--main-dull-blue); box-shadow: 0 10px 20px -5px rgba(30, 143, 193, 0.4); }

.workflow-item h3 {
    font-size: 1.3rem;
    color: var(--gray-800);
    margin-bottom: 15px;
}

.workflow-item p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* =========================================
   7. 內容區塊 (Content Blocks - ZigZag)
   ========================================= */
.content-block {
    padding: 80px 0;
    background-color: var(--main-container-bg);
}

.content-block:nth-child(even) {
    background-color: white;
}

.content-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
}

.content-wrapper.reverse {
    flex-direction: row-reverse;
}

.content-img {
    flex: 1;
}

/* 抽象圖形模擬 */
.illustration-box {
    width: 100%;
    height: 300px;
    background: white;
    border-radius: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.illustration-box.transparent {
    background: transparent;
}

.ill-content {
    z-index: 1;
    text-align: center;
    color: var(--main-blue-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Usability Section Animation Visuals */
.usability-visual {
    position: relative;
    width: 260px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.anim-form-card {
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    padding: 20px;
    position: relative;
}

.anim-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 8px;
    display: block;
    font-weight: 500;
    text-align: left;
}

.anim-input-box {
    width: 100%;
    height: 40px;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--gray-300);
    border-radius: 0;
    display: flex;
    align-items: center;
    padding: 0 5px; 
    position: relative;
    animation: inputFocus 6s infinite;
}

.anim-text {
    font-size: 1rem;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    border-right: 2px solid transparent;
    font-family: "Source Code Pro", monospace;
    
    --n: 7;
    --w: 7.3ch;
    
    animation: typing 6s steps(var(--n), end) infinite, cursorBlink 0.7s step-end infinite;
}

.anim-cursor {
    position: absolute;
    font-size: 1.5rem;
    color: var(--sidebar-bg-dark-blue);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    z-index: 5;
    top: 100%;
    left: 100%;
    pointer-events: none;
    animation: mouseMove 6s infinite;
}

/* Animations */
@keyframes inputFocus {
    0%, 15% { border-bottom-color: var(--gray-300); }
    15%, 80% { border-bottom-color: var(--main-light-blue); } 
    100% { border-bottom-color: var(--gray-300); }
}

@keyframes typing {
    0%, 25% { width: 0; border-right-color: transparent; }
    26% { border-right-color: var(--main-navy); } 
    50%, 80% { width: var(--w); border-right-color: var(--main-navy); }
    85%, 100% { width: 0; border-right-color: transparent; }
}

@keyframes cursorBlink {
    50% { border-right-color: transparent; }
}

@keyframes mouseMove {
    0% { top: 120%; left: 120%; opacity: 0; }
    5% { opacity: 1; }
    10% { top: 60%; left: 50%; transform: scale(1); }
    12% { transform: scale(0.9); }
    14% { transform: scale(1); }
    20% { top: 60%; left: 50%; opacity: 1; }
    25% { top: 120%; left: 120%; opacity: 0; }
    100% { top: 120%; left: 120%; opacity: 0; }
}

.content-text {
    flex: 1;
}

.content-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--main-navy);
    position: relative;
    display: inline-block;
}

.content-text h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--main-yellow);
    border-radius: 2px;
}

.content-text p {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 20px;
}

.feature-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.feature-list li i {
    color: var(--main-green);
}

/* =========================================
   8. 訂閱方案 (Pricing Section)
   ========================================= */
.pricing-section {
    padding: 80px 0;
    background-color: white; /* 為了與上一塊灰色背景區隔 */
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 800px; /* 限制寬度讓兩張卡片集中 */
    margin: 0 auto 40px auto;
}

.pricing-card {
    background-color: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.basic:hover { border-color: var(--main-green); }
.pricing-card.pro:hover { border-color: var(--sidebar-bg-dark-blue); }

.pricing-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.pricing-card.basic .pricing-icon { color: var(--main-green); }
.pricing-card.pro .pricing-icon { color: var(--main-yellow); }

.pricing-price {
    margin: 20px 0;
    color: var(--sidebar-bg-dark-blue);
}
.pricing-price .currency {
    font-size: 1.2rem;
    font-weight: 500;
    vertical-align: top;
    margin-right: 2px;
}
.pricing-price .amount {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}
.pricing-price .period {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-left: 5px;
}

/* 區分價格顏色 */
.pricing-card.basic .pricing-price .amount { color: var(--main-green); }
.pricing-card.pro .pricing-price .amount { color: var(--sidebar-bg-dark-blue); }

.pricing-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gray-800);
}

.pricing-desc {
    color: var(--gray-500);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.pricing-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.basic .pricing-badge { background-color: #E0F2F1; color: var(--main-green); }
.pro .pricing-badge { background-color: var(--sidebar-bg-dark-blue); color: var(--main-yellow); }

.pricing-footer {
    text-align: center;
}

.tax-included {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-top: -15px;
    margin-bottom: 15px;
}

/* =========================================
   8.5 Pricing Modal
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 5vh auto;
    padding: 0;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 900px;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--gray-50);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-header h2 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--sidebar-bg-dark-blue);
}

.close-btn {
    color: var(--gray-500);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--warning-red);
}

.modal-body {
    padding: 30px;
    overflow-x: auto; /* For tables on small screens */
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Ensure table doesn't squish too much */
}

.pricing-table th, .pricing-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.pricing-table th {
    background-color: var(--gray-50);
    color: var(--gray-700);
    font-weight: 700;
}

.pricing-table th.center-align, .pricing-table td.center-align {
    text-align: center;
}

/* Highlight Plan Columns */
.pricing-table th:nth-child(2), .pricing-table td:nth-child(2) {
    background-color: #f9fbfb; /* Very light green tint */
}
.pricing-table th:nth-child(3), .pricing-table td:nth-child(3) {
    background-color: #f6f8fb; /* Very light blue tint */
}

.check-icon { color: var(--main-green); font-size: 1.1rem; }
.dash-icon { color: var(--gray-300); }
.feature-category {
    background-color: var(--gray-100);
    font-weight: 700;
    color: var(--sidebar-bg-dark-blue);
    text-align: left !important;
    padding-left: 20px;
}

/* =========================================
   9. 聯絡表單 (Contact Form)
   ========================================= */
.contact-section {
    padding: 100px 0;
    background-color: var(--main-container-bg);
    background-image: radial-gradient(var(--table-tr-hover-bg) 2px, transparent 2px);
    background-size: 30px 30px;
}

.contact-card {
    background-color: white;
    max-width: 600px;
    margin: 0 auto;
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    border-top: 5px solid var(--main-light-blue);
}

.contact-card h2 {
    margin-bottom: 30px;
    color: var(--gray-800);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: var(--gray-50);
}

.form-control:focus {
    outline: none;
    border-color: var(--main-light-blue);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(17, 166, 236, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

#statusMessage {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    display: none;
}

/* =========================================
   10. 頁尾 (Footer)
   ========================================= */
footer {
    background-color: var(--sidebar-bg-dark-blue);
    color: white;
    padding: 60px 0 30px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
}

.footer-info {
    flex: 1;
    min-width: 250px;
}

.footer-info h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-info p i {
    color: var(--main-light-blue);
    width: 20px;
    text-align: center;
}

.footer-links {
    text-align: right;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    margin-left: 20px;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--main-yellow);
}

.footer-lang-wrapper {
    display: inline-flex;
    align-items: center;
    margin-left: 20px;
    color: rgba(255, 255, 255, 0.8);
}
.footer-lang-wrapper i {
    margin-right: 8px;
}
.lang-select {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
}
.lang-select option {
    background-color: var(--sidebar-bg-dark-blue);
    color: white;
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}
#compEngName {
    margin-top: -15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* =========================================
   11. 響應式設計斷點 (Responsive)
   ========================================= */

/* 1024px - 小筆電 / 橫向平板 */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    .hero-text h1 {
        font-size: 2.5rem;
    }
}

/* 768px - 平板 / 大手機轉折點 */
@media (max-width: 768px) {
    .hero-content,
    .content-wrapper,
    .content-wrapper.reverse,
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image {
        margin-top: 40px;
    }
    
    .content-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* 修正：聯絡表單在小螢幕置中 */
    .contact-card {
        padding: 30px 20px;
        margin: 0 auto; /* 自動置中 */
        width: 90%;     /* 設定寬度比例，保留兩側空間 */
    }
    
    .mockup-phone {
        right: 0;
    }
    
    .nav-links {
        display: none; 
    }

    .footer-info, .footer-links {
        width: 100%;
        text-align: center;
    }

    .footer-info p {
        justify-content: center;
    }

    .footer-links a {
        margin: 0 10px;
        display: inline-block;
    }
    
    /* 平板上網格維持彈性但最小寬度略縮 */
    .workflow-grid, .pricing-grid, .saas-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* 480px - 大手機 */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }

    /* 強制單欄顯示，避免卡片過窄 */
    .pricing-grid, .saas-grid, .workflow-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-visual {
        width: 100%;
        max-width: 220px;
        margin: 0 auto; /* 圖表置中 */
    }
    
    .usability-visual {
        transform: scale(0.8);
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    .modal-body {
        padding: 15px;
    }
    
    .feature-list li {
        justify-content: center;
    }
}

/* 320px - 小手機 */
@media (max-width: 320px) {
    body {
        font-size: 14px; /* 縮小基礎字級 */
    }
    
    .hero-text h1 {
        font-size: 1.6rem;
    }
    
    .btn {
        width: 100%; /* 按鈕全寬更好點擊 */
        margin-bottom: 10px;
        padding: 8px 16px;
    }
    
    .container {
        padding: 0 15px; /* 減少兩側留白 */
    }
    
    .mockup-container {
        /* 確保圖片不破版 */
        width: 100%;
    }
    
    /* 極小螢幕進一步縮小圖示 */
    .usability-visual {
        transform: scale(0.65);
    }
}
